@connectif/ui-components 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/button/ButtonWithActions.d.ts +2 -2
- package/dist/components/button/IconButton.d.ts +1 -1
- package/dist/components/button/IconToggleButton.d.ts +1 -1
- package/dist/components/button/MenuButton.d.ts +1 -1
- package/dist/components/button/MenuIconButton.d.ts +3 -3
- package/dist/components/card/EnhancedCardTitle.d.ts +4 -0
- package/dist/components/chart/DonutChart.d.ts +18 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/chip/MenuChip.d.ts +1 -1
- package/dist/components/icon/Icon.d.ts +2 -4
- package/dist/components/icon/icons.d.ts +4 -0
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/info/InfoBox.d.ts +1 -1
- package/dist/components/input/DatePicker.d.ts +1 -1
- package/dist/components/input/NumberField.d.ts +1 -1
- package/dist/components/input/PhoneField.d.ts +1 -1
- package/dist/components/list/ListItemButton.d.ts +1 -1
- package/dist/index.js +573 -624
- package/dist/theme/Colors.d.ts +0 -22
- package/dist/theme/CustomPalette.d.ts +0 -2
- package/dist/theme/CustomPaletteCommon.d.ts +0 -1
- package/dist/theme/Palettes.d.ts +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/ChartUtils.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4630,6 +4630,9 @@ var customIcons = {};
|
|
|
4630
4630
|
function registerCustomIcons(newIcons) {
|
|
4631
4631
|
customIcons = { ...customIcons, ...newIcons };
|
|
4632
4632
|
}
|
|
4633
|
+
function getIconPath(icon) {
|
|
4634
|
+
return customIcons[icon] ?? icons[icon] ?? "";
|
|
4635
|
+
}
|
|
4633
4636
|
|
|
4634
4637
|
// src/components/icon/Icon.tsx
|
|
4635
4638
|
import { Icon as MdiIcon } from "@mdi/react";
|
|
@@ -4729,13 +4732,6 @@ __export(Typography_exports, {
|
|
|
4729
4732
|
var Colors_exports = {};
|
|
4730
4733
|
__export(Colors_exports, {
|
|
4731
4734
|
black: () => black,
|
|
4732
|
-
blackOpacity04: () => blackOpacity04,
|
|
4733
|
-
blueGrey: () => blueGrey,
|
|
4734
|
-
blueGrey300: () => blueGrey300,
|
|
4735
|
-
blueGrey400: () => blueGrey400,
|
|
4736
|
-
blueGrey500: () => blueGrey500,
|
|
4737
|
-
blueGrey700: () => blueGrey700,
|
|
4738
|
-
blueGrey800: () => blueGrey800,
|
|
4739
4735
|
complementary100: () => complementary100,
|
|
4740
4736
|
complementary200: () => complementary200,
|
|
4741
4737
|
complementary300: () => complementary300,
|
|
@@ -4753,7 +4749,6 @@ __export(Colors_exports, {
|
|
|
4753
4749
|
dark700: () => dark700,
|
|
4754
4750
|
dark800: () => dark800,
|
|
4755
4751
|
dark900: () => dark900,
|
|
4756
|
-
darkGreen: () => darkGreen,
|
|
4757
4752
|
darkMain: () => darkMain,
|
|
4758
4753
|
electricLavender: () => electricLavender,
|
|
4759
4754
|
error100: () => error100,
|
|
@@ -4768,7 +4763,6 @@ __export(Colors_exports, {
|
|
|
4768
4763
|
error800: () => error800,
|
|
4769
4764
|
error900: () => error900,
|
|
4770
4765
|
errorMain: () => errorMain,
|
|
4771
|
-
green2: () => green2,
|
|
4772
4766
|
grey100: () => grey100,
|
|
4773
4767
|
grey200: () => grey200,
|
|
4774
4768
|
grey300: () => grey300,
|
|
@@ -4780,10 +4774,7 @@ __export(Colors_exports, {
|
|
|
4780
4774
|
grey800: () => grey800,
|
|
4781
4775
|
grey900: () => grey900,
|
|
4782
4776
|
gunMetal: () => gunMetal,
|
|
4783
|
-
lightGreen: () => lightGreen,
|
|
4784
4777
|
oliveGreen: () => oliveGreen,
|
|
4785
|
-
overlay02: () => overlay02,
|
|
4786
|
-
overlay05: () => overlay05,
|
|
4787
4778
|
paleOliveGreen: () => paleOliveGreen,
|
|
4788
4779
|
primary100: () => primary100,
|
|
4789
4780
|
primary200: () => primary200,
|
|
@@ -4796,14 +4787,10 @@ __export(Colors_exports, {
|
|
|
4796
4787
|
primary800: () => primary800,
|
|
4797
4788
|
primary900: () => primary900,
|
|
4798
4789
|
primaryAlpha32: () => primaryAlpha32,
|
|
4799
|
-
primaryAlpha64: () => primaryAlpha64,
|
|
4800
4790
|
primaryDark: () => primaryDark,
|
|
4801
4791
|
primaryLight: () => primaryLight,
|
|
4802
4792
|
primaryMain: () => primaryMain,
|
|
4803
4793
|
primaryOpacity32: () => primaryOpacity32,
|
|
4804
|
-
purpleDark: () => purpleDark,
|
|
4805
|
-
purpleLight: () => purpleLight,
|
|
4806
|
-
redOrange: () => redOrange,
|
|
4807
4794
|
success100: () => success100,
|
|
4808
4795
|
success200: () => success200,
|
|
4809
4796
|
success300: () => success300,
|
|
@@ -4817,12 +4804,6 @@ __export(Colors_exports, {
|
|
|
4817
4804
|
successDark: () => successDark,
|
|
4818
4805
|
successLight: () => successLight,
|
|
4819
4806
|
successMain: () => successMain,
|
|
4820
|
-
tertiaryBlueGray: () => tertiaryBlueGray,
|
|
4821
|
-
tertiaryBlueGrayLight: () => tertiaryBlueGrayLight,
|
|
4822
|
-
tertiaryOliveGreen: () => tertiaryOliveGreen,
|
|
4823
|
-
tertiaryOliveGreenLight: () => tertiaryOliveGreenLight,
|
|
4824
|
-
tertiaryTealBlue: () => tertiaryTealBlue,
|
|
4825
|
-
tertiaryTealBlueLight: () => tertiaryTealBlueLight,
|
|
4826
4807
|
white: () => white,
|
|
4827
4808
|
whiteOpacity32: () => whiteOpacity32,
|
|
4828
4809
|
yellow: () => yellow
|
|
@@ -4842,7 +4823,6 @@ var primaryDark = primary800;
|
|
|
4842
4823
|
var primaryLight = primary300;
|
|
4843
4824
|
var primaryOpacity32 = "rgba(212, 224, 246, 0.32)";
|
|
4844
4825
|
var primaryAlpha32 = "#F1F5FC";
|
|
4845
|
-
var primaryAlpha64 = "#E3EBF9";
|
|
4846
4826
|
var complementary50 = "#FBF3E3";
|
|
4847
4827
|
var complementary100 = "#F5E0B9";
|
|
4848
4828
|
var complementary200 = "#F0CC8C";
|
|
@@ -4892,14 +4872,6 @@ var grey900 = "#212121";
|
|
|
4892
4872
|
var white = "#FFFFFF";
|
|
4893
4873
|
var whiteOpacity32 = "rgba(255, 255, 255, 0.32)";
|
|
4894
4874
|
var black = "#000000";
|
|
4895
|
-
var blackOpacity04 = "rgba(0, 0, 0, 0.04)";
|
|
4896
|
-
var blueGrey300 = "#A0A4AB";
|
|
4897
|
-
var blueGrey400 = "#646D7A";
|
|
4898
|
-
var blueGrey500 = "#495362";
|
|
4899
|
-
var blueGrey700 = "#414A58";
|
|
4900
|
-
var blueGrey800 = "#383F4C";
|
|
4901
|
-
var lightGreen = "#599D7D";
|
|
4902
|
-
var darkGreen = "#487F65";
|
|
4903
4875
|
var dark500 = "#7F8BA8";
|
|
4904
4876
|
var dark600 = "#3A4155";
|
|
4905
4877
|
var dark700 = "#2F3646";
|
|
@@ -4908,23 +4880,10 @@ var dark900 = "#1D202A";
|
|
|
4908
4880
|
var darkMain = dark700;
|
|
4909
4881
|
var electricLavender = "#AD77EF";
|
|
4910
4882
|
var cornflowerBlue = "#5F90EF";
|
|
4911
|
-
var tertiaryBlueGray = "#0E7178";
|
|
4912
|
-
var tertiaryBlueGrayLight = "#E4F5F7";
|
|
4913
|
-
var tertiaryOliveGreen = "#619C1D";
|
|
4914
|
-
var tertiaryOliveGreenLight = "#EFF7E6";
|
|
4915
|
-
var tertiaryTealBlue = "#73849F";
|
|
4916
|
-
var tertiaryTealBlueLight = "#F1F3F5";
|
|
4917
|
-
var overlay02 = "rgba(0, 0, 0, 0.02)";
|
|
4918
|
-
var overlay05 = "rgba(0, 0, 0, 0.05)";
|
|
4919
|
-
var purpleDark = "#8035DC";
|
|
4920
|
-
var purpleLight = "#FCEDFF";
|
|
4921
4883
|
var gunMetal = "#47535D";
|
|
4922
4884
|
var yellow = "#FFD234";
|
|
4923
|
-
var blueGrey = "#7384A0";
|
|
4924
4885
|
var paleOliveGreen = "#AED581";
|
|
4925
4886
|
var oliveGreen = "#83B04E";
|
|
4926
|
-
var redOrange = "#FF3D00";
|
|
4927
|
-
var green2 = "#2AC1CB";
|
|
4928
4887
|
|
|
4929
4888
|
// src/theme/Typography.ts
|
|
4930
4889
|
var sizes = {
|
|
@@ -5227,7 +5186,6 @@ var buttonTheme = {
|
|
|
5227
5186
|
// src/theme/Palettes.ts
|
|
5228
5187
|
var Palettes_exports = {};
|
|
5229
5188
|
__export(Palettes_exports, {
|
|
5230
|
-
blueGreyPalette: () => blueGreyPalette,
|
|
5231
5189
|
commonPalette: () => commonPalette,
|
|
5232
5190
|
complementaryPalette: () => complementaryPalette,
|
|
5233
5191
|
cornflowerBluePalette: () => cornflowerBluePalette,
|
|
@@ -5254,8 +5212,7 @@ var primaryPalette = {
|
|
|
5254
5212
|
800: primary800,
|
|
5255
5213
|
900: primary900,
|
|
5256
5214
|
opacity32: primaryOpacity32,
|
|
5257
|
-
alpha32: primaryAlpha32
|
|
5258
|
-
alpha64: primaryAlpha64
|
|
5215
|
+
alpha32: primaryAlpha32
|
|
5259
5216
|
};
|
|
5260
5217
|
var complementaryPalette = {
|
|
5261
5218
|
main: complementaryMain,
|
|
@@ -5315,21 +5272,10 @@ var greyPalette = {
|
|
|
5315
5272
|
var commonPalette = {
|
|
5316
5273
|
black,
|
|
5317
5274
|
white,
|
|
5318
|
-
blackOpacity04,
|
|
5319
5275
|
whiteOpacity32
|
|
5320
5276
|
};
|
|
5321
|
-
var blueGreyPalette = {
|
|
5322
|
-
main: blueGrey,
|
|
5323
|
-
300: blueGrey300,
|
|
5324
|
-
400: blueGrey400,
|
|
5325
|
-
500: blueGrey500,
|
|
5326
|
-
700: blueGrey700,
|
|
5327
|
-
800: blueGrey800
|
|
5328
|
-
};
|
|
5329
5277
|
var greenPalette = {
|
|
5330
|
-
main: oliveGreen
|
|
5331
|
-
light: lightGreen,
|
|
5332
|
-
dark: darkGreen
|
|
5278
|
+
main: oliveGreen
|
|
5333
5279
|
};
|
|
5334
5280
|
var darkPalette = {
|
|
5335
5281
|
main: darkMain,
|
|
@@ -7696,7 +7642,6 @@ var themeOptions = {
|
|
|
7696
7642
|
success: successPalette,
|
|
7697
7643
|
grey: greyPalette,
|
|
7698
7644
|
common: commonPalette,
|
|
7699
|
-
blueGrey: blueGreyPalette,
|
|
7700
7645
|
green: greenPalette,
|
|
7701
7646
|
dark: darkPalette,
|
|
7702
7647
|
electricLavender: electricLavenderPalette,
|
|
@@ -10092,7 +10037,7 @@ var colorStyles2 = (theme2) => ({
|
|
|
10092
10037
|
}
|
|
10093
10038
|
},
|
|
10094
10039
|
warning: {
|
|
10095
|
-
color: theme2.palette.
|
|
10040
|
+
color: theme2.palette.common.white,
|
|
10096
10041
|
backgroundColor: theme2.palette.error[900],
|
|
10097
10042
|
":hover": {
|
|
10098
10043
|
backgroundColor: theme2.palette.error[600]
|
|
@@ -10858,6 +10803,7 @@ var EnhancedCardTitle = ({
|
|
|
10858
10803
|
cursor: cursor2 = "default",
|
|
10859
10804
|
variant = "body2",
|
|
10860
10805
|
size = "M",
|
|
10806
|
+
padding: padding2,
|
|
10861
10807
|
dataTest
|
|
10862
10808
|
}) => {
|
|
10863
10809
|
const typographyVariantHeight = variants[variant].lineHeight;
|
|
@@ -10869,6 +10815,7 @@ var EnhancedCardTitle = ({
|
|
|
10869
10815
|
maxWidth: "100%",
|
|
10870
10816
|
alignSelf: "stretch",
|
|
10871
10817
|
minWidth: 0,
|
|
10818
|
+
padding: padding2,
|
|
10872
10819
|
...forceHeight ? {
|
|
10873
10820
|
height: size === "S" ? typographyVariantHeight : `calc(${typographyVariantHeight} * 2)`
|
|
10874
10821
|
} : {}
|
|
@@ -12061,7 +12008,7 @@ function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
|
12061
12008
|
value
|
|
12062
12009
|
}) => ({
|
|
12063
12010
|
text: `${seriesName}: ${value}`
|
|
12064
|
-
})) {
|
|
12011
|
+
}), getTooltip) {
|
|
12065
12012
|
const tooltipReact = React31.useMemo(() => {
|
|
12066
12013
|
const domElement = document.createElement("div");
|
|
12067
12014
|
return { root: createRoot(domElement), domElement };
|
|
@@ -12074,7 +12021,7 @@ function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
|
12074
12021
|
};
|
|
12075
12022
|
params.sort((a, b) => getOrder(a) - getOrder(b));
|
|
12076
12023
|
const tooltip = /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
12077
|
-
/* @__PURE__ */ jsx65(Typography_default, { variant: "tooltip", children: params[0].name }),
|
|
12024
|
+
!getTooltip && /* @__PURE__ */ jsx65(Typography_default, { variant: "tooltip", children: params[0].name }),
|
|
12078
12025
|
params.map((p) => {
|
|
12079
12026
|
const entry = chartTooltipEntryFormatter({
|
|
12080
12027
|
seriesIndex: p.seriesIndex,
|
|
@@ -12083,6 +12030,9 @@ function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
|
12083
12030
|
data: p.data
|
|
12084
12031
|
});
|
|
12085
12032
|
const incrementType = entry.incrementLabelType ?? "neutral";
|
|
12033
|
+
if (getTooltip) {
|
|
12034
|
+
return /* @__PURE__ */ jsx65(React31.Fragment, { children: getTooltip(p) }, p.seriesIndex);
|
|
12035
|
+
}
|
|
12086
12036
|
return /* @__PURE__ */ jsxs26(React31.Fragment, { children: [
|
|
12087
12037
|
/* @__PURE__ */ jsx65("br", {}),
|
|
12088
12038
|
/* @__PURE__ */ jsx65(
|
|
@@ -12121,29 +12071,19 @@ function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
|
12121
12071
|
import { alpha as alpha2 } from "@mui/material";
|
|
12122
12072
|
|
|
12123
12073
|
// src/components/chart/ChartUtils.tsx
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
);
|
|
12138
|
-
const text = `data:image/svg+xml;base64,${btoa(
|
|
12139
|
-
renderedIcon.replace(
|
|
12140
|
-
"<svg ",
|
|
12141
|
-
`<svg xmlns="http://www.w3.org/2000/svg" fill="${incrementLabelStyles[iconType].color}"
|
|
12142
|
-
width="${incrementLabelStyles[iconType].size}" height="${incrementLabelStyles[iconType].size}" `
|
|
12143
|
-
)
|
|
12144
|
-
)}`;
|
|
12145
|
-
return text;
|
|
12146
|
-
};
|
|
12074
|
+
var getIconDataUri = (iconId, iconType = "neutral") => `data:image/svg+xml;base64,${btoa(
|
|
12075
|
+
`<svg xmlns="http://www.w3.org/2000/svg"
|
|
12076
|
+
fill="${incrementLabelStyles[iconType].color}"
|
|
12077
|
+
width="${incrementLabelStyles[iconType].size}"
|
|
12078
|
+
height="${incrementLabelStyles[iconType].size}"
|
|
12079
|
+
viewBox="0 0 24 24"
|
|
12080
|
+
role="presentation"
|
|
12081
|
+
class="MuiSvgIcon-root"
|
|
12082
|
+
data-icon-id="${iconId}"
|
|
12083
|
+
style="width: 24px; height: 24px;">
|
|
12084
|
+
<path d="${getIconPath(iconId)}" style="fill: currentcolor;"></path>
|
|
12085
|
+
</svg>`
|
|
12086
|
+
)}`;
|
|
12147
12087
|
var tooltipOptions = {
|
|
12148
12088
|
trigger: "axis",
|
|
12149
12089
|
borderRadius: 8,
|
|
@@ -12164,7 +12104,7 @@ var tooltipOptions = {
|
|
|
12164
12104
|
|
|
12165
12105
|
// src/components/chart/BarChart.tsx
|
|
12166
12106
|
import AutoSizer from "react-virtualized-auto-sizer";
|
|
12167
|
-
import { jsx as
|
|
12107
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
12168
12108
|
var estimatedYAxisWidth = 50;
|
|
12169
12109
|
var barMinHeight = 1;
|
|
12170
12110
|
var BarChart2 = ({
|
|
@@ -12414,7 +12354,7 @@ var BarChart2 = ({
|
|
|
12414
12354
|
]
|
|
12415
12355
|
)
|
|
12416
12356
|
});
|
|
12417
|
-
return isLoading ? /* @__PURE__ */
|
|
12357
|
+
return isLoading ? /* @__PURE__ */ jsx66(
|
|
12418
12358
|
"div",
|
|
12419
12359
|
{
|
|
12420
12360
|
style: {
|
|
@@ -12422,9 +12362,9 @@ var BarChart2 = ({
|
|
|
12422
12362
|
width: "100%",
|
|
12423
12363
|
...style3
|
|
12424
12364
|
},
|
|
12425
|
-
children: /* @__PURE__ */
|
|
12365
|
+
children: /* @__PURE__ */ jsx66(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" })
|
|
12426
12366
|
}
|
|
12427
|
-
) : /* @__PURE__ */
|
|
12367
|
+
) : /* @__PURE__ */ jsx66(AutoSizer, { style: { height: "100%", width: "100%" }, children: ({ width: width2 }) => /* @__PURE__ */ jsx66(
|
|
12428
12368
|
ReactEChartsCore,
|
|
12429
12369
|
{
|
|
12430
12370
|
ref: chartRef,
|
|
@@ -12445,7 +12385,7 @@ import { createRoot as createRoot2 } from "react-dom/client";
|
|
|
12445
12385
|
import ReactEChartsCore2 from "echarts-for-react/lib/core";
|
|
12446
12386
|
import * as echarts3 from "echarts/core";
|
|
12447
12387
|
import { ThemeProvider, useTheme as useTheme4 } from "@mui/material/styles";
|
|
12448
|
-
import { jsx as
|
|
12388
|
+
import { jsx as jsx67, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12449
12389
|
var LineChart2 = ({
|
|
12450
12390
|
style: style3,
|
|
12451
12391
|
isLoading,
|
|
@@ -12482,7 +12422,7 @@ var LineChart2 = ({
|
|
|
12482
12422
|
if (isComparing) {
|
|
12483
12423
|
const incrementType = data.tooltipIncrementType ?? "neutral";
|
|
12484
12424
|
const incrementLabelIconId = data.tooltipIncrementType && incrementLabelStyles[data.tooltipIncrementType].icon;
|
|
12485
|
-
incrementLabel = data.tooltipIncrementLabel && /* @__PURE__ */
|
|
12425
|
+
incrementLabel = data.tooltipIncrementLabel && /* @__PURE__ */ jsx67(
|
|
12486
12426
|
IncrementLabel_default,
|
|
12487
12427
|
{
|
|
12488
12428
|
color: incrementLabelStyles[incrementType].color,
|
|
@@ -12505,7 +12445,7 @@ var LineChart2 = ({
|
|
|
12505
12445
|
alignItems: "center"
|
|
12506
12446
|
},
|
|
12507
12447
|
children: [
|
|
12508
|
-
/* @__PURE__ */
|
|
12448
|
+
/* @__PURE__ */ jsx67(
|
|
12509
12449
|
Icon_default,
|
|
12510
12450
|
{
|
|
12511
12451
|
id: serie.tooltipIconId ?? "minus",
|
|
@@ -12517,7 +12457,7 @@ var LineChart2 = ({
|
|
|
12517
12457
|
),
|
|
12518
12458
|
serie.name,
|
|
12519
12459
|
" ",
|
|
12520
|
-
/* @__PURE__ */
|
|
12460
|
+
/* @__PURE__ */ jsx67(
|
|
12521
12461
|
Typography_default,
|
|
12522
12462
|
{
|
|
12523
12463
|
variant: "body2-semibold-monospace",
|
|
@@ -12540,7 +12480,7 @@ var LineChart2 = ({
|
|
|
12540
12480
|
alignItems: "center"
|
|
12541
12481
|
},
|
|
12542
12482
|
children: [
|
|
12543
|
-
/* @__PURE__ */
|
|
12483
|
+
/* @__PURE__ */ jsx67(
|
|
12544
12484
|
Icon_default,
|
|
12545
12485
|
{
|
|
12546
12486
|
id: "dots-horizontal",
|
|
@@ -12552,10 +12492,10 @@ var LineChart2 = ({
|
|
|
12552
12492
|
),
|
|
12553
12493
|
serie.comparisonName,
|
|
12554
12494
|
" ",
|
|
12555
|
-
/* @__PURE__ */
|
|
12495
|
+
/* @__PURE__ */ jsx67(Typography_default, { variant: "body2-semibold", color: grey800, children: data.tooltipComparisonValue })
|
|
12556
12496
|
]
|
|
12557
12497
|
}
|
|
12558
|
-
) : /* @__PURE__ */
|
|
12498
|
+
) : /* @__PURE__ */ jsx67("span", {})
|
|
12559
12499
|
] }, serie.name);
|
|
12560
12500
|
};
|
|
12561
12501
|
const tooltipReact = React32.useMemo(() => {
|
|
@@ -12570,7 +12510,7 @@ var LineChart2 = ({
|
|
|
12570
12510
|
}
|
|
12571
12511
|
const categoryLabel = tooltipCategoryLabel ?? axisValueLabel;
|
|
12572
12512
|
const hasGroup = groups.some((group) => group !== "");
|
|
12573
|
-
const tooltip = /* @__PURE__ */
|
|
12513
|
+
const tooltip = /* @__PURE__ */ jsx67(ThemeProvider, { theme: theme2, children: /* @__PURE__ */ jsx67(
|
|
12574
12514
|
Box_default2,
|
|
12575
12515
|
{
|
|
12576
12516
|
sx: {
|
|
@@ -12580,7 +12520,7 @@ var LineChart2 = ({
|
|
|
12580
12520
|
gap: "0 16px"
|
|
12581
12521
|
},
|
|
12582
12522
|
children: groups.map((group, index) => /* @__PURE__ */ jsxs27(React32.Fragment, { children: [
|
|
12583
|
-
index > 0 && /* @__PURE__ */
|
|
12523
|
+
index > 0 && /* @__PURE__ */ jsx67(
|
|
12584
12524
|
Divider_default,
|
|
12585
12525
|
{
|
|
12586
12526
|
sx: {
|
|
@@ -12590,7 +12530,7 @@ var LineChart2 = ({
|
|
|
12590
12530
|
}
|
|
12591
12531
|
}
|
|
12592
12532
|
),
|
|
12593
|
-
group !== "" && /* @__PURE__ */
|
|
12533
|
+
group !== "" && /* @__PURE__ */ jsx67(
|
|
12594
12534
|
Typography_default,
|
|
12595
12535
|
{
|
|
12596
12536
|
variant: "body2-semibold",
|
|
@@ -12599,7 +12539,7 @@ var LineChart2 = ({
|
|
|
12599
12539
|
children: group
|
|
12600
12540
|
}
|
|
12601
12541
|
),
|
|
12602
|
-
/* @__PURE__ */
|
|
12542
|
+
/* @__PURE__ */ jsx67(
|
|
12603
12543
|
Typography_default,
|
|
12604
12544
|
{
|
|
12605
12545
|
variant: "caption",
|
|
@@ -12782,7 +12722,7 @@ var LineChart2 = ({
|
|
|
12782
12722
|
) : []
|
|
12783
12723
|
]
|
|
12784
12724
|
};
|
|
12785
|
-
return isLoading ? /* @__PURE__ */
|
|
12725
|
+
return isLoading ? /* @__PURE__ */ jsx67(
|
|
12786
12726
|
"div",
|
|
12787
12727
|
{
|
|
12788
12728
|
style: {
|
|
@@ -12790,7 +12730,7 @@ var LineChart2 = ({
|
|
|
12790
12730
|
width: "100%",
|
|
12791
12731
|
...style3
|
|
12792
12732
|
},
|
|
12793
|
-
children: /* @__PURE__ */
|
|
12733
|
+
children: /* @__PURE__ */ jsx67(
|
|
12794
12734
|
Skeleton_default,
|
|
12795
12735
|
{
|
|
12796
12736
|
variant: "rectangular",
|
|
@@ -12808,7 +12748,7 @@ var LineChart2 = ({
|
|
|
12808
12748
|
flexDirection: "row",
|
|
12809
12749
|
margin: "0 16px",
|
|
12810
12750
|
children: [
|
|
12811
|
-
!disableSeriesNames && series[1]?.name && series[1]?.name !== series[0]?.name && /* @__PURE__ */
|
|
12751
|
+
!disableSeriesNames && series[1]?.name && series[1]?.name !== series[0]?.name && /* @__PURE__ */ jsx67(
|
|
12812
12752
|
Stack_default,
|
|
12813
12753
|
{
|
|
12814
12754
|
sx: {
|
|
@@ -12817,7 +12757,7 @@ var LineChart2 = ({
|
|
|
12817
12757
|
gridTemplateColumns: "auto 1fr",
|
|
12818
12758
|
margin: "auto"
|
|
12819
12759
|
},
|
|
12820
|
-
children: /* @__PURE__ */
|
|
12760
|
+
children: /* @__PURE__ */ jsx67(
|
|
12821
12761
|
Typography_default,
|
|
12822
12762
|
{
|
|
12823
12763
|
sx: {
|
|
@@ -12833,13 +12773,13 @@ var LineChart2 = ({
|
|
|
12833
12773
|
)
|
|
12834
12774
|
}
|
|
12835
12775
|
),
|
|
12836
|
-
/* @__PURE__ */
|
|
12776
|
+
/* @__PURE__ */ jsx67(
|
|
12837
12777
|
Stack_default,
|
|
12838
12778
|
{
|
|
12839
12779
|
sx: {
|
|
12840
12780
|
width: series.length > 1 ? `calc(100% - 20px)` : "100%"
|
|
12841
12781
|
},
|
|
12842
|
-
children: /* @__PURE__ */
|
|
12782
|
+
children: /* @__PURE__ */ jsx67(
|
|
12843
12783
|
ReactEChartsCore2,
|
|
12844
12784
|
{
|
|
12845
12785
|
ref: chartRef,
|
|
@@ -12854,7 +12794,7 @@ var LineChart2 = ({
|
|
|
12854
12794
|
)
|
|
12855
12795
|
}
|
|
12856
12796
|
),
|
|
12857
|
-
!disableSeriesNames && series[0]?.name && /* @__PURE__ */
|
|
12797
|
+
!disableSeriesNames && series[0]?.name && /* @__PURE__ */ jsx67(
|
|
12858
12798
|
Stack_default,
|
|
12859
12799
|
{
|
|
12860
12800
|
sx: {
|
|
@@ -12863,7 +12803,7 @@ var LineChart2 = ({
|
|
|
12863
12803
|
gridTemplateColumns: "auto 1fr",
|
|
12864
12804
|
margin: "auto"
|
|
12865
12805
|
},
|
|
12866
|
-
children: /* @__PURE__ */
|
|
12806
|
+
children: /* @__PURE__ */ jsx67(
|
|
12867
12807
|
Typography_default,
|
|
12868
12808
|
{
|
|
12869
12809
|
sx: {
|
|
@@ -12889,15 +12829,15 @@ import { alpha as alpha3 } from "@mui/material";
|
|
|
12889
12829
|
|
|
12890
12830
|
// src/components/chart/RankingChartTooltip.tsx
|
|
12891
12831
|
import * as React33 from "react";
|
|
12892
|
-
import { jsx as
|
|
12832
|
+
import { jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12893
12833
|
var RankingChartTooltip = ({
|
|
12894
12834
|
label,
|
|
12895
12835
|
metrics = [],
|
|
12896
12836
|
incrementLabelType,
|
|
12897
12837
|
incrementLabelValue
|
|
12898
12838
|
}) => /* @__PURE__ */ jsxs28(Box_default2, { children: [
|
|
12899
|
-
/* @__PURE__ */
|
|
12900
|
-
/* @__PURE__ */
|
|
12839
|
+
/* @__PURE__ */ jsx68(Typography_default, { variant: "body2", component: "div", children: label }),
|
|
12840
|
+
/* @__PURE__ */ jsx68(
|
|
12901
12841
|
Box_default2,
|
|
12902
12842
|
{
|
|
12903
12843
|
sx: {
|
|
@@ -12907,10 +12847,10 @@ var RankingChartTooltip = ({
|
|
|
12907
12847
|
alignItems: "center"
|
|
12908
12848
|
},
|
|
12909
12849
|
children: metrics.map(({ color: color2, label: label2, value }, i) => /* @__PURE__ */ jsxs28(React33.Fragment, { children: [
|
|
12910
|
-
/* @__PURE__ */
|
|
12911
|
-
/* @__PURE__ */
|
|
12850
|
+
/* @__PURE__ */ jsx68(Icon_default, { id: "dot", size: "XS", sx: { color: color2 } }),
|
|
12851
|
+
/* @__PURE__ */ jsx68(Typography_default, { variant: "body2", children: label2 }),
|
|
12912
12852
|
/* @__PURE__ */ jsxs28("div", { style: { display: "flex", flexDirection: "row" }, children: [
|
|
12913
|
-
/* @__PURE__ */
|
|
12853
|
+
/* @__PURE__ */ jsx68(
|
|
12914
12854
|
Typography_default,
|
|
12915
12855
|
{
|
|
12916
12856
|
variant: "body2",
|
|
@@ -12921,7 +12861,7 @@ var RankingChartTooltip = ({
|
|
|
12921
12861
|
children: value
|
|
12922
12862
|
}
|
|
12923
12863
|
),
|
|
12924
|
-
incrementLabelType && incrementLabelValue && i === 0 ? /* @__PURE__ */
|
|
12864
|
+
incrementLabelType && incrementLabelValue && i === 0 ? /* @__PURE__ */ jsx68(
|
|
12925
12865
|
IncrementLabel_default,
|
|
12926
12866
|
{
|
|
12927
12867
|
color: incrementLabelStyles[incrementLabelType ?? "neutral"].color,
|
|
@@ -12940,7 +12880,7 @@ var RankingChartTooltip = ({
|
|
|
12940
12880
|
var RankingChartTooltip_default = RankingChartTooltip;
|
|
12941
12881
|
|
|
12942
12882
|
// src/components/chart/RankingChartItem.tsx
|
|
12943
|
-
import { jsx as
|
|
12883
|
+
import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
12944
12884
|
var RankingChartItem = ({
|
|
12945
12885
|
label,
|
|
12946
12886
|
value,
|
|
@@ -12948,7 +12888,7 @@ var RankingChartItem = ({
|
|
|
12948
12888
|
incrementLabelType,
|
|
12949
12889
|
metrics = []
|
|
12950
12890
|
}) => {
|
|
12951
|
-
const tooltipContent = /* @__PURE__ */
|
|
12891
|
+
const tooltipContent = /* @__PURE__ */ jsx69(
|
|
12952
12892
|
RankingChartTooltip_default,
|
|
12953
12893
|
{
|
|
12954
12894
|
label,
|
|
@@ -12973,7 +12913,7 @@ var RankingChartItem = ({
|
|
|
12973
12913
|
variant: "caption",
|
|
12974
12914
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
12975
12915
|
children: [
|
|
12976
|
-
/* @__PURE__ */
|
|
12916
|
+
/* @__PURE__ */ jsx69(
|
|
12977
12917
|
"div",
|
|
12978
12918
|
{
|
|
12979
12919
|
style: {
|
|
@@ -12986,8 +12926,8 @@ var RankingChartItem = ({
|
|
|
12986
12926
|
}
|
|
12987
12927
|
),
|
|
12988
12928
|
/* @__PURE__ */ jsxs29("div", { style: { display: "flex", justifyContent: "right" }, children: [
|
|
12989
|
-
/* @__PURE__ */
|
|
12990
|
-
incrementLabelValue && /* @__PURE__ */
|
|
12929
|
+
/* @__PURE__ */ jsx69("div", { style: { margin: "0px 8px 0px" }, children: value }),
|
|
12930
|
+
incrementLabelValue && /* @__PURE__ */ jsx69(
|
|
12991
12931
|
IncrementLabel_default,
|
|
12992
12932
|
{
|
|
12993
12933
|
color: incrementLabelType ? incrementLabelStyles[incrementLabelType].color : "inherit",
|
|
@@ -13001,7 +12941,7 @@ var RankingChartItem = ({
|
|
|
13001
12941
|
]
|
|
13002
12942
|
}
|
|
13003
12943
|
),
|
|
13004
|
-
/* @__PURE__ */
|
|
12944
|
+
/* @__PURE__ */ jsx69(
|
|
13005
12945
|
"div",
|
|
13006
12946
|
{
|
|
13007
12947
|
style: {
|
|
@@ -13012,7 +12952,7 @@ var RankingChartItem = ({
|
|
|
13012
12952
|
backgroundColor: alpha3(grey200, 0.5),
|
|
13013
12953
|
borderRadius: "0 8px 8px 0"
|
|
13014
12954
|
},
|
|
13015
|
-
children: metrics.slice().reverse().sort(({ percentage: p1 }, { percentage: p2 }) => p2 - p1).map(({ color: color2, percentage }, i) => /* @__PURE__ */
|
|
12955
|
+
children: metrics.slice().reverse().sort(({ percentage: p1 }, { percentage: p2 }) => p2 - p1).map(({ color: color2, percentage }, i) => /* @__PURE__ */ jsx69(
|
|
13016
12956
|
"div",
|
|
13017
12957
|
{
|
|
13018
12958
|
style: {
|
|
@@ -13032,13 +12972,13 @@ var RankingChartItem = ({
|
|
|
13032
12972
|
]
|
|
13033
12973
|
}
|
|
13034
12974
|
);
|
|
13035
|
-
return /* @__PURE__ */
|
|
12975
|
+
return /* @__PURE__ */ jsx69(Tooltip_default, { variant: "white", title: tooltipContent, children: content });
|
|
13036
12976
|
};
|
|
13037
12977
|
var RankingChartItem_default = RankingChartItem;
|
|
13038
12978
|
|
|
13039
12979
|
// src/components/chart/RankingChart.tsx
|
|
13040
|
-
import { jsx as
|
|
13041
|
-
var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__PURE__ */
|
|
12980
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
12981
|
+
var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__PURE__ */ jsx70(
|
|
13042
12982
|
"div",
|
|
13043
12983
|
{
|
|
13044
12984
|
style: {
|
|
@@ -13046,9 +12986,9 @@ var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__P
|
|
|
13046
12986
|
width: "100%",
|
|
13047
12987
|
...style3
|
|
13048
12988
|
},
|
|
13049
|
-
children: /* @__PURE__ */
|
|
12989
|
+
children: /* @__PURE__ */ jsx70(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" })
|
|
13050
12990
|
}
|
|
13051
|
-
) : /* @__PURE__ */
|
|
12991
|
+
) : /* @__PURE__ */ jsx70(
|
|
13052
12992
|
"div",
|
|
13053
12993
|
{
|
|
13054
12994
|
style: {
|
|
@@ -13059,7 +12999,7 @@ var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__P
|
|
|
13059
12999
|
height: "100%",
|
|
13060
13000
|
...style3
|
|
13061
13001
|
},
|
|
13062
|
-
children: series.map((serie, serieIndex) => /* @__PURE__ */
|
|
13002
|
+
children: series.map((serie, serieIndex) => /* @__PURE__ */ jsx70(
|
|
13063
13003
|
"div",
|
|
13064
13004
|
{
|
|
13065
13005
|
style: {
|
|
@@ -13067,7 +13007,7 @@ var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__P
|
|
|
13067
13007
|
flexDirection: "column",
|
|
13068
13008
|
height: "100%"
|
|
13069
13009
|
},
|
|
13070
|
-
children: serie.items.map((item, itemIndex) => /* @__PURE__ */
|
|
13010
|
+
children: serie.items.map((item, itemIndex) => /* @__PURE__ */ jsx70(RankingChartItem_default, { ...item }, itemIndex))
|
|
13071
13011
|
},
|
|
13072
13012
|
serieIndex
|
|
13073
13013
|
))
|
|
@@ -13080,13 +13020,13 @@ import ReactEChartsCore3 from "echarts-for-react/lib/core";
|
|
|
13080
13020
|
import * as echarts4 from "echarts/core";
|
|
13081
13021
|
|
|
13082
13022
|
// src/components/chart/DonutChartLegendItem.tsx
|
|
13083
|
-
import { jsx as
|
|
13023
|
+
import { jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
13084
13024
|
var DonutChartLegendItem = ({
|
|
13085
13025
|
label,
|
|
13086
13026
|
variant,
|
|
13087
13027
|
colors = []
|
|
13088
13028
|
}) => /* @__PURE__ */ jsxs30(Box_default2, { sx: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
13089
|
-
/* @__PURE__ */
|
|
13029
|
+
/* @__PURE__ */ jsx71(StackedIcons_default, { children: colors.map((color2) => /* @__PURE__ */ jsx71(
|
|
13090
13030
|
Icon_default,
|
|
13091
13031
|
{
|
|
13092
13032
|
size: variant === "caption" ? "S" : "M",
|
|
@@ -13095,18 +13035,21 @@ var DonutChartLegendItem = ({
|
|
|
13095
13035
|
},
|
|
13096
13036
|
color2
|
|
13097
13037
|
)) }),
|
|
13098
|
-
/* @__PURE__ */
|
|
13038
|
+
/* @__PURE__ */ jsx71(Typography_default, { variant, children: label })
|
|
13099
13039
|
] });
|
|
13100
13040
|
var DonutChartLegendItem_default = DonutChartLegendItem;
|
|
13101
13041
|
|
|
13102
13042
|
// src/components/chart/DonutChart.tsx
|
|
13103
13043
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
13104
|
-
import { Fragment as Fragment12, jsx as
|
|
13044
|
+
import { Fragment as Fragment12, jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
13105
13045
|
var DonutChart = ({
|
|
13106
13046
|
style: style3,
|
|
13107
13047
|
isLoading,
|
|
13108
13048
|
series = [],
|
|
13049
|
+
startAngle,
|
|
13050
|
+
innerWidth,
|
|
13109
13051
|
tooltipEntryFormatter,
|
|
13052
|
+
getTooltip,
|
|
13110
13053
|
onClick
|
|
13111
13054
|
}) => {
|
|
13112
13055
|
const mainMetricWidth = 20;
|
|
@@ -13122,7 +13065,7 @@ var DonutChart = ({
|
|
|
13122
13065
|
tooltip: {
|
|
13123
13066
|
...tooltipOptions,
|
|
13124
13067
|
trigger: "item",
|
|
13125
|
-
formatter: useTooltipFormatter(tooltipEntryFormatter)
|
|
13068
|
+
formatter: useTooltipFormatter(tooltipEntryFormatter, getTooltip)
|
|
13126
13069
|
},
|
|
13127
13070
|
grid: {
|
|
13128
13071
|
left: 0,
|
|
@@ -13148,8 +13091,9 @@ var DonutChart = ({
|
|
|
13148
13091
|
emptyCircleStyle: {
|
|
13149
13092
|
color: alpha4(grey200, 0.5)
|
|
13150
13093
|
},
|
|
13094
|
+
...startAngle && { startAngle },
|
|
13151
13095
|
radius: [
|
|
13152
|
-
`${currentRadius - mainMetricWidth}%`,
|
|
13096
|
+
`${currentRadius - (innerWidth ?? mainMetricWidth)}%`,
|
|
13153
13097
|
`${currentRadius}%`
|
|
13154
13098
|
],
|
|
13155
13099
|
name,
|
|
@@ -13160,17 +13104,17 @@ var DonutChart = ({
|
|
|
13160
13104
|
label: {
|
|
13161
13105
|
show: false
|
|
13162
13106
|
},
|
|
13163
|
-
data: isAllZero ? [] : data.map(({ value, label, color: color2 }) => ({
|
|
13107
|
+
data: isAllZero ? [] : data.map(({ value, label, color: color2, opacity }) => ({
|
|
13164
13108
|
value,
|
|
13165
13109
|
name: label,
|
|
13166
13110
|
incrementLabelValue,
|
|
13167
13111
|
incrementLabelType,
|
|
13168
13112
|
itemStyle: {
|
|
13169
|
-
color: color2
|
|
13113
|
+
color: opacity === void 0 ? color2 : alpha4(color2, opacity)
|
|
13170
13114
|
}
|
|
13171
13115
|
}))
|
|
13172
13116
|
});
|
|
13173
|
-
currentRadius -= mainMetricWidth;
|
|
13117
|
+
currentRadius -= innerWidth ?? mainMetricWidth;
|
|
13174
13118
|
if (isComparison) {
|
|
13175
13119
|
currentRadius -= comparisonMetricMargin;
|
|
13176
13120
|
previous.push({
|
|
@@ -13195,12 +13139,13 @@ var DonutChart = ({
|
|
|
13195
13139
|
({
|
|
13196
13140
|
comparisonValue,
|
|
13197
13141
|
comparisonLabel,
|
|
13198
|
-
color: color2
|
|
13142
|
+
color: color2,
|
|
13143
|
+
opacity
|
|
13199
13144
|
}) => ({
|
|
13200
13145
|
value: comparisonValue,
|
|
13201
13146
|
name: comparisonLabel,
|
|
13202
13147
|
itemStyle: {
|
|
13203
|
-
color: color2
|
|
13148
|
+
color: opacity === void 0 ? color2 : alpha4(color2, opacity)
|
|
13204
13149
|
}
|
|
13205
13150
|
})
|
|
13206
13151
|
)
|
|
@@ -13218,7 +13163,7 @@ var DonutChart = ({
|
|
|
13218
13163
|
if (isComparison) {
|
|
13219
13164
|
const incrementType = series[0].incrementLabelType ?? "neutral";
|
|
13220
13165
|
const incrementLabelIconId = series[0].incrementLabelType && incrementLabelStyles[series[0].incrementLabelType].icon;
|
|
13221
|
-
boxContent = series[0].incrementLabelValue && /* @__PURE__ */
|
|
13166
|
+
boxContent = series[0].incrementLabelValue && /* @__PURE__ */ jsx72(
|
|
13222
13167
|
IncrementLabel_default,
|
|
13223
13168
|
{
|
|
13224
13169
|
color: incrementLabelStyles[incrementType].color,
|
|
@@ -13245,13 +13190,13 @@ var DonutChart = ({
|
|
|
13245
13190
|
justifyContent: "center"
|
|
13246
13191
|
},
|
|
13247
13192
|
children: [
|
|
13248
|
-
/* @__PURE__ */
|
|
13193
|
+
/* @__PURE__ */ jsx72(Typography_default, { variant: "h4", children: series[0].value }),
|
|
13249
13194
|
boxContent
|
|
13250
13195
|
]
|
|
13251
13196
|
}
|
|
13252
13197
|
);
|
|
13253
13198
|
}
|
|
13254
|
-
return /* @__PURE__ */
|
|
13199
|
+
return /* @__PURE__ */ jsx72(
|
|
13255
13200
|
"div",
|
|
13256
13201
|
{
|
|
13257
13202
|
style: {
|
|
@@ -13261,10 +13206,10 @@ var DonutChart = ({
|
|
|
13261
13206
|
flexDirection: "column",
|
|
13262
13207
|
...style3
|
|
13263
13208
|
},
|
|
13264
|
-
children: isLoading ? /* @__PURE__ */
|
|
13209
|
+
children: isLoading ? /* @__PURE__ */ jsx72(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs31(Fragment12, { children: [
|
|
13265
13210
|
/* @__PURE__ */ jsxs31(Box_default2, { sx: { flexGrow: 1, position: "relative" }, children: [
|
|
13266
13211
|
title,
|
|
13267
|
-
/* @__PURE__ */
|
|
13212
|
+
/* @__PURE__ */ jsx72(
|
|
13268
13213
|
ReactEChartsCore3,
|
|
13269
13214
|
{
|
|
13270
13215
|
style: { width: "100%", height: "100%" },
|
|
@@ -13276,7 +13221,7 @@ var DonutChart = ({
|
|
|
13276
13221
|
}
|
|
13277
13222
|
)
|
|
13278
13223
|
] }),
|
|
13279
|
-
series.length > 1 && /* @__PURE__ */
|
|
13224
|
+
series.length > 1 && /* @__PURE__ */ jsx72(
|
|
13280
13225
|
Box_default2,
|
|
13281
13226
|
{
|
|
13282
13227
|
sx: {
|
|
@@ -13285,7 +13230,7 @@ var DonutChart = ({
|
|
|
13285
13230
|
gap: "8px",
|
|
13286
13231
|
padding: "8px 0"
|
|
13287
13232
|
},
|
|
13288
|
-
children: series.map((s, i) => /* @__PURE__ */
|
|
13233
|
+
children: series.map((s, i) => /* @__PURE__ */ jsx72(
|
|
13289
13234
|
DonutChartLegendItem_default,
|
|
13290
13235
|
{
|
|
13291
13236
|
variant: "body2",
|
|
@@ -13296,7 +13241,7 @@ var DonutChart = ({
|
|
|
13296
13241
|
))
|
|
13297
13242
|
}
|
|
13298
13243
|
),
|
|
13299
|
-
series.length > 1 && isComparison && /* @__PURE__ */
|
|
13244
|
+
series.length > 1 && isComparison && /* @__PURE__ */ jsx72(
|
|
13300
13245
|
Box_default2,
|
|
13301
13246
|
{
|
|
13302
13247
|
sx: {
|
|
@@ -13305,7 +13250,7 @@ var DonutChart = ({
|
|
|
13305
13250
|
gap: "8px",
|
|
13306
13251
|
padding: "0 0 16px 0"
|
|
13307
13252
|
},
|
|
13308
|
-
children: series.map((s, i) => /* @__PURE__ */
|
|
13253
|
+
children: series.map((s, i) => /* @__PURE__ */ jsx72(
|
|
13309
13254
|
DonutChartLegendItem_default,
|
|
13310
13255
|
{
|
|
13311
13256
|
variant: "caption",
|
|
@@ -13327,7 +13272,7 @@ import ReactEChartsCore4 from "echarts-for-react/lib/core";
|
|
|
13327
13272
|
import * as echarts5 from "echarts/core";
|
|
13328
13273
|
import { alpha as alpha5 } from "@mui/material";
|
|
13329
13274
|
import AutoSizer2 from "react-virtualized-auto-sizer";
|
|
13330
|
-
import { jsx as
|
|
13275
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
13331
13276
|
var estimatedYAxisWidth2 = 50;
|
|
13332
13277
|
var barMinHeight2 = 1;
|
|
13333
13278
|
var FunnelChart = ({
|
|
@@ -13616,7 +13561,7 @@ var FunnelChart = ({
|
|
|
13616
13561
|
] : []
|
|
13617
13562
|
]
|
|
13618
13563
|
});
|
|
13619
|
-
return isLoading ? /* @__PURE__ */
|
|
13564
|
+
return isLoading ? /* @__PURE__ */ jsx73(
|
|
13620
13565
|
"div",
|
|
13621
13566
|
{
|
|
13622
13567
|
style: {
|
|
@@ -13624,9 +13569,9 @@ var FunnelChart = ({
|
|
|
13624
13569
|
width: "100%",
|
|
13625
13570
|
...style3
|
|
13626
13571
|
},
|
|
13627
|
-
children: /* @__PURE__ */
|
|
13572
|
+
children: /* @__PURE__ */ jsx73(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" })
|
|
13628
13573
|
}
|
|
13629
|
-
) : /* @__PURE__ */
|
|
13574
|
+
) : /* @__PURE__ */ jsx73(AutoSizer2, { style: { height: "100%", width: "100%" }, children: ({ width: width2 }) => /* @__PURE__ */ jsx73(
|
|
13630
13575
|
ReactEChartsCore4,
|
|
13631
13576
|
{
|
|
13632
13577
|
style: style3,
|
|
@@ -13645,10 +13590,10 @@ import { alpha as alpha6 } from "@mui/material";
|
|
|
13645
13590
|
|
|
13646
13591
|
// src/components/chart/WeekChartTooltip.tsx
|
|
13647
13592
|
import * as React34 from "react";
|
|
13648
|
-
import { jsx as
|
|
13593
|
+
import { jsx as jsx74, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
13649
13594
|
var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_default2, { children: [
|
|
13650
|
-
/* @__PURE__ */
|
|
13651
|
-
/* @__PURE__ */
|
|
13595
|
+
/* @__PURE__ */ jsx74(Typography_default, { variant: "body2", component: "div", children: label }),
|
|
13596
|
+
/* @__PURE__ */ jsx74(
|
|
13652
13597
|
Box_default2,
|
|
13653
13598
|
{
|
|
13654
13599
|
sx: {
|
|
@@ -13669,10 +13614,10 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13669
13614
|
incrementLabelValue
|
|
13670
13615
|
}, i) => [
|
|
13671
13616
|
/* @__PURE__ */ jsxs32(React34.Fragment, { children: [
|
|
13672
|
-
/* @__PURE__ */
|
|
13673
|
-
/* @__PURE__ */
|
|
13617
|
+
/* @__PURE__ */ jsx74(Icon_default, { id: "dot", size: "S", sx: { color: color2 } }),
|
|
13618
|
+
/* @__PURE__ */ jsx74(Typography_default, { variant: "body2", children: label2 }),
|
|
13674
13619
|
/* @__PURE__ */ jsxs32("div", { style: { display: "flex", flexDirection: "row" }, children: [
|
|
13675
|
-
/* @__PURE__ */
|
|
13620
|
+
/* @__PURE__ */ jsx74(
|
|
13676
13621
|
Typography_default,
|
|
13677
13622
|
{
|
|
13678
13623
|
variant: "body2",
|
|
@@ -13683,7 +13628,7 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13683
13628
|
children: value
|
|
13684
13629
|
}
|
|
13685
13630
|
),
|
|
13686
|
-
incrementLabelType && incrementLabelValue ? /* @__PURE__ */
|
|
13631
|
+
incrementLabelType && incrementLabelValue ? /* @__PURE__ */ jsx74(
|
|
13687
13632
|
IncrementLabel_default,
|
|
13688
13633
|
{
|
|
13689
13634
|
color: incrementLabelStyles[incrementLabelType ?? "neutral"].color,
|
|
@@ -13698,7 +13643,7 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13698
13643
|
] }, i),
|
|
13699
13644
|
...comparisonLabel ? [
|
|
13700
13645
|
/* @__PURE__ */ jsxs32(React34.Fragment, { children: [
|
|
13701
|
-
/* @__PURE__ */
|
|
13646
|
+
/* @__PURE__ */ jsx74(
|
|
13702
13647
|
Icon_default,
|
|
13703
13648
|
{
|
|
13704
13649
|
id: "dot",
|
|
@@ -13706,8 +13651,8 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13706
13651
|
sx: { color: comparisonColor }
|
|
13707
13652
|
}
|
|
13708
13653
|
),
|
|
13709
|
-
/* @__PURE__ */
|
|
13710
|
-
/* @__PURE__ */
|
|
13654
|
+
/* @__PURE__ */ jsx74(Typography_default, { variant: "body2", children: comparisonLabel }),
|
|
13655
|
+
/* @__PURE__ */ jsx74(
|
|
13711
13656
|
Typography_default,
|
|
13712
13657
|
{
|
|
13713
13658
|
variant: "body2",
|
|
@@ -13726,9 +13671,9 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13726
13671
|
var WeekChartTooltip_default = WeekChartTooltip;
|
|
13727
13672
|
|
|
13728
13673
|
// src/components/chart/WeekChartItem.tsx
|
|
13729
|
-
import { jsx as
|
|
13674
|
+
import { jsx as jsx75, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
13730
13675
|
var WeekChartItem = ({ label, metrics = [] }) => {
|
|
13731
|
-
const tooltipContent = /* @__PURE__ */
|
|
13676
|
+
const tooltipContent = /* @__PURE__ */ jsx75(WeekChartTooltip_default, { label, metrics });
|
|
13732
13677
|
const content = /* @__PURE__ */ jsxs33(
|
|
13733
13678
|
Typography_default,
|
|
13734
13679
|
{
|
|
@@ -13742,7 +13687,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13742
13687
|
},
|
|
13743
13688
|
color: grey400,
|
|
13744
13689
|
children: [
|
|
13745
|
-
/* @__PURE__ */
|
|
13690
|
+
/* @__PURE__ */ jsx75(
|
|
13746
13691
|
"div",
|
|
13747
13692
|
{
|
|
13748
13693
|
style: {
|
|
@@ -13753,7 +13698,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13753
13698
|
children: label
|
|
13754
13699
|
}
|
|
13755
13700
|
),
|
|
13756
|
-
/* @__PURE__ */
|
|
13701
|
+
/* @__PURE__ */ jsx75(
|
|
13757
13702
|
"div",
|
|
13758
13703
|
{
|
|
13759
13704
|
style: {
|
|
@@ -13772,7 +13717,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13772
13717
|
comparisonColor,
|
|
13773
13718
|
comparisonPercentage
|
|
13774
13719
|
}, i) => {
|
|
13775
|
-
const mainDiv = /* @__PURE__ */
|
|
13720
|
+
const mainDiv = /* @__PURE__ */ jsx75(
|
|
13776
13721
|
"div",
|
|
13777
13722
|
{
|
|
13778
13723
|
style: {
|
|
@@ -13790,7 +13735,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13790
13735
|
let isComparisonInBack = false;
|
|
13791
13736
|
let comparisonDiv = null;
|
|
13792
13737
|
if (Number.isFinite(comparisonPercentage)) {
|
|
13793
|
-
comparisonDiv = /* @__PURE__ */
|
|
13738
|
+
comparisonDiv = /* @__PURE__ */ jsx75(
|
|
13794
13739
|
"div",
|
|
13795
13740
|
{
|
|
13796
13741
|
style: {
|
|
@@ -13807,7 +13752,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13807
13752
|
);
|
|
13808
13753
|
isComparisonInBack = comparisonPercentage > percentage;
|
|
13809
13754
|
}
|
|
13810
|
-
return /* @__PURE__ */
|
|
13755
|
+
return /* @__PURE__ */ jsx75(
|
|
13811
13756
|
"div",
|
|
13812
13757
|
{
|
|
13813
13758
|
style: { height: "100%", position: "relative" },
|
|
@@ -13822,13 +13767,13 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13822
13767
|
]
|
|
13823
13768
|
}
|
|
13824
13769
|
);
|
|
13825
|
-
return /* @__PURE__ */
|
|
13770
|
+
return /* @__PURE__ */ jsx75(Tooltip_default, { variant: "white", title: tooltipContent, children: content });
|
|
13826
13771
|
};
|
|
13827
13772
|
var WeekChartItem_default = WeekChartItem;
|
|
13828
13773
|
|
|
13829
13774
|
// src/components/chart/WeekChart.tsx
|
|
13830
|
-
import { jsx as
|
|
13831
|
-
var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */
|
|
13775
|
+
import { jsx as jsx76, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
13776
|
+
var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx76(
|
|
13832
13777
|
"div",
|
|
13833
13778
|
{
|
|
13834
13779
|
style: {
|
|
@@ -13838,7 +13783,7 @@ var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx77(
|
|
|
13838
13783
|
height: "100%",
|
|
13839
13784
|
...style3
|
|
13840
13785
|
},
|
|
13841
|
-
children: isLoading ? /* @__PURE__ */
|
|
13786
|
+
children: isLoading ? /* @__PURE__ */ jsx76(
|
|
13842
13787
|
Skeleton_default,
|
|
13843
13788
|
{
|
|
13844
13789
|
variant: "rectangular",
|
|
@@ -13855,8 +13800,8 @@ var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx77(
|
|
|
13855
13800
|
gap: "2px"
|
|
13856
13801
|
},
|
|
13857
13802
|
children: [
|
|
13858
|
-
/* @__PURE__ */
|
|
13859
|
-
day.hours.map((hour) => /* @__PURE__ */
|
|
13803
|
+
/* @__PURE__ */ jsx76(Typography_default, { variant: "caption", children: day.label }),
|
|
13804
|
+
day.hours.map((hour) => /* @__PURE__ */ jsx76(
|
|
13860
13805
|
WeekChartItem_default,
|
|
13861
13806
|
{
|
|
13862
13807
|
label: hour.label,
|
|
@@ -13873,11 +13818,11 @@ var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx77(
|
|
|
13873
13818
|
var WeekChart_default = WeekChart;
|
|
13874
13819
|
|
|
13875
13820
|
// src/components/chart/MicroPieChart.tsx
|
|
13876
|
-
import { jsx as
|
|
13821
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
13877
13822
|
var MicroPieChart = ({
|
|
13878
13823
|
color: color2 = primaryMain,
|
|
13879
13824
|
percentage
|
|
13880
|
-
}) => /* @__PURE__ */
|
|
13825
|
+
}) => /* @__PURE__ */ jsx77(
|
|
13881
13826
|
Box_default2,
|
|
13882
13827
|
{
|
|
13883
13828
|
sx: {
|
|
@@ -13902,7 +13847,7 @@ var MicroPieChart_default = MicroPieChart;
|
|
|
13902
13847
|
|
|
13903
13848
|
// src/components/chat/ChatMessage.tsx
|
|
13904
13849
|
import * as React35 from "react";
|
|
13905
|
-
import { jsx as
|
|
13850
|
+
import { jsx as jsx78, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
13906
13851
|
var outgoingChatMessageAnimation = keyframes`
|
|
13907
13852
|
0% { transform: translateY(50px); }
|
|
13908
13853
|
25% { transform: translateY(0px); }
|
|
@@ -13941,7 +13886,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
13941
13886
|
},
|
|
13942
13887
|
children: [
|
|
13943
13888
|
messageType === "outgoing" && adornment,
|
|
13944
|
-
/* @__PURE__ */
|
|
13889
|
+
/* @__PURE__ */ jsx78(
|
|
13945
13890
|
Box_default2,
|
|
13946
13891
|
{
|
|
13947
13892
|
sx: {
|
|
@@ -13981,7 +13926,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
13981
13926
|
wordBreak: "break-word"
|
|
13982
13927
|
},
|
|
13983
13928
|
children: [
|
|
13984
|
-
/* @__PURE__ */
|
|
13929
|
+
/* @__PURE__ */ jsx78(
|
|
13985
13930
|
Typography_default,
|
|
13986
13931
|
{
|
|
13987
13932
|
color: !typographyColor ? messageType === "incoming" ? grey900 : white : typographyColor,
|
|
@@ -13990,7 +13935,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
13990
13935
|
children
|
|
13991
13936
|
}
|
|
13992
13937
|
),
|
|
13993
|
-
optionsBar && /* @__PURE__ */
|
|
13938
|
+
optionsBar && /* @__PURE__ */ jsx78(
|
|
13994
13939
|
Box_default2,
|
|
13995
13940
|
{
|
|
13996
13941
|
sx: {
|
|
@@ -14003,7 +13948,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14003
13948
|
children: optionsBar
|
|
14004
13949
|
}
|
|
14005
13950
|
),
|
|
14006
|
-
!!cancelableButtonText && /* @__PURE__ */
|
|
13951
|
+
!!cancelableButtonText && /* @__PURE__ */ jsx78(Tooltip_default, { title: cancelableButtonText, children: /* @__PURE__ */ jsx78(
|
|
14007
13952
|
Box_default2,
|
|
14008
13953
|
{
|
|
14009
13954
|
sx: {
|
|
@@ -14011,7 +13956,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14011
13956
|
left: "4px",
|
|
14012
13957
|
bottom: "4px"
|
|
14013
13958
|
},
|
|
14014
|
-
children: /* @__PURE__ */
|
|
13959
|
+
children: /* @__PURE__ */ jsx78(
|
|
14015
13960
|
IconButton_default,
|
|
14016
13961
|
{
|
|
14017
13962
|
iconId: "stop",
|
|
@@ -14049,7 +13994,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14049
13994
|
bottom: 0
|
|
14050
13995
|
},
|
|
14051
13996
|
children: [
|
|
14052
|
-
/* @__PURE__ */
|
|
13997
|
+
/* @__PURE__ */ jsx78(
|
|
14053
13998
|
Icon_default,
|
|
14054
13999
|
{
|
|
14055
14000
|
id: "information-outline",
|
|
@@ -14057,7 +14002,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14057
14002
|
sx: { marginRight: "5px" }
|
|
14058
14003
|
}
|
|
14059
14004
|
),
|
|
14060
|
-
/* @__PURE__ */
|
|
14005
|
+
/* @__PURE__ */ jsx78(Typography_default, { variant: "caption", color: grey500, children: errorText })
|
|
14061
14006
|
]
|
|
14062
14007
|
}
|
|
14063
14008
|
)
|
|
@@ -14070,7 +14015,7 @@ var ChatMessage_default = ChatMessage;
|
|
|
14070
14015
|
// src/components/chat/Chat.tsx
|
|
14071
14016
|
import Stack5 from "@mui/material/Stack";
|
|
14072
14017
|
import * as React36 from "react";
|
|
14073
|
-
import { jsx as
|
|
14018
|
+
import { jsx as jsx79, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14074
14019
|
var PADDING_BOTTOM = 8;
|
|
14075
14020
|
var Chat = ({
|
|
14076
14021
|
children,
|
|
@@ -14191,7 +14136,7 @@ var Chat = ({
|
|
|
14191
14136
|
spacing: "12px",
|
|
14192
14137
|
children: [
|
|
14193
14138
|
header,
|
|
14194
|
-
/* @__PURE__ */
|
|
14139
|
+
/* @__PURE__ */ jsx79(
|
|
14195
14140
|
Stack5,
|
|
14196
14141
|
{
|
|
14197
14142
|
ref: innerRef,
|
|
@@ -15692,7 +15637,7 @@ var useTranslation = () => {
|
|
|
15692
15637
|
import {
|
|
15693
15638
|
Dialog as MuiDialog
|
|
15694
15639
|
} from "@mui/material";
|
|
15695
|
-
import { Fragment as Fragment14, jsx as
|
|
15640
|
+
import { Fragment as Fragment14, jsx as jsx80, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
15696
15641
|
var sizes5 = {
|
|
15697
15642
|
S: "480px",
|
|
15698
15643
|
M: "640px",
|
|
@@ -15724,8 +15669,8 @@ var Dialog = ({
|
|
|
15724
15669
|
...noPadding && !noPaddingTitle && { margin: "16px 24px 0 24px" }
|
|
15725
15670
|
},
|
|
15726
15671
|
children: [
|
|
15727
|
-
typeof title === "string" ? /* @__PURE__ */
|
|
15728
|
-
closeable && /* @__PURE__ */
|
|
15672
|
+
typeof title === "string" ? /* @__PURE__ */ jsx80(Typography_default, { variant: "h5", children: title }) : title,
|
|
15673
|
+
closeable && /* @__PURE__ */ jsx80(
|
|
15729
15674
|
IconButton_default,
|
|
15730
15675
|
{
|
|
15731
15676
|
iconId: "close",
|
|
@@ -15736,10 +15681,10 @@ var Dialog = ({
|
|
|
15736
15681
|
]
|
|
15737
15682
|
}
|
|
15738
15683
|
),
|
|
15739
|
-
wrapChildren && /* @__PURE__ */
|
|
15684
|
+
wrapChildren && /* @__PURE__ */ jsx80(Box_default2, { className: "Slim-Vertical-Scroll", children }),
|
|
15740
15685
|
!wrapChildren && children
|
|
15741
15686
|
] });
|
|
15742
|
-
return /* @__PURE__ */
|
|
15687
|
+
return /* @__PURE__ */ jsx80(
|
|
15743
15688
|
MuiDialog,
|
|
15744
15689
|
{
|
|
15745
15690
|
open,
|
|
@@ -15758,7 +15703,7 @@ var Dialog = ({
|
|
|
15758
15703
|
},
|
|
15759
15704
|
className: "Cn-Dialog Slim-Vertical-Scroll"
|
|
15760
15705
|
},
|
|
15761
|
-
children: fullScreen ? /* @__PURE__ */
|
|
15706
|
+
children: fullScreen ? /* @__PURE__ */ jsx80(
|
|
15762
15707
|
Stack_default,
|
|
15763
15708
|
{
|
|
15764
15709
|
height: "100%",
|
|
@@ -15772,7 +15717,7 @@ var Dialog = ({
|
|
|
15772
15717
|
var Dialog_default = Dialog;
|
|
15773
15718
|
|
|
15774
15719
|
// src/components/dialog/ConfirmationDialog.tsx
|
|
15775
|
-
import { jsx as
|
|
15720
|
+
import { jsx as jsx81, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
15776
15721
|
var ConfirmationDialog = ({
|
|
15777
15722
|
onCancel = () => ({}),
|
|
15778
15723
|
onAccept = () => ({}),
|
|
@@ -15818,7 +15763,7 @@ var ConfirmationDialog = ({
|
|
|
15818
15763
|
const compare = scrollContainer.current.scrollHeight > scrollContainer.current.clientHeight;
|
|
15819
15764
|
setHasScrollPopup(compare);
|
|
15820
15765
|
};
|
|
15821
|
-
return /* @__PURE__ */
|
|
15766
|
+
return /* @__PURE__ */ jsx81(
|
|
15822
15767
|
Dialog_default,
|
|
15823
15768
|
{
|
|
15824
15769
|
onClose: onCancel,
|
|
@@ -15837,7 +15782,7 @@ var ConfirmationDialog = ({
|
|
|
15837
15782
|
}
|
|
15838
15783
|
},
|
|
15839
15784
|
children: [
|
|
15840
|
-
/* @__PURE__ */
|
|
15785
|
+
/* @__PURE__ */ jsx81(
|
|
15841
15786
|
Box_default2,
|
|
15842
15787
|
{
|
|
15843
15788
|
flexGrow: 1,
|
|
@@ -15860,7 +15805,7 @@ var ConfirmationDialog = ({
|
|
|
15860
15805
|
footerChildren,
|
|
15861
15806
|
/* @__PURE__ */ jsxs38(Stack_default, { direction: "row", spacing: 2, justifyContent: "end", children: [
|
|
15862
15807
|
buttonsLeftChildren,
|
|
15863
|
-
!hideCancelButton && /* @__PURE__ */
|
|
15808
|
+
!hideCancelButton && /* @__PURE__ */ jsx81(
|
|
15864
15809
|
Button_default,
|
|
15865
15810
|
{
|
|
15866
15811
|
color: "white",
|
|
@@ -15869,12 +15814,12 @@ var ConfirmationDialog = ({
|
|
|
15869
15814
|
onClick: onCancel
|
|
15870
15815
|
}
|
|
15871
15816
|
),
|
|
15872
|
-
/* @__PURE__ */
|
|
15817
|
+
/* @__PURE__ */ jsx81(
|
|
15873
15818
|
Tooltip_default,
|
|
15874
15819
|
{
|
|
15875
15820
|
title: acceptButtonDisabled ? acceptButtonDisabledTooltipText || "" : "",
|
|
15876
15821
|
allowDisabled: true,
|
|
15877
|
-
children: /* @__PURE__ */
|
|
15822
|
+
children: /* @__PURE__ */ jsx81(
|
|
15878
15823
|
Button_default,
|
|
15879
15824
|
{
|
|
15880
15825
|
color: variant,
|
|
@@ -15901,10 +15846,10 @@ var ConfirmationDialog_default = ConfirmationDialog;
|
|
|
15901
15846
|
|
|
15902
15847
|
// src/components/drawer/Drawer.tsx
|
|
15903
15848
|
import MuiDrawer from "@mui/material/Drawer";
|
|
15904
|
-
import { jsx as
|
|
15849
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
15905
15850
|
var defaultWidth = 600;
|
|
15906
15851
|
var defaultAnchor = "right";
|
|
15907
|
-
var Drawer = ({ ...props }) => /* @__PURE__ */
|
|
15852
|
+
var Drawer = ({ ...props }) => /* @__PURE__ */ jsx82(
|
|
15908
15853
|
MuiDrawer,
|
|
15909
15854
|
{
|
|
15910
15855
|
anchor: defaultAnchor,
|
|
@@ -15919,7 +15864,7 @@ var Drawer = ({ ...props }) => /* @__PURE__ */ jsx83(
|
|
|
15919
15864
|
var Drawer_default = Drawer;
|
|
15920
15865
|
|
|
15921
15866
|
// src/components/drawer/InputDrawer.tsx
|
|
15922
|
-
import { jsx as
|
|
15867
|
+
import { jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15923
15868
|
var InputDrawer = ({
|
|
15924
15869
|
open,
|
|
15925
15870
|
close,
|
|
@@ -15928,7 +15873,7 @@ var InputDrawer = ({
|
|
|
15928
15873
|
children,
|
|
15929
15874
|
buttons,
|
|
15930
15875
|
cancelButtonText
|
|
15931
|
-
}) => /* @__PURE__ */
|
|
15876
|
+
}) => /* @__PURE__ */ jsx83(Drawer_default, { open, onClose, children: /* @__PURE__ */ jsxs39(Stack_default, { sx: { height: "100%" }, children: [
|
|
15932
15877
|
/* @__PURE__ */ jsxs39(
|
|
15933
15878
|
Stack_default,
|
|
15934
15879
|
{
|
|
@@ -15940,12 +15885,12 @@ var InputDrawer = ({
|
|
|
15940
15885
|
borderBottom: `1px solid ${Colors_exports.grey200}`
|
|
15941
15886
|
},
|
|
15942
15887
|
children: [
|
|
15943
|
-
/* @__PURE__ */
|
|
15944
|
-
/* @__PURE__ */
|
|
15888
|
+
/* @__PURE__ */ jsx83(Typography_default, { variant: "h6", children: title }),
|
|
15889
|
+
/* @__PURE__ */ jsx83(IconButton_default, { iconId: "close", onClick: () => close() })
|
|
15945
15890
|
]
|
|
15946
15891
|
}
|
|
15947
15892
|
),
|
|
15948
|
-
/* @__PURE__ */
|
|
15893
|
+
/* @__PURE__ */ jsx83(
|
|
15949
15894
|
Box_default2,
|
|
15950
15895
|
{
|
|
15951
15896
|
className: "Slim-Vertical-Scroll",
|
|
@@ -15968,7 +15913,7 @@ var InputDrawer = ({
|
|
|
15968
15913
|
borderTop: `1px solid ${Colors_exports.grey200}`
|
|
15969
15914
|
},
|
|
15970
15915
|
children: [
|
|
15971
|
-
/* @__PURE__ */
|
|
15916
|
+
/* @__PURE__ */ jsx83(
|
|
15972
15917
|
Button_default,
|
|
15973
15918
|
{
|
|
15974
15919
|
text: cancelButtonText,
|
|
@@ -15977,7 +15922,7 @@ var InputDrawer = ({
|
|
|
15977
15922
|
color: "white"
|
|
15978
15923
|
}
|
|
15979
15924
|
),
|
|
15980
|
-
/* @__PURE__ */
|
|
15925
|
+
/* @__PURE__ */ jsx83(Stack_default, { direction: "row", spacing: 1, children: buttons })
|
|
15981
15926
|
]
|
|
15982
15927
|
}
|
|
15983
15928
|
)
|
|
@@ -17687,23 +17632,23 @@ function isValidPhoneNumber(phone) {
|
|
|
17687
17632
|
}
|
|
17688
17633
|
|
|
17689
17634
|
// src/components/formatter/CompactNumberFormatter.tsx
|
|
17690
|
-
import { Fragment as Fragment15, jsx as
|
|
17635
|
+
import { Fragment as Fragment15, jsx as jsx84 } from "react/jsx-runtime";
|
|
17691
17636
|
var CompactNumberFormatter = ({ value }) => {
|
|
17692
17637
|
const { locale } = React38.useContext(IntlContext);
|
|
17693
|
-
return /* @__PURE__ */
|
|
17638
|
+
return /* @__PURE__ */ jsx84(Fragment15, { children: formatCompactNumber(value, locale) });
|
|
17694
17639
|
};
|
|
17695
17640
|
var CompactNumberFormatter_default = CompactNumberFormatter;
|
|
17696
17641
|
|
|
17697
17642
|
// src/components/formatter/CurrencyFormatter.tsx
|
|
17698
17643
|
import * as React39 from "react";
|
|
17699
|
-
import { Fragment as Fragment16, jsx as
|
|
17644
|
+
import { Fragment as Fragment16, jsx as jsx85 } from "react/jsx-runtime";
|
|
17700
17645
|
var CurrencyFormatter = ({
|
|
17701
17646
|
value,
|
|
17702
17647
|
notation,
|
|
17703
17648
|
currency
|
|
17704
17649
|
}) => {
|
|
17705
17650
|
const { locale, currency: contextCurrency } = React39.useContext(IntlContext);
|
|
17706
|
-
return /* @__PURE__ */
|
|
17651
|
+
return /* @__PURE__ */ jsx85(Fragment16, { children: formatCurrency(
|
|
17707
17652
|
value,
|
|
17708
17653
|
locale,
|
|
17709
17654
|
currency ?? contextCurrency,
|
|
@@ -17714,45 +17659,45 @@ var CurrencyFormatter_default = CurrencyFormatter;
|
|
|
17714
17659
|
|
|
17715
17660
|
// src/components/formatter/NumberFormatter.tsx
|
|
17716
17661
|
import * as React40 from "react";
|
|
17717
|
-
import { Fragment as Fragment17, jsx as
|
|
17662
|
+
import { Fragment as Fragment17, jsx as jsx86 } from "react/jsx-runtime";
|
|
17718
17663
|
var NumberFormatter = ({ value, fractionSize }) => {
|
|
17719
17664
|
const { locale } = React40.useContext(IntlContext);
|
|
17720
|
-
return /* @__PURE__ */
|
|
17665
|
+
return /* @__PURE__ */ jsx86(Fragment17, { children: formatNumber(value, locale, fractionSize) });
|
|
17721
17666
|
};
|
|
17722
17667
|
var NumberFormatter_default = NumberFormatter;
|
|
17723
17668
|
|
|
17724
17669
|
// src/components/formatter/PercentageFormatter.tsx
|
|
17725
17670
|
import * as React41 from "react";
|
|
17726
|
-
import { Fragment as Fragment18, jsx as
|
|
17671
|
+
import { Fragment as Fragment18, jsx as jsx87 } from "react/jsx-runtime";
|
|
17727
17672
|
var PercentageFormatter = ({
|
|
17728
17673
|
value,
|
|
17729
17674
|
fractionSize
|
|
17730
17675
|
}) => {
|
|
17731
17676
|
const { locale } = React41.useContext(IntlContext);
|
|
17732
|
-
return /* @__PURE__ */
|
|
17677
|
+
return /* @__PURE__ */ jsx87(Fragment18, { children: formatPercentage(value, locale, fractionSize) });
|
|
17733
17678
|
};
|
|
17734
17679
|
var PercentageFormatter_default = PercentageFormatter;
|
|
17735
17680
|
|
|
17736
17681
|
// src/components/formatter/DateFormatter.tsx
|
|
17737
17682
|
import * as React42 from "react";
|
|
17738
|
-
import { Fragment as Fragment19, jsx as
|
|
17683
|
+
import { Fragment as Fragment19, jsx as jsx88 } from "react/jsx-runtime";
|
|
17739
17684
|
var DateFormatter = ({ date, format: format2 }) => {
|
|
17740
17685
|
const { locale, timezone } = React42.useContext(IntlContext);
|
|
17741
|
-
return /* @__PURE__ */
|
|
17686
|
+
return /* @__PURE__ */ jsx88(Fragment19, { children: formatDate(date, locale, timezone, format2) });
|
|
17742
17687
|
};
|
|
17743
17688
|
var DateFormatter_default = DateFormatter;
|
|
17744
17689
|
|
|
17745
17690
|
// src/components/header/HeaderTitle.tsx
|
|
17746
17691
|
import * as React43 from "react";
|
|
17747
|
-
import { jsx as
|
|
17692
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
17748
17693
|
var HeaderTitle = ({ text }) => {
|
|
17749
17694
|
const textElementRef = React43.useRef(null);
|
|
17750
|
-
return /* @__PURE__ */
|
|
17695
|
+
return /* @__PURE__ */ jsx89(
|
|
17751
17696
|
TextEllipsisTooltip_default,
|
|
17752
17697
|
{
|
|
17753
17698
|
title: text ?? "\xA0",
|
|
17754
17699
|
textEllipsableElement: textElementRef,
|
|
17755
|
-
children: /* @__PURE__ */
|
|
17700
|
+
children: /* @__PURE__ */ jsx89(
|
|
17756
17701
|
Typography_default,
|
|
17757
17702
|
{
|
|
17758
17703
|
color: grey800,
|
|
@@ -17770,15 +17715,15 @@ var HeaderTitle_default = HeaderTitle;
|
|
|
17770
17715
|
|
|
17771
17716
|
// src/components/header/HeaderSubtitle.tsx
|
|
17772
17717
|
import * as React44 from "react";
|
|
17773
|
-
import { jsx as
|
|
17718
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
17774
17719
|
var HeaderSubtitle = ({ text }) => {
|
|
17775
17720
|
const textElementRef = React44.useRef(null);
|
|
17776
|
-
return typeof text === "string" ? /* @__PURE__ */
|
|
17721
|
+
return typeof text === "string" ? /* @__PURE__ */ jsx90(
|
|
17777
17722
|
TextEllipsisTooltip_default,
|
|
17778
17723
|
{
|
|
17779
17724
|
title: text ?? "\xA0",
|
|
17780
17725
|
textEllipsableElement: textElementRef,
|
|
17781
|
-
children: /* @__PURE__ */
|
|
17726
|
+
children: /* @__PURE__ */ jsx90(
|
|
17782
17727
|
Typography_default,
|
|
17783
17728
|
{
|
|
17784
17729
|
color: grey800,
|
|
@@ -17790,12 +17735,12 @@ var HeaderSubtitle = ({ text }) => {
|
|
|
17790
17735
|
}
|
|
17791
17736
|
)
|
|
17792
17737
|
}
|
|
17793
|
-
) : /* @__PURE__ */
|
|
17738
|
+
) : /* @__PURE__ */ jsx90(Typography_default, { color: grey800, component: "div", variant: "body1", noWrap: true, children: text });
|
|
17794
17739
|
};
|
|
17795
17740
|
var HeaderSubtitle_default = HeaderSubtitle;
|
|
17796
17741
|
|
|
17797
17742
|
// src/components/header/Header.tsx
|
|
17798
|
-
import { jsx as
|
|
17743
|
+
import { jsx as jsx91, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
17799
17744
|
var Header = ({
|
|
17800
17745
|
title,
|
|
17801
17746
|
subtitle,
|
|
@@ -17803,7 +17748,7 @@ var Header = ({
|
|
|
17803
17748
|
isElevated = false,
|
|
17804
17749
|
actions,
|
|
17805
17750
|
children
|
|
17806
|
-
}) => /* @__PURE__ */
|
|
17751
|
+
}) => /* @__PURE__ */ jsx91(PageScrollContext.Consumer, { children: (value) => /* @__PURE__ */ jsx91(
|
|
17807
17752
|
Box_default2,
|
|
17808
17753
|
{
|
|
17809
17754
|
sx: {
|
|
@@ -17843,12 +17788,12 @@ var Header = ({
|
|
|
17843
17788
|
overflow: "clip"
|
|
17844
17789
|
},
|
|
17845
17790
|
children: [
|
|
17846
|
-
iconId && /* @__PURE__ */
|
|
17847
|
-
/* @__PURE__ */
|
|
17791
|
+
iconId && /* @__PURE__ */ jsx91(Avatar_default, { iconId, size: "L" }),
|
|
17792
|
+
/* @__PURE__ */ jsx91(HeaderTitle_default, { text: title })
|
|
17848
17793
|
]
|
|
17849
17794
|
}
|
|
17850
17795
|
),
|
|
17851
|
-
/* @__PURE__ */
|
|
17796
|
+
/* @__PURE__ */ jsx91(
|
|
17852
17797
|
Box_default2,
|
|
17853
17798
|
{
|
|
17854
17799
|
sx: {
|
|
@@ -17864,7 +17809,7 @@ var Header = ({
|
|
|
17864
17809
|
]
|
|
17865
17810
|
}
|
|
17866
17811
|
),
|
|
17867
|
-
subtitle && /* @__PURE__ */
|
|
17812
|
+
subtitle && /* @__PURE__ */ jsx91(
|
|
17868
17813
|
Box_default2,
|
|
17869
17814
|
{
|
|
17870
17815
|
sx: {
|
|
@@ -17872,10 +17817,10 @@ var Header = ({
|
|
|
17872
17817
|
...iconId && { paddingLeft: "56px" },
|
|
17873
17818
|
paddingBottom: "8px"
|
|
17874
17819
|
},
|
|
17875
|
-
children: /* @__PURE__ */
|
|
17820
|
+
children: /* @__PURE__ */ jsx91(HeaderSubtitle_default, { text: subtitle })
|
|
17876
17821
|
}
|
|
17877
17822
|
),
|
|
17878
|
-
children && /* @__PURE__ */
|
|
17823
|
+
children && /* @__PURE__ */ jsx91(Box_default2, { children })
|
|
17879
17824
|
] })
|
|
17880
17825
|
}
|
|
17881
17826
|
) });
|
|
@@ -17887,7 +17832,7 @@ import FilerobotImageEditor, {
|
|
|
17887
17832
|
TABS,
|
|
17888
17833
|
TOOLS
|
|
17889
17834
|
} from "react-filerobot-image-editor";
|
|
17890
|
-
import { jsx as
|
|
17835
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
17891
17836
|
var ImageEditor = ({
|
|
17892
17837
|
imageUrl,
|
|
17893
17838
|
maxWidth: maxWidth2,
|
|
@@ -18126,7 +18071,7 @@ var ImageEditor = ({
|
|
|
18126
18071
|
document.head.removeChild(style3);
|
|
18127
18072
|
};
|
|
18128
18073
|
}, []);
|
|
18129
|
-
return /* @__PURE__ */
|
|
18074
|
+
return /* @__PURE__ */ jsx92(
|
|
18130
18075
|
Box_default2,
|
|
18131
18076
|
{
|
|
18132
18077
|
sx: {
|
|
@@ -18193,7 +18138,7 @@ var ImageEditor = ({
|
|
|
18193
18138
|
},
|
|
18194
18139
|
height: "100%"
|
|
18195
18140
|
},
|
|
18196
|
-
children: /* @__PURE__ */
|
|
18141
|
+
children: /* @__PURE__ */ jsx92(
|
|
18197
18142
|
FilerobotImageEditor,
|
|
18198
18143
|
{
|
|
18199
18144
|
source: imageUrl,
|
|
@@ -18313,7 +18258,7 @@ function useResizeObserver() {
|
|
|
18313
18258
|
}
|
|
18314
18259
|
|
|
18315
18260
|
// src/components/info/InfoBox.tsx
|
|
18316
|
-
import { jsx as
|
|
18261
|
+
import { jsx as jsx93, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
18317
18262
|
var variantStyles2 = {
|
|
18318
18263
|
default: {
|
|
18319
18264
|
borderLeft: `2px solid ${electricLavender}`,
|
|
@@ -18342,7 +18287,8 @@ var InfoBox = ({
|
|
|
18342
18287
|
}) => {
|
|
18343
18288
|
const [ref, { height: height2 }] = useResizeObserver();
|
|
18344
18289
|
const [expanded, setExpanded] = React46.useState(false);
|
|
18345
|
-
const showExpandButton = height2
|
|
18290
|
+
const showExpandButton = height2 >= collapsedHeight;
|
|
18291
|
+
const maxHeight2 = expanded ? `${height2}px` : `${collapsedHeight}px`;
|
|
18346
18292
|
return /* @__PURE__ */ jsxs41(
|
|
18347
18293
|
Stack_default,
|
|
18348
18294
|
{
|
|
@@ -18350,12 +18296,14 @@ var InfoBox = ({
|
|
|
18350
18296
|
direction: "row",
|
|
18351
18297
|
sx: {
|
|
18352
18298
|
position: "relative",
|
|
18299
|
+
transition: "max-height 0.25s cubic-bezier(0.2, 0.8, 0.4, 1)",
|
|
18300
|
+
maxHeight: maxHeight2,
|
|
18301
|
+
overflow: "hidden",
|
|
18353
18302
|
...variantStyles2[variant],
|
|
18354
|
-
|
|
18355
|
-
...sx
|
|
18303
|
+
...sx && { sx }
|
|
18356
18304
|
},
|
|
18357
18305
|
children: [
|
|
18358
|
-
/* @__PURE__ */
|
|
18306
|
+
/* @__PURE__ */ jsx93(
|
|
18359
18307
|
Box_default2,
|
|
18360
18308
|
{
|
|
18361
18309
|
sx: !expanded && showExpandButton ? {
|
|
@@ -18373,7 +18321,7 @@ var InfoBox = ({
|
|
|
18373
18321
|
children
|
|
18374
18322
|
}
|
|
18375
18323
|
),
|
|
18376
|
-
showExpandButton && /* @__PURE__ */
|
|
18324
|
+
showExpandButton && /* @__PURE__ */ jsx93(
|
|
18377
18325
|
IconButton_default,
|
|
18378
18326
|
{
|
|
18379
18327
|
iconId: expanded ? "chevron-up" : "chevron-down",
|
|
@@ -18392,7 +18340,7 @@ var InfoBox_default = InfoBox;
|
|
|
18392
18340
|
// src/components/input/TextFieldContainer.tsx
|
|
18393
18341
|
import * as React47 from "react";
|
|
18394
18342
|
import { lighten } from "@mui/material";
|
|
18395
|
-
import { jsx as
|
|
18343
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
18396
18344
|
var TextFieldContainer = React47.forwardRef(function TextFieldContainer2({
|
|
18397
18345
|
children,
|
|
18398
18346
|
variant = "default",
|
|
@@ -18407,7 +18355,7 @@ var TextFieldContainer = React47.forwardRef(function TextFieldContainer2({
|
|
|
18407
18355
|
sx,
|
|
18408
18356
|
"data-test": dataTest
|
|
18409
18357
|
}, ref) {
|
|
18410
|
-
return /* @__PURE__ */
|
|
18358
|
+
return /* @__PURE__ */ jsx94(
|
|
18411
18359
|
Box_default2,
|
|
18412
18360
|
{
|
|
18413
18361
|
className: `Cn-TextFieldContainer ${className}`,
|
|
@@ -18497,7 +18445,7 @@ import { styled as styled6 } from "@mui/material";
|
|
|
18497
18445
|
// src/components/input/InputLabel.tsx
|
|
18498
18446
|
import * as React48 from "react";
|
|
18499
18447
|
import { styled as styled4 } from "@mui/material";
|
|
18500
|
-
import { jsx as
|
|
18448
|
+
import { jsx as jsx95, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
18501
18449
|
var severityColors = {
|
|
18502
18450
|
info: grey900,
|
|
18503
18451
|
error: errorMain
|
|
@@ -18523,7 +18471,7 @@ var InputLabel = React48.forwardRef(
|
|
|
18523
18471
|
ref,
|
|
18524
18472
|
children: [
|
|
18525
18473
|
children,
|
|
18526
|
-
infoText && /* @__PURE__ */
|
|
18474
|
+
infoText && /* @__PURE__ */ jsx95(Tooltip_default, { textVariant: "caption", title: infoText, children: /* @__PURE__ */ jsx95(
|
|
18527
18475
|
Icon_default,
|
|
18528
18476
|
{
|
|
18529
18477
|
id: "information-outline",
|
|
@@ -18545,7 +18493,7 @@ var InputLabel_default = InputLabel;
|
|
|
18545
18493
|
// src/components/input/InputHelperText.tsx
|
|
18546
18494
|
import { styled as styled5 } from "@mui/material";
|
|
18547
18495
|
import * as React49 from "react";
|
|
18548
|
-
import { jsx as
|
|
18496
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
18549
18497
|
var severityColors2 = {
|
|
18550
18498
|
info: grey800,
|
|
18551
18499
|
error: errorMain
|
|
@@ -18561,13 +18509,13 @@ var StyledDiv = styled5("div", {
|
|
|
18561
18509
|
);
|
|
18562
18510
|
var InputHelperText = React49.forwardRef(
|
|
18563
18511
|
function InputLabel3({ severity = "info", ...rest }, ref) {
|
|
18564
|
-
return /* @__PURE__ */
|
|
18512
|
+
return /* @__PURE__ */ jsx96(StyledDiv, { ...rest, ref, severity });
|
|
18565
18513
|
}
|
|
18566
18514
|
);
|
|
18567
18515
|
var InputHelperText_default = InputHelperText;
|
|
18568
18516
|
|
|
18569
18517
|
// src/components/input/TextField.tsx
|
|
18570
|
-
import { Fragment as Fragment20, jsx as
|
|
18518
|
+
import { Fragment as Fragment20, jsx as jsx97, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
18571
18519
|
var commonInputStylesOptions = {
|
|
18572
18520
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
18573
18521
|
};
|
|
@@ -18708,7 +18656,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18708
18656
|
gap: "8px"
|
|
18709
18657
|
},
|
|
18710
18658
|
children: [
|
|
18711
|
-
iconId && /* @__PURE__ */
|
|
18659
|
+
iconId && /* @__PURE__ */ jsx97(
|
|
18712
18660
|
Icon_default,
|
|
18713
18661
|
{
|
|
18714
18662
|
id: iconId,
|
|
@@ -18721,7 +18669,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18721
18669
|
}
|
|
18722
18670
|
),
|
|
18723
18671
|
!groupElements && startAdornment,
|
|
18724
|
-
multiline && /* @__PURE__ */
|
|
18672
|
+
multiline && /* @__PURE__ */ jsx97(
|
|
18725
18673
|
StyledTextarea,
|
|
18726
18674
|
{
|
|
18727
18675
|
ref: ref || inputRef,
|
|
@@ -18755,7 +18703,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18755
18703
|
...restProps
|
|
18756
18704
|
}
|
|
18757
18705
|
),
|
|
18758
|
-
!multiline && /* @__PURE__ */
|
|
18706
|
+
!multiline && /* @__PURE__ */ jsx97(
|
|
18759
18707
|
StyledInput,
|
|
18760
18708
|
{
|
|
18761
18709
|
type,
|
|
@@ -18793,7 +18741,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18793
18741
|
gap: "8px"
|
|
18794
18742
|
},
|
|
18795
18743
|
children: [
|
|
18796
|
-
existsClearButton && /* @__PURE__ */
|
|
18744
|
+
existsClearButton && /* @__PURE__ */ jsx97(
|
|
18797
18745
|
IconButton_default,
|
|
18798
18746
|
{
|
|
18799
18747
|
size: "M",
|
|
@@ -18824,7 +18772,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18824
18772
|
}
|
|
18825
18773
|
);
|
|
18826
18774
|
return /* @__PURE__ */ jsxs43(Fragment20, { children: [
|
|
18827
|
-
label && /* @__PURE__ */
|
|
18775
|
+
label && /* @__PURE__ */ jsx97(
|
|
18828
18776
|
InputLabel_default,
|
|
18829
18777
|
{
|
|
18830
18778
|
htmlFor: customId ?? id,
|
|
@@ -18877,7 +18825,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18877
18825
|
}
|
|
18878
18826
|
),
|
|
18879
18827
|
!groupElements && getTextFieldContainer(),
|
|
18880
|
-
helperText && /* @__PURE__ */
|
|
18828
|
+
helperText && /* @__PURE__ */ jsx97(
|
|
18881
18829
|
InputHelperText_default,
|
|
18882
18830
|
{
|
|
18883
18831
|
severity: isError ? "error" : "info",
|
|
@@ -18892,7 +18840,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18892
18840
|
var TextField_default = TextField;
|
|
18893
18841
|
|
|
18894
18842
|
// src/components/input/DebouncedTextField.tsx
|
|
18895
|
-
import { jsx as
|
|
18843
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
18896
18844
|
var DebouncedTextField = React51.forwardRef(function DebouncedTextField2({ value, onChange, debounce = 100, ...rest }, ref) {
|
|
18897
18845
|
const [text, setText] = useState15(value);
|
|
18898
18846
|
const onChangeDebounced = useDebouncedCallback(
|
|
@@ -18906,7 +18854,7 @@ var DebouncedTextField = React51.forwardRef(function DebouncedTextField2({ value
|
|
|
18906
18854
|
useEffect10(() => {
|
|
18907
18855
|
setText(value);
|
|
18908
18856
|
}, [value]);
|
|
18909
|
-
return /* @__PURE__ */
|
|
18857
|
+
return /* @__PURE__ */ jsx98(
|
|
18910
18858
|
TextField_default,
|
|
18911
18859
|
{
|
|
18912
18860
|
value: text,
|
|
@@ -18931,14 +18879,14 @@ import { tz as tz3 } from "moment-timezone";
|
|
|
18931
18879
|
|
|
18932
18880
|
// src/components/popover/Popover.tsx
|
|
18933
18881
|
import MuiPopover from "@mui/material/Popover";
|
|
18934
|
-
import { jsx as
|
|
18882
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
18935
18883
|
var Popover = ({
|
|
18936
18884
|
horizontalAlign = "center",
|
|
18937
18885
|
anchorHorizontalOrigin = "center",
|
|
18938
18886
|
verticalAlign = "top",
|
|
18939
18887
|
anchorVerticalAlign = "bottom",
|
|
18940
18888
|
...props
|
|
18941
|
-
}) => /* @__PURE__ */
|
|
18889
|
+
}) => /* @__PURE__ */ jsx99(
|
|
18942
18890
|
MuiPopover,
|
|
18943
18891
|
{
|
|
18944
18892
|
disableRestoreFocus: props.disableRestoreFocus,
|
|
@@ -18958,7 +18906,7 @@ var Popover_default = Popover;
|
|
|
18958
18906
|
|
|
18959
18907
|
// src/components/popover/PopoverActions.tsx
|
|
18960
18908
|
import { Stack as Stack6 } from "@mui/material";
|
|
18961
|
-
import { jsx as
|
|
18909
|
+
import { jsx as jsx100, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
18962
18910
|
var PopoverActions = ({
|
|
18963
18911
|
leftContent,
|
|
18964
18912
|
rightContent,
|
|
@@ -18977,8 +18925,8 @@ var PopoverActions = ({
|
|
|
18977
18925
|
...sx
|
|
18978
18926
|
},
|
|
18979
18927
|
children: [
|
|
18980
|
-
/* @__PURE__ */
|
|
18981
|
-
/* @__PURE__ */
|
|
18928
|
+
/* @__PURE__ */ jsx100("div", { children: leftContent }),
|
|
18929
|
+
/* @__PURE__ */ jsx100("div", { children: rightContent })
|
|
18982
18930
|
]
|
|
18983
18931
|
}
|
|
18984
18932
|
);
|
|
@@ -18996,7 +18944,7 @@ import { lighten as lighten2 } from "@mui/material";
|
|
|
18996
18944
|
|
|
18997
18945
|
// src/components/input/CalendarDay.tsx
|
|
18998
18946
|
import { useTheme as useTheme5 } from "@mui/material/styles";
|
|
18999
|
-
import { jsx as
|
|
18947
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
19000
18948
|
var calendarDayButtonSize = 32;
|
|
19001
18949
|
var CalendarDayButton = styled_default("button")({});
|
|
19002
18950
|
var CalendarDay = ({
|
|
@@ -19014,7 +18962,7 @@ var CalendarDay = ({
|
|
|
19014
18962
|
allowKeyboardNavigation = false
|
|
19015
18963
|
}) => {
|
|
19016
18964
|
const theme2 = useTheme5();
|
|
19017
|
-
return /* @__PURE__ */
|
|
18965
|
+
return /* @__PURE__ */ jsx101(
|
|
19018
18966
|
CalendarDayButton,
|
|
19019
18967
|
{
|
|
19020
18968
|
"data-testid": `calendar-day-${children}`,
|
|
@@ -19057,7 +19005,7 @@ var CalendarDay = ({
|
|
|
19057
19005
|
},
|
|
19058
19006
|
role: "button",
|
|
19059
19007
|
onClick,
|
|
19060
|
-
children: /* @__PURE__ */
|
|
19008
|
+
children: /* @__PURE__ */ jsx101(
|
|
19061
19009
|
Typography_default,
|
|
19062
19010
|
{
|
|
19063
19011
|
sx: {
|
|
@@ -19085,7 +19033,7 @@ var CalendarDay = ({
|
|
|
19085
19033
|
var CalendarDay_default = CalendarDay;
|
|
19086
19034
|
|
|
19087
19035
|
// src/components/input/CalendarMonth.tsx
|
|
19088
|
-
import { jsx as
|
|
19036
|
+
import { jsx as jsx102, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
19089
19037
|
var bgColorLightCoefficient = 0.6;
|
|
19090
19038
|
var CalendarMonth = ({
|
|
19091
19039
|
minDate = null,
|
|
@@ -19263,7 +19211,7 @@ var CalendarMonth = ({
|
|
|
19263
19211
|
},
|
|
19264
19212
|
"data-testid": `calendar-month-${year}-${month}`,
|
|
19265
19213
|
children: [
|
|
19266
|
-
/* @__PURE__ */
|
|
19214
|
+
/* @__PURE__ */ jsx102(
|
|
19267
19215
|
Typography_default,
|
|
19268
19216
|
{
|
|
19269
19217
|
sx: {
|
|
@@ -19274,7 +19222,7 @@ var CalendarMonth = ({
|
|
|
19274
19222
|
textTransform: "uppercase"
|
|
19275
19223
|
}
|
|
19276
19224
|
},
|
|
19277
|
-
children: /* @__PURE__ */
|
|
19225
|
+
children: /* @__PURE__ */ jsx102(
|
|
19278
19226
|
DateFormatter_default,
|
|
19279
19227
|
{
|
|
19280
19228
|
date: firstDayOfMonth.toDate(),
|
|
@@ -19283,8 +19231,8 @@ var CalendarMonth = ({
|
|
|
19283
19231
|
)
|
|
19284
19232
|
}
|
|
19285
19233
|
),
|
|
19286
|
-
isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */
|
|
19287
|
-
dayList.map((day) => /* @__PURE__ */
|
|
19234
|
+
isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */ jsx102("span", { style: { gridColumn: `span ${indexOfDay}` }, children: "\xA0" }),
|
|
19235
|
+
dayList.map((day) => /* @__PURE__ */ jsx102(
|
|
19288
19236
|
CalendarDay_default,
|
|
19289
19237
|
{
|
|
19290
19238
|
allowKeyboardNavigation,
|
|
@@ -19302,7 +19250,7 @@ var CalendarMonth_default = CalendarMonth;
|
|
|
19302
19250
|
|
|
19303
19251
|
// src/components/input/DaysOfWeekRow.tsx
|
|
19304
19252
|
import * as React53 from "react";
|
|
19305
|
-
import { jsx as
|
|
19253
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
19306
19254
|
var DaysOfWeekRow = () => {
|
|
19307
19255
|
const { locale } = React53.useContext(IntlContext);
|
|
19308
19256
|
const daysOfWeekLong = React53.useMemo(
|
|
@@ -19313,7 +19261,7 @@ var DaysOfWeekRow = () => {
|
|
|
19313
19261
|
() => getWeekDayNamesForLocale(locale, "narrow"),
|
|
19314
19262
|
[locale]
|
|
19315
19263
|
);
|
|
19316
|
-
return /* @__PURE__ */
|
|
19264
|
+
return /* @__PURE__ */ jsx103(
|
|
19317
19265
|
Stack_default,
|
|
19318
19266
|
{
|
|
19319
19267
|
direction: "row",
|
|
@@ -19323,7 +19271,7 @@ var DaysOfWeekRow = () => {
|
|
|
19323
19271
|
backgroundColor: grey100,
|
|
19324
19272
|
alignItems: "center"
|
|
19325
19273
|
},
|
|
19326
|
-
children: daysOfWeek.map((day, index) => /* @__PURE__ */
|
|
19274
|
+
children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx103(Tooltip_default, { title: daysOfWeekLong[index], children: /* @__PURE__ */ jsx103(
|
|
19327
19275
|
Typography_default,
|
|
19328
19276
|
{
|
|
19329
19277
|
sx: {
|
|
@@ -19340,7 +19288,7 @@ var DaysOfWeekRow = () => {
|
|
|
19340
19288
|
var DaysOfWeekRow_default = DaysOfWeekRow;
|
|
19341
19289
|
|
|
19342
19290
|
// src/components/input/CalendarScrollPicker.tsx
|
|
19343
|
-
import { jsx as
|
|
19291
|
+
import { jsx as jsx104, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
19344
19292
|
var CalendarScrollPicker = ({
|
|
19345
19293
|
minDate,
|
|
19346
19294
|
maxDate,
|
|
@@ -19365,7 +19313,7 @@ var CalendarScrollPicker = ({
|
|
|
19365
19313
|
}) => {
|
|
19366
19314
|
const month = (minDate.month + index) % 12;
|
|
19367
19315
|
const year = Math.floor((minDate.month + index) / 12) + minDate.year;
|
|
19368
|
-
return /* @__PURE__ */
|
|
19316
|
+
return /* @__PURE__ */ jsx104(Box_default2, { sx: { ...style3, paddingLeft: "8px", boxSizing: "border-box" }, children: /* @__PURE__ */ jsx104(
|
|
19369
19317
|
CalendarMonth_default,
|
|
19370
19318
|
{
|
|
19371
19319
|
minDate,
|
|
@@ -19390,14 +19338,14 @@ var CalendarScrollPicker = ({
|
|
|
19390
19338
|
flexDirection: "column"
|
|
19391
19339
|
},
|
|
19392
19340
|
children: [
|
|
19393
|
-
/* @__PURE__ */
|
|
19394
|
-
/* @__PURE__ */
|
|
19341
|
+
/* @__PURE__ */ jsx104(DaysOfWeekRow_default, {}),
|
|
19342
|
+
/* @__PURE__ */ jsx104(
|
|
19395
19343
|
Box_default2,
|
|
19396
19344
|
{
|
|
19397
19345
|
sx: {
|
|
19398
19346
|
flex: "1 1 0"
|
|
19399
19347
|
},
|
|
19400
|
-
children: /* @__PURE__ */
|
|
19348
|
+
children: /* @__PURE__ */ jsx104(AutoSizer3, { children: ({ height: height2, width: width2 }) => /* @__PURE__ */ jsx104(
|
|
19401
19349
|
FixedSizeList,
|
|
19402
19350
|
{
|
|
19403
19351
|
ref: listRefCallback,
|
|
@@ -19419,7 +19367,7 @@ var CalendarScrollPicker = ({
|
|
|
19419
19367
|
var CalendarScrollPicker_default = CalendarScrollPicker;
|
|
19420
19368
|
|
|
19421
19369
|
// src/components/input/DateIntervalPickerList.tsx
|
|
19422
|
-
import { jsx as
|
|
19370
|
+
import { jsx as jsx105, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
19423
19371
|
var dateIntervals = {
|
|
19424
19372
|
today: "TODAY",
|
|
19425
19373
|
yesterday: "YESTERDAY",
|
|
@@ -19454,7 +19402,7 @@ var DateIntervalPickerList = ({
|
|
|
19454
19402
|
}) => {
|
|
19455
19403
|
const { t } = useTranslation();
|
|
19456
19404
|
return /* @__PURE__ */ jsxs47(List_default, { children: [
|
|
19457
|
-
Object.keys(dateIntervals).filter((i) => maxSelectableDays > 90 || !isLongInterval(i)).filter((i) => !allowedIntervals || allowedIntervals.includes(i)).map((key) => /* @__PURE__ */
|
|
19405
|
+
Object.keys(dateIntervals).filter((i) => maxSelectableDays > 90 || !isLongInterval(i)).filter((i) => !allowedIntervals || allowedIntervals.includes(i)).map((key) => /* @__PURE__ */ jsx105(
|
|
19458
19406
|
ListItemButton_default,
|
|
19459
19407
|
{
|
|
19460
19408
|
text: t(
|
|
@@ -19466,13 +19414,13 @@ var DateIntervalPickerList = ({
|
|
|
19466
19414
|
},
|
|
19467
19415
|
key
|
|
19468
19416
|
)),
|
|
19469
|
-
allowCompare && /* @__PURE__ */
|
|
19470
|
-
allowCompare && /* @__PURE__ */
|
|
19417
|
+
allowCompare && /* @__PURE__ */ jsx105(Divider_default, {}),
|
|
19418
|
+
allowCompare && /* @__PURE__ */ jsx105(
|
|
19471
19419
|
ListItem_default,
|
|
19472
19420
|
{
|
|
19473
19421
|
text: t("DATE_INTERVAL_PICKER.COMPARE"),
|
|
19474
19422
|
typographyVariant: "body1",
|
|
19475
|
-
endAdornment: /* @__PURE__ */
|
|
19423
|
+
endAdornment: /* @__PURE__ */ jsx105(
|
|
19476
19424
|
Switch_default,
|
|
19477
19425
|
{
|
|
19478
19426
|
checked: isComparing,
|
|
@@ -19483,7 +19431,7 @@ var DateIntervalPickerList = ({
|
|
|
19483
19431
|
),
|
|
19484
19432
|
allowCompare && Object.keys(comparisonIntervals).filter(
|
|
19485
19433
|
(i) => maxSelectableDays > 90 || !isLongComparisonInterval(i)
|
|
19486
|
-
).map((key) => /* @__PURE__ */
|
|
19434
|
+
).map((key) => /* @__PURE__ */ jsx105(
|
|
19487
19435
|
ListItemButton_default,
|
|
19488
19436
|
{
|
|
19489
19437
|
disabled: !isComparing,
|
|
@@ -19502,7 +19450,7 @@ var DateIntervalPickerList_default = DateIntervalPickerList;
|
|
|
19502
19450
|
|
|
19503
19451
|
// src/components/input/DateIntervalPickerInputs.tsx
|
|
19504
19452
|
import { Collapse as Collapse6 } from "@mui/material";
|
|
19505
|
-
import { jsx as
|
|
19453
|
+
import { jsx as jsx106, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
19506
19454
|
var DateIntervalPickerInputs = ({
|
|
19507
19455
|
startDate,
|
|
19508
19456
|
endDate,
|
|
@@ -19528,7 +19476,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19528
19476
|
gap: "8px"
|
|
19529
19477
|
},
|
|
19530
19478
|
children: [
|
|
19531
|
-
/* @__PURE__ */
|
|
19479
|
+
/* @__PURE__ */ jsx106("div", { children: /* @__PURE__ */ jsx106(
|
|
19532
19480
|
TextField_default,
|
|
19533
19481
|
{
|
|
19534
19482
|
"data-testid": "startDateInput",
|
|
@@ -19543,8 +19491,8 @@ var DateIntervalPickerInputs = ({
|
|
|
19543
19491
|
activeColor: color2
|
|
19544
19492
|
}
|
|
19545
19493
|
) }),
|
|
19546
|
-
/* @__PURE__ */
|
|
19547
|
-
/* @__PURE__ */
|
|
19494
|
+
/* @__PURE__ */ jsx106(InputLabel_default, { children: t("DATE_INTERVAL_PICKER.TO") }),
|
|
19495
|
+
/* @__PURE__ */ jsx106("div", { children: /* @__PURE__ */ jsx106(
|
|
19548
19496
|
TextField_default,
|
|
19549
19497
|
{
|
|
19550
19498
|
"data-testid": "endDateInput",
|
|
@@ -19561,7 +19509,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19561
19509
|
]
|
|
19562
19510
|
}
|
|
19563
19511
|
),
|
|
19564
|
-
/* @__PURE__ */
|
|
19512
|
+
/* @__PURE__ */ jsx106(Collapse6, { in: isComparing, children: /* @__PURE__ */ jsxs48(
|
|
19565
19513
|
Box_default2,
|
|
19566
19514
|
{
|
|
19567
19515
|
sx: {
|
|
@@ -19570,7 +19518,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19570
19518
|
gap: "8px"
|
|
19571
19519
|
},
|
|
19572
19520
|
children: [
|
|
19573
|
-
/* @__PURE__ */
|
|
19521
|
+
/* @__PURE__ */ jsx106("div", { children: /* @__PURE__ */ jsx106(
|
|
19574
19522
|
TextField_default,
|
|
19575
19523
|
{
|
|
19576
19524
|
"data-testid": "comparisonStartDateInput",
|
|
@@ -19587,10 +19535,10 @@ var DateIntervalPickerInputs = ({
|
|
|
19587
19535
|
activeColor: comparisonColor
|
|
19588
19536
|
}
|
|
19589
19537
|
) }),
|
|
19590
|
-
/* @__PURE__ */
|
|
19538
|
+
/* @__PURE__ */ jsx106(InputLabel_default, { children: t("DATE_INTERVAL_PICKER.TO") }),
|
|
19591
19539
|
/* @__PURE__ */ jsxs48("div", { children: [
|
|
19592
|
-
/* @__PURE__ */
|
|
19593
|
-
/* @__PURE__ */
|
|
19540
|
+
/* @__PURE__ */ jsx106("label", { children: "\xA0" }),
|
|
19541
|
+
/* @__PURE__ */ jsx106(
|
|
19594
19542
|
TextField_default,
|
|
19595
19543
|
{
|
|
19596
19544
|
"data-testid": "comparisonEndDateInput",
|
|
@@ -19612,7 +19560,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19612
19560
|
var DateIntervalPickerInputs_default = DateIntervalPickerInputs;
|
|
19613
19561
|
|
|
19614
19562
|
// src/components/input/DateIntervalPickerPopover.tsx
|
|
19615
|
-
import { jsx as
|
|
19563
|
+
import { jsx as jsx107, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
19616
19564
|
var DateIntervalPickerPopover = ({
|
|
19617
19565
|
interval,
|
|
19618
19566
|
startDate,
|
|
@@ -19983,7 +19931,7 @@ var DateIntervalPickerPopover = ({
|
|
|
19983
19931
|
maxWidth: `${250 + 8 * 2 + 32 * 7}px`
|
|
19984
19932
|
},
|
|
19985
19933
|
children: [
|
|
19986
|
-
/* @__PURE__ */
|
|
19934
|
+
/* @__PURE__ */ jsx107(
|
|
19987
19935
|
Box_default2,
|
|
19988
19936
|
{
|
|
19989
19937
|
sx: {
|
|
@@ -19995,7 +19943,7 @@ var DateIntervalPickerPopover = ({
|
|
|
19995
19943
|
overflowY: "auto"
|
|
19996
19944
|
},
|
|
19997
19945
|
className: "Slim-Vertical-Scroll",
|
|
19998
|
-
children: /* @__PURE__ */
|
|
19946
|
+
children: /* @__PURE__ */ jsx107(
|
|
19999
19947
|
DateIntervalPickerList_default,
|
|
20000
19948
|
{
|
|
20001
19949
|
allowCompare,
|
|
@@ -20011,13 +19959,13 @@ var DateIntervalPickerPopover = ({
|
|
|
20011
19959
|
)
|
|
20012
19960
|
}
|
|
20013
19961
|
),
|
|
20014
|
-
/* @__PURE__ */
|
|
19962
|
+
/* @__PURE__ */ jsx107(
|
|
20015
19963
|
Box_default2,
|
|
20016
19964
|
{
|
|
20017
19965
|
sx: {
|
|
20018
19966
|
gridArea: "inputs"
|
|
20019
19967
|
},
|
|
20020
|
-
children: /* @__PURE__ */
|
|
19968
|
+
children: /* @__PURE__ */ jsx107(
|
|
20021
19969
|
DateIntervalPickerInputs_default,
|
|
20022
19970
|
{
|
|
20023
19971
|
color: color2,
|
|
@@ -20036,13 +19984,13 @@ var DateIntervalPickerPopover = ({
|
|
|
20036
19984
|
)
|
|
20037
19985
|
}
|
|
20038
19986
|
),
|
|
20039
|
-
/* @__PURE__ */
|
|
19987
|
+
/* @__PURE__ */ jsx107(
|
|
20040
19988
|
Box_default2,
|
|
20041
19989
|
{
|
|
20042
19990
|
sx: {
|
|
20043
19991
|
gridArea: "calendar"
|
|
20044
19992
|
},
|
|
20045
|
-
children: /* @__PURE__ */
|
|
19993
|
+
children: /* @__PURE__ */ jsx107(
|
|
20046
19994
|
CalendarScrollPicker_default,
|
|
20047
19995
|
{
|
|
20048
19996
|
minDate: {
|
|
@@ -20081,10 +20029,10 @@ var DateIntervalPickerPopover = ({
|
|
|
20081
20029
|
]
|
|
20082
20030
|
}
|
|
20083
20031
|
),
|
|
20084
|
-
/* @__PURE__ */
|
|
20032
|
+
/* @__PURE__ */ jsx107(
|
|
20085
20033
|
PopoverActions_default,
|
|
20086
20034
|
{
|
|
20087
|
-
leftContent: /* @__PURE__ */
|
|
20035
|
+
leftContent: /* @__PURE__ */ jsx107(
|
|
20088
20036
|
Button_default,
|
|
20089
20037
|
{
|
|
20090
20038
|
variant: "text",
|
|
@@ -20093,7 +20041,7 @@ var DateIntervalPickerPopover = ({
|
|
|
20093
20041
|
disabled: isApplyButtonDisabled()
|
|
20094
20042
|
}
|
|
20095
20043
|
),
|
|
20096
|
-
rightContent: /* @__PURE__ */
|
|
20044
|
+
rightContent: /* @__PURE__ */ jsx107(
|
|
20097
20045
|
Button_default,
|
|
20098
20046
|
{
|
|
20099
20047
|
variant: "text",
|
|
@@ -20109,7 +20057,7 @@ var DateIntervalPickerPopover_default = DateIntervalPickerPopover;
|
|
|
20109
20057
|
|
|
20110
20058
|
// src/components/input/DateIntervalPicker.tsx
|
|
20111
20059
|
import { tz as tz4 } from "moment-timezone";
|
|
20112
|
-
import { jsx as
|
|
20060
|
+
import { jsx as jsx108, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
20113
20061
|
var DateIntervalPicker = ({
|
|
20114
20062
|
interval,
|
|
20115
20063
|
startDate,
|
|
@@ -20166,7 +20114,7 @@ var DateIntervalPicker = ({
|
|
|
20166
20114
|
disabled,
|
|
20167
20115
|
onClick: handleButtonClick,
|
|
20168
20116
|
children: [
|
|
20169
|
-
/* @__PURE__ */
|
|
20117
|
+
/* @__PURE__ */ jsx108(
|
|
20170
20118
|
"span",
|
|
20171
20119
|
{
|
|
20172
20120
|
style: {
|
|
@@ -20176,7 +20124,7 @@ var DateIntervalPicker = ({
|
|
|
20176
20124
|
borderRadius: "2px",
|
|
20177
20125
|
alignSelf: "center"
|
|
20178
20126
|
},
|
|
20179
|
-
children: /* @__PURE__ */
|
|
20127
|
+
children: /* @__PURE__ */ jsx108(Typography_default, { variant: "body2", children: t(
|
|
20180
20128
|
`DATE_INTERVAL_PICKER.DATE_INTERVALS.${dateIntervals[interval]}`
|
|
20181
20129
|
) })
|
|
20182
20130
|
}
|
|
@@ -20191,9 +20139,9 @@ var DateIntervalPicker = ({
|
|
|
20191
20139
|
},
|
|
20192
20140
|
children: [
|
|
20193
20141
|
/* @__PURE__ */ jsxs50("div", { children: [
|
|
20194
|
-
/* @__PURE__ */
|
|
20142
|
+
/* @__PURE__ */ jsx108(DateFormatter_default, { date: startDate }),
|
|
20195
20143
|
isEndDateVisible && " - ",
|
|
20196
|
-
isEndDateVisible && /* @__PURE__ */
|
|
20144
|
+
isEndDateVisible && /* @__PURE__ */ jsx108(DateFormatter_default, { date: displayEndDate })
|
|
20197
20145
|
] }),
|
|
20198
20146
|
comparisonStartDate && comparisonEndDate ? /* @__PURE__ */ jsxs50(
|
|
20199
20147
|
"div",
|
|
@@ -20206,20 +20154,20 @@ var DateIntervalPicker = ({
|
|
|
20206
20154
|
children: [
|
|
20207
20155
|
t("DATE_INTERVAL_PICKER.COMPARE"),
|
|
20208
20156
|
": ",
|
|
20209
|
-
/* @__PURE__ */
|
|
20157
|
+
/* @__PURE__ */ jsx108(DateFormatter_default, { date: comparisonStartDate }),
|
|
20210
20158
|
" - ",
|
|
20211
|
-
/* @__PURE__ */
|
|
20159
|
+
/* @__PURE__ */ jsx108(DateFormatter_default, { date: comparisonEndDate })
|
|
20212
20160
|
]
|
|
20213
20161
|
}
|
|
20214
20162
|
) : []
|
|
20215
20163
|
]
|
|
20216
20164
|
}
|
|
20217
20165
|
),
|
|
20218
|
-
/* @__PURE__ */
|
|
20166
|
+
/* @__PURE__ */ jsx108(Icon_default, { id: "menu-down", sx: { color: grey400 } })
|
|
20219
20167
|
]
|
|
20220
20168
|
}
|
|
20221
20169
|
),
|
|
20222
|
-
anchorEl !== null && /* @__PURE__ */
|
|
20170
|
+
anchorEl !== null && /* @__PURE__ */ jsx108(
|
|
20223
20171
|
DateIntervalPickerPopover_default,
|
|
20224
20172
|
{
|
|
20225
20173
|
...{
|
|
@@ -20251,7 +20199,7 @@ var DateIntervalPicker_default = DateIntervalPicker;
|
|
|
20251
20199
|
// src/components/input/SelectPopoverItem.tsx
|
|
20252
20200
|
import { Grid as Grid2, Stack as Stack7 } from "@mui/material";
|
|
20253
20201
|
import { lighten as lighten3 } from "@mui/material";
|
|
20254
|
-
import { Fragment as Fragment21, jsx as
|
|
20202
|
+
import { Fragment as Fragment21, jsx as jsx109, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
20255
20203
|
var bgColorLightCoefficient2 = 0.9;
|
|
20256
20204
|
var SelectPopoverItem = ({
|
|
20257
20205
|
id,
|
|
@@ -20265,7 +20213,7 @@ var SelectPopoverItem = ({
|
|
|
20265
20213
|
tooltip,
|
|
20266
20214
|
isLoadingSubtitle2,
|
|
20267
20215
|
onClick
|
|
20268
|
-
}) => /* @__PURE__ */
|
|
20216
|
+
}) => /* @__PURE__ */ jsx109(Tooltip_default, { title: tooltip || "", children: /* @__PURE__ */ jsx109(
|
|
20269
20217
|
Grid2,
|
|
20270
20218
|
{
|
|
20271
20219
|
size: {
|
|
@@ -20299,7 +20247,7 @@ var SelectPopoverItem = ({
|
|
|
20299
20247
|
boxSizing: "border-box"
|
|
20300
20248
|
},
|
|
20301
20249
|
children: [
|
|
20302
|
-
/* @__PURE__ */
|
|
20250
|
+
/* @__PURE__ */ jsx109(
|
|
20303
20251
|
TextEllipsis_default,
|
|
20304
20252
|
{
|
|
20305
20253
|
color: Colors_exports.grey800,
|
|
@@ -20309,7 +20257,7 @@ var SelectPopoverItem = ({
|
|
|
20309
20257
|
},
|
|
20310
20258
|
typographyVariant: "body1",
|
|
20311
20259
|
text: /* @__PURE__ */ jsxs51(Fragment21, { children: [
|
|
20312
|
-
iconId && /* @__PURE__ */
|
|
20260
|
+
iconId && /* @__PURE__ */ jsx109(
|
|
20313
20261
|
Icon_default,
|
|
20314
20262
|
{
|
|
20315
20263
|
id: iconId,
|
|
@@ -20327,7 +20275,7 @@ var SelectPopoverItem = ({
|
|
|
20327
20275
|
] })
|
|
20328
20276
|
}
|
|
20329
20277
|
),
|
|
20330
|
-
subtitle1 && /* @__PURE__ */
|
|
20278
|
+
subtitle1 && /* @__PURE__ */ jsx109(
|
|
20331
20279
|
Typography_default,
|
|
20332
20280
|
{
|
|
20333
20281
|
variant: "body2",
|
|
@@ -20337,7 +20285,7 @@ var SelectPopoverItem = ({
|
|
|
20337
20285
|
children: subtitle1
|
|
20338
20286
|
}
|
|
20339
20287
|
),
|
|
20340
|
-
isLoadingSubtitle2 && /* @__PURE__ */
|
|
20288
|
+
isLoadingSubtitle2 && /* @__PURE__ */ jsx109(
|
|
20341
20289
|
Skeleton_default,
|
|
20342
20290
|
{
|
|
20343
20291
|
variant: "text",
|
|
@@ -20349,7 +20297,7 @@ var SelectPopoverItem = ({
|
|
|
20349
20297
|
}
|
|
20350
20298
|
}
|
|
20351
20299
|
),
|
|
20352
|
-
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */
|
|
20300
|
+
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */ jsx109(
|
|
20353
20301
|
Typography_default,
|
|
20354
20302
|
{
|
|
20355
20303
|
variant: "body2",
|
|
@@ -20362,7 +20310,7 @@ var SelectPopoverItem = ({
|
|
|
20362
20310
|
]
|
|
20363
20311
|
}
|
|
20364
20312
|
),
|
|
20365
|
-
chipText && /* @__PURE__ */
|
|
20313
|
+
chipText && /* @__PURE__ */ jsx109(Box_default2, { sx: { minWidth: "72px", flexShrink: 0 }, children: /* @__PURE__ */ jsx109(
|
|
20366
20314
|
Chip_default,
|
|
20367
20315
|
{
|
|
20368
20316
|
label: chipText,
|
|
@@ -20393,7 +20341,7 @@ import MuiSelect from "@mui/material/Select";
|
|
|
20393
20341
|
import InputBase from "@mui/material/InputBase";
|
|
20394
20342
|
import { FixedSizeList as FixedSizeList2 } from "react-window";
|
|
20395
20343
|
import AutoSizer4 from "react-virtualized-auto-sizer";
|
|
20396
|
-
import { jsx as
|
|
20344
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
20397
20345
|
var BootstrapInput = styled7(InputBase)(() => ({
|
|
20398
20346
|
boxShadow: shadows[0],
|
|
20399
20347
|
borderRadius: "16px",
|
|
@@ -20424,7 +20372,7 @@ var BootstrapInput = styled7(InputBase)(() => ({
|
|
|
20424
20372
|
borderColor: grey800
|
|
20425
20373
|
}
|
|
20426
20374
|
}));
|
|
20427
|
-
var ChevronIcon = ({ disabled = false }) => /* @__PURE__ */
|
|
20375
|
+
var ChevronIcon = ({ disabled = false }) => /* @__PURE__ */ jsx110(
|
|
20428
20376
|
Icon_default,
|
|
20429
20377
|
{
|
|
20430
20378
|
id: "chevron-down",
|
|
@@ -20442,7 +20390,7 @@ var SelectOption = ({
|
|
|
20442
20390
|
selected,
|
|
20443
20391
|
colors,
|
|
20444
20392
|
...rest
|
|
20445
|
-
}) => /* @__PURE__ */
|
|
20393
|
+
}) => /* @__PURE__ */ jsx110(
|
|
20446
20394
|
ListItemButton_default,
|
|
20447
20395
|
{
|
|
20448
20396
|
role: "option",
|
|
@@ -20509,7 +20457,7 @@ var Select = function Select2({
|
|
|
20509
20457
|
}) => {
|
|
20510
20458
|
const { value: currentValue, label, ...rest2 } = options[index];
|
|
20511
20459
|
const isSelected = value === currentValue;
|
|
20512
|
-
return /* @__PURE__ */
|
|
20460
|
+
return /* @__PURE__ */ jsx110(
|
|
20513
20461
|
ListItemButton_default,
|
|
20514
20462
|
{
|
|
20515
20463
|
text: label ?? currentValue?.toString() ?? "",
|
|
@@ -20540,7 +20488,7 @@ var Select = function Select2({
|
|
|
20540
20488
|
currentValue ?? ""
|
|
20541
20489
|
);
|
|
20542
20490
|
};
|
|
20543
|
-
const getVirtualizedSelect = () => /* @__PURE__ */
|
|
20491
|
+
const getVirtualizedSelect = () => /* @__PURE__ */ jsx110(
|
|
20544
20492
|
MuiSelect,
|
|
20545
20493
|
{
|
|
20546
20494
|
className: `Cn-Select ${className}`,
|
|
@@ -20576,8 +20524,8 @@ var Select = function Select2({
|
|
|
20576
20524
|
displayEmpty: true,
|
|
20577
20525
|
variant: "standard",
|
|
20578
20526
|
value,
|
|
20579
|
-
IconComponent: () => /* @__PURE__ */
|
|
20580
|
-
input: /* @__PURE__ */
|
|
20527
|
+
IconComponent: () => /* @__PURE__ */ jsx110(ChevronIcon, { disabled: rest.disabled }),
|
|
20528
|
+
input: /* @__PURE__ */ jsx110(BootstrapInput, { placeholder }),
|
|
20581
20529
|
onOpen: () => {
|
|
20582
20530
|
setOpen(true);
|
|
20583
20531
|
onOpen && onOpen();
|
|
@@ -20593,7 +20541,7 @@ var Select = function Select2({
|
|
|
20593
20541
|
return renderValue(value2, options);
|
|
20594
20542
|
}
|
|
20595
20543
|
if (!value2) {
|
|
20596
|
-
return /* @__PURE__ */
|
|
20544
|
+
return /* @__PURE__ */ jsx110("span", { style: { color: grey900 }, children: placeholder });
|
|
20597
20545
|
}
|
|
20598
20546
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
20599
20547
|
},
|
|
@@ -20626,7 +20574,7 @@ var Select = function Select2({
|
|
|
20626
20574
|
}
|
|
20627
20575
|
}
|
|
20628
20576
|
},
|
|
20629
|
-
children: /* @__PURE__ */
|
|
20577
|
+
children: /* @__PURE__ */ jsx110(AutoSizer4, { disableWidth: true, children: ({ height: height2 }) => /* @__PURE__ */ jsx110(
|
|
20630
20578
|
FixedSizeList2,
|
|
20631
20579
|
{
|
|
20632
20580
|
height: height2,
|
|
@@ -20640,7 +20588,7 @@ var Select = function Select2({
|
|
|
20640
20588
|
) })
|
|
20641
20589
|
}
|
|
20642
20590
|
);
|
|
20643
|
-
const getNotVirtualizedSelect = () => /* @__PURE__ */
|
|
20591
|
+
const getNotVirtualizedSelect = () => /* @__PURE__ */ jsx110(
|
|
20644
20592
|
MuiSelect,
|
|
20645
20593
|
{
|
|
20646
20594
|
className: `Cn-Select ${className}`,
|
|
@@ -20680,9 +20628,9 @@ var Select = function Select2({
|
|
|
20680
20628
|
},
|
|
20681
20629
|
multiple,
|
|
20682
20630
|
value,
|
|
20683
|
-
IconComponent: () => /* @__PURE__ */
|
|
20631
|
+
IconComponent: () => /* @__PURE__ */ jsx110(ChevronIcon, { disabled: rest.disabled }),
|
|
20684
20632
|
open,
|
|
20685
|
-
input: /* @__PURE__ */
|
|
20633
|
+
input: /* @__PURE__ */ jsx110(BootstrapInput, { placeholder }),
|
|
20686
20634
|
onOpen: () => {
|
|
20687
20635
|
setOpen(true);
|
|
20688
20636
|
onOpen && onOpen();
|
|
@@ -20698,7 +20646,7 @@ var Select = function Select2({
|
|
|
20698
20646
|
}
|
|
20699
20647
|
if (Array.isArray(value2)) {
|
|
20700
20648
|
if (value2.length === 0) {
|
|
20701
|
-
return /* @__PURE__ */
|
|
20649
|
+
return /* @__PURE__ */ jsx110("span", { style: { color: grey900 }, children: placeholder });
|
|
20702
20650
|
} else {
|
|
20703
20651
|
return value2.map((v) => {
|
|
20704
20652
|
const option = options.find((o) => o.value === v);
|
|
@@ -20707,7 +20655,7 @@ var Select = function Select2({
|
|
|
20707
20655
|
}
|
|
20708
20656
|
} else {
|
|
20709
20657
|
if (!value2) {
|
|
20710
|
-
return /* @__PURE__ */
|
|
20658
|
+
return /* @__PURE__ */ jsx110("span", { style: { color: grey900 }, children: placeholder });
|
|
20711
20659
|
}
|
|
20712
20660
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
20713
20661
|
}
|
|
@@ -20732,7 +20680,7 @@ var Select = function Select2({
|
|
|
20732
20680
|
}
|
|
20733
20681
|
},
|
|
20734
20682
|
...rest,
|
|
20735
|
-
children: children ?? options.map(({ label, value: value2, ...rest2 }) => /* @__PURE__ */
|
|
20683
|
+
children: children ?? options.map(({ label, value: value2, ...rest2 }) => /* @__PURE__ */ jsx110(
|
|
20736
20684
|
SelectOption,
|
|
20737
20685
|
{
|
|
20738
20686
|
label: label ?? value2?.toString() ?? "",
|
|
@@ -20749,7 +20697,7 @@ var Select = function Select2({
|
|
|
20749
20697
|
var Select_default = React57.forwardRef(Select);
|
|
20750
20698
|
|
|
20751
20699
|
// src/components/input/TimezoneSelector.tsx
|
|
20752
|
-
import { jsx as
|
|
20700
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
20753
20701
|
var TimezoneSelector = ({
|
|
20754
20702
|
initialTimezone,
|
|
20755
20703
|
onTimezoneChange
|
|
@@ -20760,7 +20708,7 @@ var TimezoneSelector = ({
|
|
|
20760
20708
|
onTimezoneChange(timezone);
|
|
20761
20709
|
};
|
|
20762
20710
|
const timeZones = moment2.tz.names();
|
|
20763
|
-
return /* @__PURE__ */
|
|
20711
|
+
return /* @__PURE__ */ jsx111(
|
|
20764
20712
|
Select_default,
|
|
20765
20713
|
{
|
|
20766
20714
|
value: selectedTimezone,
|
|
@@ -20774,7 +20722,7 @@ var TimezoneSelector_default = TimezoneSelector;
|
|
|
20774
20722
|
|
|
20775
20723
|
// src/components/input/DaysOfWeekPicker.tsx
|
|
20776
20724
|
import * as React59 from "react";
|
|
20777
|
-
import { jsx as
|
|
20725
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
20778
20726
|
var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
20779
20727
|
const { locale } = React59.useContext(IntlContext);
|
|
20780
20728
|
const daysOfWeekLong = React59.useMemo(
|
|
@@ -20794,7 +20742,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20794
20742
|
"saturday",
|
|
20795
20743
|
"sunday"
|
|
20796
20744
|
];
|
|
20797
|
-
return /* @__PURE__ */
|
|
20745
|
+
return /* @__PURE__ */ jsx112(
|
|
20798
20746
|
Stack_default,
|
|
20799
20747
|
{
|
|
20800
20748
|
direction: "row",
|
|
@@ -20803,7 +20751,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20803
20751
|
height: "34px",
|
|
20804
20752
|
alignItems: "center"
|
|
20805
20753
|
},
|
|
20806
|
-
children: daysOfWeek.map((day, index) => /* @__PURE__ */
|
|
20754
|
+
children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx112("div", { style: { margin: "0 2px" }, children: /* @__PURE__ */ jsx112(
|
|
20807
20755
|
ToggleButton_default,
|
|
20808
20756
|
{
|
|
20809
20757
|
sx: {
|
|
@@ -20826,7 +20774,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20826
20774
|
onChange(value.concat([currentValue]));
|
|
20827
20775
|
}
|
|
20828
20776
|
},
|
|
20829
|
-
children: /* @__PURE__ */
|
|
20777
|
+
children: /* @__PURE__ */ jsx112(Tooltip_default, { title: daysOfWeekLong[index], children: /* @__PURE__ */ jsx112("span", { children: day }) }, index)
|
|
20830
20778
|
}
|
|
20831
20779
|
) }, index))
|
|
20832
20780
|
}
|
|
@@ -20839,7 +20787,7 @@ import * as React60 from "react";
|
|
|
20839
20787
|
import GradientColorPicker, {
|
|
20840
20788
|
useColorPicker
|
|
20841
20789
|
} from "react-best-gradient-color-picker";
|
|
20842
|
-
import { Fragment as Fragment22, jsx as
|
|
20790
|
+
import { Fragment as Fragment22, jsx as jsx113, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
20843
20791
|
var colorRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$|^rgba?\((\d{1,3}), {0,1}(\d{1,3}), {0,1}(\d{1,3})(, {0,1}([01]|0?\.\d+))?\)$/;
|
|
20844
20792
|
var isValidColor = (color2) => colorRegex.test(color2);
|
|
20845
20793
|
var colorPickerDefaultColors = [
|
|
@@ -20910,7 +20858,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20910
20858
|
return hex.length === 1 ? "0" + hex : hex;
|
|
20911
20859
|
}).join("");
|
|
20912
20860
|
};
|
|
20913
|
-
const iconColor = /* @__PURE__ */
|
|
20861
|
+
const iconColor = /* @__PURE__ */ jsx113(
|
|
20914
20862
|
IconButton_default,
|
|
20915
20863
|
{
|
|
20916
20864
|
iconId: value ? "color-square" : "transparent",
|
|
@@ -20933,7 +20881,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20933
20881
|
}
|
|
20934
20882
|
}, [value, internalPickerValue, onChange, isValidPickerChange, valueToHex]);
|
|
20935
20883
|
return /* @__PURE__ */ jsxs52(Fragment22, { children: [
|
|
20936
|
-
/* @__PURE__ */
|
|
20884
|
+
/* @__PURE__ */ jsx113(
|
|
20937
20885
|
TextField_default,
|
|
20938
20886
|
{
|
|
20939
20887
|
value: textFieldValue,
|
|
@@ -20958,7 +20906,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20958
20906
|
ref
|
|
20959
20907
|
}
|
|
20960
20908
|
),
|
|
20961
|
-
/* @__PURE__ */
|
|
20909
|
+
/* @__PURE__ */ jsx113(
|
|
20962
20910
|
Popover_default,
|
|
20963
20911
|
{
|
|
20964
20912
|
anchorEl,
|
|
@@ -20967,7 +20915,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20967
20915
|
onMouseUp: () => {
|
|
20968
20916
|
setValidPickerChange(true);
|
|
20969
20917
|
},
|
|
20970
|
-
children: /* @__PURE__ */
|
|
20918
|
+
children: /* @__PURE__ */ jsx113(
|
|
20971
20919
|
Box_default2,
|
|
20972
20920
|
{
|
|
20973
20921
|
className: "Cn-Color-Gradient-Box",
|
|
@@ -21011,7 +20959,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
21011
20959
|
fontFamily: "Source Sans Pro, sans-serif"
|
|
21012
20960
|
}
|
|
21013
20961
|
},
|
|
21014
|
-
children: /* @__PURE__ */
|
|
20962
|
+
children: /* @__PURE__ */ jsx113(
|
|
21015
20963
|
GradientColorPicker,
|
|
21016
20964
|
{
|
|
21017
20965
|
className: "Cn-Color-Gradient-Picker",
|
|
@@ -21042,7 +20990,7 @@ var ColorPicker_default = ColorPicker;
|
|
|
21042
20990
|
|
|
21043
20991
|
// src/components/input/UploadClickableArea.tsx
|
|
21044
20992
|
import { Box as Box3 } from "@mui/material";
|
|
21045
|
-
import { jsx as
|
|
20993
|
+
import { jsx as jsx114, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
21046
20994
|
var UploadClickableArea = ({
|
|
21047
20995
|
accept,
|
|
21048
20996
|
onFilesChanged,
|
|
@@ -21056,7 +21004,7 @@ var UploadClickableArea = ({
|
|
|
21056
21004
|
display: "inline-block"
|
|
21057
21005
|
},
|
|
21058
21006
|
children: [
|
|
21059
|
-
/* @__PURE__ */
|
|
21007
|
+
/* @__PURE__ */ jsx114(
|
|
21060
21008
|
"input",
|
|
21061
21009
|
{
|
|
21062
21010
|
type: "file",
|
|
@@ -21074,8 +21022,8 @@ var UploadClickableArea_default = UploadClickableArea;
|
|
|
21074
21022
|
// src/components/input/CategorizedPicker.tsx
|
|
21075
21023
|
import React61 from "react";
|
|
21076
21024
|
import { Grid as Grid3, Popover as Popover2, Select as Select3, Stack as Stack8 } from "@mui/material";
|
|
21077
|
-
import { Fragment as Fragment23, jsx as
|
|
21078
|
-
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */
|
|
21025
|
+
import { Fragment as Fragment23, jsx as jsx115, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
21026
|
+
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */ jsx115(
|
|
21079
21027
|
Icon_default,
|
|
21080
21028
|
{
|
|
21081
21029
|
id: "chevron-down",
|
|
@@ -21171,7 +21119,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21171
21119
|
}
|
|
21172
21120
|
}, [filteredCategories, selectedCategory]);
|
|
21173
21121
|
return /* @__PURE__ */ jsxs54(Fragment23, { children: [
|
|
21174
|
-
/* @__PURE__ */
|
|
21122
|
+
/* @__PURE__ */ jsx115(
|
|
21175
21123
|
Select3,
|
|
21176
21124
|
{
|
|
21177
21125
|
ref: anchorRef,
|
|
@@ -21186,7 +21134,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21186
21134
|
value: value?.name || "",
|
|
21187
21135
|
displayEmpty: true,
|
|
21188
21136
|
disabled,
|
|
21189
|
-
input: /* @__PURE__ */
|
|
21137
|
+
input: /* @__PURE__ */ jsx115(
|
|
21190
21138
|
BootstrapInput,
|
|
21191
21139
|
{
|
|
21192
21140
|
sx: {
|
|
@@ -21195,7 +21143,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21195
21143
|
}
|
|
21196
21144
|
),
|
|
21197
21145
|
renderValue: (value2) => value2 || placeholder,
|
|
21198
|
-
IconComponent: () => /* @__PURE__ */
|
|
21146
|
+
IconComponent: () => /* @__PURE__ */ jsx115(ChevronIcon2, { disabled }),
|
|
21199
21147
|
onClick: !disabled ? (e) => {
|
|
21200
21148
|
e.preventDefault();
|
|
21201
21149
|
e.stopPropagation();
|
|
@@ -21203,10 +21151,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21203
21151
|
} : void 0,
|
|
21204
21152
|
open: false,
|
|
21205
21153
|
"data-testid": dataTestId,
|
|
21206
|
-
children: options.map((option) => /* @__PURE__ */
|
|
21154
|
+
children: options.map((option) => /* @__PURE__ */ jsx115("option", { value: option.name }, option.id))
|
|
21207
21155
|
}
|
|
21208
21156
|
),
|
|
21209
|
-
/* @__PURE__ */
|
|
21157
|
+
/* @__PURE__ */ jsx115(
|
|
21210
21158
|
Popover2,
|
|
21211
21159
|
{
|
|
21212
21160
|
anchorEl: anchorRef.current,
|
|
@@ -21228,7 +21176,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21228
21176
|
}
|
|
21229
21177
|
},
|
|
21230
21178
|
children: /* @__PURE__ */ jsxs54(Grid3, { container: true, children: [
|
|
21231
|
-
/* @__PURE__ */
|
|
21179
|
+
/* @__PURE__ */ jsx115(
|
|
21232
21180
|
Grid3,
|
|
21233
21181
|
{
|
|
21234
21182
|
size: {
|
|
@@ -21236,7 +21184,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21236
21184
|
},
|
|
21237
21185
|
padding: "8px",
|
|
21238
21186
|
borderBottom: `1px solid ${grey200}`,
|
|
21239
|
-
children: /* @__PURE__ */
|
|
21187
|
+
children: /* @__PURE__ */ jsx115(
|
|
21240
21188
|
DebouncedTextField_default,
|
|
21241
21189
|
{
|
|
21242
21190
|
placeholder: t(
|
|
@@ -21244,12 +21192,12 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21244
21192
|
),
|
|
21245
21193
|
value: search,
|
|
21246
21194
|
onChange: onTypeSearch,
|
|
21247
|
-
startAdornment: /* @__PURE__ */
|
|
21195
|
+
startAdornment: /* @__PURE__ */ jsx115(Icon_default, { id: "magnify" })
|
|
21248
21196
|
}
|
|
21249
21197
|
)
|
|
21250
21198
|
}
|
|
21251
21199
|
),
|
|
21252
|
-
/* @__PURE__ */
|
|
21200
|
+
/* @__PURE__ */ jsx115(
|
|
21253
21201
|
Grid3,
|
|
21254
21202
|
{
|
|
21255
21203
|
size: {
|
|
@@ -21258,14 +21206,14 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21258
21206
|
sx: { borderRight: `1px solid ${grey200}` },
|
|
21259
21207
|
height: "316px",
|
|
21260
21208
|
className: "Slim-Vertical-Scroll",
|
|
21261
|
-
children: /* @__PURE__ */
|
|
21209
|
+
children: /* @__PURE__ */ jsx115(Stack8, { children: filteredCategories.map((category, idx) => /* @__PURE__ */ jsx115(
|
|
21262
21210
|
ListItemButton_default,
|
|
21263
21211
|
{
|
|
21264
21212
|
selected: selectedCategory === category,
|
|
21265
21213
|
onClick: () => {
|
|
21266
21214
|
setSelectedCategory(category);
|
|
21267
21215
|
},
|
|
21268
|
-
endAdornment: selectedCategory === category ? /* @__PURE__ */
|
|
21216
|
+
endAdornment: selectedCategory === category ? /* @__PURE__ */ jsx115(
|
|
21269
21217
|
Icon_default,
|
|
21270
21218
|
{
|
|
21271
21219
|
id: "menu-right",
|
|
@@ -21273,10 +21221,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21273
21221
|
}
|
|
21274
21222
|
) : void 0,
|
|
21275
21223
|
buttonDataTest: dataTestId ? dataTestId + "-category-" + idx : void 0,
|
|
21276
|
-
children: /* @__PURE__ */
|
|
21224
|
+
children: /* @__PURE__ */ jsx115(
|
|
21277
21225
|
TextEllipsis_default,
|
|
21278
21226
|
{
|
|
21279
|
-
text: /* @__PURE__ */
|
|
21227
|
+
text: /* @__PURE__ */ jsx115(
|
|
21280
21228
|
TextMarker_default,
|
|
21281
21229
|
{
|
|
21282
21230
|
searchText: search,
|
|
@@ -21294,7 +21242,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21294
21242
|
)) })
|
|
21295
21243
|
}
|
|
21296
21244
|
),
|
|
21297
|
-
/* @__PURE__ */
|
|
21245
|
+
/* @__PURE__ */ jsx115(
|
|
21298
21246
|
Grid3,
|
|
21299
21247
|
{
|
|
21300
21248
|
size: {
|
|
@@ -21302,7 +21250,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21302
21250
|
},
|
|
21303
21251
|
height: "316px",
|
|
21304
21252
|
className: "Slim-Vertical-Scroll",
|
|
21305
|
-
children: /* @__PURE__ */
|
|
21253
|
+
children: /* @__PURE__ */ jsx115(Stack8, { children: /* @__PURE__ */ jsx115(Stack8, { children: !selectedCategory ? /* @__PURE__ */ jsx115(Stack8, { padding: "12px", alignItems: "center", children: /* @__PURE__ */ jsx115(
|
|
21306
21254
|
Typography_default,
|
|
21307
21255
|
{
|
|
21308
21256
|
variant: "body2",
|
|
@@ -21314,7 +21262,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21314
21262
|
)
|
|
21315
21263
|
}
|
|
21316
21264
|
) }) : selectedCategory.categoryOptions.map(
|
|
21317
|
-
(option, idx) => /* @__PURE__ */
|
|
21265
|
+
(option, idx) => /* @__PURE__ */ jsx115(
|
|
21318
21266
|
ListItemButton_default,
|
|
21319
21267
|
{
|
|
21320
21268
|
selected: value?.id === option.id,
|
|
@@ -21323,10 +21271,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21323
21271
|
closePopover();
|
|
21324
21272
|
},
|
|
21325
21273
|
buttonDataTest: dataTestId ? dataTestId + "-option-" + idx : void 0,
|
|
21326
|
-
children: /* @__PURE__ */
|
|
21274
|
+
children: /* @__PURE__ */ jsx115(
|
|
21327
21275
|
TextEllipsis_default,
|
|
21328
21276
|
{
|
|
21329
|
-
text: /* @__PURE__ */
|
|
21277
|
+
text: /* @__PURE__ */ jsx115(
|
|
21330
21278
|
TextMarker_default,
|
|
21331
21279
|
{
|
|
21332
21280
|
searchText: search,
|
|
@@ -21359,7 +21307,7 @@ import * as React62 from "react";
|
|
|
21359
21307
|
import { Grid as Grid4, Stack as Stack9 } from "@mui/material";
|
|
21360
21308
|
import { useState as useState22 } from "react";
|
|
21361
21309
|
import InfiniteScroll from "react-infinite-scroll-component";
|
|
21362
|
-
import { jsx as
|
|
21310
|
+
import { jsx as jsx116, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
21363
21311
|
var defaultItemsColorStyles = {
|
|
21364
21312
|
selectedColor: Colors_exports.primaryMain,
|
|
21365
21313
|
disabledColor: ""
|
|
@@ -21501,14 +21449,14 @@ var SelectPopover = function SelectPopover2({
|
|
|
21501
21449
|
anchorEl,
|
|
21502
21450
|
disableRestoreFocus,
|
|
21503
21451
|
children: [
|
|
21504
|
-
/* @__PURE__ */
|
|
21452
|
+
/* @__PURE__ */ jsx116(
|
|
21505
21453
|
Box_default2,
|
|
21506
21454
|
{
|
|
21507
21455
|
sx: {
|
|
21508
21456
|
borderBottom: `1px solid ${Colors_exports.grey200}`,
|
|
21509
21457
|
padding: "8px"
|
|
21510
21458
|
},
|
|
21511
|
-
children: /* @__PURE__ */
|
|
21459
|
+
children: /* @__PURE__ */ jsx116(
|
|
21512
21460
|
DebouncedTextField_default,
|
|
21513
21461
|
{
|
|
21514
21462
|
iconId: "magnify",
|
|
@@ -21523,7 +21471,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21523
21471
|
)
|
|
21524
21472
|
}
|
|
21525
21473
|
),
|
|
21526
|
-
/* @__PURE__ */
|
|
21474
|
+
/* @__PURE__ */ jsx116(
|
|
21527
21475
|
InfiniteScroll,
|
|
21528
21476
|
{
|
|
21529
21477
|
height: 300,
|
|
@@ -21582,7 +21530,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21582
21530
|
onItemSelected
|
|
21583
21531
|
) : getItemElement(item, onItemSelected)
|
|
21584
21532
|
),
|
|
21585
|
-
isLoading && /* @__PURE__ */
|
|
21533
|
+
isLoading && /* @__PURE__ */ jsx116(
|
|
21586
21534
|
Skeleton_default,
|
|
21587
21535
|
{
|
|
21588
21536
|
variant: "text",
|
|
@@ -21595,13 +21543,13 @@ var SelectPopover = function SelectPopover2({
|
|
|
21595
21543
|
}
|
|
21596
21544
|
}
|
|
21597
21545
|
),
|
|
21598
|
-
!isLoading && currentItems.length === 0 ? /* @__PURE__ */
|
|
21546
|
+
!isLoading && currentItems.length === 0 ? /* @__PURE__ */ jsx116(
|
|
21599
21547
|
Stack9,
|
|
21600
21548
|
{
|
|
21601
21549
|
alignItems: "center",
|
|
21602
21550
|
justifyContent: "center",
|
|
21603
21551
|
width: "100%",
|
|
21604
|
-
children: /* @__PURE__ */
|
|
21552
|
+
children: /* @__PURE__ */ jsx116(Typography_default, { variant: "body2", color: grey600, children: emptyListPlaceholder })
|
|
21605
21553
|
}
|
|
21606
21554
|
) : ""
|
|
21607
21555
|
]
|
|
@@ -21609,11 +21557,11 @@ var SelectPopover = function SelectPopover2({
|
|
|
21609
21557
|
)
|
|
21610
21558
|
}
|
|
21611
21559
|
),
|
|
21612
|
-
/* @__PURE__ */
|
|
21560
|
+
/* @__PURE__ */ jsx116(
|
|
21613
21561
|
PopoverActions_default,
|
|
21614
21562
|
{
|
|
21615
21563
|
sx: { padding: "16px 24px" },
|
|
21616
|
-
leftContent: /* @__PURE__ */
|
|
21564
|
+
leftContent: /* @__PURE__ */ jsx116(
|
|
21617
21565
|
Button_default,
|
|
21618
21566
|
{
|
|
21619
21567
|
variant: "contained",
|
|
@@ -21623,7 +21571,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21623
21571
|
onClick: closePopover
|
|
21624
21572
|
}
|
|
21625
21573
|
),
|
|
21626
|
-
rightContent: /* @__PURE__ */
|
|
21574
|
+
rightContent: /* @__PURE__ */ jsx116(
|
|
21627
21575
|
Button_default,
|
|
21628
21576
|
{
|
|
21629
21577
|
variant: "contained",
|
|
@@ -21647,7 +21595,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21647
21595
|
);
|
|
21648
21596
|
};
|
|
21649
21597
|
function getItemElement(item, onItemClick) {
|
|
21650
|
-
return /* @__PURE__ */
|
|
21598
|
+
return /* @__PURE__ */ jsx116(
|
|
21651
21599
|
SelectPopoverItem_default,
|
|
21652
21600
|
{
|
|
21653
21601
|
id: item.id,
|
|
@@ -21676,7 +21624,7 @@ var arraysEqual = (a, b) => {
|
|
|
21676
21624
|
var SelectPopover_default = SelectPopover;
|
|
21677
21625
|
|
|
21678
21626
|
// src/components/input/ItemSelector.tsx
|
|
21679
|
-
import { Fragment as Fragment24, jsx as
|
|
21627
|
+
import { Fragment as Fragment24, jsx as jsx117, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
21680
21628
|
var ItemSelector = function ItemSelector2({
|
|
21681
21629
|
items,
|
|
21682
21630
|
selectedItems,
|
|
@@ -21730,7 +21678,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21730
21678
|
item
|
|
21731
21679
|
}) => {
|
|
21732
21680
|
const [ref, { contentWidth: width2 }] = useResizeObserver();
|
|
21733
|
-
return /* @__PURE__ */
|
|
21681
|
+
return /* @__PURE__ */ jsx117(
|
|
21734
21682
|
Chip_default,
|
|
21735
21683
|
{
|
|
21736
21684
|
ref,
|
|
@@ -21761,7 +21709,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21761
21709
|
return selectedItem ? [selectedItem] : "";
|
|
21762
21710
|
};
|
|
21763
21711
|
return /* @__PURE__ */ jsxs56(Fragment24, { children: [
|
|
21764
|
-
/* @__PURE__ */
|
|
21712
|
+
/* @__PURE__ */ jsx117(
|
|
21765
21713
|
Select_default,
|
|
21766
21714
|
{
|
|
21767
21715
|
ref: selectRef,
|
|
@@ -21778,16 +21726,16 @@ var ItemSelector = function ItemSelector2({
|
|
|
21778
21726
|
let component;
|
|
21779
21727
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
21780
21728
|
component = /* @__PURE__ */ jsxs56(Fragment24, { children: [
|
|
21781
|
-
/* @__PURE__ */
|
|
21729
|
+
/* @__PURE__ */ jsx117(
|
|
21782
21730
|
Stack_default,
|
|
21783
21731
|
{
|
|
21784
21732
|
direction: "row",
|
|
21785
21733
|
flexWrap: "wrap",
|
|
21786
21734
|
padding: "6px 0",
|
|
21787
|
-
children: /* @__PURE__ */
|
|
21735
|
+
children: /* @__PURE__ */ jsx117(Typography_default, { variant: "body2", color: grey600, children: placeholder })
|
|
21788
21736
|
}
|
|
21789
21737
|
),
|
|
21790
|
-
/* @__PURE__ */
|
|
21738
|
+
/* @__PURE__ */ jsx117(
|
|
21791
21739
|
Divider_default,
|
|
21792
21740
|
{
|
|
21793
21741
|
variant: "middle",
|
|
@@ -21812,7 +21760,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21812
21760
|
const item = selectedItems.find(
|
|
21813
21761
|
(i) => i.id === id
|
|
21814
21762
|
);
|
|
21815
|
-
return item ? /* @__PURE__ */
|
|
21763
|
+
return item ? /* @__PURE__ */ jsx117(
|
|
21816
21764
|
ItemChip,
|
|
21817
21765
|
{
|
|
21818
21766
|
item: {
|
|
@@ -21821,14 +21769,14 @@ var ItemSelector = function ItemSelector2({
|
|
|
21821
21769
|
}
|
|
21822
21770
|
},
|
|
21823
21771
|
id
|
|
21824
|
-
) : /* @__PURE__ */
|
|
21772
|
+
) : /* @__PURE__ */ jsx117(Fragment24, {});
|
|
21825
21773
|
}),
|
|
21826
|
-
value.length - limitItemChips > 0 ? /* @__PURE__ */
|
|
21774
|
+
value.length - limitItemChips > 0 ? /* @__PURE__ */ jsx117(
|
|
21827
21775
|
Tooltip_default,
|
|
21828
21776
|
{
|
|
21829
21777
|
interactive: true,
|
|
21830
21778
|
variant: "white",
|
|
21831
|
-
title: /* @__PURE__ */
|
|
21779
|
+
title: /* @__PURE__ */ jsx117(
|
|
21832
21780
|
Stack_default,
|
|
21833
21781
|
{
|
|
21834
21782
|
direction: "row",
|
|
@@ -21845,24 +21793,24 @@ var ItemSelector = function ItemSelector2({
|
|
|
21845
21793
|
const item = selectedItems.find(
|
|
21846
21794
|
(i) => i.id === id
|
|
21847
21795
|
);
|
|
21848
|
-
return item ? /* @__PURE__ */
|
|
21796
|
+
return item ? /* @__PURE__ */ jsx117(
|
|
21849
21797
|
ItemChip,
|
|
21850
21798
|
{
|
|
21851
21799
|
item
|
|
21852
21800
|
},
|
|
21853
21801
|
id
|
|
21854
|
-
) : /* @__PURE__ */
|
|
21802
|
+
) : /* @__PURE__ */ jsx117(Fragment24, {});
|
|
21855
21803
|
})
|
|
21856
21804
|
}
|
|
21857
21805
|
),
|
|
21858
|
-
children: /* @__PURE__ */
|
|
21806
|
+
children: /* @__PURE__ */ jsx117(Typography_default, { variant: "body2", children: `+${value.length - limitItemChips}` })
|
|
21859
21807
|
}
|
|
21860
21808
|
) : void 0
|
|
21861
21809
|
]
|
|
21862
21810
|
}
|
|
21863
21811
|
),
|
|
21864
21812
|
!disabled && /* @__PURE__ */ jsxs56(Stack_default, { direction: "row", children: [
|
|
21865
|
-
/* @__PURE__ */
|
|
21813
|
+
/* @__PURE__ */ jsx117(
|
|
21866
21814
|
IconButton_default,
|
|
21867
21815
|
{
|
|
21868
21816
|
iconId: "close",
|
|
@@ -21880,7 +21828,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21880
21828
|
}
|
|
21881
21829
|
}
|
|
21882
21830
|
),
|
|
21883
|
-
/* @__PURE__ */
|
|
21831
|
+
/* @__PURE__ */ jsx117(
|
|
21884
21832
|
Divider_default,
|
|
21885
21833
|
{
|
|
21886
21834
|
variant: "middle",
|
|
@@ -21891,7 +21839,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21891
21839
|
] })
|
|
21892
21840
|
] });
|
|
21893
21841
|
}
|
|
21894
|
-
return /* @__PURE__ */
|
|
21842
|
+
return /* @__PURE__ */ jsx117(
|
|
21895
21843
|
Stack_default,
|
|
21896
21844
|
{
|
|
21897
21845
|
direction: "row",
|
|
@@ -21913,8 +21861,8 @@ var ItemSelector = function ItemSelector2({
|
|
|
21913
21861
|
}
|
|
21914
21862
|
}
|
|
21915
21863
|
),
|
|
21916
|
-
helperText && /* @__PURE__ */
|
|
21917
|
-
/* @__PURE__ */
|
|
21864
|
+
helperText && /* @__PURE__ */ jsx117(InputHelperText_default, { severity: isError ? "error" : "info", children: helperText }),
|
|
21865
|
+
/* @__PURE__ */ jsx117(
|
|
21918
21866
|
SelectPopover_default,
|
|
21919
21867
|
{
|
|
21920
21868
|
items: items.map((item) => {
|
|
@@ -21979,7 +21927,7 @@ var map = {
|
|
|
21979
21927
|
var toDiacriticInsensitiveString = (input) => Array.from(input).map((char) => map[char] ? `[${map[char]}]` : char).join("");
|
|
21980
21928
|
|
|
21981
21929
|
// src/components/input/Autocomplete.tsx
|
|
21982
|
-
import { Fragment as Fragment25, jsx as
|
|
21930
|
+
import { Fragment as Fragment25, jsx as jsx118, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
21983
21931
|
var AUTOCOMPLETE_ITEM_HEIGHT = 44;
|
|
21984
21932
|
var Autocomplete = function Autocomplete2({
|
|
21985
21933
|
variant = "default",
|
|
@@ -22175,7 +22123,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22175
22123
|
style: style3
|
|
22176
22124
|
}) => {
|
|
22177
22125
|
const option = filteredOptions[index];
|
|
22178
|
-
return /* @__PURE__ */
|
|
22126
|
+
return /* @__PURE__ */ jsx118(
|
|
22179
22127
|
ListItemButton_default,
|
|
22180
22128
|
{
|
|
22181
22129
|
selected: index === selectedIndex,
|
|
@@ -22184,7 +22132,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22184
22132
|
sx: style3,
|
|
22185
22133
|
color: Array.isArray(value) && value.includes(option.id) ? "primary" : void 0,
|
|
22186
22134
|
text: getText(option),
|
|
22187
|
-
endAdornment: multiple && (options.some((elem) => elem.id === option.id) ? Array.isArray(value) && value.includes(option.id) && /* @__PURE__ */
|
|
22135
|
+
endAdornment: multiple && (options.some((elem) => elem.id === option.id) ? Array.isArray(value) && value.includes(option.id) && /* @__PURE__ */ jsx118(Icon_default, { sx: { color: primaryMain }, id: "check" }) : /* @__PURE__ */ jsx118(
|
|
22188
22136
|
Icon_default,
|
|
22189
22137
|
{
|
|
22190
22138
|
id: Array.isArray(value) && value.includes(option.id) ? "close" : "plus"
|
|
@@ -22197,7 +22145,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22197
22145
|
);
|
|
22198
22146
|
};
|
|
22199
22147
|
return /* @__PURE__ */ jsxs57(Fragment25, { children: [
|
|
22200
|
-
/* @__PURE__ */
|
|
22148
|
+
/* @__PURE__ */ jsx118(
|
|
22201
22149
|
DebouncedTextField_default,
|
|
22202
22150
|
{
|
|
22203
22151
|
ref: ref ?? inputRef,
|
|
@@ -22287,7 +22235,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22287
22235
|
alignItems: "center"
|
|
22288
22236
|
},
|
|
22289
22237
|
children: [
|
|
22290
|
-
value.slice(0, limitValueTags || value.length).map((id) => /* @__PURE__ */
|
|
22238
|
+
value.slice(0, limitValueTags || value.length).map((id) => /* @__PURE__ */ jsx118(
|
|
22291
22239
|
Chip_default,
|
|
22292
22240
|
{
|
|
22293
22241
|
label: (renderLabel ?? _renderLabel)(
|
|
@@ -22307,12 +22255,12 @@ var Autocomplete = function Autocomplete2({
|
|
|
22307
22255
|
},
|
|
22308
22256
|
id
|
|
22309
22257
|
)),
|
|
22310
|
-
limitValueTags && value.length - limitValueTags > 0 ? /* @__PURE__ */
|
|
22258
|
+
limitValueTags && value.length - limitValueTags > 0 ? /* @__PURE__ */ jsx118(
|
|
22311
22259
|
Tooltip_default,
|
|
22312
22260
|
{
|
|
22313
22261
|
interactive: true,
|
|
22314
22262
|
variant: "white",
|
|
22315
|
-
title: /* @__PURE__ */
|
|
22263
|
+
title: /* @__PURE__ */ jsx118(
|
|
22316
22264
|
Stack_default,
|
|
22317
22265
|
{
|
|
22318
22266
|
direction: "row",
|
|
@@ -22325,7 +22273,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22325
22273
|
children: value.slice(
|
|
22326
22274
|
limitValueTags,
|
|
22327
22275
|
value.length
|
|
22328
|
-
).map((id) => /* @__PURE__ */
|
|
22276
|
+
).map((id) => /* @__PURE__ */ jsx118(
|
|
22329
22277
|
Chip_default,
|
|
22330
22278
|
{
|
|
22331
22279
|
label: (renderLabel ?? _renderLabel)(id),
|
|
@@ -22345,7 +22293,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22345
22293
|
))
|
|
22346
22294
|
}
|
|
22347
22295
|
),
|
|
22348
|
-
children: /* @__PURE__ */
|
|
22296
|
+
children: /* @__PURE__ */ jsx118(Typography_default, { variant: "body2", children: `+${value.length - limitValueTags}` })
|
|
22349
22297
|
}
|
|
22350
22298
|
) : ""
|
|
22351
22299
|
]
|
|
@@ -22362,7 +22310,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22362
22310
|
spacing: 1,
|
|
22363
22311
|
children: [
|
|
22364
22312
|
textFieldProps?.endAdornment,
|
|
22365
|
-
!disabled && dirty && showClearButton && /* @__PURE__ */
|
|
22313
|
+
!disabled && dirty && showClearButton && /* @__PURE__ */ jsx118(Tooltip_default, { title: t("AUTOCOMPLETE.CLEAR"), children: /* @__PURE__ */ jsx118(
|
|
22366
22314
|
IconButton_default,
|
|
22367
22315
|
{
|
|
22368
22316
|
iconId: "close",
|
|
@@ -22385,7 +22333,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22385
22333
|
"data-test": "clear-autocomplete"
|
|
22386
22334
|
}
|
|
22387
22335
|
) }),
|
|
22388
|
-
!disabled && dirty && showClearButton && /* @__PURE__ */
|
|
22336
|
+
!disabled && dirty && showClearButton && /* @__PURE__ */ jsx118(
|
|
22389
22337
|
Divider_default,
|
|
22390
22338
|
{
|
|
22391
22339
|
variant: "middle",
|
|
@@ -22393,11 +22341,11 @@ var Autocomplete = function Autocomplete2({
|
|
|
22393
22341
|
flexItem: true
|
|
22394
22342
|
}
|
|
22395
22343
|
),
|
|
22396
|
-
!disabled && variant !== "text" && /* @__PURE__ */
|
|
22344
|
+
!disabled && variant !== "text" && /* @__PURE__ */ jsx118(
|
|
22397
22345
|
Tooltip_default,
|
|
22398
22346
|
{
|
|
22399
22347
|
title: isOpen ? t("AUTOCOMPLETE.COLLAPSE") : t("AUTOCOMPLETE.EXPAND"),
|
|
22400
|
-
children: /* @__PURE__ */
|
|
22348
|
+
children: /* @__PURE__ */ jsx118(
|
|
22401
22349
|
IconButton_default,
|
|
22402
22350
|
{
|
|
22403
22351
|
ref: expandSelectButtonRef,
|
|
@@ -22419,7 +22367,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22419
22367
|
autoComplete: "off"
|
|
22420
22368
|
}
|
|
22421
22369
|
),
|
|
22422
|
-
/* @__PURE__ */
|
|
22370
|
+
/* @__PURE__ */ jsx118(
|
|
22423
22371
|
ClickAwayListener,
|
|
22424
22372
|
{
|
|
22425
22373
|
onClickAway: (event) => {
|
|
@@ -22444,13 +22392,13 @@ var Autocomplete = function Autocomplete2({
|
|
|
22444
22392
|
}
|
|
22445
22393
|
},
|
|
22446
22394
|
mouseEvent: "onMouseDown",
|
|
22447
|
-
children: /* @__PURE__ */
|
|
22395
|
+
children: /* @__PURE__ */ jsx118(
|
|
22448
22396
|
Popper,
|
|
22449
22397
|
{
|
|
22450
22398
|
anchorEl: anchorRef.current,
|
|
22451
22399
|
open: isOpen,
|
|
22452
22400
|
sx: { zIndex: 3e3 },
|
|
22453
|
-
children: /* @__PURE__ */
|
|
22401
|
+
children: /* @__PURE__ */ jsx118(Paper_default, { sx: { boxShadow: shadows[1], borderRadius: "8px" }, children: /* @__PURE__ */ jsxs57(
|
|
22454
22402
|
Box_default2,
|
|
22455
22403
|
{
|
|
22456
22404
|
sx: {
|
|
@@ -22462,22 +22410,22 @@ var Autocomplete = function Autocomplete2({
|
|
|
22462
22410
|
className: "Slim-Vertical-Scroll",
|
|
22463
22411
|
ref: listRef,
|
|
22464
22412
|
children: [
|
|
22465
|
-
isLoading && /* @__PURE__ */
|
|
22413
|
+
isLoading && /* @__PURE__ */ jsx118(
|
|
22466
22414
|
ListItem_default,
|
|
22467
22415
|
{
|
|
22468
22416
|
text: loadingText ?? t("AUTOCOMPLETE.LOADING")
|
|
22469
22417
|
}
|
|
22470
22418
|
),
|
|
22471
|
-
!isLoading && filteredOptions.length === 0 && /* @__PURE__ */
|
|
22419
|
+
!isLoading && filteredOptions.length === 0 && /* @__PURE__ */ jsx118(
|
|
22472
22420
|
ListItem_default,
|
|
22473
22421
|
{
|
|
22474
22422
|
text: noOptionsText ?? t("AUTOCOMPLETE.NO_OPTIONS")
|
|
22475
22423
|
}
|
|
22476
22424
|
),
|
|
22477
|
-
!isLoading && filteredOptions.length > 0 && /* @__PURE__ */
|
|
22425
|
+
!isLoading && filteredOptions.length > 0 && /* @__PURE__ */ jsx118(AutoSizer5, { children: ({
|
|
22478
22426
|
height: height2,
|
|
22479
22427
|
width: width2
|
|
22480
|
-
}) => /* @__PURE__ */
|
|
22428
|
+
}) => /* @__PURE__ */ jsx118(
|
|
22481
22429
|
FixedSizeList3,
|
|
22482
22430
|
{
|
|
22483
22431
|
overscanCount: 3,
|
|
@@ -22545,7 +22493,7 @@ import CodeMirror, {
|
|
|
22545
22493
|
} from "@uiw/react-codemirror";
|
|
22546
22494
|
import { html } from "@codemirror/lang-html";
|
|
22547
22495
|
import { linter, lintGutter } from "@codemirror/lint";
|
|
22548
|
-
import { jsx as
|
|
22496
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
22549
22497
|
var removeFocusOutline = EditorView.baseTheme({
|
|
22550
22498
|
"&.cm-focused": {
|
|
22551
22499
|
outline: "none"
|
|
@@ -22567,7 +22515,7 @@ var CodeEditor = function CodeEditor2({
|
|
|
22567
22515
|
linter(linterOptions?.source || null, linterOptions?.config),
|
|
22568
22516
|
...extensions
|
|
22569
22517
|
] : extensions;
|
|
22570
|
-
return /* @__PURE__ */
|
|
22518
|
+
return /* @__PURE__ */ jsx119(
|
|
22571
22519
|
CodeMirror,
|
|
22572
22520
|
{
|
|
22573
22521
|
...rest,
|
|
@@ -22586,7 +22534,7 @@ var CodeEditor_default = React65.forwardRef(CodeEditor);
|
|
|
22586
22534
|
|
|
22587
22535
|
// src/components/input/CodeEditorPopup.tsx
|
|
22588
22536
|
import format from "html-format";
|
|
22589
|
-
import { Fragment as Fragment26, jsx as
|
|
22537
|
+
import { Fragment as Fragment26, jsx as jsx120, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
22590
22538
|
var FORMAT_CHARACTERS_LINE = 120;
|
|
22591
22539
|
var FORMAT_NUMBER_SPACES_INDENTATION = 2;
|
|
22592
22540
|
var CodeEditorPopup = ({
|
|
@@ -22630,7 +22578,7 @@ var CodeEditorPopup = ({
|
|
|
22630
22578
|
FORMAT_CHARACTERS_LINE
|
|
22631
22579
|
);
|
|
22632
22580
|
return /* @__PURE__ */ jsxs58(Fragment26, { children: [
|
|
22633
|
-
readonly && /* @__PURE__ */
|
|
22581
|
+
readonly && /* @__PURE__ */ jsx120(
|
|
22634
22582
|
Dialog_default,
|
|
22635
22583
|
{
|
|
22636
22584
|
open,
|
|
@@ -22649,7 +22597,7 @@ var CodeEditorPopup = ({
|
|
|
22649
22597
|
justifyContent: "space-between",
|
|
22650
22598
|
paddingTop: "20px",
|
|
22651
22599
|
children: [
|
|
22652
|
-
/* @__PURE__ */
|
|
22600
|
+
/* @__PURE__ */ jsx120(
|
|
22653
22601
|
Box_default2,
|
|
22654
22602
|
{
|
|
22655
22603
|
flexGrow: 1,
|
|
@@ -22666,7 +22614,7 @@ var CodeEditorPopup = ({
|
|
|
22666
22614
|
}
|
|
22667
22615
|
},
|
|
22668
22616
|
children: [
|
|
22669
|
-
/* @__PURE__ */
|
|
22617
|
+
/* @__PURE__ */ jsx120(Box_default2, { flexGrow: 1, minHeight: 0, children: /* @__PURE__ */ jsx120(
|
|
22670
22618
|
CodeEditor_default,
|
|
22671
22619
|
{
|
|
22672
22620
|
autoFocus: true,
|
|
@@ -22695,7 +22643,7 @@ var CodeEditorPopup = ({
|
|
|
22695
22643
|
}
|
|
22696
22644
|
) }),
|
|
22697
22645
|
messageNode,
|
|
22698
|
-
hasErrors && /* @__PURE__ */
|
|
22646
|
+
hasErrors && /* @__PURE__ */ jsx120(Alert_default, { severity: "info", children: t(
|
|
22699
22647
|
"TEXT_EDITOR.SOURCE_CODE.VALIDATION_ERRORS_FOUND"
|
|
22700
22648
|
) })
|
|
22701
22649
|
]
|
|
@@ -22703,13 +22651,13 @@ var CodeEditorPopup = ({
|
|
|
22703
22651
|
)
|
|
22704
22652
|
}
|
|
22705
22653
|
),
|
|
22706
|
-
/* @__PURE__ */
|
|
22654
|
+
/* @__PURE__ */ jsx120(
|
|
22707
22655
|
Box_default2,
|
|
22708
22656
|
{
|
|
22709
22657
|
sx: {
|
|
22710
22658
|
padding: "16px 24px 16px 24px"
|
|
22711
22659
|
},
|
|
22712
|
-
children: /* @__PURE__ */
|
|
22660
|
+
children: /* @__PURE__ */ jsx120(
|
|
22713
22661
|
Button_default,
|
|
22714
22662
|
{
|
|
22715
22663
|
text: t(
|
|
@@ -22726,7 +22674,7 @@ var CodeEditorPopup = ({
|
|
|
22726
22674
|
)
|
|
22727
22675
|
}
|
|
22728
22676
|
),
|
|
22729
|
-
!readonly && /* @__PURE__ */
|
|
22677
|
+
!readonly && /* @__PURE__ */ jsx120(
|
|
22730
22678
|
ConfirmationDialog_default,
|
|
22731
22679
|
{
|
|
22732
22680
|
fullScreen: true,
|
|
@@ -22745,7 +22693,7 @@ var CodeEditorPopup = ({
|
|
|
22745
22693
|
}
|
|
22746
22694
|
},
|
|
22747
22695
|
children: [
|
|
22748
|
-
codeEditorSubtitle && /* @__PURE__ */
|
|
22696
|
+
codeEditorSubtitle && /* @__PURE__ */ jsx120(Box_default2, { sx: { marginTop: "4px", marginBottom: "8px" }, children: /* @__PURE__ */ jsx120(
|
|
22749
22697
|
Typography_default,
|
|
22750
22698
|
{
|
|
22751
22699
|
variant: "body2",
|
|
@@ -22753,7 +22701,7 @@ var CodeEditorPopup = ({
|
|
|
22753
22701
|
children: codeEditorSubtitle
|
|
22754
22702
|
}
|
|
22755
22703
|
) }),
|
|
22756
|
-
/* @__PURE__ */
|
|
22704
|
+
/* @__PURE__ */ jsx120(Box_default2, { flexGrow: 1, minHeight: 0, children: /* @__PURE__ */ jsx120(
|
|
22757
22705
|
CodeEditor_default,
|
|
22758
22706
|
{
|
|
22759
22707
|
autoFocus: true,
|
|
@@ -22782,7 +22730,7 @@ var CodeEditorPopup = ({
|
|
|
22782
22730
|
}
|
|
22783
22731
|
) }),
|
|
22784
22732
|
messageNode,
|
|
22785
|
-
hasErrors && /* @__PURE__ */
|
|
22733
|
+
hasErrors && /* @__PURE__ */ jsx120(Alert_default, { severity: "info", children: t(
|
|
22786
22734
|
"TEXT_EDITOR.SOURCE_CODE.VALIDATION_ERRORS_FOUND"
|
|
22787
22735
|
) })
|
|
22788
22736
|
]
|
|
@@ -22795,7 +22743,7 @@ var CodeEditorPopup = ({
|
|
|
22795
22743
|
var CodeEditorPopup_default = CodeEditorPopup;
|
|
22796
22744
|
|
|
22797
22745
|
// src/components/input/TextEditor.tsx
|
|
22798
|
-
import { Fragment as Fragment27, jsx as
|
|
22746
|
+
import { Fragment as Fragment27, jsx as jsx121, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
22799
22747
|
var DEFAULT_TOOLBAR_INSERT_MENU_ITEMS = [
|
|
22800
22748
|
"link",
|
|
22801
22749
|
"image",
|
|
@@ -23082,7 +23030,7 @@ var TextEditor = function TextEditor2({
|
|
|
23082
23030
|
}
|
|
23083
23031
|
};
|
|
23084
23032
|
return /* @__PURE__ */ jsxs59(Fragment27, { children: [
|
|
23085
|
-
/* @__PURE__ */
|
|
23033
|
+
/* @__PURE__ */ jsx121(
|
|
23086
23034
|
Editor,
|
|
23087
23035
|
{
|
|
23088
23036
|
id,
|
|
@@ -23102,7 +23050,7 @@ var TextEditor = function TextEditor2({
|
|
|
23102
23050
|
...rest
|
|
23103
23051
|
}
|
|
23104
23052
|
),
|
|
23105
|
-
/* @__PURE__ */
|
|
23053
|
+
/* @__PURE__ */ jsx121(
|
|
23106
23054
|
CodeEditorPopup_default,
|
|
23107
23055
|
{
|
|
23108
23056
|
value: contentValue,
|
|
@@ -23142,14 +23090,14 @@ import { TimeField as MuiTimeField } from "@mui/x-date-pickers";
|
|
|
23142
23090
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
23143
23091
|
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
|
|
23144
23092
|
import { tz as tz6 } from "moment-timezone";
|
|
23145
|
-
import { jsx as
|
|
23093
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
23146
23094
|
var ExtendedTextField = ({
|
|
23147
23095
|
inputProps,
|
|
23148
23096
|
ownerState,
|
|
23149
23097
|
InputProps,
|
|
23150
23098
|
error,
|
|
23151
23099
|
...rest
|
|
23152
|
-
}) => /* @__PURE__ */
|
|
23100
|
+
}) => /* @__PURE__ */ jsx122(TextField_default, { ...inputProps, ...rest });
|
|
23153
23101
|
var TimeField = function TimeField2({
|
|
23154
23102
|
onChange,
|
|
23155
23103
|
value,
|
|
@@ -23178,7 +23126,7 @@ var TimeField = function TimeField2({
|
|
|
23178
23126
|
},
|
|
23179
23127
|
[onChange]
|
|
23180
23128
|
);
|
|
23181
|
-
return /* @__PURE__ */
|
|
23129
|
+
return /* @__PURE__ */ jsx122(LocalizationProvider, { dateAdapter: AdapterMoment, children: /* @__PURE__ */ jsx122(
|
|
23182
23130
|
MuiTimeField,
|
|
23183
23131
|
{
|
|
23184
23132
|
onChange: _onChange,
|
|
@@ -23198,7 +23146,7 @@ var TimeField_default = TimeField;
|
|
|
23198
23146
|
|
|
23199
23147
|
// src/components/input/PhoneField.tsx
|
|
23200
23148
|
import * as React69 from "react";
|
|
23201
|
-
import { Fragment as Fragment28, jsx as
|
|
23149
|
+
import { Fragment as Fragment28, jsx as jsx123, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
23202
23150
|
var maxPhoneLengthWithPrefix = 16;
|
|
23203
23151
|
var PhoneField = React69.forwardRef(function PhoneField2({
|
|
23204
23152
|
value,
|
|
@@ -23261,7 +23209,7 @@ var PhoneField = React69.forwardRef(function PhoneField2({
|
|
|
23261
23209
|
setCountryCode(countryCode2);
|
|
23262
23210
|
setTextValue(phone);
|
|
23263
23211
|
}, [value]);
|
|
23264
|
-
const select = /* @__PURE__ */
|
|
23212
|
+
const select = /* @__PURE__ */ jsx123(
|
|
23265
23213
|
Select_default,
|
|
23266
23214
|
{
|
|
23267
23215
|
className: "Cn-PhoneField-countryCodeSelector",
|
|
@@ -23277,7 +23225,7 @@ var PhoneField = React69.forwardRef(function PhoneField2({
|
|
|
23277
23225
|
}
|
|
23278
23226
|
}
|
|
23279
23227
|
);
|
|
23280
|
-
return /* @__PURE__ */
|
|
23228
|
+
return /* @__PURE__ */ jsx123(
|
|
23281
23229
|
TextField_default,
|
|
23282
23230
|
{
|
|
23283
23231
|
groupElements: true,
|
|
@@ -23297,7 +23245,7 @@ var PhoneField_default = PhoneField;
|
|
|
23297
23245
|
|
|
23298
23246
|
// src/components/input/NumberField.tsx
|
|
23299
23247
|
import * as React70 from "react";
|
|
23300
|
-
import { jsx as
|
|
23248
|
+
import { jsx as jsx124, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
23301
23249
|
var setValueAndTriggerChangeEvent = (r2, value) => {
|
|
23302
23250
|
const propDescriptor = Object.getOwnPropertyDescriptor(
|
|
23303
23251
|
window["HTMLInputElement"].prototype,
|
|
@@ -23460,12 +23408,12 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23460
23408
|
}
|
|
23461
23409
|
},
|
|
23462
23410
|
children: [
|
|
23463
|
-
/* @__PURE__ */
|
|
23411
|
+
/* @__PURE__ */ jsx124(
|
|
23464
23412
|
Tooltip_default,
|
|
23465
23413
|
{
|
|
23466
23414
|
title: stepUpDisabledTooltip && stepUpDisabled ? stepUpDisabledTooltip : "",
|
|
23467
23415
|
allowDisabled: true,
|
|
23468
|
-
children: /* @__PURE__ */
|
|
23416
|
+
children: /* @__PURE__ */ jsx124(
|
|
23469
23417
|
IconButton_default,
|
|
23470
23418
|
{
|
|
23471
23419
|
disabled: stepUpDisabled,
|
|
@@ -23476,12 +23424,12 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23476
23424
|
)
|
|
23477
23425
|
}
|
|
23478
23426
|
),
|
|
23479
|
-
/* @__PURE__ */
|
|
23427
|
+
/* @__PURE__ */ jsx124(
|
|
23480
23428
|
Tooltip_default,
|
|
23481
23429
|
{
|
|
23482
23430
|
title: stepDownDisabledTooltip && stepDownDisabled ? stepDownDisabledTooltip : "",
|
|
23483
23431
|
allowDisabled: true,
|
|
23484
|
-
children: /* @__PURE__ */
|
|
23432
|
+
children: /* @__PURE__ */ jsx124(
|
|
23485
23433
|
IconButton_default,
|
|
23486
23434
|
{
|
|
23487
23435
|
disabled: stepDownDisabled,
|
|
@@ -23501,7 +23449,7 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23501
23449
|
setTextValue(numberToString(value));
|
|
23502
23450
|
}
|
|
23503
23451
|
}, [numberToString, stringToNumber, textValue, value]);
|
|
23504
|
-
return /* @__PURE__ */
|
|
23452
|
+
return /* @__PURE__ */ jsx124(
|
|
23505
23453
|
TextField_default,
|
|
23506
23454
|
{
|
|
23507
23455
|
...rest,
|
|
@@ -23523,7 +23471,7 @@ import { tz as tz8 } from "moment-timezone";
|
|
|
23523
23471
|
// src/components/input/DatePickerStatic.tsx
|
|
23524
23472
|
import * as React71 from "react";
|
|
23525
23473
|
import { tz as tz7 } from "moment-timezone";
|
|
23526
|
-
import { jsx as
|
|
23474
|
+
import { jsx as jsx125, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
23527
23475
|
var minYear = 1900;
|
|
23528
23476
|
var maxYear = 2100;
|
|
23529
23477
|
var DatePickerStatic = ({
|
|
@@ -23631,7 +23579,7 @@ var DatePickerStatic = ({
|
|
|
23631
23579
|
spacing: 2,
|
|
23632
23580
|
justifyContent: "space-between",
|
|
23633
23581
|
children: [
|
|
23634
|
-
/* @__PURE__ */
|
|
23582
|
+
/* @__PURE__ */ jsx125(
|
|
23635
23583
|
Select_default,
|
|
23636
23584
|
{
|
|
23637
23585
|
value: visibleMonth.year,
|
|
@@ -23640,7 +23588,7 @@ var DatePickerStatic = ({
|
|
|
23640
23588
|
}
|
|
23641
23589
|
),
|
|
23642
23590
|
/* @__PURE__ */ jsxs62(Stack_default, { direction: "row", spacing: 2, children: [
|
|
23643
|
-
/* @__PURE__ */
|
|
23591
|
+
/* @__PURE__ */ jsx125(
|
|
23644
23592
|
IconButton_default,
|
|
23645
23593
|
{
|
|
23646
23594
|
disabled: isDisabledPreviousMonth,
|
|
@@ -23648,7 +23596,7 @@ var DatePickerStatic = ({
|
|
|
23648
23596
|
onClick: navigatePreviousMonth
|
|
23649
23597
|
}
|
|
23650
23598
|
),
|
|
23651
|
-
/* @__PURE__ */
|
|
23599
|
+
/* @__PURE__ */ jsx125(
|
|
23652
23600
|
IconButton_default,
|
|
23653
23601
|
{
|
|
23654
23602
|
disabled: isDisabledNextMonth,
|
|
@@ -23660,8 +23608,8 @@ var DatePickerStatic = ({
|
|
|
23660
23608
|
]
|
|
23661
23609
|
}
|
|
23662
23610
|
),
|
|
23663
|
-
/* @__PURE__ */
|
|
23664
|
-
/* @__PURE__ */
|
|
23611
|
+
/* @__PURE__ */ jsx125(DaysOfWeekRow_default, {}),
|
|
23612
|
+
/* @__PURE__ */ jsx125(Box_default2, { sx: { padding: "8px" }, children: /* @__PURE__ */ jsx125(
|
|
23665
23613
|
CalendarMonth_default,
|
|
23666
23614
|
{
|
|
23667
23615
|
allowKeyboardNavigation: true,
|
|
@@ -23698,14 +23646,14 @@ var DatePickerStatic = ({
|
|
|
23698
23646
|
var DatePickerStatic_default = DatePickerStatic;
|
|
23699
23647
|
|
|
23700
23648
|
// src/components/input/DatePickerPopover.tsx
|
|
23701
|
-
import { jsx as
|
|
23649
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
23702
23650
|
var DatePickerPopover = ({
|
|
23703
23651
|
value,
|
|
23704
23652
|
onSelect,
|
|
23705
23653
|
minDate,
|
|
23706
23654
|
maxDate,
|
|
23707
23655
|
...rest
|
|
23708
|
-
}) => /* @__PURE__ */
|
|
23656
|
+
}) => /* @__PURE__ */ jsx126(Popover_default, { anchorHorizontalOrigin: "right", horizontalAlign: "right", ...rest, children: /* @__PURE__ */ jsx126(
|
|
23709
23657
|
DatePickerStatic_default,
|
|
23710
23658
|
{
|
|
23711
23659
|
value,
|
|
@@ -23717,7 +23665,7 @@ var DatePickerPopover = ({
|
|
|
23717
23665
|
var DatePickerPopover_default = DatePickerPopover;
|
|
23718
23666
|
|
|
23719
23667
|
// src/components/input/DatePicker.tsx
|
|
23720
|
-
import { Fragment as Fragment29, jsx as
|
|
23668
|
+
import { Fragment as Fragment29, jsx as jsx127, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
23721
23669
|
var DatePicker = React72.forwardRef(
|
|
23722
23670
|
function DatePicker2({ value, onChange, onBlur, onKeyDown, minDate, maxDate, ...rest }, ref) {
|
|
23723
23671
|
const { locale, timezone } = React72.useContext(IntlContext);
|
|
@@ -23794,7 +23742,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23794
23742
|
setTextValue(text);
|
|
23795
23743
|
}, [dateInputFormat, timezone, value]);
|
|
23796
23744
|
return /* @__PURE__ */ jsxs63(Fragment29, { children: [
|
|
23797
|
-
/* @__PURE__ */
|
|
23745
|
+
/* @__PURE__ */ jsx127(
|
|
23798
23746
|
TextField_default,
|
|
23799
23747
|
{
|
|
23800
23748
|
ref,
|
|
@@ -23805,7 +23753,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23805
23753
|
onChange: onChangeTextField,
|
|
23806
23754
|
onBlur: onBlurTextField,
|
|
23807
23755
|
onKeyDown: onKeyDownTextField,
|
|
23808
|
-
endAdornment: /* @__PURE__ */
|
|
23756
|
+
endAdornment: /* @__PURE__ */ jsx127(
|
|
23809
23757
|
IconButton_default,
|
|
23810
23758
|
{
|
|
23811
23759
|
"data-testid": "date-picker-open-button",
|
|
@@ -23817,7 +23765,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23817
23765
|
)
|
|
23818
23766
|
}
|
|
23819
23767
|
),
|
|
23820
|
-
/* @__PURE__ */
|
|
23768
|
+
/* @__PURE__ */ jsx127(
|
|
23821
23769
|
DatePickerPopover_default,
|
|
23822
23770
|
{
|
|
23823
23771
|
anchorEl,
|
|
@@ -23836,14 +23784,14 @@ var DatePicker_default = DatePicker;
|
|
|
23836
23784
|
// src/components/input/Checkbox.tsx
|
|
23837
23785
|
import MuiCheckbox from "@mui/material/Checkbox";
|
|
23838
23786
|
import { FormControlLabel, FormGroup } from "@mui/material";
|
|
23839
|
-
import { Fragment as Fragment30, jsx as
|
|
23787
|
+
import { Fragment as Fragment30, jsx as jsx128, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
23840
23788
|
var MaterialCheckbox = ({
|
|
23841
23789
|
checked,
|
|
23842
23790
|
disabled,
|
|
23843
23791
|
inputClass,
|
|
23844
23792
|
indeterminate,
|
|
23845
23793
|
onChange
|
|
23846
|
-
}) => /* @__PURE__ */
|
|
23794
|
+
}) => /* @__PURE__ */ jsx128(
|
|
23847
23795
|
MuiCheckbox,
|
|
23848
23796
|
{
|
|
23849
23797
|
disabled,
|
|
@@ -23870,7 +23818,7 @@ var Checkbox = ({
|
|
|
23870
23818
|
onChange,
|
|
23871
23819
|
tabIndex
|
|
23872
23820
|
}) => /* @__PURE__ */ jsxs64(Fragment30, { children: [
|
|
23873
|
-
!label && /* @__PURE__ */
|
|
23821
|
+
!label && /* @__PURE__ */ jsx128(
|
|
23874
23822
|
MaterialCheckbox,
|
|
23875
23823
|
{
|
|
23876
23824
|
disabled,
|
|
@@ -23881,11 +23829,11 @@ var Checkbox = ({
|
|
|
23881
23829
|
inputClass
|
|
23882
23830
|
}
|
|
23883
23831
|
),
|
|
23884
|
-
label && /* @__PURE__ */
|
|
23832
|
+
label && /* @__PURE__ */ jsx128(FormGroup, { children: /* @__PURE__ */ jsx128(
|
|
23885
23833
|
FormControlLabel,
|
|
23886
23834
|
{
|
|
23887
23835
|
value: label,
|
|
23888
|
-
control: /* @__PURE__ */
|
|
23836
|
+
control: /* @__PURE__ */ jsx128(
|
|
23889
23837
|
MaterialCheckbox,
|
|
23890
23838
|
{
|
|
23891
23839
|
disabled,
|
|
@@ -23896,7 +23844,7 @@ var Checkbox = ({
|
|
|
23896
23844
|
inputClass
|
|
23897
23845
|
}
|
|
23898
23846
|
),
|
|
23899
|
-
label: /* @__PURE__ */
|
|
23847
|
+
label: /* @__PURE__ */ jsx128(Typography_default, { variant: "body2", children: label }),
|
|
23900
23848
|
labelPlacement,
|
|
23901
23849
|
sx: {
|
|
23902
23850
|
margin: 0,
|
|
@@ -23911,7 +23859,7 @@ var Checkbox_default = Checkbox;
|
|
|
23911
23859
|
import * as React73 from "react";
|
|
23912
23860
|
import MuiRadio from "@mui/material/Radio";
|
|
23913
23861
|
import { FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
23914
|
-
import { Fragment as Fragment31, jsx as
|
|
23862
|
+
import { Fragment as Fragment31, jsx as jsx129, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
23915
23863
|
var Radio = React73.forwardRef(function Radio2({
|
|
23916
23864
|
label,
|
|
23917
23865
|
labelPlacement = "end",
|
|
@@ -23929,7 +23877,7 @@ var Radio = React73.forwardRef(function Radio2({
|
|
|
23929
23877
|
},
|
|
23930
23878
|
[onChange]
|
|
23931
23879
|
);
|
|
23932
|
-
const radio = /* @__PURE__ */
|
|
23880
|
+
const radio = /* @__PURE__ */ jsx129(
|
|
23933
23881
|
MuiRadio,
|
|
23934
23882
|
{
|
|
23935
23883
|
className: `Cn-Radio ${className}`,
|
|
@@ -23950,11 +23898,11 @@ var Radio = React73.forwardRef(function Radio2({
|
|
|
23950
23898
|
);
|
|
23951
23899
|
return /* @__PURE__ */ jsxs65(Fragment31, { children: [
|
|
23952
23900
|
!label && radio,
|
|
23953
|
-
label && /* @__PURE__ */
|
|
23901
|
+
label && /* @__PURE__ */ jsx129(
|
|
23954
23902
|
FormControlLabel2,
|
|
23955
23903
|
{
|
|
23956
23904
|
control: radio,
|
|
23957
|
-
label: /* @__PURE__ */
|
|
23905
|
+
label: /* @__PURE__ */ jsx129(Typography_default, { variant: "body2", children: label }),
|
|
23958
23906
|
labelPlacement,
|
|
23959
23907
|
sx: {
|
|
23960
23908
|
margin: 0,
|
|
@@ -23968,7 +23916,7 @@ var Radio_default = Radio;
|
|
|
23968
23916
|
|
|
23969
23917
|
// src/components/input/PageSelector.tsx
|
|
23970
23918
|
import * as React74 from "react";
|
|
23971
|
-
import { jsx as
|
|
23919
|
+
import { jsx as jsx130, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
23972
23920
|
var PageSelector = ({
|
|
23973
23921
|
currentPage,
|
|
23974
23922
|
pageSize,
|
|
@@ -23995,7 +23943,7 @@ var PageSelector = ({
|
|
|
23995
23943
|
justifyContent: "flex-end",
|
|
23996
23944
|
flexGrow: 1,
|
|
23997
23945
|
children: [
|
|
23998
|
-
text && /* @__PURE__ */
|
|
23946
|
+
text && /* @__PURE__ */ jsx130(Typography_default, { variant: "body2", children: /* @__PURE__ */ jsx130(
|
|
23999
23947
|
"div",
|
|
24000
23948
|
{
|
|
24001
23949
|
dangerouslySetInnerHTML: {
|
|
@@ -24004,7 +23952,7 @@ var PageSelector = ({
|
|
|
24004
23952
|
}
|
|
24005
23953
|
) }),
|
|
24006
23954
|
/* @__PURE__ */ jsxs66(Stack_default, { direction: "row", alignItems: "center", children: [
|
|
24007
|
-
/* @__PURE__ */
|
|
23955
|
+
/* @__PURE__ */ jsx130(
|
|
24008
23956
|
IconButton_default,
|
|
24009
23957
|
{
|
|
24010
23958
|
iconId: "chevron-left",
|
|
@@ -24012,7 +23960,7 @@ var PageSelector = ({
|
|
|
24012
23960
|
disabled: currentPage <= 1
|
|
24013
23961
|
}
|
|
24014
23962
|
),
|
|
24015
|
-
/* @__PURE__ */
|
|
23963
|
+
/* @__PURE__ */ jsx130(
|
|
24016
23964
|
NumberField_default,
|
|
24017
23965
|
{
|
|
24018
23966
|
value: currentPage,
|
|
@@ -24030,7 +23978,7 @@ var PageSelector = ({
|
|
|
24030
23978
|
}
|
|
24031
23979
|
}
|
|
24032
23980
|
),
|
|
24033
|
-
/* @__PURE__ */
|
|
23981
|
+
/* @__PURE__ */ jsx130(
|
|
24034
23982
|
IconButton_default,
|
|
24035
23983
|
{
|
|
24036
23984
|
iconId: "chevron-right",
|
|
@@ -24050,13 +23998,13 @@ import Fade from "@mui/material/Fade";
|
|
|
24050
23998
|
|
|
24051
23999
|
// src/components/progress/LinearProgress.tsx
|
|
24052
24000
|
import MuiLinearProgress from "@mui/material/LinearProgress";
|
|
24053
|
-
import { jsx as
|
|
24001
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
24054
24002
|
var LinearProgress = ({
|
|
24055
24003
|
color: color2,
|
|
24056
24004
|
backgroundColor: backgroundColor2,
|
|
24057
24005
|
variant = "indeterminate",
|
|
24058
24006
|
...rest
|
|
24059
|
-
}) => /* @__PURE__ */
|
|
24007
|
+
}) => /* @__PURE__ */ jsx131(
|
|
24060
24008
|
MuiLinearProgress,
|
|
24061
24009
|
{
|
|
24062
24010
|
...rest,
|
|
@@ -24083,7 +24031,7 @@ import * as React75 from "react";
|
|
|
24083
24031
|
import MuiCircularProgress from "@mui/material/CircularProgress";
|
|
24084
24032
|
import Typography3 from "@mui/material/Typography";
|
|
24085
24033
|
import Box4 from "@mui/material/Box";
|
|
24086
|
-
import { jsx as
|
|
24034
|
+
import { jsx as jsx132, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
24087
24035
|
var circularSizes = {
|
|
24088
24036
|
XS: "20px",
|
|
24089
24037
|
SM: "24px",
|
|
@@ -24122,7 +24070,7 @@ var CircularProgress = ({
|
|
|
24122
24070
|
}
|
|
24123
24071
|
},
|
|
24124
24072
|
children: [
|
|
24125
|
-
gradientColors && /* @__PURE__ */
|
|
24073
|
+
gradientColors && /* @__PURE__ */ jsx132("svg", { width: 0, height: 0, children: /* @__PURE__ */ jsx132("defs", { children: /* @__PURE__ */ jsxs67(
|
|
24126
24074
|
"linearGradient",
|
|
24127
24075
|
{
|
|
24128
24076
|
id: gradientName.current,
|
|
@@ -24131,14 +24079,14 @@ var CircularProgress = ({
|
|
|
24131
24079
|
x2: "0%",
|
|
24132
24080
|
y2: "100%",
|
|
24133
24081
|
children: [
|
|
24134
|
-
/* @__PURE__ */
|
|
24082
|
+
/* @__PURE__ */ jsx132(
|
|
24135
24083
|
"stop",
|
|
24136
24084
|
{
|
|
24137
24085
|
offset: "0%",
|
|
24138
24086
|
stopColor: gradientColors.startColor
|
|
24139
24087
|
}
|
|
24140
24088
|
),
|
|
24141
|
-
/* @__PURE__ */
|
|
24089
|
+
/* @__PURE__ */ jsx132(
|
|
24142
24090
|
"stop",
|
|
24143
24091
|
{
|
|
24144
24092
|
offset: "100%",
|
|
@@ -24148,7 +24096,7 @@ var CircularProgress = ({
|
|
|
24148
24096
|
]
|
|
24149
24097
|
}
|
|
24150
24098
|
) }) }),
|
|
24151
|
-
showCircularBackground && /* @__PURE__ */
|
|
24099
|
+
showCircularBackground && /* @__PURE__ */ jsx132(
|
|
24152
24100
|
Box4,
|
|
24153
24101
|
{
|
|
24154
24102
|
sx: {
|
|
@@ -24161,7 +24109,7 @@ var CircularProgress = ({
|
|
|
24161
24109
|
maxHeight: circularSizes[size]
|
|
24162
24110
|
}
|
|
24163
24111
|
},
|
|
24164
|
-
children: /* @__PURE__ */
|
|
24112
|
+
children: /* @__PURE__ */ jsx132(
|
|
24165
24113
|
MuiCircularProgress,
|
|
24166
24114
|
{
|
|
24167
24115
|
variant: "determinate",
|
|
@@ -24173,7 +24121,7 @@ var CircularProgress = ({
|
|
|
24173
24121
|
)
|
|
24174
24122
|
}
|
|
24175
24123
|
),
|
|
24176
|
-
/* @__PURE__ */
|
|
24124
|
+
/* @__PURE__ */ jsx132(
|
|
24177
24125
|
MuiCircularProgress,
|
|
24178
24126
|
{
|
|
24179
24127
|
variant,
|
|
@@ -24202,7 +24150,7 @@ var CircularProgress = ({
|
|
|
24202
24150
|
thickness
|
|
24203
24151
|
}
|
|
24204
24152
|
),
|
|
24205
|
-
variant !== "indeterminate" && /* @__PURE__ */
|
|
24153
|
+
variant !== "indeterminate" && /* @__PURE__ */ jsx132(
|
|
24206
24154
|
Box4,
|
|
24207
24155
|
{
|
|
24208
24156
|
sx: {
|
|
@@ -24217,7 +24165,7 @@ var CircularProgress = ({
|
|
|
24217
24165
|
height: circularSizes[size],
|
|
24218
24166
|
width: circularSizes[size]
|
|
24219
24167
|
},
|
|
24220
|
-
children: typeof label === "string" ? /* @__PURE__ */
|
|
24168
|
+
children: typeof label === "string" ? /* @__PURE__ */ jsx132(
|
|
24221
24169
|
Typography3,
|
|
24222
24170
|
{
|
|
24223
24171
|
variant: typographyVariant,
|
|
@@ -24237,7 +24185,7 @@ var CircularProgress_default = CircularProgress;
|
|
|
24237
24185
|
// src/components/progress/DonutProgress.tsx
|
|
24238
24186
|
import Box5 from "@mui/material/Box";
|
|
24239
24187
|
import { Stack as Stack10 } from "@mui/material";
|
|
24240
|
-
import { jsx as
|
|
24188
|
+
import { jsx as jsx133, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
24241
24189
|
var CIRCULAR_PROGRESS_PERCENTAGE = 85;
|
|
24242
24190
|
var variants2 = {
|
|
24243
24191
|
empty: {
|
|
@@ -24274,8 +24222,8 @@ var DonutProgress = ({
|
|
|
24274
24222
|
showPercentageSymbol
|
|
24275
24223
|
}) => {
|
|
24276
24224
|
const getPercentageWithSymbol = () => /* @__PURE__ */ jsxs68(Stack10, { direction: "row", alignItems: "center", position: "relative", children: [
|
|
24277
|
-
/* @__PURE__ */
|
|
24278
|
-
/* @__PURE__ */
|
|
24225
|
+
/* @__PURE__ */ jsx133(Typography_default, { variant: "h6", component: "div", color: grey800, children: label }),
|
|
24226
|
+
/* @__PURE__ */ jsx133(
|
|
24279
24227
|
Typography_default,
|
|
24280
24228
|
{
|
|
24281
24229
|
variant: "tooltip",
|
|
@@ -24294,7 +24242,7 @@ var DonutProgress = ({
|
|
|
24294
24242
|
width: "fit-content"
|
|
24295
24243
|
},
|
|
24296
24244
|
children: [
|
|
24297
|
-
/* @__PURE__ */
|
|
24245
|
+
/* @__PURE__ */ jsx133(
|
|
24298
24246
|
CircularProgress_default,
|
|
24299
24247
|
{
|
|
24300
24248
|
variant: "determinate",
|
|
@@ -24310,7 +24258,7 @@ var DonutProgress = ({
|
|
|
24310
24258
|
color: variants2[variant].emptyColor
|
|
24311
24259
|
}
|
|
24312
24260
|
),
|
|
24313
|
-
/* @__PURE__ */
|
|
24261
|
+
/* @__PURE__ */ jsx133(
|
|
24314
24262
|
Box5,
|
|
24315
24263
|
{
|
|
24316
24264
|
sx: {
|
|
@@ -24318,7 +24266,7 @@ var DonutProgress = ({
|
|
|
24318
24266
|
top: 0,
|
|
24319
24267
|
left: 0
|
|
24320
24268
|
},
|
|
24321
|
-
children: /* @__PURE__ */
|
|
24269
|
+
children: /* @__PURE__ */ jsx133(
|
|
24322
24270
|
CircularProgress_default,
|
|
24323
24271
|
{
|
|
24324
24272
|
variant: "determinate",
|
|
@@ -24333,7 +24281,7 @@ var DonutProgress = ({
|
|
|
24333
24281
|
)
|
|
24334
24282
|
}
|
|
24335
24283
|
),
|
|
24336
|
-
variant !== "empty" && labelChip && /* @__PURE__ */
|
|
24284
|
+
variant !== "empty" && labelChip && /* @__PURE__ */ jsx133(
|
|
24337
24285
|
Box5,
|
|
24338
24286
|
{
|
|
24339
24287
|
sx: {
|
|
@@ -24350,7 +24298,7 @@ var DonutProgress = ({
|
|
|
24350
24298
|
justifyContent: "center",
|
|
24351
24299
|
boxSizing: "border-box"
|
|
24352
24300
|
},
|
|
24353
|
-
children: /* @__PURE__ */
|
|
24301
|
+
children: /* @__PURE__ */ jsx133(
|
|
24354
24302
|
Typography_default,
|
|
24355
24303
|
{
|
|
24356
24304
|
variant: "tooltip",
|
|
@@ -24367,14 +24315,14 @@ var DonutProgress = ({
|
|
|
24367
24315
|
var DonutProgress_default = DonutProgress;
|
|
24368
24316
|
|
|
24369
24317
|
// src/components/loader/Loader.tsx
|
|
24370
|
-
import { jsx as
|
|
24318
|
+
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
24371
24319
|
var Loader = ({
|
|
24372
24320
|
isVisible,
|
|
24373
24321
|
zIndex = 1e4,
|
|
24374
24322
|
size,
|
|
24375
24323
|
hideProgress = false,
|
|
24376
24324
|
sx
|
|
24377
|
-
}) => /* @__PURE__ */
|
|
24325
|
+
}) => /* @__PURE__ */ jsx134(Fade, { in: isVisible, children: /* @__PURE__ */ jsx134(
|
|
24378
24326
|
Box_default2,
|
|
24379
24327
|
{
|
|
24380
24328
|
sx: {
|
|
@@ -24390,7 +24338,7 @@ var Loader = ({
|
|
|
24390
24338
|
backgroundColor: whiteOpacity32,
|
|
24391
24339
|
...sx
|
|
24392
24340
|
},
|
|
24393
|
-
children: !hideProgress && /* @__PURE__ */
|
|
24341
|
+
children: !hideProgress && /* @__PURE__ */ jsx134(CircularProgress_default, { size })
|
|
24394
24342
|
}
|
|
24395
24343
|
) });
|
|
24396
24344
|
var Loader_default = Loader;
|
|
@@ -24403,14 +24351,14 @@ import "katex/dist/katex.min.css";
|
|
|
24403
24351
|
|
|
24404
24352
|
// src/components/markdown/KatexRenderer.tsx
|
|
24405
24353
|
import katex from "katex";
|
|
24406
|
-
import { jsx as
|
|
24354
|
+
import { jsx as jsx135, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
24407
24355
|
var KatexRenderer = ({ children, block }) => {
|
|
24408
24356
|
try {
|
|
24409
24357
|
const html2 = katex.renderToString(children, {
|
|
24410
24358
|
throwOnError: false,
|
|
24411
24359
|
displayMode: block
|
|
24412
24360
|
});
|
|
24413
|
-
return /* @__PURE__ */
|
|
24361
|
+
return /* @__PURE__ */ jsx135("span", { dangerouslySetInnerHTML: { __html: html2 } });
|
|
24414
24362
|
} catch (err) {
|
|
24415
24363
|
return /* @__PURE__ */ jsxs69("pre", { style: { color: "red" }, children: [
|
|
24416
24364
|
"KaTeX error: $",
|
|
@@ -24421,7 +24369,7 @@ var KatexRenderer = ({ children, block }) => {
|
|
|
24421
24369
|
var KatexRenderer_default = KatexRenderer;
|
|
24422
24370
|
|
|
24423
24371
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
24424
|
-
import { jsx as
|
|
24372
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
24425
24373
|
var MarkdownContainer = styled8("div")(
|
|
24426
24374
|
({
|
|
24427
24375
|
color: color2,
|
|
@@ -24525,11 +24473,11 @@ var renderWithMath = (text) => {
|
|
|
24525
24473
|
const inline = match[2];
|
|
24526
24474
|
if (block !== void 0) {
|
|
24527
24475
|
parts.push(
|
|
24528
|
-
/* @__PURE__ */
|
|
24476
|
+
/* @__PURE__ */ jsx136(KatexRenderer_default, { block: true, children: block.trim() }, start)
|
|
24529
24477
|
);
|
|
24530
24478
|
} else if (inline !== void 0) {
|
|
24531
24479
|
parts.push(
|
|
24532
|
-
/* @__PURE__ */
|
|
24480
|
+
/* @__PURE__ */ jsx136(KatexRenderer_default, { children: inline.trim() }, start)
|
|
24533
24481
|
);
|
|
24534
24482
|
}
|
|
24535
24483
|
lastIndex = regex.lastIndex;
|
|
@@ -24559,11 +24507,11 @@ var CodeOrMath = ({ children, ...props }) => {
|
|
|
24559
24507
|
if (m) {
|
|
24560
24508
|
const expr = m[1] || m[2] || "";
|
|
24561
24509
|
const isBlock = Boolean(m[1]);
|
|
24562
|
-
return /* @__PURE__ */
|
|
24510
|
+
return /* @__PURE__ */ jsx136(KatexRenderer_default, { block: isBlock, children: expr.trim() });
|
|
24563
24511
|
}
|
|
24564
24512
|
const maybe = renderWithMath(s);
|
|
24565
24513
|
const onlyText = maybe.length === 1 && typeof maybe[0] === "string";
|
|
24566
|
-
return onlyText ? /* @__PURE__ */
|
|
24514
|
+
return onlyText ? /* @__PURE__ */ jsx136("code", { ...props, children }) : /* @__PURE__ */ jsx136("span", { children: maybe });
|
|
24567
24515
|
};
|
|
24568
24516
|
var escapeInlineUnderscores = (s) => s.replace(/(\S)_(\S)/g, "$1\\_$2");
|
|
24569
24517
|
var MarkdownRenderer = ({
|
|
@@ -24573,19 +24521,19 @@ var MarkdownRenderer = ({
|
|
|
24573
24521
|
}) => {
|
|
24574
24522
|
const protectedText = escapeInlineUnderscores(text || "");
|
|
24575
24523
|
const normalized = normalizeLatexDelimiters(protectedText);
|
|
24576
|
-
return /* @__PURE__ */
|
|
24524
|
+
return /* @__PURE__ */ jsx136(
|
|
24577
24525
|
MarkdownContainer,
|
|
24578
24526
|
{
|
|
24579
24527
|
className: `markdown-container ${className || ""}`,
|
|
24580
24528
|
...rest,
|
|
24581
|
-
children: /* @__PURE__ */
|
|
24529
|
+
children: /* @__PURE__ */ jsx136(
|
|
24582
24530
|
Markdown,
|
|
24583
24531
|
{
|
|
24584
24532
|
options: {
|
|
24585
24533
|
forceBlock: true,
|
|
24586
24534
|
overrides: {
|
|
24587
24535
|
p: {
|
|
24588
|
-
component: ({ children, ...props }) => /* @__PURE__ */
|
|
24536
|
+
component: ({ children, ...props }) => /* @__PURE__ */ jsx136("p", { ...props, children: renderChildrenWithMath(children) })
|
|
24589
24537
|
},
|
|
24590
24538
|
code: { component: CodeOrMath }
|
|
24591
24539
|
}
|
|
@@ -24600,7 +24548,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
24600
24548
|
|
|
24601
24549
|
// src/components/navbar/Navbar.tsx
|
|
24602
24550
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
24603
|
-
import { Fragment as Fragment32, jsx as
|
|
24551
|
+
import { Fragment as Fragment32, jsx as jsx137, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
24604
24552
|
var Navbar = ({
|
|
24605
24553
|
topContent,
|
|
24606
24554
|
bottomContent,
|
|
@@ -24624,8 +24572,8 @@ var Navbar = ({
|
|
|
24624
24572
|
},
|
|
24625
24573
|
className: "Slim-Vertical-Scroll",
|
|
24626
24574
|
children: [
|
|
24627
|
-
/* @__PURE__ */
|
|
24628
|
-
/* @__PURE__ */
|
|
24575
|
+
/* @__PURE__ */ jsx137(Box_default2, { children: topContent }),
|
|
24576
|
+
/* @__PURE__ */ jsx137(Box_default2, { children: bottomContent })
|
|
24629
24577
|
]
|
|
24630
24578
|
}
|
|
24631
24579
|
),
|
|
@@ -24652,8 +24600,8 @@ var Navbar = ({
|
|
|
24652
24600
|
},
|
|
24653
24601
|
onClose,
|
|
24654
24602
|
children: [
|
|
24655
|
-
/* @__PURE__ */
|
|
24656
|
-
/* @__PURE__ */
|
|
24603
|
+
/* @__PURE__ */ jsx137("div", { children: drawerTopContent }),
|
|
24604
|
+
/* @__PURE__ */ jsx137("div", { children: drawerBottomContent })
|
|
24657
24605
|
]
|
|
24658
24606
|
}
|
|
24659
24607
|
)
|
|
@@ -24663,7 +24611,7 @@ var Navbar_default = Navbar;
|
|
|
24663
24611
|
// src/components/navbar/NavbarButton.tsx
|
|
24664
24612
|
import * as React77 from "react";
|
|
24665
24613
|
import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
|
|
24666
|
-
import { jsx as
|
|
24614
|
+
import { jsx as jsx138, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
24667
24615
|
var NavbarButton = React77.forwardRef(
|
|
24668
24616
|
function NavbarButton2({
|
|
24669
24617
|
iconId,
|
|
@@ -24688,7 +24636,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24688
24636
|
position: "relative"
|
|
24689
24637
|
},
|
|
24690
24638
|
children: [
|
|
24691
|
-
/* @__PURE__ */
|
|
24639
|
+
/* @__PURE__ */ jsx138(
|
|
24692
24640
|
Box6,
|
|
24693
24641
|
{
|
|
24694
24642
|
sx: {
|
|
@@ -24704,7 +24652,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24704
24652
|
}
|
|
24705
24653
|
}
|
|
24706
24654
|
),
|
|
24707
|
-
/* @__PURE__ */
|
|
24655
|
+
/* @__PURE__ */ jsx138(
|
|
24708
24656
|
Box6,
|
|
24709
24657
|
{
|
|
24710
24658
|
sx: {
|
|
@@ -24737,7 +24685,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24737
24685
|
},
|
|
24738
24686
|
children: [
|
|
24739
24687
|
srcUrl ? getButtonContent(
|
|
24740
|
-
/* @__PURE__ */
|
|
24688
|
+
/* @__PURE__ */ jsx138(
|
|
24741
24689
|
Avatar_default,
|
|
24742
24690
|
{
|
|
24743
24691
|
className: "NavbarButton-icon",
|
|
@@ -24747,7 +24695,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24747
24695
|
}
|
|
24748
24696
|
)
|
|
24749
24697
|
) : getButtonContent(
|
|
24750
|
-
/* @__PURE__ */
|
|
24698
|
+
/* @__PURE__ */ jsx138(
|
|
24751
24699
|
Icon_default,
|
|
24752
24700
|
{
|
|
24753
24701
|
id: iconId,
|
|
@@ -24763,7 +24711,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24763
24711
|
}
|
|
24764
24712
|
)
|
|
24765
24713
|
),
|
|
24766
|
-
badgeIconProps && /* @__PURE__ */
|
|
24714
|
+
badgeIconProps && /* @__PURE__ */ jsx138(
|
|
24767
24715
|
Icon_default,
|
|
24768
24716
|
{
|
|
24769
24717
|
...badgeIconProps,
|
|
@@ -24785,8 +24733,8 @@ var NavbarButton = React77.forwardRef(
|
|
|
24785
24733
|
var NavbarButton_default = NavbarButton;
|
|
24786
24734
|
|
|
24787
24735
|
// src/components/navbar/NavbarHeader.tsx
|
|
24788
|
-
import { jsx as
|
|
24789
|
-
var NavbarHeader = ({ text }) => /* @__PURE__ */
|
|
24736
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
24737
|
+
var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx139(
|
|
24790
24738
|
Typography_default,
|
|
24791
24739
|
{
|
|
24792
24740
|
sx: {
|
|
@@ -24808,10 +24756,10 @@ var NavbarHeader_default = NavbarHeader;
|
|
|
24808
24756
|
// src/components/navbar/NavbarLogo.tsx
|
|
24809
24757
|
import * as React78 from "react";
|
|
24810
24758
|
import { ButtonBase as ButtonBase3 } from "@mui/material";
|
|
24811
|
-
import { jsx as
|
|
24759
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
24812
24760
|
var NavbarLogo = React78.forwardRef(
|
|
24813
24761
|
function NavbarButton3({ src, ...rest }, ref) {
|
|
24814
|
-
return /* @__PURE__ */
|
|
24762
|
+
return /* @__PURE__ */ jsx140(
|
|
24815
24763
|
ButtonBase3,
|
|
24816
24764
|
{
|
|
24817
24765
|
ref,
|
|
@@ -24822,7 +24770,7 @@ var NavbarLogo = React78.forwardRef(
|
|
|
24822
24770
|
borderBottom: `1px solid ${grey200}`,
|
|
24823
24771
|
boxSizing: "border-box"
|
|
24824
24772
|
},
|
|
24825
|
-
children: /* @__PURE__ */
|
|
24773
|
+
children: /* @__PURE__ */ jsx140("img", { src, width: "32px", height: "32px" })
|
|
24826
24774
|
}
|
|
24827
24775
|
);
|
|
24828
24776
|
}
|
|
@@ -24831,7 +24779,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
24831
24779
|
|
|
24832
24780
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
24833
24781
|
import * as React79 from "react";
|
|
24834
|
-
import { Fragment as Fragment33, jsx as
|
|
24782
|
+
import { Fragment as Fragment33, jsx as jsx141, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
24835
24783
|
var DonutFocusOverlay = ({
|
|
24836
24784
|
isVisible,
|
|
24837
24785
|
elementRef,
|
|
@@ -24873,7 +24821,7 @@ var DonutFocusOverlay = ({
|
|
|
24873
24821
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
24874
24822
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
24875
24823
|
return /* @__PURE__ */ jsxs72(Fragment33, { children: [
|
|
24876
|
-
/* @__PURE__ */
|
|
24824
|
+
/* @__PURE__ */ jsx141(
|
|
24877
24825
|
Box_default2,
|
|
24878
24826
|
{
|
|
24879
24827
|
sx: {
|
|
@@ -24890,7 +24838,7 @@ var DonutFocusOverlay = ({
|
|
|
24890
24838
|
}
|
|
24891
24839
|
}
|
|
24892
24840
|
),
|
|
24893
|
-
chipLabel && /* @__PURE__ */
|
|
24841
|
+
chipLabel && /* @__PURE__ */ jsx141(
|
|
24894
24842
|
Chip_default,
|
|
24895
24843
|
{
|
|
24896
24844
|
label: chipLabel,
|
|
@@ -24917,7 +24865,7 @@ var DonutFocusOverlay = ({
|
|
|
24917
24865
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
24918
24866
|
|
|
24919
24867
|
// src/components/pager/Pager.tsx
|
|
24920
|
-
import { Fragment as Fragment34, jsx as
|
|
24868
|
+
import { Fragment as Fragment34, jsx as jsx142, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
24921
24869
|
var Pager = ({
|
|
24922
24870
|
page,
|
|
24923
24871
|
pageSize,
|
|
@@ -24931,10 +24879,10 @@ var Pager = ({
|
|
|
24931
24879
|
const to = Math.min(current + pageSize, total);
|
|
24932
24880
|
const pages = Math.max(Math.ceil(total / pageSize), 1);
|
|
24933
24881
|
const options = [...Array(pages).keys()].map((i) => ({ value: i + 1 }));
|
|
24934
|
-
const Label = ({ children }) => /* @__PURE__ */
|
|
24882
|
+
const Label = ({ children }) => /* @__PURE__ */ jsx142(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
|
|
24935
24883
|
return /* @__PURE__ */ jsxs73(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
|
|
24936
|
-
/* @__PURE__ */
|
|
24937
|
-
/* @__PURE__ */
|
|
24884
|
+
/* @__PURE__ */ jsx142(Label, { children: t("PAGER.PAGE") }),
|
|
24885
|
+
/* @__PURE__ */ jsx142(
|
|
24938
24886
|
Select_default,
|
|
24939
24887
|
{
|
|
24940
24888
|
value: page,
|
|
@@ -24944,8 +24892,8 @@ var Pager = ({
|
|
|
24944
24892
|
}
|
|
24945
24893
|
),
|
|
24946
24894
|
allowedPageSizes && /* @__PURE__ */ jsxs73(Fragment34, { children: [
|
|
24947
|
-
/* @__PURE__ */
|
|
24948
|
-
/* @__PURE__ */
|
|
24895
|
+
/* @__PURE__ */ jsx142(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
24896
|
+
/* @__PURE__ */ jsx142(
|
|
24949
24897
|
Select_default,
|
|
24950
24898
|
{
|
|
24951
24899
|
value: pageSize,
|
|
@@ -24968,7 +24916,7 @@ var Pager = ({
|
|
|
24968
24916
|
" ",
|
|
24969
24917
|
total
|
|
24970
24918
|
] }),
|
|
24971
|
-
/* @__PURE__ */
|
|
24919
|
+
/* @__PURE__ */ jsx142(
|
|
24972
24920
|
IconButton_default,
|
|
24973
24921
|
{
|
|
24974
24922
|
disabled: page <= 1,
|
|
@@ -24976,7 +24924,7 @@ var Pager = ({
|
|
|
24976
24924
|
onClick: () => onPageChange(page - 1, pageSize)
|
|
24977
24925
|
}
|
|
24978
24926
|
),
|
|
24979
|
-
/* @__PURE__ */
|
|
24927
|
+
/* @__PURE__ */ jsx142(
|
|
24980
24928
|
IconButton_default,
|
|
24981
24929
|
{
|
|
24982
24930
|
disabled: page > total / pageSize,
|
|
@@ -24991,7 +24939,7 @@ var Pager_default = Pager;
|
|
|
24991
24939
|
// src/components/scrollable/HorizontalScrollable.tsx
|
|
24992
24940
|
import { ButtonBase as ButtonBase4 } from "@mui/material";
|
|
24993
24941
|
import * as React80 from "react";
|
|
24994
|
-
import { jsx as
|
|
24942
|
+
import { jsx as jsx143, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
24995
24943
|
var HorizontalScrollable = ({
|
|
24996
24944
|
style: style3,
|
|
24997
24945
|
children,
|
|
@@ -25041,7 +24989,7 @@ var HorizontalScrollable = ({
|
|
|
25041
24989
|
current.scrollBy(stepDistance, 0);
|
|
25042
24990
|
};
|
|
25043
24991
|
return /* @__PURE__ */ jsxs74(Box_default2, { sx: { position: "relative", ...style3 }, children: [
|
|
25044
|
-
/* @__PURE__ */
|
|
24992
|
+
/* @__PURE__ */ jsx143(
|
|
25045
24993
|
ButtonBase4,
|
|
25046
24994
|
{
|
|
25047
24995
|
sx: {
|
|
@@ -25058,10 +25006,10 @@ var HorizontalScrollable = ({
|
|
|
25058
25006
|
...isLeftArrowHidden && { display: "none" }
|
|
25059
25007
|
},
|
|
25060
25008
|
onClick: () => leftScroll(),
|
|
25061
|
-
children: /* @__PURE__ */
|
|
25009
|
+
children: /* @__PURE__ */ jsx143(Icon_default, { id: "chevron-left" })
|
|
25062
25010
|
}
|
|
25063
25011
|
),
|
|
25064
|
-
/* @__PURE__ */
|
|
25012
|
+
/* @__PURE__ */ jsx143(
|
|
25065
25013
|
Box_default2,
|
|
25066
25014
|
{
|
|
25067
25015
|
ref: horizontalContainerRef,
|
|
@@ -25080,7 +25028,7 @@ var HorizontalScrollable = ({
|
|
|
25080
25028
|
children
|
|
25081
25029
|
}
|
|
25082
25030
|
),
|
|
25083
|
-
/* @__PURE__ */
|
|
25031
|
+
/* @__PURE__ */ jsx143(
|
|
25084
25032
|
ButtonBase4,
|
|
25085
25033
|
{
|
|
25086
25034
|
sx: {
|
|
@@ -25097,7 +25045,7 @@ var HorizontalScrollable = ({
|
|
|
25097
25045
|
...isRightArrowHidden && { display: "none" }
|
|
25098
25046
|
},
|
|
25099
25047
|
onClick: () => rightScroll(),
|
|
25100
|
-
children: /* @__PURE__ */
|
|
25048
|
+
children: /* @__PURE__ */ jsx143(Icon_default, { id: "chevron-right" })
|
|
25101
25049
|
}
|
|
25102
25050
|
)
|
|
25103
25051
|
] });
|
|
@@ -25108,12 +25056,12 @@ var HorizontalScrollable_default = HorizontalScrollable;
|
|
|
25108
25056
|
import {
|
|
25109
25057
|
SnackbarProvider as NotistackSnackbarProvider
|
|
25110
25058
|
} from "notistack";
|
|
25111
|
-
import { jsx as
|
|
25059
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
25112
25060
|
var SnackbarProvider = ({
|
|
25113
25061
|
children,
|
|
25114
25062
|
maxSnack = 3,
|
|
25115
25063
|
domRoot
|
|
25116
|
-
}) => /* @__PURE__ */
|
|
25064
|
+
}) => /* @__PURE__ */ jsx144(
|
|
25117
25065
|
NotistackSnackbarProvider,
|
|
25118
25066
|
{
|
|
25119
25067
|
maxSnack,
|
|
@@ -25134,7 +25082,7 @@ import {
|
|
|
25134
25082
|
import * as React81 from "react";
|
|
25135
25083
|
import { SnackbarContent } from "notistack";
|
|
25136
25084
|
import { Typography as Typography4 } from "@mui/material";
|
|
25137
|
-
import { jsx as
|
|
25085
|
+
import { jsx as jsx145, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
25138
25086
|
var sizeStyles5 = {
|
|
25139
25087
|
M: {
|
|
25140
25088
|
width: "344px",
|
|
@@ -25177,7 +25125,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25177
25125
|
const closeClickHandler = React81.useCallback(() => {
|
|
25178
25126
|
onCloseClick && onCloseClick(key);
|
|
25179
25127
|
}, [onCloseClick, key]);
|
|
25180
|
-
return /* @__PURE__ */
|
|
25128
|
+
return /* @__PURE__ */ jsx145(
|
|
25181
25129
|
SnackbarContent,
|
|
25182
25130
|
{
|
|
25183
25131
|
ref,
|
|
@@ -25202,7 +25150,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25202
25150
|
spacing: 2,
|
|
25203
25151
|
sx: { width: "100%", alignItems: "center" },
|
|
25204
25152
|
children: [
|
|
25205
|
-
withIcon && /* @__PURE__ */
|
|
25153
|
+
withIcon && /* @__PURE__ */ jsx145(
|
|
25206
25154
|
Box_default2,
|
|
25207
25155
|
{
|
|
25208
25156
|
sx: {
|
|
@@ -25210,10 +25158,10 @@ var Snackbar = React81.forwardRef(
|
|
|
25210
25158
|
flexShrink: 0,
|
|
25211
25159
|
color: iconColors[severity]
|
|
25212
25160
|
},
|
|
25213
|
-
children: /* @__PURE__ */
|
|
25161
|
+
children: /* @__PURE__ */ jsx145(Icon_default, { id: severityIcons[severity] })
|
|
25214
25162
|
}
|
|
25215
25163
|
),
|
|
25216
|
-
/* @__PURE__ */
|
|
25164
|
+
/* @__PURE__ */ jsx145(
|
|
25217
25165
|
Typography4,
|
|
25218
25166
|
{
|
|
25219
25167
|
variant: "body2",
|
|
@@ -25221,7 +25169,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25221
25169
|
children: message
|
|
25222
25170
|
}
|
|
25223
25171
|
),
|
|
25224
|
-
actionText && /* @__PURE__ */
|
|
25172
|
+
actionText && /* @__PURE__ */ jsx145(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
|
|
25225
25173
|
Button_default,
|
|
25226
25174
|
{
|
|
25227
25175
|
sx: {
|
|
@@ -25236,7 +25184,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25236
25184
|
onClick: actionClickHandler
|
|
25237
25185
|
}
|
|
25238
25186
|
) }),
|
|
25239
|
-
/* @__PURE__ */
|
|
25187
|
+
/* @__PURE__ */ jsx145(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
|
|
25240
25188
|
IconButton_default,
|
|
25241
25189
|
{
|
|
25242
25190
|
iconId: "close",
|
|
@@ -25261,7 +25209,7 @@ var Snackbar_default = Snackbar;
|
|
|
25261
25209
|
|
|
25262
25210
|
// src/components/snackbar/enqueueSnackbar.tsx
|
|
25263
25211
|
import { closeSnackbar as closeSnackbar2 } from "notistack";
|
|
25264
|
-
import { jsx as
|
|
25212
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
25265
25213
|
var enqueueSnackbar = (message, options = {}) => {
|
|
25266
25214
|
const {
|
|
25267
25215
|
persist,
|
|
@@ -25277,7 +25225,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
25277
25225
|
autoHideDuration: autoHideDurationMs ?? 1e4,
|
|
25278
25226
|
persist: persist ?? false,
|
|
25279
25227
|
content(key, message2) {
|
|
25280
|
-
return /* @__PURE__ */
|
|
25228
|
+
return /* @__PURE__ */ jsx146(
|
|
25281
25229
|
Snackbar_default,
|
|
25282
25230
|
{
|
|
25283
25231
|
identifierKey: key,
|
|
@@ -25294,7 +25242,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
25294
25242
|
|
|
25295
25243
|
// src/components/tab/TabButton.tsx
|
|
25296
25244
|
import MuiTab from "@mui/material/Tab";
|
|
25297
|
-
import { jsx as
|
|
25245
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
25298
25246
|
var TabButton = ({
|
|
25299
25247
|
children,
|
|
25300
25248
|
disabled = false,
|
|
@@ -25303,10 +25251,10 @@ var TabButton = ({
|
|
|
25303
25251
|
dataTestId,
|
|
25304
25252
|
disableUppercase = false,
|
|
25305
25253
|
...rest
|
|
25306
|
-
}) => /* @__PURE__ */
|
|
25254
|
+
}) => /* @__PURE__ */ jsx147(
|
|
25307
25255
|
MuiTab,
|
|
25308
25256
|
{
|
|
25309
|
-
label: /* @__PURE__ */
|
|
25257
|
+
label: /* @__PURE__ */ jsx147(
|
|
25310
25258
|
"div",
|
|
25311
25259
|
{
|
|
25312
25260
|
style: {
|
|
@@ -25344,7 +25292,7 @@ import MuiTabs from "@mui/material/Tabs";
|
|
|
25344
25292
|
// src/components/layout/SwipeableViews.tsx
|
|
25345
25293
|
import * as React82 from "react";
|
|
25346
25294
|
import { useEffect as useEffect21, useRef as useRef22, useState as useState31 } from "react";
|
|
25347
|
-
import { jsx as
|
|
25295
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
25348
25296
|
var styles = {
|
|
25349
25297
|
container: {
|
|
25350
25298
|
maxHeight: "100%",
|
|
@@ -25415,7 +25363,7 @@ function SwipeableViews({
|
|
|
25415
25363
|
return () => cancelAnimationFrame(animationFrame);
|
|
25416
25364
|
}
|
|
25417
25365
|
}, [index]);
|
|
25418
|
-
return /* @__PURE__ */
|
|
25366
|
+
return /* @__PURE__ */ jsx148(
|
|
25419
25367
|
"div",
|
|
25420
25368
|
{
|
|
25421
25369
|
...rootProps,
|
|
@@ -25438,7 +25386,7 @@ function SwipeableViews({
|
|
|
25438
25386
|
);
|
|
25439
25387
|
}, 100);
|
|
25440
25388
|
},
|
|
25441
|
-
children: React82.Children.map(children, (child, childIndex) => /* @__PURE__ */
|
|
25389
|
+
children: React82.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx148(
|
|
25442
25390
|
"div",
|
|
25443
25391
|
{
|
|
25444
25392
|
className: "Slim-Vertical-Scroll",
|
|
@@ -25451,7 +25399,7 @@ function SwipeableViews({
|
|
|
25451
25399
|
}
|
|
25452
25400
|
|
|
25453
25401
|
// src/components/tab/Tabs.tsx
|
|
25454
|
-
import { jsx as
|
|
25402
|
+
import { jsx as jsx149, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
25455
25403
|
var Tabs = ({
|
|
25456
25404
|
tabButtons,
|
|
25457
25405
|
children,
|
|
@@ -25487,7 +25435,7 @@ var Tabs = ({
|
|
|
25487
25435
|
}
|
|
25488
25436
|
},
|
|
25489
25437
|
children: [
|
|
25490
|
-
/* @__PURE__ */
|
|
25438
|
+
/* @__PURE__ */ jsx149(
|
|
25491
25439
|
MuiTabs,
|
|
25492
25440
|
{
|
|
25493
25441
|
value: currentTabIndex ?? value,
|
|
@@ -25513,7 +25461,7 @@ var Tabs = ({
|
|
|
25513
25461
|
children: tabButtons
|
|
25514
25462
|
}
|
|
25515
25463
|
),
|
|
25516
|
-
/* @__PURE__ */
|
|
25464
|
+
/* @__PURE__ */ jsx149(
|
|
25517
25465
|
Box_default2,
|
|
25518
25466
|
{
|
|
25519
25467
|
sx: {
|
|
@@ -25522,7 +25470,7 @@ var Tabs = ({
|
|
|
25522
25470
|
height: "100%"
|
|
25523
25471
|
}
|
|
25524
25472
|
},
|
|
25525
|
-
children: /* @__PURE__ */
|
|
25473
|
+
children: /* @__PURE__ */ jsx149(
|
|
25526
25474
|
SwipeableViews,
|
|
25527
25475
|
{
|
|
25528
25476
|
index: currentTabIndex ?? value,
|
|
@@ -25550,8 +25498,8 @@ var Tabs = ({
|
|
|
25550
25498
|
var Tabs_default = Tabs;
|
|
25551
25499
|
|
|
25552
25500
|
// src/components/tab/TabContent.tsx
|
|
25553
|
-
import { jsx as
|
|
25554
|
-
var TabContent = ({ children }) => /* @__PURE__ */
|
|
25501
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
25502
|
+
var TabContent = ({ children }) => /* @__PURE__ */ jsx150(
|
|
25555
25503
|
Box_default2,
|
|
25556
25504
|
{
|
|
25557
25505
|
sx: {
|
|
@@ -25568,8 +25516,8 @@ import {
|
|
|
25568
25516
|
TableRow as MuiTableRow,
|
|
25569
25517
|
TableCell as MuiTableCell
|
|
25570
25518
|
} from "@mui/material";
|
|
25571
|
-
import { jsx as
|
|
25572
|
-
var TableDivider = () => /* @__PURE__ */
|
|
25519
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
25520
|
+
var TableDivider = () => /* @__PURE__ */ jsx151(MuiTableRow, { children: /* @__PURE__ */ jsx151(
|
|
25573
25521
|
MuiTableCell,
|
|
25574
25522
|
{
|
|
25575
25523
|
colSpan: 1e3,
|
|
@@ -25582,8 +25530,8 @@ var TableDivider_default = TableDivider;
|
|
|
25582
25530
|
import {
|
|
25583
25531
|
TableSortLabel as MuiTableSortLabel
|
|
25584
25532
|
} from "@mui/material";
|
|
25585
|
-
import { jsx as
|
|
25586
|
-
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */
|
|
25533
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
25534
|
+
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx152(MuiTableSortLabel, { ...rest, children });
|
|
25587
25535
|
var TableSortLabel_default = TableSortLabel;
|
|
25588
25536
|
|
|
25589
25537
|
// src/components/table/Table.tsx
|
|
@@ -25591,21 +25539,21 @@ import {
|
|
|
25591
25539
|
TableContainer,
|
|
25592
25540
|
Table as MuiTable
|
|
25593
25541
|
} from "@mui/material";
|
|
25594
|
-
import { jsx as
|
|
25595
|
-
var Table = ({ children, sx, className }) => /* @__PURE__ */
|
|
25542
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
25543
|
+
var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx153(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx153(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
|
|
25596
25544
|
var Table_default = Table;
|
|
25597
25545
|
|
|
25598
25546
|
// src/components/table/TableBody.tsx
|
|
25599
25547
|
import { TableBody as MuiTableBody } from "@mui/material";
|
|
25600
|
-
import { jsx as
|
|
25601
|
-
var TableBody = ({ children }) => /* @__PURE__ */
|
|
25548
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
25549
|
+
var TableBody = ({ children }) => /* @__PURE__ */ jsx154(MuiTableBody, { children });
|
|
25602
25550
|
var TableBody_default = TableBody;
|
|
25603
25551
|
|
|
25604
25552
|
// src/components/table/TableCell.tsx
|
|
25605
25553
|
import {
|
|
25606
25554
|
TableCell as MuiTableCell2
|
|
25607
25555
|
} from "@mui/material";
|
|
25608
|
-
import { jsx as
|
|
25556
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
25609
25557
|
var TableCell = ({
|
|
25610
25558
|
children,
|
|
25611
25559
|
size = "M",
|
|
@@ -25616,7 +25564,7 @@ var TableCell = ({
|
|
|
25616
25564
|
onClick,
|
|
25617
25565
|
noBorder = false,
|
|
25618
25566
|
...rest
|
|
25619
|
-
}) => /* @__PURE__ */
|
|
25567
|
+
}) => /* @__PURE__ */ jsx155(
|
|
25620
25568
|
MuiTableCell2,
|
|
25621
25569
|
{
|
|
25622
25570
|
...rest,
|
|
@@ -25641,7 +25589,7 @@ var TableCell_default = TableCell;
|
|
|
25641
25589
|
|
|
25642
25590
|
// src/components/table/TableCellCopy.tsx
|
|
25643
25591
|
import * as React84 from "react";
|
|
25644
|
-
import { jsx as
|
|
25592
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
25645
25593
|
var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
25646
25594
|
const { t } = useTranslation();
|
|
25647
25595
|
const [isCopied, setIsCopied] = React84.useState(false);
|
|
@@ -25659,7 +25607,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
25659
25607
|
const getIconId = () => !isCopied ? "content-copy" : "check";
|
|
25660
25608
|
const iconHiddenClass = "icon-hidden";
|
|
25661
25609
|
const iconCopiedClass = "icon-copied";
|
|
25662
|
-
return /* @__PURE__ */
|
|
25610
|
+
return /* @__PURE__ */ jsx156(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx156(
|
|
25663
25611
|
Stack_default,
|
|
25664
25612
|
{
|
|
25665
25613
|
direction: "row",
|
|
@@ -25668,7 +25616,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
25668
25616
|
onMouseEnter: () => setShowIcon(true),
|
|
25669
25617
|
onMouseLeave: () => setShowIcon(false),
|
|
25670
25618
|
onClick: manageButtonClicked,
|
|
25671
|
-
children: /* @__PURE__ */
|
|
25619
|
+
children: /* @__PURE__ */ jsx156(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx156(
|
|
25672
25620
|
Button_default,
|
|
25673
25621
|
{
|
|
25674
25622
|
className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
|
|
@@ -25698,21 +25646,21 @@ var TableCellCopy_default = TableCellCopy;
|
|
|
25698
25646
|
|
|
25699
25647
|
// src/components/table/TableHead.tsx
|
|
25700
25648
|
import { TableHead as MuiTableHead } from "@mui/material";
|
|
25701
|
-
import { jsx as
|
|
25702
|
-
var TableHead = ({ children }) => /* @__PURE__ */
|
|
25649
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
25650
|
+
var TableHead = ({ children }) => /* @__PURE__ */ jsx157(MuiTableHead, { children });
|
|
25703
25651
|
var TableHead_default = TableHead;
|
|
25704
25652
|
|
|
25705
25653
|
// src/components/table/TableRow.tsx
|
|
25706
25654
|
import {
|
|
25707
25655
|
TableRow as MuiTableRow2
|
|
25708
25656
|
} from "@mui/material";
|
|
25709
|
-
import { jsx as
|
|
25657
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
25710
25658
|
var TableRow = ({
|
|
25711
25659
|
children,
|
|
25712
25660
|
isFollowedByNestedTable = false,
|
|
25713
25661
|
fadeInLeftAnimation = false,
|
|
25714
25662
|
sx
|
|
25715
|
-
}) => /* @__PURE__ */
|
|
25663
|
+
}) => /* @__PURE__ */ jsx158(
|
|
25716
25664
|
MuiTableRow2,
|
|
25717
25665
|
{
|
|
25718
25666
|
className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
|
|
@@ -25724,14 +25672,14 @@ var TableRow_default = TableRow;
|
|
|
25724
25672
|
|
|
25725
25673
|
// src/components/table/NestedTable.tsx
|
|
25726
25674
|
import { Collapse as Collapse7 } from "@mui/material";
|
|
25727
|
-
import { jsx as
|
|
25675
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
25728
25676
|
var NestedTable = ({
|
|
25729
25677
|
colSpan,
|
|
25730
25678
|
children,
|
|
25731
25679
|
className = "",
|
|
25732
25680
|
sx,
|
|
25733
25681
|
isVisible = true
|
|
25734
|
-
}) => /* @__PURE__ */
|
|
25682
|
+
}) => /* @__PURE__ */ jsx159(TableRow_default, { children: /* @__PURE__ */ jsx159(
|
|
25735
25683
|
TableCell_default,
|
|
25736
25684
|
{
|
|
25737
25685
|
colSpan,
|
|
@@ -25740,14 +25688,14 @@ var NestedTable = ({
|
|
|
25740
25688
|
height: "auto",
|
|
25741
25689
|
...!isVisible && { borderBottom: "none" }
|
|
25742
25690
|
},
|
|
25743
|
-
children: /* @__PURE__ */
|
|
25691
|
+
children: /* @__PURE__ */ jsx159(Collapse7, { in: isVisible, children: /* @__PURE__ */ jsx159(Box_default2, { sx: { padding: "16px", backgroundColor: grey100 }, children: /* @__PURE__ */ jsx159(Paper_default, { children: /* @__PURE__ */ jsx159(Table_default, { sx, className: `Nested-Table ${className}`, children }) }) }) })
|
|
25744
25692
|
}
|
|
25745
25693
|
) });
|
|
25746
25694
|
var NestedTable_default = NestedTable;
|
|
25747
25695
|
|
|
25748
25696
|
// src/components/toolbar/ToolbarBreadcrumb.tsx
|
|
25749
|
-
import { jsx as
|
|
25750
|
-
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */
|
|
25697
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
25698
|
+
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx160(
|
|
25751
25699
|
Stack_default,
|
|
25752
25700
|
{
|
|
25753
25701
|
direction: "row",
|
|
@@ -25757,7 +25705,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx161(
|
|
|
25757
25705
|
(previous, current, index) => [
|
|
25758
25706
|
...previous,
|
|
25759
25707
|
...index > 0 ? [
|
|
25760
|
-
/* @__PURE__ */
|
|
25708
|
+
/* @__PURE__ */ jsx160(
|
|
25761
25709
|
Typography_default,
|
|
25762
25710
|
{
|
|
25763
25711
|
color: grey500,
|
|
@@ -25781,9 +25729,9 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
25781
25729
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
25782
25730
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
25783
25731
|
import * as React85 from "react";
|
|
25784
|
-
import { jsx as
|
|
25732
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
25785
25733
|
var ToolbarBreadcrumbButton = React85.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
25786
|
-
return /* @__PURE__ */
|
|
25734
|
+
return /* @__PURE__ */ jsx161(
|
|
25787
25735
|
ButtonBase5,
|
|
25788
25736
|
{
|
|
25789
25737
|
className: `Cn-ToolbarBreadcrumbButton ${className}`,
|
|
@@ -25802,14 +25750,14 @@ var ToolbarBreadcrumbButton = React85.forwardRef(function ToolbarBreadcrumbButto
|
|
|
25802
25750
|
}
|
|
25803
25751
|
},
|
|
25804
25752
|
...rest,
|
|
25805
|
-
children: /* @__PURE__ */
|
|
25753
|
+
children: /* @__PURE__ */ jsx161(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
|
|
25806
25754
|
}
|
|
25807
25755
|
);
|
|
25808
25756
|
});
|
|
25809
25757
|
var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
|
|
25810
25758
|
|
|
25811
25759
|
// src/components/toolbar/Toolbar.tsx
|
|
25812
|
-
import { jsx as
|
|
25760
|
+
import { jsx as jsx162, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
25813
25761
|
var Toolbar = ({
|
|
25814
25762
|
children,
|
|
25815
25763
|
rightActions,
|
|
@@ -25850,7 +25798,7 @@ var Toolbar = ({
|
|
|
25850
25798
|
width: "100%"
|
|
25851
25799
|
},
|
|
25852
25800
|
children: [
|
|
25853
|
-
leftActions && /* @__PURE__ */
|
|
25801
|
+
leftActions && /* @__PURE__ */ jsx162(
|
|
25854
25802
|
Box_default2,
|
|
25855
25803
|
{
|
|
25856
25804
|
className: `Cn-Toolbar-left`,
|
|
@@ -25860,7 +25808,7 @@ var Toolbar = ({
|
|
|
25860
25808
|
children: leftActions
|
|
25861
25809
|
}
|
|
25862
25810
|
),
|
|
25863
|
-
/* @__PURE__ */
|
|
25811
|
+
/* @__PURE__ */ jsx162(
|
|
25864
25812
|
Box_default2,
|
|
25865
25813
|
{
|
|
25866
25814
|
className: `Cn-Toolbar-children`,
|
|
@@ -25875,7 +25823,7 @@ var Toolbar = ({
|
|
|
25875
25823
|
]
|
|
25876
25824
|
}
|
|
25877
25825
|
),
|
|
25878
|
-
rightActions && /* @__PURE__ */
|
|
25826
|
+
rightActions && /* @__PURE__ */ jsx162(
|
|
25879
25827
|
Box_default2,
|
|
25880
25828
|
{
|
|
25881
25829
|
className: `Cn-Toolbar-right`,
|
|
@@ -25896,7 +25844,7 @@ var Toolbar_default = Toolbar;
|
|
|
25896
25844
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
25897
25845
|
import * as React86 from "react";
|
|
25898
25846
|
import { useState as useState34 } from "react";
|
|
25899
|
-
import { jsx as
|
|
25847
|
+
import { jsx as jsx163, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
25900
25848
|
var ToolbarTitle = React86.forwardRef(function ToolbarTitle2({
|
|
25901
25849
|
title,
|
|
25902
25850
|
align = "left",
|
|
@@ -25906,7 +25854,7 @@ var ToolbarTitle = React86.forwardRef(function ToolbarTitle2({
|
|
|
25906
25854
|
}, ref) {
|
|
25907
25855
|
const textElementRef = React86.useRef(null);
|
|
25908
25856
|
const [showHoverActions, setShowHoverActions] = useState34(false);
|
|
25909
|
-
return /* @__PURE__ */
|
|
25857
|
+
return /* @__PURE__ */ jsx163(Box_default2, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx163(
|
|
25910
25858
|
TextEllipsisTooltip_default,
|
|
25911
25859
|
{
|
|
25912
25860
|
title: title ?? "\xA0",
|
|
@@ -25929,7 +25877,7 @@ var ToolbarTitle = React86.forwardRef(function ToolbarTitle2({
|
|
|
25929
25877
|
},
|
|
25930
25878
|
children: [
|
|
25931
25879
|
title || "\xA0",
|
|
25932
|
-
hoverActions && showHoverActions && /* @__PURE__ */
|
|
25880
|
+
hoverActions && showHoverActions && /* @__PURE__ */ jsx163(
|
|
25933
25881
|
Box_default2,
|
|
25934
25882
|
{
|
|
25935
25883
|
sx: {
|
|
@@ -25958,13 +25906,13 @@ var Slide_default = Slide;
|
|
|
25958
25906
|
|
|
25959
25907
|
// src/components/widget/WidgetLegendItem.tsx
|
|
25960
25908
|
import { ButtonBase as ButtonBase6 } from "@mui/material";
|
|
25961
|
-
import { jsx as
|
|
25909
|
+
import { jsx as jsx164, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
25962
25910
|
var WidgetLegendItem = ({
|
|
25963
25911
|
groupLabel,
|
|
25964
25912
|
legendDirection = "column",
|
|
25965
25913
|
items = [],
|
|
25966
25914
|
onClick
|
|
25967
|
-
}) => /* @__PURE__ */
|
|
25915
|
+
}) => /* @__PURE__ */ jsx164(
|
|
25968
25916
|
ButtonBase6,
|
|
25969
25917
|
{
|
|
25970
25918
|
tabIndex: onClick ? 0 : -1,
|
|
@@ -25990,7 +25938,7 @@ var WidgetLegendItem = ({
|
|
|
25990
25938
|
color: grey800
|
|
25991
25939
|
},
|
|
25992
25940
|
children: [
|
|
25993
|
-
groupLabel && /* @__PURE__ */
|
|
25941
|
+
groupLabel && /* @__PURE__ */ jsx164(
|
|
25994
25942
|
Typography_default,
|
|
25995
25943
|
{
|
|
25996
25944
|
variant: "overline",
|
|
@@ -26022,7 +25970,7 @@ var WidgetLegendItem = ({
|
|
|
26022
25970
|
paddingRight: legendDirection === "row" ? "12px" : "inherit"
|
|
26023
25971
|
},
|
|
26024
25972
|
children: [
|
|
26025
|
-
iconColor && /* @__PURE__ */
|
|
25973
|
+
iconColor && /* @__PURE__ */ jsx164(
|
|
26026
25974
|
Icon_default,
|
|
26027
25975
|
{
|
|
26028
25976
|
id: iconId,
|
|
@@ -26033,7 +25981,7 @@ var WidgetLegendItem = ({
|
|
|
26033
25981
|
size: iconSize
|
|
26034
25982
|
}
|
|
26035
25983
|
),
|
|
26036
|
-
label && /* @__PURE__ */
|
|
25984
|
+
label && /* @__PURE__ */ jsx164(
|
|
26037
25985
|
Typography_default,
|
|
26038
25986
|
{
|
|
26039
25987
|
variant: "caption",
|
|
@@ -26042,7 +25990,7 @@ var WidgetLegendItem = ({
|
|
|
26042
25990
|
children: label
|
|
26043
25991
|
}
|
|
26044
25992
|
),
|
|
26045
|
-
value && /* @__PURE__ */
|
|
25993
|
+
value && /* @__PURE__ */ jsx164(
|
|
26046
25994
|
Typography_default,
|
|
26047
25995
|
{
|
|
26048
25996
|
sx: style3,
|
|
@@ -26051,7 +25999,7 @@ var WidgetLegendItem = ({
|
|
|
26051
25999
|
children: value
|
|
26052
26000
|
}
|
|
26053
26001
|
),
|
|
26054
|
-
incrementLabelValue && /* @__PURE__ */
|
|
26002
|
+
incrementLabelValue && /* @__PURE__ */ jsx164(
|
|
26055
26003
|
IncrementLabel_default,
|
|
26056
26004
|
{
|
|
26057
26005
|
label: incrementLabelValue,
|
|
@@ -26077,8 +26025,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
|
|
|
26077
26025
|
|
|
26078
26026
|
// src/components/widget/Widget.tsx
|
|
26079
26027
|
import MuiCard2 from "@mui/material/Card";
|
|
26080
|
-
import { jsx as
|
|
26081
|
-
var Widget = ({ children }) => /* @__PURE__ */
|
|
26028
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
26029
|
+
var Widget = ({ children }) => /* @__PURE__ */ jsx165(
|
|
26082
26030
|
MuiCard2,
|
|
26083
26031
|
{
|
|
26084
26032
|
variant: "elevation",
|
|
@@ -26102,8 +26050,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx166(
|
|
|
26102
26050
|
var Widget_default = Widget;
|
|
26103
26051
|
|
|
26104
26052
|
// src/components/widget/WidgetActions.tsx
|
|
26105
|
-
import { jsx as
|
|
26106
|
-
var WidgetActions = ({ children }) => /* @__PURE__ */
|
|
26053
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
26054
|
+
var WidgetActions = ({ children }) => /* @__PURE__ */ jsx166(
|
|
26107
26055
|
Box_default2,
|
|
26108
26056
|
{
|
|
26109
26057
|
sx: {
|
|
@@ -26117,8 +26065,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx167(
|
|
|
26117
26065
|
var WidgetActions_default = WidgetActions;
|
|
26118
26066
|
|
|
26119
26067
|
// src/components/widget/WidgetTitle.tsx
|
|
26120
|
-
import { jsx as
|
|
26121
|
-
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */
|
|
26068
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
26069
|
+
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx167(
|
|
26122
26070
|
Box_default2,
|
|
26123
26071
|
{
|
|
26124
26072
|
sx: {
|
|
@@ -26128,7 +26076,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
26128
26076
|
maxWidth: "100%",
|
|
26129
26077
|
...sx
|
|
26130
26078
|
},
|
|
26131
|
-
children: /* @__PURE__ */
|
|
26079
|
+
children: /* @__PURE__ */ jsx167(
|
|
26132
26080
|
Typography_default,
|
|
26133
26081
|
{
|
|
26134
26082
|
variant: "subtitle2",
|
|
@@ -26142,12 +26090,12 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
26142
26090
|
}
|
|
26143
26091
|
)
|
|
26144
26092
|
}
|
|
26145
|
-
) : /* @__PURE__ */
|
|
26093
|
+
) : /* @__PURE__ */ jsx167("span", {});
|
|
26146
26094
|
var WidgetTitle_default = WidgetTitle;
|
|
26147
26095
|
|
|
26148
26096
|
// src/components/window/MinimizableWindow.tsx
|
|
26149
26097
|
import * as React87 from "react";
|
|
26150
|
-
import { Fragment as Fragment35, jsx as
|
|
26098
|
+
import { Fragment as Fragment35, jsx as jsx168, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
26151
26099
|
var sizes6 = {
|
|
26152
26100
|
M: 400,
|
|
26153
26101
|
L: 500,
|
|
@@ -26262,7 +26210,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26262
26210
|
}, 750);
|
|
26263
26211
|
};
|
|
26264
26212
|
return /* @__PURE__ */ jsxs80(Fragment35, { children: [
|
|
26265
|
-
isDraggingState && /* @__PURE__ */
|
|
26213
|
+
isDraggingState && /* @__PURE__ */ jsx168(
|
|
26266
26214
|
Box_default2,
|
|
26267
26215
|
{
|
|
26268
26216
|
sx: {
|
|
@@ -26278,7 +26226,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26278
26226
|
onMouseMove: (ev) => handleMouseMove(ev)
|
|
26279
26227
|
}
|
|
26280
26228
|
),
|
|
26281
|
-
/* @__PURE__ */
|
|
26229
|
+
/* @__PURE__ */ jsx168(
|
|
26282
26230
|
Box_default2,
|
|
26283
26231
|
{
|
|
26284
26232
|
ref: overlayRef,
|
|
@@ -26320,19 +26268,19 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26320
26268
|
onMouseDown: handleMouseDown,
|
|
26321
26269
|
minHeight: "44px",
|
|
26322
26270
|
children: [
|
|
26323
|
-
/* @__PURE__ */
|
|
26271
|
+
/* @__PURE__ */ jsx168(
|
|
26324
26272
|
Stack_default,
|
|
26325
26273
|
{
|
|
26326
26274
|
direction: "row",
|
|
26327
26275
|
alignItems: "center",
|
|
26328
26276
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26329
|
-
children: showBackButton && (!backButton ? /* @__PURE__ */
|
|
26277
|
+
children: showBackButton && (!backButton ? /* @__PURE__ */ jsx168(
|
|
26330
26278
|
Tooltip_default,
|
|
26331
26279
|
{
|
|
26332
26280
|
title: t("MINIMIZABLE_WINDOW.GO_BACK"),
|
|
26333
26281
|
zIndex: 999999,
|
|
26334
26282
|
placement: "top",
|
|
26335
|
-
children: /* @__PURE__ */
|
|
26283
|
+
children: /* @__PURE__ */ jsx168(
|
|
26336
26284
|
IconButton_default,
|
|
26337
26285
|
{
|
|
26338
26286
|
size: iconSizes4,
|
|
@@ -26345,7 +26293,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26345
26293
|
) : backButton)
|
|
26346
26294
|
}
|
|
26347
26295
|
),
|
|
26348
|
-
/* @__PURE__ */
|
|
26296
|
+
/* @__PURE__ */ jsx168(
|
|
26349
26297
|
Box_default2,
|
|
26350
26298
|
{
|
|
26351
26299
|
sx: {
|
|
@@ -26353,7 +26301,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26353
26301
|
left: "50%",
|
|
26354
26302
|
transform: "translateX(-50%)"
|
|
26355
26303
|
},
|
|
26356
|
-
children: typeof title === "string" ? /* @__PURE__ */
|
|
26304
|
+
children: typeof title === "string" ? /* @__PURE__ */ jsx168(Typography_default, { children: title }) : title
|
|
26357
26305
|
}
|
|
26358
26306
|
),
|
|
26359
26307
|
/* @__PURE__ */ jsxs80(
|
|
@@ -26363,13 +26311,13 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26363
26311
|
alignItems: "center",
|
|
26364
26312
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26365
26313
|
children: [
|
|
26366
|
-
/* @__PURE__ */
|
|
26314
|
+
/* @__PURE__ */ jsx168(Box_default2, { children: /* @__PURE__ */ jsx168(
|
|
26367
26315
|
Tooltip_default,
|
|
26368
26316
|
{
|
|
26369
26317
|
title: t("MINIMIZABLE_WINDOW.MINIMIZE"),
|
|
26370
26318
|
zIndex: 999999,
|
|
26371
26319
|
placement: "top",
|
|
26372
|
-
children: /* @__PURE__ */
|
|
26320
|
+
children: /* @__PURE__ */ jsx168(
|
|
26373
26321
|
IconButton_default,
|
|
26374
26322
|
{
|
|
26375
26323
|
size: iconSizes4,
|
|
@@ -26385,13 +26333,13 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26385
26333
|
)
|
|
26386
26334
|
}
|
|
26387
26335
|
) }),
|
|
26388
|
-
closeable && /* @__PURE__ */
|
|
26336
|
+
closeable && /* @__PURE__ */ jsx168(Box_default2, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx168(
|
|
26389
26337
|
Tooltip_default,
|
|
26390
26338
|
{
|
|
26391
26339
|
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
26392
26340
|
zIndex: 999999,
|
|
26393
26341
|
placement: "top",
|
|
26394
|
-
children: /* @__PURE__ */
|
|
26342
|
+
children: /* @__PURE__ */ jsx168(
|
|
26395
26343
|
IconButton_default,
|
|
26396
26344
|
{
|
|
26397
26345
|
size: iconSizes4,
|
|
@@ -26408,7 +26356,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26408
26356
|
]
|
|
26409
26357
|
}
|
|
26410
26358
|
),
|
|
26411
|
-
/* @__PURE__ */
|
|
26359
|
+
/* @__PURE__ */ jsx168(
|
|
26412
26360
|
Stack_default,
|
|
26413
26361
|
{
|
|
26414
26362
|
sx: {
|
|
@@ -26632,6 +26580,7 @@ export {
|
|
|
26632
26580
|
getDateInputFormatForLocale,
|
|
26633
26581
|
getDatesFromDateInterval,
|
|
26634
26582
|
getDisplayEndDate,
|
|
26583
|
+
getIconPath,
|
|
26635
26584
|
getPhoneWithoutCountryCode,
|
|
26636
26585
|
getSafeResizeObserverCallback,
|
|
26637
26586
|
getWeekDayNamesForLocale,
|