@connectif/ui-components 2.3.0 → 2.3.1
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/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/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 +548 -552
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- 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";
|
|
@@ -10092,7 +10095,7 @@ var colorStyles2 = (theme2) => ({
|
|
|
10092
10095
|
}
|
|
10093
10096
|
},
|
|
10094
10097
|
warning: {
|
|
10095
|
-
color: theme2.palette.
|
|
10098
|
+
color: theme2.palette.common.white,
|
|
10096
10099
|
backgroundColor: theme2.palette.error[900],
|
|
10097
10100
|
":hover": {
|
|
10098
10101
|
backgroundColor: theme2.palette.error[600]
|
|
@@ -10858,6 +10861,7 @@ var EnhancedCardTitle = ({
|
|
|
10858
10861
|
cursor: cursor2 = "default",
|
|
10859
10862
|
variant = "body2",
|
|
10860
10863
|
size = "M",
|
|
10864
|
+
padding: padding2,
|
|
10861
10865
|
dataTest
|
|
10862
10866
|
}) => {
|
|
10863
10867
|
const typographyVariantHeight = variants[variant].lineHeight;
|
|
@@ -10869,6 +10873,7 @@ var EnhancedCardTitle = ({
|
|
|
10869
10873
|
maxWidth: "100%",
|
|
10870
10874
|
alignSelf: "stretch",
|
|
10871
10875
|
minWidth: 0,
|
|
10876
|
+
padding: padding2,
|
|
10872
10877
|
...forceHeight ? {
|
|
10873
10878
|
height: size === "S" ? typographyVariantHeight : `calc(${typographyVariantHeight} * 2)`
|
|
10874
10879
|
} : {}
|
|
@@ -12121,29 +12126,19 @@ function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
|
12121
12126
|
import { alpha as alpha2 } from "@mui/material";
|
|
12122
12127
|
|
|
12123
12128
|
// 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
|
-
};
|
|
12129
|
+
var getIconDataUri = (iconId, iconType = "neutral") => `data:image/svg+xml;base64,${btoa(
|
|
12130
|
+
`<svg xmlns="http://www.w3.org/2000/svg"
|
|
12131
|
+
fill="${incrementLabelStyles[iconType].color}"
|
|
12132
|
+
width="${incrementLabelStyles[iconType].size}"
|
|
12133
|
+
height="${incrementLabelStyles[iconType].size}"
|
|
12134
|
+
viewBox="0 0 24 24"
|
|
12135
|
+
role="presentation"
|
|
12136
|
+
class="MuiSvgIcon-root"
|
|
12137
|
+
data-icon-id="${iconId}"
|
|
12138
|
+
style="width: 24px; height: 24px;">
|
|
12139
|
+
<path d="${getIconPath(iconId)}" style="fill: currentcolor;"></path>
|
|
12140
|
+
</svg>`
|
|
12141
|
+
)}`;
|
|
12147
12142
|
var tooltipOptions = {
|
|
12148
12143
|
trigger: "axis",
|
|
12149
12144
|
borderRadius: 8,
|
|
@@ -12164,7 +12159,7 @@ var tooltipOptions = {
|
|
|
12164
12159
|
|
|
12165
12160
|
// src/components/chart/BarChart.tsx
|
|
12166
12161
|
import AutoSizer from "react-virtualized-auto-sizer";
|
|
12167
|
-
import { jsx as
|
|
12162
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
12168
12163
|
var estimatedYAxisWidth = 50;
|
|
12169
12164
|
var barMinHeight = 1;
|
|
12170
12165
|
var BarChart2 = ({
|
|
@@ -12414,7 +12409,7 @@ var BarChart2 = ({
|
|
|
12414
12409
|
]
|
|
12415
12410
|
)
|
|
12416
12411
|
});
|
|
12417
|
-
return isLoading ? /* @__PURE__ */
|
|
12412
|
+
return isLoading ? /* @__PURE__ */ jsx66(
|
|
12418
12413
|
"div",
|
|
12419
12414
|
{
|
|
12420
12415
|
style: {
|
|
@@ -12422,9 +12417,9 @@ var BarChart2 = ({
|
|
|
12422
12417
|
width: "100%",
|
|
12423
12418
|
...style3
|
|
12424
12419
|
},
|
|
12425
|
-
children: /* @__PURE__ */
|
|
12420
|
+
children: /* @__PURE__ */ jsx66(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" })
|
|
12426
12421
|
}
|
|
12427
|
-
) : /* @__PURE__ */
|
|
12422
|
+
) : /* @__PURE__ */ jsx66(AutoSizer, { style: { height: "100%", width: "100%" }, children: ({ width: width2 }) => /* @__PURE__ */ jsx66(
|
|
12428
12423
|
ReactEChartsCore,
|
|
12429
12424
|
{
|
|
12430
12425
|
ref: chartRef,
|
|
@@ -12445,7 +12440,7 @@ import { createRoot as createRoot2 } from "react-dom/client";
|
|
|
12445
12440
|
import ReactEChartsCore2 from "echarts-for-react/lib/core";
|
|
12446
12441
|
import * as echarts3 from "echarts/core";
|
|
12447
12442
|
import { ThemeProvider, useTheme as useTheme4 } from "@mui/material/styles";
|
|
12448
|
-
import { jsx as
|
|
12443
|
+
import { jsx as jsx67, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12449
12444
|
var LineChart2 = ({
|
|
12450
12445
|
style: style3,
|
|
12451
12446
|
isLoading,
|
|
@@ -12482,7 +12477,7 @@ var LineChart2 = ({
|
|
|
12482
12477
|
if (isComparing) {
|
|
12483
12478
|
const incrementType = data.tooltipIncrementType ?? "neutral";
|
|
12484
12479
|
const incrementLabelIconId = data.tooltipIncrementType && incrementLabelStyles[data.tooltipIncrementType].icon;
|
|
12485
|
-
incrementLabel = data.tooltipIncrementLabel && /* @__PURE__ */
|
|
12480
|
+
incrementLabel = data.tooltipIncrementLabel && /* @__PURE__ */ jsx67(
|
|
12486
12481
|
IncrementLabel_default,
|
|
12487
12482
|
{
|
|
12488
12483
|
color: incrementLabelStyles[incrementType].color,
|
|
@@ -12505,7 +12500,7 @@ var LineChart2 = ({
|
|
|
12505
12500
|
alignItems: "center"
|
|
12506
12501
|
},
|
|
12507
12502
|
children: [
|
|
12508
|
-
/* @__PURE__ */
|
|
12503
|
+
/* @__PURE__ */ jsx67(
|
|
12509
12504
|
Icon_default,
|
|
12510
12505
|
{
|
|
12511
12506
|
id: serie.tooltipIconId ?? "minus",
|
|
@@ -12517,7 +12512,7 @@ var LineChart2 = ({
|
|
|
12517
12512
|
),
|
|
12518
12513
|
serie.name,
|
|
12519
12514
|
" ",
|
|
12520
|
-
/* @__PURE__ */
|
|
12515
|
+
/* @__PURE__ */ jsx67(
|
|
12521
12516
|
Typography_default,
|
|
12522
12517
|
{
|
|
12523
12518
|
variant: "body2-semibold-monospace",
|
|
@@ -12540,7 +12535,7 @@ var LineChart2 = ({
|
|
|
12540
12535
|
alignItems: "center"
|
|
12541
12536
|
},
|
|
12542
12537
|
children: [
|
|
12543
|
-
/* @__PURE__ */
|
|
12538
|
+
/* @__PURE__ */ jsx67(
|
|
12544
12539
|
Icon_default,
|
|
12545
12540
|
{
|
|
12546
12541
|
id: "dots-horizontal",
|
|
@@ -12552,10 +12547,10 @@ var LineChart2 = ({
|
|
|
12552
12547
|
),
|
|
12553
12548
|
serie.comparisonName,
|
|
12554
12549
|
" ",
|
|
12555
|
-
/* @__PURE__ */
|
|
12550
|
+
/* @__PURE__ */ jsx67(Typography_default, { variant: "body2-semibold", color: grey800, children: data.tooltipComparisonValue })
|
|
12556
12551
|
]
|
|
12557
12552
|
}
|
|
12558
|
-
) : /* @__PURE__ */
|
|
12553
|
+
) : /* @__PURE__ */ jsx67("span", {})
|
|
12559
12554
|
] }, serie.name);
|
|
12560
12555
|
};
|
|
12561
12556
|
const tooltipReact = React32.useMemo(() => {
|
|
@@ -12570,7 +12565,7 @@ var LineChart2 = ({
|
|
|
12570
12565
|
}
|
|
12571
12566
|
const categoryLabel = tooltipCategoryLabel ?? axisValueLabel;
|
|
12572
12567
|
const hasGroup = groups.some((group) => group !== "");
|
|
12573
|
-
const tooltip = /* @__PURE__ */
|
|
12568
|
+
const tooltip = /* @__PURE__ */ jsx67(ThemeProvider, { theme: theme2, children: /* @__PURE__ */ jsx67(
|
|
12574
12569
|
Box_default2,
|
|
12575
12570
|
{
|
|
12576
12571
|
sx: {
|
|
@@ -12580,7 +12575,7 @@ var LineChart2 = ({
|
|
|
12580
12575
|
gap: "0 16px"
|
|
12581
12576
|
},
|
|
12582
12577
|
children: groups.map((group, index) => /* @__PURE__ */ jsxs27(React32.Fragment, { children: [
|
|
12583
|
-
index > 0 && /* @__PURE__ */
|
|
12578
|
+
index > 0 && /* @__PURE__ */ jsx67(
|
|
12584
12579
|
Divider_default,
|
|
12585
12580
|
{
|
|
12586
12581
|
sx: {
|
|
@@ -12590,7 +12585,7 @@ var LineChart2 = ({
|
|
|
12590
12585
|
}
|
|
12591
12586
|
}
|
|
12592
12587
|
),
|
|
12593
|
-
group !== "" && /* @__PURE__ */
|
|
12588
|
+
group !== "" && /* @__PURE__ */ jsx67(
|
|
12594
12589
|
Typography_default,
|
|
12595
12590
|
{
|
|
12596
12591
|
variant: "body2-semibold",
|
|
@@ -12599,7 +12594,7 @@ var LineChart2 = ({
|
|
|
12599
12594
|
children: group
|
|
12600
12595
|
}
|
|
12601
12596
|
),
|
|
12602
|
-
/* @__PURE__ */
|
|
12597
|
+
/* @__PURE__ */ jsx67(
|
|
12603
12598
|
Typography_default,
|
|
12604
12599
|
{
|
|
12605
12600
|
variant: "caption",
|
|
@@ -12782,7 +12777,7 @@ var LineChart2 = ({
|
|
|
12782
12777
|
) : []
|
|
12783
12778
|
]
|
|
12784
12779
|
};
|
|
12785
|
-
return isLoading ? /* @__PURE__ */
|
|
12780
|
+
return isLoading ? /* @__PURE__ */ jsx67(
|
|
12786
12781
|
"div",
|
|
12787
12782
|
{
|
|
12788
12783
|
style: {
|
|
@@ -12790,7 +12785,7 @@ var LineChart2 = ({
|
|
|
12790
12785
|
width: "100%",
|
|
12791
12786
|
...style3
|
|
12792
12787
|
},
|
|
12793
|
-
children: /* @__PURE__ */
|
|
12788
|
+
children: /* @__PURE__ */ jsx67(
|
|
12794
12789
|
Skeleton_default,
|
|
12795
12790
|
{
|
|
12796
12791
|
variant: "rectangular",
|
|
@@ -12808,7 +12803,7 @@ var LineChart2 = ({
|
|
|
12808
12803
|
flexDirection: "row",
|
|
12809
12804
|
margin: "0 16px",
|
|
12810
12805
|
children: [
|
|
12811
|
-
!disableSeriesNames && series[1]?.name && series[1]?.name !== series[0]?.name && /* @__PURE__ */
|
|
12806
|
+
!disableSeriesNames && series[1]?.name && series[1]?.name !== series[0]?.name && /* @__PURE__ */ jsx67(
|
|
12812
12807
|
Stack_default,
|
|
12813
12808
|
{
|
|
12814
12809
|
sx: {
|
|
@@ -12817,7 +12812,7 @@ var LineChart2 = ({
|
|
|
12817
12812
|
gridTemplateColumns: "auto 1fr",
|
|
12818
12813
|
margin: "auto"
|
|
12819
12814
|
},
|
|
12820
|
-
children: /* @__PURE__ */
|
|
12815
|
+
children: /* @__PURE__ */ jsx67(
|
|
12821
12816
|
Typography_default,
|
|
12822
12817
|
{
|
|
12823
12818
|
sx: {
|
|
@@ -12833,13 +12828,13 @@ var LineChart2 = ({
|
|
|
12833
12828
|
)
|
|
12834
12829
|
}
|
|
12835
12830
|
),
|
|
12836
|
-
/* @__PURE__ */
|
|
12831
|
+
/* @__PURE__ */ jsx67(
|
|
12837
12832
|
Stack_default,
|
|
12838
12833
|
{
|
|
12839
12834
|
sx: {
|
|
12840
12835
|
width: series.length > 1 ? `calc(100% - 20px)` : "100%"
|
|
12841
12836
|
},
|
|
12842
|
-
children: /* @__PURE__ */
|
|
12837
|
+
children: /* @__PURE__ */ jsx67(
|
|
12843
12838
|
ReactEChartsCore2,
|
|
12844
12839
|
{
|
|
12845
12840
|
ref: chartRef,
|
|
@@ -12854,7 +12849,7 @@ var LineChart2 = ({
|
|
|
12854
12849
|
)
|
|
12855
12850
|
}
|
|
12856
12851
|
),
|
|
12857
|
-
!disableSeriesNames && series[0]?.name && /* @__PURE__ */
|
|
12852
|
+
!disableSeriesNames && series[0]?.name && /* @__PURE__ */ jsx67(
|
|
12858
12853
|
Stack_default,
|
|
12859
12854
|
{
|
|
12860
12855
|
sx: {
|
|
@@ -12863,7 +12858,7 @@ var LineChart2 = ({
|
|
|
12863
12858
|
gridTemplateColumns: "auto 1fr",
|
|
12864
12859
|
margin: "auto"
|
|
12865
12860
|
},
|
|
12866
|
-
children: /* @__PURE__ */
|
|
12861
|
+
children: /* @__PURE__ */ jsx67(
|
|
12867
12862
|
Typography_default,
|
|
12868
12863
|
{
|
|
12869
12864
|
sx: {
|
|
@@ -12889,15 +12884,15 @@ import { alpha as alpha3 } from "@mui/material";
|
|
|
12889
12884
|
|
|
12890
12885
|
// src/components/chart/RankingChartTooltip.tsx
|
|
12891
12886
|
import * as React33 from "react";
|
|
12892
|
-
import { jsx as
|
|
12887
|
+
import { jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12893
12888
|
var RankingChartTooltip = ({
|
|
12894
12889
|
label,
|
|
12895
12890
|
metrics = [],
|
|
12896
12891
|
incrementLabelType,
|
|
12897
12892
|
incrementLabelValue
|
|
12898
12893
|
}) => /* @__PURE__ */ jsxs28(Box_default2, { children: [
|
|
12899
|
-
/* @__PURE__ */
|
|
12900
|
-
/* @__PURE__ */
|
|
12894
|
+
/* @__PURE__ */ jsx68(Typography_default, { variant: "body2", component: "div", children: label }),
|
|
12895
|
+
/* @__PURE__ */ jsx68(
|
|
12901
12896
|
Box_default2,
|
|
12902
12897
|
{
|
|
12903
12898
|
sx: {
|
|
@@ -12907,10 +12902,10 @@ var RankingChartTooltip = ({
|
|
|
12907
12902
|
alignItems: "center"
|
|
12908
12903
|
},
|
|
12909
12904
|
children: metrics.map(({ color: color2, label: label2, value }, i) => /* @__PURE__ */ jsxs28(React33.Fragment, { children: [
|
|
12910
|
-
/* @__PURE__ */
|
|
12911
|
-
/* @__PURE__ */
|
|
12905
|
+
/* @__PURE__ */ jsx68(Icon_default, { id: "dot", size: "XS", sx: { color: color2 } }),
|
|
12906
|
+
/* @__PURE__ */ jsx68(Typography_default, { variant: "body2", children: label2 }),
|
|
12912
12907
|
/* @__PURE__ */ jsxs28("div", { style: { display: "flex", flexDirection: "row" }, children: [
|
|
12913
|
-
/* @__PURE__ */
|
|
12908
|
+
/* @__PURE__ */ jsx68(
|
|
12914
12909
|
Typography_default,
|
|
12915
12910
|
{
|
|
12916
12911
|
variant: "body2",
|
|
@@ -12921,7 +12916,7 @@ var RankingChartTooltip = ({
|
|
|
12921
12916
|
children: value
|
|
12922
12917
|
}
|
|
12923
12918
|
),
|
|
12924
|
-
incrementLabelType && incrementLabelValue && i === 0 ? /* @__PURE__ */
|
|
12919
|
+
incrementLabelType && incrementLabelValue && i === 0 ? /* @__PURE__ */ jsx68(
|
|
12925
12920
|
IncrementLabel_default,
|
|
12926
12921
|
{
|
|
12927
12922
|
color: incrementLabelStyles[incrementLabelType ?? "neutral"].color,
|
|
@@ -12940,7 +12935,7 @@ var RankingChartTooltip = ({
|
|
|
12940
12935
|
var RankingChartTooltip_default = RankingChartTooltip;
|
|
12941
12936
|
|
|
12942
12937
|
// src/components/chart/RankingChartItem.tsx
|
|
12943
|
-
import { jsx as
|
|
12938
|
+
import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
12944
12939
|
var RankingChartItem = ({
|
|
12945
12940
|
label,
|
|
12946
12941
|
value,
|
|
@@ -12948,7 +12943,7 @@ var RankingChartItem = ({
|
|
|
12948
12943
|
incrementLabelType,
|
|
12949
12944
|
metrics = []
|
|
12950
12945
|
}) => {
|
|
12951
|
-
const tooltipContent = /* @__PURE__ */
|
|
12946
|
+
const tooltipContent = /* @__PURE__ */ jsx69(
|
|
12952
12947
|
RankingChartTooltip_default,
|
|
12953
12948
|
{
|
|
12954
12949
|
label,
|
|
@@ -12973,7 +12968,7 @@ var RankingChartItem = ({
|
|
|
12973
12968
|
variant: "caption",
|
|
12974
12969
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
12975
12970
|
children: [
|
|
12976
|
-
/* @__PURE__ */
|
|
12971
|
+
/* @__PURE__ */ jsx69(
|
|
12977
12972
|
"div",
|
|
12978
12973
|
{
|
|
12979
12974
|
style: {
|
|
@@ -12986,8 +12981,8 @@ var RankingChartItem = ({
|
|
|
12986
12981
|
}
|
|
12987
12982
|
),
|
|
12988
12983
|
/* @__PURE__ */ jsxs29("div", { style: { display: "flex", justifyContent: "right" }, children: [
|
|
12989
|
-
/* @__PURE__ */
|
|
12990
|
-
incrementLabelValue && /* @__PURE__ */
|
|
12984
|
+
/* @__PURE__ */ jsx69("div", { style: { margin: "0px 8px 0px" }, children: value }),
|
|
12985
|
+
incrementLabelValue && /* @__PURE__ */ jsx69(
|
|
12991
12986
|
IncrementLabel_default,
|
|
12992
12987
|
{
|
|
12993
12988
|
color: incrementLabelType ? incrementLabelStyles[incrementLabelType].color : "inherit",
|
|
@@ -13001,7 +12996,7 @@ var RankingChartItem = ({
|
|
|
13001
12996
|
]
|
|
13002
12997
|
}
|
|
13003
12998
|
),
|
|
13004
|
-
/* @__PURE__ */
|
|
12999
|
+
/* @__PURE__ */ jsx69(
|
|
13005
13000
|
"div",
|
|
13006
13001
|
{
|
|
13007
13002
|
style: {
|
|
@@ -13012,7 +13007,7 @@ var RankingChartItem = ({
|
|
|
13012
13007
|
backgroundColor: alpha3(grey200, 0.5),
|
|
13013
13008
|
borderRadius: "0 8px 8px 0"
|
|
13014
13009
|
},
|
|
13015
|
-
children: metrics.slice().reverse().sort(({ percentage: p1 }, { percentage: p2 }) => p2 - p1).map(({ color: color2, percentage }, i) => /* @__PURE__ */
|
|
13010
|
+
children: metrics.slice().reverse().sort(({ percentage: p1 }, { percentage: p2 }) => p2 - p1).map(({ color: color2, percentage }, i) => /* @__PURE__ */ jsx69(
|
|
13016
13011
|
"div",
|
|
13017
13012
|
{
|
|
13018
13013
|
style: {
|
|
@@ -13032,13 +13027,13 @@ var RankingChartItem = ({
|
|
|
13032
13027
|
]
|
|
13033
13028
|
}
|
|
13034
13029
|
);
|
|
13035
|
-
return /* @__PURE__ */
|
|
13030
|
+
return /* @__PURE__ */ jsx69(Tooltip_default, { variant: "white", title: tooltipContent, children: content });
|
|
13036
13031
|
};
|
|
13037
13032
|
var RankingChartItem_default = RankingChartItem;
|
|
13038
13033
|
|
|
13039
13034
|
// src/components/chart/RankingChart.tsx
|
|
13040
|
-
import { jsx as
|
|
13041
|
-
var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__PURE__ */
|
|
13035
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
13036
|
+
var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__PURE__ */ jsx70(
|
|
13042
13037
|
"div",
|
|
13043
13038
|
{
|
|
13044
13039
|
style: {
|
|
@@ -13046,9 +13041,9 @@ var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__P
|
|
|
13046
13041
|
width: "100%",
|
|
13047
13042
|
...style3
|
|
13048
13043
|
},
|
|
13049
|
-
children: /* @__PURE__ */
|
|
13044
|
+
children: /* @__PURE__ */ jsx70(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" })
|
|
13050
13045
|
}
|
|
13051
|
-
) : /* @__PURE__ */
|
|
13046
|
+
) : /* @__PURE__ */ jsx70(
|
|
13052
13047
|
"div",
|
|
13053
13048
|
{
|
|
13054
13049
|
style: {
|
|
@@ -13059,7 +13054,7 @@ var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__P
|
|
|
13059
13054
|
height: "100%",
|
|
13060
13055
|
...style3
|
|
13061
13056
|
},
|
|
13062
|
-
children: series.map((serie, serieIndex) => /* @__PURE__ */
|
|
13057
|
+
children: series.map((serie, serieIndex) => /* @__PURE__ */ jsx70(
|
|
13063
13058
|
"div",
|
|
13064
13059
|
{
|
|
13065
13060
|
style: {
|
|
@@ -13067,7 +13062,7 @@ var RankingChart = ({ style: style3, series, isLoading }) => isLoading ? /* @__P
|
|
|
13067
13062
|
flexDirection: "column",
|
|
13068
13063
|
height: "100%"
|
|
13069
13064
|
},
|
|
13070
|
-
children: serie.items.map((item, itemIndex) => /* @__PURE__ */
|
|
13065
|
+
children: serie.items.map((item, itemIndex) => /* @__PURE__ */ jsx70(RankingChartItem_default, { ...item }, itemIndex))
|
|
13071
13066
|
},
|
|
13072
13067
|
serieIndex
|
|
13073
13068
|
))
|
|
@@ -13080,13 +13075,13 @@ import ReactEChartsCore3 from "echarts-for-react/lib/core";
|
|
|
13080
13075
|
import * as echarts4 from "echarts/core";
|
|
13081
13076
|
|
|
13082
13077
|
// src/components/chart/DonutChartLegendItem.tsx
|
|
13083
|
-
import { jsx as
|
|
13078
|
+
import { jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
13084
13079
|
var DonutChartLegendItem = ({
|
|
13085
13080
|
label,
|
|
13086
13081
|
variant,
|
|
13087
13082
|
colors = []
|
|
13088
13083
|
}) => /* @__PURE__ */ jsxs30(Box_default2, { sx: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
13089
|
-
/* @__PURE__ */
|
|
13084
|
+
/* @__PURE__ */ jsx71(StackedIcons_default, { children: colors.map((color2) => /* @__PURE__ */ jsx71(
|
|
13090
13085
|
Icon_default,
|
|
13091
13086
|
{
|
|
13092
13087
|
size: variant === "caption" ? "S" : "M",
|
|
@@ -13095,13 +13090,13 @@ var DonutChartLegendItem = ({
|
|
|
13095
13090
|
},
|
|
13096
13091
|
color2
|
|
13097
13092
|
)) }),
|
|
13098
|
-
/* @__PURE__ */
|
|
13093
|
+
/* @__PURE__ */ jsx71(Typography_default, { variant, children: label })
|
|
13099
13094
|
] });
|
|
13100
13095
|
var DonutChartLegendItem_default = DonutChartLegendItem;
|
|
13101
13096
|
|
|
13102
13097
|
// src/components/chart/DonutChart.tsx
|
|
13103
13098
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
13104
|
-
import { Fragment as Fragment12, jsx as
|
|
13099
|
+
import { Fragment as Fragment12, jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
13105
13100
|
var DonutChart = ({
|
|
13106
13101
|
style: style3,
|
|
13107
13102
|
isLoading,
|
|
@@ -13218,7 +13213,7 @@ var DonutChart = ({
|
|
|
13218
13213
|
if (isComparison) {
|
|
13219
13214
|
const incrementType = series[0].incrementLabelType ?? "neutral";
|
|
13220
13215
|
const incrementLabelIconId = series[0].incrementLabelType && incrementLabelStyles[series[0].incrementLabelType].icon;
|
|
13221
|
-
boxContent = series[0].incrementLabelValue && /* @__PURE__ */
|
|
13216
|
+
boxContent = series[0].incrementLabelValue && /* @__PURE__ */ jsx72(
|
|
13222
13217
|
IncrementLabel_default,
|
|
13223
13218
|
{
|
|
13224
13219
|
color: incrementLabelStyles[incrementType].color,
|
|
@@ -13245,13 +13240,13 @@ var DonutChart = ({
|
|
|
13245
13240
|
justifyContent: "center"
|
|
13246
13241
|
},
|
|
13247
13242
|
children: [
|
|
13248
|
-
/* @__PURE__ */
|
|
13243
|
+
/* @__PURE__ */ jsx72(Typography_default, { variant: "h4", children: series[0].value }),
|
|
13249
13244
|
boxContent
|
|
13250
13245
|
]
|
|
13251
13246
|
}
|
|
13252
13247
|
);
|
|
13253
13248
|
}
|
|
13254
|
-
return /* @__PURE__ */
|
|
13249
|
+
return /* @__PURE__ */ jsx72(
|
|
13255
13250
|
"div",
|
|
13256
13251
|
{
|
|
13257
13252
|
style: {
|
|
@@ -13261,10 +13256,10 @@ var DonutChart = ({
|
|
|
13261
13256
|
flexDirection: "column",
|
|
13262
13257
|
...style3
|
|
13263
13258
|
},
|
|
13264
|
-
children: isLoading ? /* @__PURE__ */
|
|
13259
|
+
children: isLoading ? /* @__PURE__ */ jsx72(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs31(Fragment12, { children: [
|
|
13265
13260
|
/* @__PURE__ */ jsxs31(Box_default2, { sx: { flexGrow: 1, position: "relative" }, children: [
|
|
13266
13261
|
title,
|
|
13267
|
-
/* @__PURE__ */
|
|
13262
|
+
/* @__PURE__ */ jsx72(
|
|
13268
13263
|
ReactEChartsCore3,
|
|
13269
13264
|
{
|
|
13270
13265
|
style: { width: "100%", height: "100%" },
|
|
@@ -13276,7 +13271,7 @@ var DonutChart = ({
|
|
|
13276
13271
|
}
|
|
13277
13272
|
)
|
|
13278
13273
|
] }),
|
|
13279
|
-
series.length > 1 && /* @__PURE__ */
|
|
13274
|
+
series.length > 1 && /* @__PURE__ */ jsx72(
|
|
13280
13275
|
Box_default2,
|
|
13281
13276
|
{
|
|
13282
13277
|
sx: {
|
|
@@ -13285,7 +13280,7 @@ var DonutChart = ({
|
|
|
13285
13280
|
gap: "8px",
|
|
13286
13281
|
padding: "8px 0"
|
|
13287
13282
|
},
|
|
13288
|
-
children: series.map((s, i) => /* @__PURE__ */
|
|
13283
|
+
children: series.map((s, i) => /* @__PURE__ */ jsx72(
|
|
13289
13284
|
DonutChartLegendItem_default,
|
|
13290
13285
|
{
|
|
13291
13286
|
variant: "body2",
|
|
@@ -13296,7 +13291,7 @@ var DonutChart = ({
|
|
|
13296
13291
|
))
|
|
13297
13292
|
}
|
|
13298
13293
|
),
|
|
13299
|
-
series.length > 1 && isComparison && /* @__PURE__ */
|
|
13294
|
+
series.length > 1 && isComparison && /* @__PURE__ */ jsx72(
|
|
13300
13295
|
Box_default2,
|
|
13301
13296
|
{
|
|
13302
13297
|
sx: {
|
|
@@ -13305,7 +13300,7 @@ var DonutChart = ({
|
|
|
13305
13300
|
gap: "8px",
|
|
13306
13301
|
padding: "0 0 16px 0"
|
|
13307
13302
|
},
|
|
13308
|
-
children: series.map((s, i) => /* @__PURE__ */
|
|
13303
|
+
children: series.map((s, i) => /* @__PURE__ */ jsx72(
|
|
13309
13304
|
DonutChartLegendItem_default,
|
|
13310
13305
|
{
|
|
13311
13306
|
variant: "caption",
|
|
@@ -13327,7 +13322,7 @@ import ReactEChartsCore4 from "echarts-for-react/lib/core";
|
|
|
13327
13322
|
import * as echarts5 from "echarts/core";
|
|
13328
13323
|
import { alpha as alpha5 } from "@mui/material";
|
|
13329
13324
|
import AutoSizer2 from "react-virtualized-auto-sizer";
|
|
13330
|
-
import { jsx as
|
|
13325
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
13331
13326
|
var estimatedYAxisWidth2 = 50;
|
|
13332
13327
|
var barMinHeight2 = 1;
|
|
13333
13328
|
var FunnelChart = ({
|
|
@@ -13616,7 +13611,7 @@ var FunnelChart = ({
|
|
|
13616
13611
|
] : []
|
|
13617
13612
|
]
|
|
13618
13613
|
});
|
|
13619
|
-
return isLoading ? /* @__PURE__ */
|
|
13614
|
+
return isLoading ? /* @__PURE__ */ jsx73(
|
|
13620
13615
|
"div",
|
|
13621
13616
|
{
|
|
13622
13617
|
style: {
|
|
@@ -13624,9 +13619,9 @@ var FunnelChart = ({
|
|
|
13624
13619
|
width: "100%",
|
|
13625
13620
|
...style3
|
|
13626
13621
|
},
|
|
13627
|
-
children: /* @__PURE__ */
|
|
13622
|
+
children: /* @__PURE__ */ jsx73(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" })
|
|
13628
13623
|
}
|
|
13629
|
-
) : /* @__PURE__ */
|
|
13624
|
+
) : /* @__PURE__ */ jsx73(AutoSizer2, { style: { height: "100%", width: "100%" }, children: ({ width: width2 }) => /* @__PURE__ */ jsx73(
|
|
13630
13625
|
ReactEChartsCore4,
|
|
13631
13626
|
{
|
|
13632
13627
|
style: style3,
|
|
@@ -13645,10 +13640,10 @@ import { alpha as alpha6 } from "@mui/material";
|
|
|
13645
13640
|
|
|
13646
13641
|
// src/components/chart/WeekChartTooltip.tsx
|
|
13647
13642
|
import * as React34 from "react";
|
|
13648
|
-
import { jsx as
|
|
13643
|
+
import { jsx as jsx74, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
13649
13644
|
var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_default2, { children: [
|
|
13650
|
-
/* @__PURE__ */
|
|
13651
|
-
/* @__PURE__ */
|
|
13645
|
+
/* @__PURE__ */ jsx74(Typography_default, { variant: "body2", component: "div", children: label }),
|
|
13646
|
+
/* @__PURE__ */ jsx74(
|
|
13652
13647
|
Box_default2,
|
|
13653
13648
|
{
|
|
13654
13649
|
sx: {
|
|
@@ -13669,10 +13664,10 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13669
13664
|
incrementLabelValue
|
|
13670
13665
|
}, i) => [
|
|
13671
13666
|
/* @__PURE__ */ jsxs32(React34.Fragment, { children: [
|
|
13672
|
-
/* @__PURE__ */
|
|
13673
|
-
/* @__PURE__ */
|
|
13667
|
+
/* @__PURE__ */ jsx74(Icon_default, { id: "dot", size: "S", sx: { color: color2 } }),
|
|
13668
|
+
/* @__PURE__ */ jsx74(Typography_default, { variant: "body2", children: label2 }),
|
|
13674
13669
|
/* @__PURE__ */ jsxs32("div", { style: { display: "flex", flexDirection: "row" }, children: [
|
|
13675
|
-
/* @__PURE__ */
|
|
13670
|
+
/* @__PURE__ */ jsx74(
|
|
13676
13671
|
Typography_default,
|
|
13677
13672
|
{
|
|
13678
13673
|
variant: "body2",
|
|
@@ -13683,7 +13678,7 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13683
13678
|
children: value
|
|
13684
13679
|
}
|
|
13685
13680
|
),
|
|
13686
|
-
incrementLabelType && incrementLabelValue ? /* @__PURE__ */
|
|
13681
|
+
incrementLabelType && incrementLabelValue ? /* @__PURE__ */ jsx74(
|
|
13687
13682
|
IncrementLabel_default,
|
|
13688
13683
|
{
|
|
13689
13684
|
color: incrementLabelStyles[incrementLabelType ?? "neutral"].color,
|
|
@@ -13698,7 +13693,7 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13698
13693
|
] }, i),
|
|
13699
13694
|
...comparisonLabel ? [
|
|
13700
13695
|
/* @__PURE__ */ jsxs32(React34.Fragment, { children: [
|
|
13701
|
-
/* @__PURE__ */
|
|
13696
|
+
/* @__PURE__ */ jsx74(
|
|
13702
13697
|
Icon_default,
|
|
13703
13698
|
{
|
|
13704
13699
|
id: "dot",
|
|
@@ -13706,8 +13701,8 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13706
13701
|
sx: { color: comparisonColor }
|
|
13707
13702
|
}
|
|
13708
13703
|
),
|
|
13709
|
-
/* @__PURE__ */
|
|
13710
|
-
/* @__PURE__ */
|
|
13704
|
+
/* @__PURE__ */ jsx74(Typography_default, { variant: "body2", children: comparisonLabel }),
|
|
13705
|
+
/* @__PURE__ */ jsx74(
|
|
13711
13706
|
Typography_default,
|
|
13712
13707
|
{
|
|
13713
13708
|
variant: "body2",
|
|
@@ -13726,9 +13721,9 @@ var WeekChartTooltip = ({ label, metrics }) => /* @__PURE__ */ jsxs32(Box_defaul
|
|
|
13726
13721
|
var WeekChartTooltip_default = WeekChartTooltip;
|
|
13727
13722
|
|
|
13728
13723
|
// src/components/chart/WeekChartItem.tsx
|
|
13729
|
-
import { jsx as
|
|
13724
|
+
import { jsx as jsx75, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
13730
13725
|
var WeekChartItem = ({ label, metrics = [] }) => {
|
|
13731
|
-
const tooltipContent = /* @__PURE__ */
|
|
13726
|
+
const tooltipContent = /* @__PURE__ */ jsx75(WeekChartTooltip_default, { label, metrics });
|
|
13732
13727
|
const content = /* @__PURE__ */ jsxs33(
|
|
13733
13728
|
Typography_default,
|
|
13734
13729
|
{
|
|
@@ -13742,7 +13737,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13742
13737
|
},
|
|
13743
13738
|
color: grey400,
|
|
13744
13739
|
children: [
|
|
13745
|
-
/* @__PURE__ */
|
|
13740
|
+
/* @__PURE__ */ jsx75(
|
|
13746
13741
|
"div",
|
|
13747
13742
|
{
|
|
13748
13743
|
style: {
|
|
@@ -13753,7 +13748,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13753
13748
|
children: label
|
|
13754
13749
|
}
|
|
13755
13750
|
),
|
|
13756
|
-
/* @__PURE__ */
|
|
13751
|
+
/* @__PURE__ */ jsx75(
|
|
13757
13752
|
"div",
|
|
13758
13753
|
{
|
|
13759
13754
|
style: {
|
|
@@ -13772,7 +13767,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13772
13767
|
comparisonColor,
|
|
13773
13768
|
comparisonPercentage
|
|
13774
13769
|
}, i) => {
|
|
13775
|
-
const mainDiv = /* @__PURE__ */
|
|
13770
|
+
const mainDiv = /* @__PURE__ */ jsx75(
|
|
13776
13771
|
"div",
|
|
13777
13772
|
{
|
|
13778
13773
|
style: {
|
|
@@ -13790,7 +13785,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13790
13785
|
let isComparisonInBack = false;
|
|
13791
13786
|
let comparisonDiv = null;
|
|
13792
13787
|
if (Number.isFinite(comparisonPercentage)) {
|
|
13793
|
-
comparisonDiv = /* @__PURE__ */
|
|
13788
|
+
comparisonDiv = /* @__PURE__ */ jsx75(
|
|
13794
13789
|
"div",
|
|
13795
13790
|
{
|
|
13796
13791
|
style: {
|
|
@@ -13807,7 +13802,7 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13807
13802
|
);
|
|
13808
13803
|
isComparisonInBack = comparisonPercentage > percentage;
|
|
13809
13804
|
}
|
|
13810
|
-
return /* @__PURE__ */
|
|
13805
|
+
return /* @__PURE__ */ jsx75(
|
|
13811
13806
|
"div",
|
|
13812
13807
|
{
|
|
13813
13808
|
style: { height: "100%", position: "relative" },
|
|
@@ -13822,13 +13817,13 @@ var WeekChartItem = ({ label, metrics = [] }) => {
|
|
|
13822
13817
|
]
|
|
13823
13818
|
}
|
|
13824
13819
|
);
|
|
13825
|
-
return /* @__PURE__ */
|
|
13820
|
+
return /* @__PURE__ */ jsx75(Tooltip_default, { variant: "white", title: tooltipContent, children: content });
|
|
13826
13821
|
};
|
|
13827
13822
|
var WeekChartItem_default = WeekChartItem;
|
|
13828
13823
|
|
|
13829
13824
|
// src/components/chart/WeekChart.tsx
|
|
13830
|
-
import { jsx as
|
|
13831
|
-
var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */
|
|
13825
|
+
import { jsx as jsx76, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
13826
|
+
var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx76(
|
|
13832
13827
|
"div",
|
|
13833
13828
|
{
|
|
13834
13829
|
style: {
|
|
@@ -13838,7 +13833,7 @@ var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx77(
|
|
|
13838
13833
|
height: "100%",
|
|
13839
13834
|
...style3
|
|
13840
13835
|
},
|
|
13841
|
-
children: isLoading ? /* @__PURE__ */
|
|
13836
|
+
children: isLoading ? /* @__PURE__ */ jsx76(
|
|
13842
13837
|
Skeleton_default,
|
|
13843
13838
|
{
|
|
13844
13839
|
variant: "rectangular",
|
|
@@ -13855,8 +13850,8 @@ var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx77(
|
|
|
13855
13850
|
gap: "2px"
|
|
13856
13851
|
},
|
|
13857
13852
|
children: [
|
|
13858
|
-
/* @__PURE__ */
|
|
13859
|
-
day.hours.map((hour) => /* @__PURE__ */
|
|
13853
|
+
/* @__PURE__ */ jsx76(Typography_default, { variant: "caption", children: day.label }),
|
|
13854
|
+
day.hours.map((hour) => /* @__PURE__ */ jsx76(
|
|
13860
13855
|
WeekChartItem_default,
|
|
13861
13856
|
{
|
|
13862
13857
|
label: hour.label,
|
|
@@ -13873,11 +13868,11 @@ var WeekChart = ({ style: style3, days, isLoading }) => /* @__PURE__ */ jsx77(
|
|
|
13873
13868
|
var WeekChart_default = WeekChart;
|
|
13874
13869
|
|
|
13875
13870
|
// src/components/chart/MicroPieChart.tsx
|
|
13876
|
-
import { jsx as
|
|
13871
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
13877
13872
|
var MicroPieChart = ({
|
|
13878
13873
|
color: color2 = primaryMain,
|
|
13879
13874
|
percentage
|
|
13880
|
-
}) => /* @__PURE__ */
|
|
13875
|
+
}) => /* @__PURE__ */ jsx77(
|
|
13881
13876
|
Box_default2,
|
|
13882
13877
|
{
|
|
13883
13878
|
sx: {
|
|
@@ -13902,7 +13897,7 @@ var MicroPieChart_default = MicroPieChart;
|
|
|
13902
13897
|
|
|
13903
13898
|
// src/components/chat/ChatMessage.tsx
|
|
13904
13899
|
import * as React35 from "react";
|
|
13905
|
-
import { jsx as
|
|
13900
|
+
import { jsx as jsx78, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
13906
13901
|
var outgoingChatMessageAnimation = keyframes`
|
|
13907
13902
|
0% { transform: translateY(50px); }
|
|
13908
13903
|
25% { transform: translateY(0px); }
|
|
@@ -13941,7 +13936,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
13941
13936
|
},
|
|
13942
13937
|
children: [
|
|
13943
13938
|
messageType === "outgoing" && adornment,
|
|
13944
|
-
/* @__PURE__ */
|
|
13939
|
+
/* @__PURE__ */ jsx78(
|
|
13945
13940
|
Box_default2,
|
|
13946
13941
|
{
|
|
13947
13942
|
sx: {
|
|
@@ -13981,7 +13976,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
13981
13976
|
wordBreak: "break-word"
|
|
13982
13977
|
},
|
|
13983
13978
|
children: [
|
|
13984
|
-
/* @__PURE__ */
|
|
13979
|
+
/* @__PURE__ */ jsx78(
|
|
13985
13980
|
Typography_default,
|
|
13986
13981
|
{
|
|
13987
13982
|
color: !typographyColor ? messageType === "incoming" ? grey900 : white : typographyColor,
|
|
@@ -13990,7 +13985,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
13990
13985
|
children
|
|
13991
13986
|
}
|
|
13992
13987
|
),
|
|
13993
|
-
optionsBar && /* @__PURE__ */
|
|
13988
|
+
optionsBar && /* @__PURE__ */ jsx78(
|
|
13994
13989
|
Box_default2,
|
|
13995
13990
|
{
|
|
13996
13991
|
sx: {
|
|
@@ -14003,7 +13998,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14003
13998
|
children: optionsBar
|
|
14004
13999
|
}
|
|
14005
14000
|
),
|
|
14006
|
-
!!cancelableButtonText && /* @__PURE__ */
|
|
14001
|
+
!!cancelableButtonText && /* @__PURE__ */ jsx78(Tooltip_default, { title: cancelableButtonText, children: /* @__PURE__ */ jsx78(
|
|
14007
14002
|
Box_default2,
|
|
14008
14003
|
{
|
|
14009
14004
|
sx: {
|
|
@@ -14011,7 +14006,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14011
14006
|
left: "4px",
|
|
14012
14007
|
bottom: "4px"
|
|
14013
14008
|
},
|
|
14014
|
-
children: /* @__PURE__ */
|
|
14009
|
+
children: /* @__PURE__ */ jsx78(
|
|
14015
14010
|
IconButton_default,
|
|
14016
14011
|
{
|
|
14017
14012
|
iconId: "stop",
|
|
@@ -14049,7 +14044,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14049
14044
|
bottom: 0
|
|
14050
14045
|
},
|
|
14051
14046
|
children: [
|
|
14052
|
-
/* @__PURE__ */
|
|
14047
|
+
/* @__PURE__ */ jsx78(
|
|
14053
14048
|
Icon_default,
|
|
14054
14049
|
{
|
|
14055
14050
|
id: "information-outline",
|
|
@@ -14057,7 +14052,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
14057
14052
|
sx: { marginRight: "5px" }
|
|
14058
14053
|
}
|
|
14059
14054
|
),
|
|
14060
|
-
/* @__PURE__ */
|
|
14055
|
+
/* @__PURE__ */ jsx78(Typography_default, { variant: "caption", color: grey500, children: errorText })
|
|
14061
14056
|
]
|
|
14062
14057
|
}
|
|
14063
14058
|
)
|
|
@@ -14070,7 +14065,7 @@ var ChatMessage_default = ChatMessage;
|
|
|
14070
14065
|
// src/components/chat/Chat.tsx
|
|
14071
14066
|
import Stack5 from "@mui/material/Stack";
|
|
14072
14067
|
import * as React36 from "react";
|
|
14073
|
-
import { jsx as
|
|
14068
|
+
import { jsx as jsx79, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14074
14069
|
var PADDING_BOTTOM = 8;
|
|
14075
14070
|
var Chat = ({
|
|
14076
14071
|
children,
|
|
@@ -14191,7 +14186,7 @@ var Chat = ({
|
|
|
14191
14186
|
spacing: "12px",
|
|
14192
14187
|
children: [
|
|
14193
14188
|
header,
|
|
14194
|
-
/* @__PURE__ */
|
|
14189
|
+
/* @__PURE__ */ jsx79(
|
|
14195
14190
|
Stack5,
|
|
14196
14191
|
{
|
|
14197
14192
|
ref: innerRef,
|
|
@@ -15692,7 +15687,7 @@ var useTranslation = () => {
|
|
|
15692
15687
|
import {
|
|
15693
15688
|
Dialog as MuiDialog
|
|
15694
15689
|
} from "@mui/material";
|
|
15695
|
-
import { Fragment as Fragment14, jsx as
|
|
15690
|
+
import { Fragment as Fragment14, jsx as jsx80, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
15696
15691
|
var sizes5 = {
|
|
15697
15692
|
S: "480px",
|
|
15698
15693
|
M: "640px",
|
|
@@ -15724,8 +15719,8 @@ var Dialog = ({
|
|
|
15724
15719
|
...noPadding && !noPaddingTitle && { margin: "16px 24px 0 24px" }
|
|
15725
15720
|
},
|
|
15726
15721
|
children: [
|
|
15727
|
-
typeof title === "string" ? /* @__PURE__ */
|
|
15728
|
-
closeable && /* @__PURE__ */
|
|
15722
|
+
typeof title === "string" ? /* @__PURE__ */ jsx80(Typography_default, { variant: "h5", children: title }) : title,
|
|
15723
|
+
closeable && /* @__PURE__ */ jsx80(
|
|
15729
15724
|
IconButton_default,
|
|
15730
15725
|
{
|
|
15731
15726
|
iconId: "close",
|
|
@@ -15736,10 +15731,10 @@ var Dialog = ({
|
|
|
15736
15731
|
]
|
|
15737
15732
|
}
|
|
15738
15733
|
),
|
|
15739
|
-
wrapChildren && /* @__PURE__ */
|
|
15734
|
+
wrapChildren && /* @__PURE__ */ jsx80(Box_default2, { className: "Slim-Vertical-Scroll", children }),
|
|
15740
15735
|
!wrapChildren && children
|
|
15741
15736
|
] });
|
|
15742
|
-
return /* @__PURE__ */
|
|
15737
|
+
return /* @__PURE__ */ jsx80(
|
|
15743
15738
|
MuiDialog,
|
|
15744
15739
|
{
|
|
15745
15740
|
open,
|
|
@@ -15758,7 +15753,7 @@ var Dialog = ({
|
|
|
15758
15753
|
},
|
|
15759
15754
|
className: "Cn-Dialog Slim-Vertical-Scroll"
|
|
15760
15755
|
},
|
|
15761
|
-
children: fullScreen ? /* @__PURE__ */
|
|
15756
|
+
children: fullScreen ? /* @__PURE__ */ jsx80(
|
|
15762
15757
|
Stack_default,
|
|
15763
15758
|
{
|
|
15764
15759
|
height: "100%",
|
|
@@ -15772,7 +15767,7 @@ var Dialog = ({
|
|
|
15772
15767
|
var Dialog_default = Dialog;
|
|
15773
15768
|
|
|
15774
15769
|
// src/components/dialog/ConfirmationDialog.tsx
|
|
15775
|
-
import { jsx as
|
|
15770
|
+
import { jsx as jsx81, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
15776
15771
|
var ConfirmationDialog = ({
|
|
15777
15772
|
onCancel = () => ({}),
|
|
15778
15773
|
onAccept = () => ({}),
|
|
@@ -15818,7 +15813,7 @@ var ConfirmationDialog = ({
|
|
|
15818
15813
|
const compare = scrollContainer.current.scrollHeight > scrollContainer.current.clientHeight;
|
|
15819
15814
|
setHasScrollPopup(compare);
|
|
15820
15815
|
};
|
|
15821
|
-
return /* @__PURE__ */
|
|
15816
|
+
return /* @__PURE__ */ jsx81(
|
|
15822
15817
|
Dialog_default,
|
|
15823
15818
|
{
|
|
15824
15819
|
onClose: onCancel,
|
|
@@ -15837,7 +15832,7 @@ var ConfirmationDialog = ({
|
|
|
15837
15832
|
}
|
|
15838
15833
|
},
|
|
15839
15834
|
children: [
|
|
15840
|
-
/* @__PURE__ */
|
|
15835
|
+
/* @__PURE__ */ jsx81(
|
|
15841
15836
|
Box_default2,
|
|
15842
15837
|
{
|
|
15843
15838
|
flexGrow: 1,
|
|
@@ -15860,7 +15855,7 @@ var ConfirmationDialog = ({
|
|
|
15860
15855
|
footerChildren,
|
|
15861
15856
|
/* @__PURE__ */ jsxs38(Stack_default, { direction: "row", spacing: 2, justifyContent: "end", children: [
|
|
15862
15857
|
buttonsLeftChildren,
|
|
15863
|
-
!hideCancelButton && /* @__PURE__ */
|
|
15858
|
+
!hideCancelButton && /* @__PURE__ */ jsx81(
|
|
15864
15859
|
Button_default,
|
|
15865
15860
|
{
|
|
15866
15861
|
color: "white",
|
|
@@ -15869,12 +15864,12 @@ var ConfirmationDialog = ({
|
|
|
15869
15864
|
onClick: onCancel
|
|
15870
15865
|
}
|
|
15871
15866
|
),
|
|
15872
|
-
/* @__PURE__ */
|
|
15867
|
+
/* @__PURE__ */ jsx81(
|
|
15873
15868
|
Tooltip_default,
|
|
15874
15869
|
{
|
|
15875
15870
|
title: acceptButtonDisabled ? acceptButtonDisabledTooltipText || "" : "",
|
|
15876
15871
|
allowDisabled: true,
|
|
15877
|
-
children: /* @__PURE__ */
|
|
15872
|
+
children: /* @__PURE__ */ jsx81(
|
|
15878
15873
|
Button_default,
|
|
15879
15874
|
{
|
|
15880
15875
|
color: variant,
|
|
@@ -15901,10 +15896,10 @@ var ConfirmationDialog_default = ConfirmationDialog;
|
|
|
15901
15896
|
|
|
15902
15897
|
// src/components/drawer/Drawer.tsx
|
|
15903
15898
|
import MuiDrawer from "@mui/material/Drawer";
|
|
15904
|
-
import { jsx as
|
|
15899
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
15905
15900
|
var defaultWidth = 600;
|
|
15906
15901
|
var defaultAnchor = "right";
|
|
15907
|
-
var Drawer = ({ ...props }) => /* @__PURE__ */
|
|
15902
|
+
var Drawer = ({ ...props }) => /* @__PURE__ */ jsx82(
|
|
15908
15903
|
MuiDrawer,
|
|
15909
15904
|
{
|
|
15910
15905
|
anchor: defaultAnchor,
|
|
@@ -15919,7 +15914,7 @@ var Drawer = ({ ...props }) => /* @__PURE__ */ jsx83(
|
|
|
15919
15914
|
var Drawer_default = Drawer;
|
|
15920
15915
|
|
|
15921
15916
|
// src/components/drawer/InputDrawer.tsx
|
|
15922
|
-
import { jsx as
|
|
15917
|
+
import { jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15923
15918
|
var InputDrawer = ({
|
|
15924
15919
|
open,
|
|
15925
15920
|
close,
|
|
@@ -15928,7 +15923,7 @@ var InputDrawer = ({
|
|
|
15928
15923
|
children,
|
|
15929
15924
|
buttons,
|
|
15930
15925
|
cancelButtonText
|
|
15931
|
-
}) => /* @__PURE__ */
|
|
15926
|
+
}) => /* @__PURE__ */ jsx83(Drawer_default, { open, onClose, children: /* @__PURE__ */ jsxs39(Stack_default, { sx: { height: "100%" }, children: [
|
|
15932
15927
|
/* @__PURE__ */ jsxs39(
|
|
15933
15928
|
Stack_default,
|
|
15934
15929
|
{
|
|
@@ -15940,12 +15935,12 @@ var InputDrawer = ({
|
|
|
15940
15935
|
borderBottom: `1px solid ${Colors_exports.grey200}`
|
|
15941
15936
|
},
|
|
15942
15937
|
children: [
|
|
15943
|
-
/* @__PURE__ */
|
|
15944
|
-
/* @__PURE__ */
|
|
15938
|
+
/* @__PURE__ */ jsx83(Typography_default, { variant: "h6", children: title }),
|
|
15939
|
+
/* @__PURE__ */ jsx83(IconButton_default, { iconId: "close", onClick: () => close() })
|
|
15945
15940
|
]
|
|
15946
15941
|
}
|
|
15947
15942
|
),
|
|
15948
|
-
/* @__PURE__ */
|
|
15943
|
+
/* @__PURE__ */ jsx83(
|
|
15949
15944
|
Box_default2,
|
|
15950
15945
|
{
|
|
15951
15946
|
className: "Slim-Vertical-Scroll",
|
|
@@ -15968,7 +15963,7 @@ var InputDrawer = ({
|
|
|
15968
15963
|
borderTop: `1px solid ${Colors_exports.grey200}`
|
|
15969
15964
|
},
|
|
15970
15965
|
children: [
|
|
15971
|
-
/* @__PURE__ */
|
|
15966
|
+
/* @__PURE__ */ jsx83(
|
|
15972
15967
|
Button_default,
|
|
15973
15968
|
{
|
|
15974
15969
|
text: cancelButtonText,
|
|
@@ -15977,7 +15972,7 @@ var InputDrawer = ({
|
|
|
15977
15972
|
color: "white"
|
|
15978
15973
|
}
|
|
15979
15974
|
),
|
|
15980
|
-
/* @__PURE__ */
|
|
15975
|
+
/* @__PURE__ */ jsx83(Stack_default, { direction: "row", spacing: 1, children: buttons })
|
|
15981
15976
|
]
|
|
15982
15977
|
}
|
|
15983
15978
|
)
|
|
@@ -17687,23 +17682,23 @@ function isValidPhoneNumber(phone) {
|
|
|
17687
17682
|
}
|
|
17688
17683
|
|
|
17689
17684
|
// src/components/formatter/CompactNumberFormatter.tsx
|
|
17690
|
-
import { Fragment as Fragment15, jsx as
|
|
17685
|
+
import { Fragment as Fragment15, jsx as jsx84 } from "react/jsx-runtime";
|
|
17691
17686
|
var CompactNumberFormatter = ({ value }) => {
|
|
17692
17687
|
const { locale } = React38.useContext(IntlContext);
|
|
17693
|
-
return /* @__PURE__ */
|
|
17688
|
+
return /* @__PURE__ */ jsx84(Fragment15, { children: formatCompactNumber(value, locale) });
|
|
17694
17689
|
};
|
|
17695
17690
|
var CompactNumberFormatter_default = CompactNumberFormatter;
|
|
17696
17691
|
|
|
17697
17692
|
// src/components/formatter/CurrencyFormatter.tsx
|
|
17698
17693
|
import * as React39 from "react";
|
|
17699
|
-
import { Fragment as Fragment16, jsx as
|
|
17694
|
+
import { Fragment as Fragment16, jsx as jsx85 } from "react/jsx-runtime";
|
|
17700
17695
|
var CurrencyFormatter = ({
|
|
17701
17696
|
value,
|
|
17702
17697
|
notation,
|
|
17703
17698
|
currency
|
|
17704
17699
|
}) => {
|
|
17705
17700
|
const { locale, currency: contextCurrency } = React39.useContext(IntlContext);
|
|
17706
|
-
return /* @__PURE__ */
|
|
17701
|
+
return /* @__PURE__ */ jsx85(Fragment16, { children: formatCurrency(
|
|
17707
17702
|
value,
|
|
17708
17703
|
locale,
|
|
17709
17704
|
currency ?? contextCurrency,
|
|
@@ -17714,45 +17709,45 @@ var CurrencyFormatter_default = CurrencyFormatter;
|
|
|
17714
17709
|
|
|
17715
17710
|
// src/components/formatter/NumberFormatter.tsx
|
|
17716
17711
|
import * as React40 from "react";
|
|
17717
|
-
import { Fragment as Fragment17, jsx as
|
|
17712
|
+
import { Fragment as Fragment17, jsx as jsx86 } from "react/jsx-runtime";
|
|
17718
17713
|
var NumberFormatter = ({ value, fractionSize }) => {
|
|
17719
17714
|
const { locale } = React40.useContext(IntlContext);
|
|
17720
|
-
return /* @__PURE__ */
|
|
17715
|
+
return /* @__PURE__ */ jsx86(Fragment17, { children: formatNumber(value, locale, fractionSize) });
|
|
17721
17716
|
};
|
|
17722
17717
|
var NumberFormatter_default = NumberFormatter;
|
|
17723
17718
|
|
|
17724
17719
|
// src/components/formatter/PercentageFormatter.tsx
|
|
17725
17720
|
import * as React41 from "react";
|
|
17726
|
-
import { Fragment as Fragment18, jsx as
|
|
17721
|
+
import { Fragment as Fragment18, jsx as jsx87 } from "react/jsx-runtime";
|
|
17727
17722
|
var PercentageFormatter = ({
|
|
17728
17723
|
value,
|
|
17729
17724
|
fractionSize
|
|
17730
17725
|
}) => {
|
|
17731
17726
|
const { locale } = React41.useContext(IntlContext);
|
|
17732
|
-
return /* @__PURE__ */
|
|
17727
|
+
return /* @__PURE__ */ jsx87(Fragment18, { children: formatPercentage(value, locale, fractionSize) });
|
|
17733
17728
|
};
|
|
17734
17729
|
var PercentageFormatter_default = PercentageFormatter;
|
|
17735
17730
|
|
|
17736
17731
|
// src/components/formatter/DateFormatter.tsx
|
|
17737
17732
|
import * as React42 from "react";
|
|
17738
|
-
import { Fragment as Fragment19, jsx as
|
|
17733
|
+
import { Fragment as Fragment19, jsx as jsx88 } from "react/jsx-runtime";
|
|
17739
17734
|
var DateFormatter = ({ date, format: format2 }) => {
|
|
17740
17735
|
const { locale, timezone } = React42.useContext(IntlContext);
|
|
17741
|
-
return /* @__PURE__ */
|
|
17736
|
+
return /* @__PURE__ */ jsx88(Fragment19, { children: formatDate(date, locale, timezone, format2) });
|
|
17742
17737
|
};
|
|
17743
17738
|
var DateFormatter_default = DateFormatter;
|
|
17744
17739
|
|
|
17745
17740
|
// src/components/header/HeaderTitle.tsx
|
|
17746
17741
|
import * as React43 from "react";
|
|
17747
|
-
import { jsx as
|
|
17742
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
17748
17743
|
var HeaderTitle = ({ text }) => {
|
|
17749
17744
|
const textElementRef = React43.useRef(null);
|
|
17750
|
-
return /* @__PURE__ */
|
|
17745
|
+
return /* @__PURE__ */ jsx89(
|
|
17751
17746
|
TextEllipsisTooltip_default,
|
|
17752
17747
|
{
|
|
17753
17748
|
title: text ?? "\xA0",
|
|
17754
17749
|
textEllipsableElement: textElementRef,
|
|
17755
|
-
children: /* @__PURE__ */
|
|
17750
|
+
children: /* @__PURE__ */ jsx89(
|
|
17756
17751
|
Typography_default,
|
|
17757
17752
|
{
|
|
17758
17753
|
color: grey800,
|
|
@@ -17770,15 +17765,15 @@ var HeaderTitle_default = HeaderTitle;
|
|
|
17770
17765
|
|
|
17771
17766
|
// src/components/header/HeaderSubtitle.tsx
|
|
17772
17767
|
import * as React44 from "react";
|
|
17773
|
-
import { jsx as
|
|
17768
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
17774
17769
|
var HeaderSubtitle = ({ text }) => {
|
|
17775
17770
|
const textElementRef = React44.useRef(null);
|
|
17776
|
-
return typeof text === "string" ? /* @__PURE__ */
|
|
17771
|
+
return typeof text === "string" ? /* @__PURE__ */ jsx90(
|
|
17777
17772
|
TextEllipsisTooltip_default,
|
|
17778
17773
|
{
|
|
17779
17774
|
title: text ?? "\xA0",
|
|
17780
17775
|
textEllipsableElement: textElementRef,
|
|
17781
|
-
children: /* @__PURE__ */
|
|
17776
|
+
children: /* @__PURE__ */ jsx90(
|
|
17782
17777
|
Typography_default,
|
|
17783
17778
|
{
|
|
17784
17779
|
color: grey800,
|
|
@@ -17790,12 +17785,12 @@ var HeaderSubtitle = ({ text }) => {
|
|
|
17790
17785
|
}
|
|
17791
17786
|
)
|
|
17792
17787
|
}
|
|
17793
|
-
) : /* @__PURE__ */
|
|
17788
|
+
) : /* @__PURE__ */ jsx90(Typography_default, { color: grey800, component: "div", variant: "body1", noWrap: true, children: text });
|
|
17794
17789
|
};
|
|
17795
17790
|
var HeaderSubtitle_default = HeaderSubtitle;
|
|
17796
17791
|
|
|
17797
17792
|
// src/components/header/Header.tsx
|
|
17798
|
-
import { jsx as
|
|
17793
|
+
import { jsx as jsx91, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
17799
17794
|
var Header = ({
|
|
17800
17795
|
title,
|
|
17801
17796
|
subtitle,
|
|
@@ -17803,7 +17798,7 @@ var Header = ({
|
|
|
17803
17798
|
isElevated = false,
|
|
17804
17799
|
actions,
|
|
17805
17800
|
children
|
|
17806
|
-
}) => /* @__PURE__ */
|
|
17801
|
+
}) => /* @__PURE__ */ jsx91(PageScrollContext.Consumer, { children: (value) => /* @__PURE__ */ jsx91(
|
|
17807
17802
|
Box_default2,
|
|
17808
17803
|
{
|
|
17809
17804
|
sx: {
|
|
@@ -17843,12 +17838,12 @@ var Header = ({
|
|
|
17843
17838
|
overflow: "clip"
|
|
17844
17839
|
},
|
|
17845
17840
|
children: [
|
|
17846
|
-
iconId && /* @__PURE__ */
|
|
17847
|
-
/* @__PURE__ */
|
|
17841
|
+
iconId && /* @__PURE__ */ jsx91(Avatar_default, { iconId, size: "L" }),
|
|
17842
|
+
/* @__PURE__ */ jsx91(HeaderTitle_default, { text: title })
|
|
17848
17843
|
]
|
|
17849
17844
|
}
|
|
17850
17845
|
),
|
|
17851
|
-
/* @__PURE__ */
|
|
17846
|
+
/* @__PURE__ */ jsx91(
|
|
17852
17847
|
Box_default2,
|
|
17853
17848
|
{
|
|
17854
17849
|
sx: {
|
|
@@ -17864,7 +17859,7 @@ var Header = ({
|
|
|
17864
17859
|
]
|
|
17865
17860
|
}
|
|
17866
17861
|
),
|
|
17867
|
-
subtitle && /* @__PURE__ */
|
|
17862
|
+
subtitle && /* @__PURE__ */ jsx91(
|
|
17868
17863
|
Box_default2,
|
|
17869
17864
|
{
|
|
17870
17865
|
sx: {
|
|
@@ -17872,10 +17867,10 @@ var Header = ({
|
|
|
17872
17867
|
...iconId && { paddingLeft: "56px" },
|
|
17873
17868
|
paddingBottom: "8px"
|
|
17874
17869
|
},
|
|
17875
|
-
children: /* @__PURE__ */
|
|
17870
|
+
children: /* @__PURE__ */ jsx91(HeaderSubtitle_default, { text: subtitle })
|
|
17876
17871
|
}
|
|
17877
17872
|
),
|
|
17878
|
-
children && /* @__PURE__ */
|
|
17873
|
+
children && /* @__PURE__ */ jsx91(Box_default2, { children })
|
|
17879
17874
|
] })
|
|
17880
17875
|
}
|
|
17881
17876
|
) });
|
|
@@ -17887,7 +17882,7 @@ import FilerobotImageEditor, {
|
|
|
17887
17882
|
TABS,
|
|
17888
17883
|
TOOLS
|
|
17889
17884
|
} from "react-filerobot-image-editor";
|
|
17890
|
-
import { jsx as
|
|
17885
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
17891
17886
|
var ImageEditor = ({
|
|
17892
17887
|
imageUrl,
|
|
17893
17888
|
maxWidth: maxWidth2,
|
|
@@ -18126,7 +18121,7 @@ var ImageEditor = ({
|
|
|
18126
18121
|
document.head.removeChild(style3);
|
|
18127
18122
|
};
|
|
18128
18123
|
}, []);
|
|
18129
|
-
return /* @__PURE__ */
|
|
18124
|
+
return /* @__PURE__ */ jsx92(
|
|
18130
18125
|
Box_default2,
|
|
18131
18126
|
{
|
|
18132
18127
|
sx: {
|
|
@@ -18193,7 +18188,7 @@ var ImageEditor = ({
|
|
|
18193
18188
|
},
|
|
18194
18189
|
height: "100%"
|
|
18195
18190
|
},
|
|
18196
|
-
children: /* @__PURE__ */
|
|
18191
|
+
children: /* @__PURE__ */ jsx92(
|
|
18197
18192
|
FilerobotImageEditor,
|
|
18198
18193
|
{
|
|
18199
18194
|
source: imageUrl,
|
|
@@ -18313,7 +18308,7 @@ function useResizeObserver() {
|
|
|
18313
18308
|
}
|
|
18314
18309
|
|
|
18315
18310
|
// src/components/info/InfoBox.tsx
|
|
18316
|
-
import { jsx as
|
|
18311
|
+
import { jsx as jsx93, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
18317
18312
|
var variantStyles2 = {
|
|
18318
18313
|
default: {
|
|
18319
18314
|
borderLeft: `2px solid ${electricLavender}`,
|
|
@@ -18355,7 +18350,7 @@ var InfoBox = ({
|
|
|
18355
18350
|
...sx
|
|
18356
18351
|
},
|
|
18357
18352
|
children: [
|
|
18358
|
-
/* @__PURE__ */
|
|
18353
|
+
/* @__PURE__ */ jsx93(
|
|
18359
18354
|
Box_default2,
|
|
18360
18355
|
{
|
|
18361
18356
|
sx: !expanded && showExpandButton ? {
|
|
@@ -18373,7 +18368,7 @@ var InfoBox = ({
|
|
|
18373
18368
|
children
|
|
18374
18369
|
}
|
|
18375
18370
|
),
|
|
18376
|
-
showExpandButton && /* @__PURE__ */
|
|
18371
|
+
showExpandButton && /* @__PURE__ */ jsx93(
|
|
18377
18372
|
IconButton_default,
|
|
18378
18373
|
{
|
|
18379
18374
|
iconId: expanded ? "chevron-up" : "chevron-down",
|
|
@@ -18392,7 +18387,7 @@ var InfoBox_default = InfoBox;
|
|
|
18392
18387
|
// src/components/input/TextFieldContainer.tsx
|
|
18393
18388
|
import * as React47 from "react";
|
|
18394
18389
|
import { lighten } from "@mui/material";
|
|
18395
|
-
import { jsx as
|
|
18390
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
18396
18391
|
var TextFieldContainer = React47.forwardRef(function TextFieldContainer2({
|
|
18397
18392
|
children,
|
|
18398
18393
|
variant = "default",
|
|
@@ -18407,7 +18402,7 @@ var TextFieldContainer = React47.forwardRef(function TextFieldContainer2({
|
|
|
18407
18402
|
sx,
|
|
18408
18403
|
"data-test": dataTest
|
|
18409
18404
|
}, ref) {
|
|
18410
|
-
return /* @__PURE__ */
|
|
18405
|
+
return /* @__PURE__ */ jsx94(
|
|
18411
18406
|
Box_default2,
|
|
18412
18407
|
{
|
|
18413
18408
|
className: `Cn-TextFieldContainer ${className}`,
|
|
@@ -18497,7 +18492,7 @@ import { styled as styled6 } from "@mui/material";
|
|
|
18497
18492
|
// src/components/input/InputLabel.tsx
|
|
18498
18493
|
import * as React48 from "react";
|
|
18499
18494
|
import { styled as styled4 } from "@mui/material";
|
|
18500
|
-
import { jsx as
|
|
18495
|
+
import { jsx as jsx95, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
18501
18496
|
var severityColors = {
|
|
18502
18497
|
info: grey900,
|
|
18503
18498
|
error: errorMain
|
|
@@ -18523,7 +18518,7 @@ var InputLabel = React48.forwardRef(
|
|
|
18523
18518
|
ref,
|
|
18524
18519
|
children: [
|
|
18525
18520
|
children,
|
|
18526
|
-
infoText && /* @__PURE__ */
|
|
18521
|
+
infoText && /* @__PURE__ */ jsx95(Tooltip_default, { textVariant: "caption", title: infoText, children: /* @__PURE__ */ jsx95(
|
|
18527
18522
|
Icon_default,
|
|
18528
18523
|
{
|
|
18529
18524
|
id: "information-outline",
|
|
@@ -18545,7 +18540,7 @@ var InputLabel_default = InputLabel;
|
|
|
18545
18540
|
// src/components/input/InputHelperText.tsx
|
|
18546
18541
|
import { styled as styled5 } from "@mui/material";
|
|
18547
18542
|
import * as React49 from "react";
|
|
18548
|
-
import { jsx as
|
|
18543
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
18549
18544
|
var severityColors2 = {
|
|
18550
18545
|
info: grey800,
|
|
18551
18546
|
error: errorMain
|
|
@@ -18561,13 +18556,13 @@ var StyledDiv = styled5("div", {
|
|
|
18561
18556
|
);
|
|
18562
18557
|
var InputHelperText = React49.forwardRef(
|
|
18563
18558
|
function InputLabel3({ severity = "info", ...rest }, ref) {
|
|
18564
|
-
return /* @__PURE__ */
|
|
18559
|
+
return /* @__PURE__ */ jsx96(StyledDiv, { ...rest, ref, severity });
|
|
18565
18560
|
}
|
|
18566
18561
|
);
|
|
18567
18562
|
var InputHelperText_default = InputHelperText;
|
|
18568
18563
|
|
|
18569
18564
|
// src/components/input/TextField.tsx
|
|
18570
|
-
import { Fragment as Fragment20, jsx as
|
|
18565
|
+
import { Fragment as Fragment20, jsx as jsx97, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
18571
18566
|
var commonInputStylesOptions = {
|
|
18572
18567
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
18573
18568
|
};
|
|
@@ -18708,7 +18703,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18708
18703
|
gap: "8px"
|
|
18709
18704
|
},
|
|
18710
18705
|
children: [
|
|
18711
|
-
iconId && /* @__PURE__ */
|
|
18706
|
+
iconId && /* @__PURE__ */ jsx97(
|
|
18712
18707
|
Icon_default,
|
|
18713
18708
|
{
|
|
18714
18709
|
id: iconId,
|
|
@@ -18721,7 +18716,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18721
18716
|
}
|
|
18722
18717
|
),
|
|
18723
18718
|
!groupElements && startAdornment,
|
|
18724
|
-
multiline && /* @__PURE__ */
|
|
18719
|
+
multiline && /* @__PURE__ */ jsx97(
|
|
18725
18720
|
StyledTextarea,
|
|
18726
18721
|
{
|
|
18727
18722
|
ref: ref || inputRef,
|
|
@@ -18755,7 +18750,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18755
18750
|
...restProps
|
|
18756
18751
|
}
|
|
18757
18752
|
),
|
|
18758
|
-
!multiline && /* @__PURE__ */
|
|
18753
|
+
!multiline && /* @__PURE__ */ jsx97(
|
|
18759
18754
|
StyledInput,
|
|
18760
18755
|
{
|
|
18761
18756
|
type,
|
|
@@ -18793,7 +18788,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18793
18788
|
gap: "8px"
|
|
18794
18789
|
},
|
|
18795
18790
|
children: [
|
|
18796
|
-
existsClearButton && /* @__PURE__ */
|
|
18791
|
+
existsClearButton && /* @__PURE__ */ jsx97(
|
|
18797
18792
|
IconButton_default,
|
|
18798
18793
|
{
|
|
18799
18794
|
size: "M",
|
|
@@ -18824,7 +18819,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18824
18819
|
}
|
|
18825
18820
|
);
|
|
18826
18821
|
return /* @__PURE__ */ jsxs43(Fragment20, { children: [
|
|
18827
|
-
label && /* @__PURE__ */
|
|
18822
|
+
label && /* @__PURE__ */ jsx97(
|
|
18828
18823
|
InputLabel_default,
|
|
18829
18824
|
{
|
|
18830
18825
|
htmlFor: customId ?? id,
|
|
@@ -18877,7 +18872,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18877
18872
|
}
|
|
18878
18873
|
),
|
|
18879
18874
|
!groupElements && getTextFieldContainer(),
|
|
18880
|
-
helperText && /* @__PURE__ */
|
|
18875
|
+
helperText && /* @__PURE__ */ jsx97(
|
|
18881
18876
|
InputHelperText_default,
|
|
18882
18877
|
{
|
|
18883
18878
|
severity: isError ? "error" : "info",
|
|
@@ -18892,7 +18887,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18892
18887
|
var TextField_default = TextField;
|
|
18893
18888
|
|
|
18894
18889
|
// src/components/input/DebouncedTextField.tsx
|
|
18895
|
-
import { jsx as
|
|
18890
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
18896
18891
|
var DebouncedTextField = React51.forwardRef(function DebouncedTextField2({ value, onChange, debounce = 100, ...rest }, ref) {
|
|
18897
18892
|
const [text, setText] = useState15(value);
|
|
18898
18893
|
const onChangeDebounced = useDebouncedCallback(
|
|
@@ -18906,7 +18901,7 @@ var DebouncedTextField = React51.forwardRef(function DebouncedTextField2({ value
|
|
|
18906
18901
|
useEffect10(() => {
|
|
18907
18902
|
setText(value);
|
|
18908
18903
|
}, [value]);
|
|
18909
|
-
return /* @__PURE__ */
|
|
18904
|
+
return /* @__PURE__ */ jsx98(
|
|
18910
18905
|
TextField_default,
|
|
18911
18906
|
{
|
|
18912
18907
|
value: text,
|
|
@@ -18931,14 +18926,14 @@ import { tz as tz3 } from "moment-timezone";
|
|
|
18931
18926
|
|
|
18932
18927
|
// src/components/popover/Popover.tsx
|
|
18933
18928
|
import MuiPopover from "@mui/material/Popover";
|
|
18934
|
-
import { jsx as
|
|
18929
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
18935
18930
|
var Popover = ({
|
|
18936
18931
|
horizontalAlign = "center",
|
|
18937
18932
|
anchorHorizontalOrigin = "center",
|
|
18938
18933
|
verticalAlign = "top",
|
|
18939
18934
|
anchorVerticalAlign = "bottom",
|
|
18940
18935
|
...props
|
|
18941
|
-
}) => /* @__PURE__ */
|
|
18936
|
+
}) => /* @__PURE__ */ jsx99(
|
|
18942
18937
|
MuiPopover,
|
|
18943
18938
|
{
|
|
18944
18939
|
disableRestoreFocus: props.disableRestoreFocus,
|
|
@@ -18958,7 +18953,7 @@ var Popover_default = Popover;
|
|
|
18958
18953
|
|
|
18959
18954
|
// src/components/popover/PopoverActions.tsx
|
|
18960
18955
|
import { Stack as Stack6 } from "@mui/material";
|
|
18961
|
-
import { jsx as
|
|
18956
|
+
import { jsx as jsx100, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
18962
18957
|
var PopoverActions = ({
|
|
18963
18958
|
leftContent,
|
|
18964
18959
|
rightContent,
|
|
@@ -18977,8 +18972,8 @@ var PopoverActions = ({
|
|
|
18977
18972
|
...sx
|
|
18978
18973
|
},
|
|
18979
18974
|
children: [
|
|
18980
|
-
/* @__PURE__ */
|
|
18981
|
-
/* @__PURE__ */
|
|
18975
|
+
/* @__PURE__ */ jsx100("div", { children: leftContent }),
|
|
18976
|
+
/* @__PURE__ */ jsx100("div", { children: rightContent })
|
|
18982
18977
|
]
|
|
18983
18978
|
}
|
|
18984
18979
|
);
|
|
@@ -18996,7 +18991,7 @@ import { lighten as lighten2 } from "@mui/material";
|
|
|
18996
18991
|
|
|
18997
18992
|
// src/components/input/CalendarDay.tsx
|
|
18998
18993
|
import { useTheme as useTheme5 } from "@mui/material/styles";
|
|
18999
|
-
import { jsx as
|
|
18994
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
19000
18995
|
var calendarDayButtonSize = 32;
|
|
19001
18996
|
var CalendarDayButton = styled_default("button")({});
|
|
19002
18997
|
var CalendarDay = ({
|
|
@@ -19014,7 +19009,7 @@ var CalendarDay = ({
|
|
|
19014
19009
|
allowKeyboardNavigation = false
|
|
19015
19010
|
}) => {
|
|
19016
19011
|
const theme2 = useTheme5();
|
|
19017
|
-
return /* @__PURE__ */
|
|
19012
|
+
return /* @__PURE__ */ jsx101(
|
|
19018
19013
|
CalendarDayButton,
|
|
19019
19014
|
{
|
|
19020
19015
|
"data-testid": `calendar-day-${children}`,
|
|
@@ -19057,7 +19052,7 @@ var CalendarDay = ({
|
|
|
19057
19052
|
},
|
|
19058
19053
|
role: "button",
|
|
19059
19054
|
onClick,
|
|
19060
|
-
children: /* @__PURE__ */
|
|
19055
|
+
children: /* @__PURE__ */ jsx101(
|
|
19061
19056
|
Typography_default,
|
|
19062
19057
|
{
|
|
19063
19058
|
sx: {
|
|
@@ -19085,7 +19080,7 @@ var CalendarDay = ({
|
|
|
19085
19080
|
var CalendarDay_default = CalendarDay;
|
|
19086
19081
|
|
|
19087
19082
|
// src/components/input/CalendarMonth.tsx
|
|
19088
|
-
import { jsx as
|
|
19083
|
+
import { jsx as jsx102, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
19089
19084
|
var bgColorLightCoefficient = 0.6;
|
|
19090
19085
|
var CalendarMonth = ({
|
|
19091
19086
|
minDate = null,
|
|
@@ -19263,7 +19258,7 @@ var CalendarMonth = ({
|
|
|
19263
19258
|
},
|
|
19264
19259
|
"data-testid": `calendar-month-${year}-${month}`,
|
|
19265
19260
|
children: [
|
|
19266
|
-
/* @__PURE__ */
|
|
19261
|
+
/* @__PURE__ */ jsx102(
|
|
19267
19262
|
Typography_default,
|
|
19268
19263
|
{
|
|
19269
19264
|
sx: {
|
|
@@ -19274,7 +19269,7 @@ var CalendarMonth = ({
|
|
|
19274
19269
|
textTransform: "uppercase"
|
|
19275
19270
|
}
|
|
19276
19271
|
},
|
|
19277
|
-
children: /* @__PURE__ */
|
|
19272
|
+
children: /* @__PURE__ */ jsx102(
|
|
19278
19273
|
DateFormatter_default,
|
|
19279
19274
|
{
|
|
19280
19275
|
date: firstDayOfMonth.toDate(),
|
|
@@ -19283,8 +19278,8 @@ var CalendarMonth = ({
|
|
|
19283
19278
|
)
|
|
19284
19279
|
}
|
|
19285
19280
|
),
|
|
19286
|
-
isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */
|
|
19287
|
-
dayList.map((day) => /* @__PURE__ */
|
|
19281
|
+
isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */ jsx102("span", { style: { gridColumn: `span ${indexOfDay}` }, children: "\xA0" }),
|
|
19282
|
+
dayList.map((day) => /* @__PURE__ */ jsx102(
|
|
19288
19283
|
CalendarDay_default,
|
|
19289
19284
|
{
|
|
19290
19285
|
allowKeyboardNavigation,
|
|
@@ -19302,7 +19297,7 @@ var CalendarMonth_default = CalendarMonth;
|
|
|
19302
19297
|
|
|
19303
19298
|
// src/components/input/DaysOfWeekRow.tsx
|
|
19304
19299
|
import * as React53 from "react";
|
|
19305
|
-
import { jsx as
|
|
19300
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
19306
19301
|
var DaysOfWeekRow = () => {
|
|
19307
19302
|
const { locale } = React53.useContext(IntlContext);
|
|
19308
19303
|
const daysOfWeekLong = React53.useMemo(
|
|
@@ -19313,7 +19308,7 @@ var DaysOfWeekRow = () => {
|
|
|
19313
19308
|
() => getWeekDayNamesForLocale(locale, "narrow"),
|
|
19314
19309
|
[locale]
|
|
19315
19310
|
);
|
|
19316
|
-
return /* @__PURE__ */
|
|
19311
|
+
return /* @__PURE__ */ jsx103(
|
|
19317
19312
|
Stack_default,
|
|
19318
19313
|
{
|
|
19319
19314
|
direction: "row",
|
|
@@ -19323,7 +19318,7 @@ var DaysOfWeekRow = () => {
|
|
|
19323
19318
|
backgroundColor: grey100,
|
|
19324
19319
|
alignItems: "center"
|
|
19325
19320
|
},
|
|
19326
|
-
children: daysOfWeek.map((day, index) => /* @__PURE__ */
|
|
19321
|
+
children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx103(Tooltip_default, { title: daysOfWeekLong[index], children: /* @__PURE__ */ jsx103(
|
|
19327
19322
|
Typography_default,
|
|
19328
19323
|
{
|
|
19329
19324
|
sx: {
|
|
@@ -19340,7 +19335,7 @@ var DaysOfWeekRow = () => {
|
|
|
19340
19335
|
var DaysOfWeekRow_default = DaysOfWeekRow;
|
|
19341
19336
|
|
|
19342
19337
|
// src/components/input/CalendarScrollPicker.tsx
|
|
19343
|
-
import { jsx as
|
|
19338
|
+
import { jsx as jsx104, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
19344
19339
|
var CalendarScrollPicker = ({
|
|
19345
19340
|
minDate,
|
|
19346
19341
|
maxDate,
|
|
@@ -19365,7 +19360,7 @@ var CalendarScrollPicker = ({
|
|
|
19365
19360
|
}) => {
|
|
19366
19361
|
const month = (minDate.month + index) % 12;
|
|
19367
19362
|
const year = Math.floor((minDate.month + index) / 12) + minDate.year;
|
|
19368
|
-
return /* @__PURE__ */
|
|
19363
|
+
return /* @__PURE__ */ jsx104(Box_default2, { sx: { ...style3, paddingLeft: "8px", boxSizing: "border-box" }, children: /* @__PURE__ */ jsx104(
|
|
19369
19364
|
CalendarMonth_default,
|
|
19370
19365
|
{
|
|
19371
19366
|
minDate,
|
|
@@ -19390,14 +19385,14 @@ var CalendarScrollPicker = ({
|
|
|
19390
19385
|
flexDirection: "column"
|
|
19391
19386
|
},
|
|
19392
19387
|
children: [
|
|
19393
|
-
/* @__PURE__ */
|
|
19394
|
-
/* @__PURE__ */
|
|
19388
|
+
/* @__PURE__ */ jsx104(DaysOfWeekRow_default, {}),
|
|
19389
|
+
/* @__PURE__ */ jsx104(
|
|
19395
19390
|
Box_default2,
|
|
19396
19391
|
{
|
|
19397
19392
|
sx: {
|
|
19398
19393
|
flex: "1 1 0"
|
|
19399
19394
|
},
|
|
19400
|
-
children: /* @__PURE__ */
|
|
19395
|
+
children: /* @__PURE__ */ jsx104(AutoSizer3, { children: ({ height: height2, width: width2 }) => /* @__PURE__ */ jsx104(
|
|
19401
19396
|
FixedSizeList,
|
|
19402
19397
|
{
|
|
19403
19398
|
ref: listRefCallback,
|
|
@@ -19419,7 +19414,7 @@ var CalendarScrollPicker = ({
|
|
|
19419
19414
|
var CalendarScrollPicker_default = CalendarScrollPicker;
|
|
19420
19415
|
|
|
19421
19416
|
// src/components/input/DateIntervalPickerList.tsx
|
|
19422
|
-
import { jsx as
|
|
19417
|
+
import { jsx as jsx105, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
19423
19418
|
var dateIntervals = {
|
|
19424
19419
|
today: "TODAY",
|
|
19425
19420
|
yesterday: "YESTERDAY",
|
|
@@ -19454,7 +19449,7 @@ var DateIntervalPickerList = ({
|
|
|
19454
19449
|
}) => {
|
|
19455
19450
|
const { t } = useTranslation();
|
|
19456
19451
|
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__ */
|
|
19452
|
+
Object.keys(dateIntervals).filter((i) => maxSelectableDays > 90 || !isLongInterval(i)).filter((i) => !allowedIntervals || allowedIntervals.includes(i)).map((key) => /* @__PURE__ */ jsx105(
|
|
19458
19453
|
ListItemButton_default,
|
|
19459
19454
|
{
|
|
19460
19455
|
text: t(
|
|
@@ -19466,13 +19461,13 @@ var DateIntervalPickerList = ({
|
|
|
19466
19461
|
},
|
|
19467
19462
|
key
|
|
19468
19463
|
)),
|
|
19469
|
-
allowCompare && /* @__PURE__ */
|
|
19470
|
-
allowCompare && /* @__PURE__ */
|
|
19464
|
+
allowCompare && /* @__PURE__ */ jsx105(Divider_default, {}),
|
|
19465
|
+
allowCompare && /* @__PURE__ */ jsx105(
|
|
19471
19466
|
ListItem_default,
|
|
19472
19467
|
{
|
|
19473
19468
|
text: t("DATE_INTERVAL_PICKER.COMPARE"),
|
|
19474
19469
|
typographyVariant: "body1",
|
|
19475
|
-
endAdornment: /* @__PURE__ */
|
|
19470
|
+
endAdornment: /* @__PURE__ */ jsx105(
|
|
19476
19471
|
Switch_default,
|
|
19477
19472
|
{
|
|
19478
19473
|
checked: isComparing,
|
|
@@ -19483,7 +19478,7 @@ var DateIntervalPickerList = ({
|
|
|
19483
19478
|
),
|
|
19484
19479
|
allowCompare && Object.keys(comparisonIntervals).filter(
|
|
19485
19480
|
(i) => maxSelectableDays > 90 || !isLongComparisonInterval(i)
|
|
19486
|
-
).map((key) => /* @__PURE__ */
|
|
19481
|
+
).map((key) => /* @__PURE__ */ jsx105(
|
|
19487
19482
|
ListItemButton_default,
|
|
19488
19483
|
{
|
|
19489
19484
|
disabled: !isComparing,
|
|
@@ -19502,7 +19497,7 @@ var DateIntervalPickerList_default = DateIntervalPickerList;
|
|
|
19502
19497
|
|
|
19503
19498
|
// src/components/input/DateIntervalPickerInputs.tsx
|
|
19504
19499
|
import { Collapse as Collapse6 } from "@mui/material";
|
|
19505
|
-
import { jsx as
|
|
19500
|
+
import { jsx as jsx106, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
19506
19501
|
var DateIntervalPickerInputs = ({
|
|
19507
19502
|
startDate,
|
|
19508
19503
|
endDate,
|
|
@@ -19528,7 +19523,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19528
19523
|
gap: "8px"
|
|
19529
19524
|
},
|
|
19530
19525
|
children: [
|
|
19531
|
-
/* @__PURE__ */
|
|
19526
|
+
/* @__PURE__ */ jsx106("div", { children: /* @__PURE__ */ jsx106(
|
|
19532
19527
|
TextField_default,
|
|
19533
19528
|
{
|
|
19534
19529
|
"data-testid": "startDateInput",
|
|
@@ -19543,8 +19538,8 @@ var DateIntervalPickerInputs = ({
|
|
|
19543
19538
|
activeColor: color2
|
|
19544
19539
|
}
|
|
19545
19540
|
) }),
|
|
19546
|
-
/* @__PURE__ */
|
|
19547
|
-
/* @__PURE__ */
|
|
19541
|
+
/* @__PURE__ */ jsx106(InputLabel_default, { children: t("DATE_INTERVAL_PICKER.TO") }),
|
|
19542
|
+
/* @__PURE__ */ jsx106("div", { children: /* @__PURE__ */ jsx106(
|
|
19548
19543
|
TextField_default,
|
|
19549
19544
|
{
|
|
19550
19545
|
"data-testid": "endDateInput",
|
|
@@ -19561,7 +19556,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19561
19556
|
]
|
|
19562
19557
|
}
|
|
19563
19558
|
),
|
|
19564
|
-
/* @__PURE__ */
|
|
19559
|
+
/* @__PURE__ */ jsx106(Collapse6, { in: isComparing, children: /* @__PURE__ */ jsxs48(
|
|
19565
19560
|
Box_default2,
|
|
19566
19561
|
{
|
|
19567
19562
|
sx: {
|
|
@@ -19570,7 +19565,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19570
19565
|
gap: "8px"
|
|
19571
19566
|
},
|
|
19572
19567
|
children: [
|
|
19573
|
-
/* @__PURE__ */
|
|
19568
|
+
/* @__PURE__ */ jsx106("div", { children: /* @__PURE__ */ jsx106(
|
|
19574
19569
|
TextField_default,
|
|
19575
19570
|
{
|
|
19576
19571
|
"data-testid": "comparisonStartDateInput",
|
|
@@ -19587,10 +19582,10 @@ var DateIntervalPickerInputs = ({
|
|
|
19587
19582
|
activeColor: comparisonColor
|
|
19588
19583
|
}
|
|
19589
19584
|
) }),
|
|
19590
|
-
/* @__PURE__ */
|
|
19585
|
+
/* @__PURE__ */ jsx106(InputLabel_default, { children: t("DATE_INTERVAL_PICKER.TO") }),
|
|
19591
19586
|
/* @__PURE__ */ jsxs48("div", { children: [
|
|
19592
|
-
/* @__PURE__ */
|
|
19593
|
-
/* @__PURE__ */
|
|
19587
|
+
/* @__PURE__ */ jsx106("label", { children: "\xA0" }),
|
|
19588
|
+
/* @__PURE__ */ jsx106(
|
|
19594
19589
|
TextField_default,
|
|
19595
19590
|
{
|
|
19596
19591
|
"data-testid": "comparisonEndDateInput",
|
|
@@ -19612,7 +19607,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19612
19607
|
var DateIntervalPickerInputs_default = DateIntervalPickerInputs;
|
|
19613
19608
|
|
|
19614
19609
|
// src/components/input/DateIntervalPickerPopover.tsx
|
|
19615
|
-
import { jsx as
|
|
19610
|
+
import { jsx as jsx107, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
19616
19611
|
var DateIntervalPickerPopover = ({
|
|
19617
19612
|
interval,
|
|
19618
19613
|
startDate,
|
|
@@ -19983,7 +19978,7 @@ var DateIntervalPickerPopover = ({
|
|
|
19983
19978
|
maxWidth: `${250 + 8 * 2 + 32 * 7}px`
|
|
19984
19979
|
},
|
|
19985
19980
|
children: [
|
|
19986
|
-
/* @__PURE__ */
|
|
19981
|
+
/* @__PURE__ */ jsx107(
|
|
19987
19982
|
Box_default2,
|
|
19988
19983
|
{
|
|
19989
19984
|
sx: {
|
|
@@ -19995,7 +19990,7 @@ var DateIntervalPickerPopover = ({
|
|
|
19995
19990
|
overflowY: "auto"
|
|
19996
19991
|
},
|
|
19997
19992
|
className: "Slim-Vertical-Scroll",
|
|
19998
|
-
children: /* @__PURE__ */
|
|
19993
|
+
children: /* @__PURE__ */ jsx107(
|
|
19999
19994
|
DateIntervalPickerList_default,
|
|
20000
19995
|
{
|
|
20001
19996
|
allowCompare,
|
|
@@ -20011,13 +20006,13 @@ var DateIntervalPickerPopover = ({
|
|
|
20011
20006
|
)
|
|
20012
20007
|
}
|
|
20013
20008
|
),
|
|
20014
|
-
/* @__PURE__ */
|
|
20009
|
+
/* @__PURE__ */ jsx107(
|
|
20015
20010
|
Box_default2,
|
|
20016
20011
|
{
|
|
20017
20012
|
sx: {
|
|
20018
20013
|
gridArea: "inputs"
|
|
20019
20014
|
},
|
|
20020
|
-
children: /* @__PURE__ */
|
|
20015
|
+
children: /* @__PURE__ */ jsx107(
|
|
20021
20016
|
DateIntervalPickerInputs_default,
|
|
20022
20017
|
{
|
|
20023
20018
|
color: color2,
|
|
@@ -20036,13 +20031,13 @@ var DateIntervalPickerPopover = ({
|
|
|
20036
20031
|
)
|
|
20037
20032
|
}
|
|
20038
20033
|
),
|
|
20039
|
-
/* @__PURE__ */
|
|
20034
|
+
/* @__PURE__ */ jsx107(
|
|
20040
20035
|
Box_default2,
|
|
20041
20036
|
{
|
|
20042
20037
|
sx: {
|
|
20043
20038
|
gridArea: "calendar"
|
|
20044
20039
|
},
|
|
20045
|
-
children: /* @__PURE__ */
|
|
20040
|
+
children: /* @__PURE__ */ jsx107(
|
|
20046
20041
|
CalendarScrollPicker_default,
|
|
20047
20042
|
{
|
|
20048
20043
|
minDate: {
|
|
@@ -20081,10 +20076,10 @@ var DateIntervalPickerPopover = ({
|
|
|
20081
20076
|
]
|
|
20082
20077
|
}
|
|
20083
20078
|
),
|
|
20084
|
-
/* @__PURE__ */
|
|
20079
|
+
/* @__PURE__ */ jsx107(
|
|
20085
20080
|
PopoverActions_default,
|
|
20086
20081
|
{
|
|
20087
|
-
leftContent: /* @__PURE__ */
|
|
20082
|
+
leftContent: /* @__PURE__ */ jsx107(
|
|
20088
20083
|
Button_default,
|
|
20089
20084
|
{
|
|
20090
20085
|
variant: "text",
|
|
@@ -20093,7 +20088,7 @@ var DateIntervalPickerPopover = ({
|
|
|
20093
20088
|
disabled: isApplyButtonDisabled()
|
|
20094
20089
|
}
|
|
20095
20090
|
),
|
|
20096
|
-
rightContent: /* @__PURE__ */
|
|
20091
|
+
rightContent: /* @__PURE__ */ jsx107(
|
|
20097
20092
|
Button_default,
|
|
20098
20093
|
{
|
|
20099
20094
|
variant: "text",
|
|
@@ -20109,7 +20104,7 @@ var DateIntervalPickerPopover_default = DateIntervalPickerPopover;
|
|
|
20109
20104
|
|
|
20110
20105
|
// src/components/input/DateIntervalPicker.tsx
|
|
20111
20106
|
import { tz as tz4 } from "moment-timezone";
|
|
20112
|
-
import { jsx as
|
|
20107
|
+
import { jsx as jsx108, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
20113
20108
|
var DateIntervalPicker = ({
|
|
20114
20109
|
interval,
|
|
20115
20110
|
startDate,
|
|
@@ -20166,7 +20161,7 @@ var DateIntervalPicker = ({
|
|
|
20166
20161
|
disabled,
|
|
20167
20162
|
onClick: handleButtonClick,
|
|
20168
20163
|
children: [
|
|
20169
|
-
/* @__PURE__ */
|
|
20164
|
+
/* @__PURE__ */ jsx108(
|
|
20170
20165
|
"span",
|
|
20171
20166
|
{
|
|
20172
20167
|
style: {
|
|
@@ -20176,7 +20171,7 @@ var DateIntervalPicker = ({
|
|
|
20176
20171
|
borderRadius: "2px",
|
|
20177
20172
|
alignSelf: "center"
|
|
20178
20173
|
},
|
|
20179
|
-
children: /* @__PURE__ */
|
|
20174
|
+
children: /* @__PURE__ */ jsx108(Typography_default, { variant: "body2", children: t(
|
|
20180
20175
|
`DATE_INTERVAL_PICKER.DATE_INTERVALS.${dateIntervals[interval]}`
|
|
20181
20176
|
) })
|
|
20182
20177
|
}
|
|
@@ -20191,9 +20186,9 @@ var DateIntervalPicker = ({
|
|
|
20191
20186
|
},
|
|
20192
20187
|
children: [
|
|
20193
20188
|
/* @__PURE__ */ jsxs50("div", { children: [
|
|
20194
|
-
/* @__PURE__ */
|
|
20189
|
+
/* @__PURE__ */ jsx108(DateFormatter_default, { date: startDate }),
|
|
20195
20190
|
isEndDateVisible && " - ",
|
|
20196
|
-
isEndDateVisible && /* @__PURE__ */
|
|
20191
|
+
isEndDateVisible && /* @__PURE__ */ jsx108(DateFormatter_default, { date: displayEndDate })
|
|
20197
20192
|
] }),
|
|
20198
20193
|
comparisonStartDate && comparisonEndDate ? /* @__PURE__ */ jsxs50(
|
|
20199
20194
|
"div",
|
|
@@ -20206,20 +20201,20 @@ var DateIntervalPicker = ({
|
|
|
20206
20201
|
children: [
|
|
20207
20202
|
t("DATE_INTERVAL_PICKER.COMPARE"),
|
|
20208
20203
|
": ",
|
|
20209
|
-
/* @__PURE__ */
|
|
20204
|
+
/* @__PURE__ */ jsx108(DateFormatter_default, { date: comparisonStartDate }),
|
|
20210
20205
|
" - ",
|
|
20211
|
-
/* @__PURE__ */
|
|
20206
|
+
/* @__PURE__ */ jsx108(DateFormatter_default, { date: comparisonEndDate })
|
|
20212
20207
|
]
|
|
20213
20208
|
}
|
|
20214
20209
|
) : []
|
|
20215
20210
|
]
|
|
20216
20211
|
}
|
|
20217
20212
|
),
|
|
20218
|
-
/* @__PURE__ */
|
|
20213
|
+
/* @__PURE__ */ jsx108(Icon_default, { id: "menu-down", sx: { color: grey400 } })
|
|
20219
20214
|
]
|
|
20220
20215
|
}
|
|
20221
20216
|
),
|
|
20222
|
-
anchorEl !== null && /* @__PURE__ */
|
|
20217
|
+
anchorEl !== null && /* @__PURE__ */ jsx108(
|
|
20223
20218
|
DateIntervalPickerPopover_default,
|
|
20224
20219
|
{
|
|
20225
20220
|
...{
|
|
@@ -20251,7 +20246,7 @@ var DateIntervalPicker_default = DateIntervalPicker;
|
|
|
20251
20246
|
// src/components/input/SelectPopoverItem.tsx
|
|
20252
20247
|
import { Grid as Grid2, Stack as Stack7 } from "@mui/material";
|
|
20253
20248
|
import { lighten as lighten3 } from "@mui/material";
|
|
20254
|
-
import { Fragment as Fragment21, jsx as
|
|
20249
|
+
import { Fragment as Fragment21, jsx as jsx109, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
20255
20250
|
var bgColorLightCoefficient2 = 0.9;
|
|
20256
20251
|
var SelectPopoverItem = ({
|
|
20257
20252
|
id,
|
|
@@ -20265,7 +20260,7 @@ var SelectPopoverItem = ({
|
|
|
20265
20260
|
tooltip,
|
|
20266
20261
|
isLoadingSubtitle2,
|
|
20267
20262
|
onClick
|
|
20268
|
-
}) => /* @__PURE__ */
|
|
20263
|
+
}) => /* @__PURE__ */ jsx109(Tooltip_default, { title: tooltip || "", children: /* @__PURE__ */ jsx109(
|
|
20269
20264
|
Grid2,
|
|
20270
20265
|
{
|
|
20271
20266
|
size: {
|
|
@@ -20299,7 +20294,7 @@ var SelectPopoverItem = ({
|
|
|
20299
20294
|
boxSizing: "border-box"
|
|
20300
20295
|
},
|
|
20301
20296
|
children: [
|
|
20302
|
-
/* @__PURE__ */
|
|
20297
|
+
/* @__PURE__ */ jsx109(
|
|
20303
20298
|
TextEllipsis_default,
|
|
20304
20299
|
{
|
|
20305
20300
|
color: Colors_exports.grey800,
|
|
@@ -20309,7 +20304,7 @@ var SelectPopoverItem = ({
|
|
|
20309
20304
|
},
|
|
20310
20305
|
typographyVariant: "body1",
|
|
20311
20306
|
text: /* @__PURE__ */ jsxs51(Fragment21, { children: [
|
|
20312
|
-
iconId && /* @__PURE__ */
|
|
20307
|
+
iconId && /* @__PURE__ */ jsx109(
|
|
20313
20308
|
Icon_default,
|
|
20314
20309
|
{
|
|
20315
20310
|
id: iconId,
|
|
@@ -20327,7 +20322,7 @@ var SelectPopoverItem = ({
|
|
|
20327
20322
|
] })
|
|
20328
20323
|
}
|
|
20329
20324
|
),
|
|
20330
|
-
subtitle1 && /* @__PURE__ */
|
|
20325
|
+
subtitle1 && /* @__PURE__ */ jsx109(
|
|
20331
20326
|
Typography_default,
|
|
20332
20327
|
{
|
|
20333
20328
|
variant: "body2",
|
|
@@ -20337,7 +20332,7 @@ var SelectPopoverItem = ({
|
|
|
20337
20332
|
children: subtitle1
|
|
20338
20333
|
}
|
|
20339
20334
|
),
|
|
20340
|
-
isLoadingSubtitle2 && /* @__PURE__ */
|
|
20335
|
+
isLoadingSubtitle2 && /* @__PURE__ */ jsx109(
|
|
20341
20336
|
Skeleton_default,
|
|
20342
20337
|
{
|
|
20343
20338
|
variant: "text",
|
|
@@ -20349,7 +20344,7 @@ var SelectPopoverItem = ({
|
|
|
20349
20344
|
}
|
|
20350
20345
|
}
|
|
20351
20346
|
),
|
|
20352
|
-
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */
|
|
20347
|
+
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */ jsx109(
|
|
20353
20348
|
Typography_default,
|
|
20354
20349
|
{
|
|
20355
20350
|
variant: "body2",
|
|
@@ -20362,7 +20357,7 @@ var SelectPopoverItem = ({
|
|
|
20362
20357
|
]
|
|
20363
20358
|
}
|
|
20364
20359
|
),
|
|
20365
|
-
chipText && /* @__PURE__ */
|
|
20360
|
+
chipText && /* @__PURE__ */ jsx109(Box_default2, { sx: { minWidth: "72px", flexShrink: 0 }, children: /* @__PURE__ */ jsx109(
|
|
20366
20361
|
Chip_default,
|
|
20367
20362
|
{
|
|
20368
20363
|
label: chipText,
|
|
@@ -20393,7 +20388,7 @@ import MuiSelect from "@mui/material/Select";
|
|
|
20393
20388
|
import InputBase from "@mui/material/InputBase";
|
|
20394
20389
|
import { FixedSizeList as FixedSizeList2 } from "react-window";
|
|
20395
20390
|
import AutoSizer4 from "react-virtualized-auto-sizer";
|
|
20396
|
-
import { jsx as
|
|
20391
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
20397
20392
|
var BootstrapInput = styled7(InputBase)(() => ({
|
|
20398
20393
|
boxShadow: shadows[0],
|
|
20399
20394
|
borderRadius: "16px",
|
|
@@ -20424,7 +20419,7 @@ var BootstrapInput = styled7(InputBase)(() => ({
|
|
|
20424
20419
|
borderColor: grey800
|
|
20425
20420
|
}
|
|
20426
20421
|
}));
|
|
20427
|
-
var ChevronIcon = ({ disabled = false }) => /* @__PURE__ */
|
|
20422
|
+
var ChevronIcon = ({ disabled = false }) => /* @__PURE__ */ jsx110(
|
|
20428
20423
|
Icon_default,
|
|
20429
20424
|
{
|
|
20430
20425
|
id: "chevron-down",
|
|
@@ -20442,7 +20437,7 @@ var SelectOption = ({
|
|
|
20442
20437
|
selected,
|
|
20443
20438
|
colors,
|
|
20444
20439
|
...rest
|
|
20445
|
-
}) => /* @__PURE__ */
|
|
20440
|
+
}) => /* @__PURE__ */ jsx110(
|
|
20446
20441
|
ListItemButton_default,
|
|
20447
20442
|
{
|
|
20448
20443
|
role: "option",
|
|
@@ -20509,7 +20504,7 @@ var Select = function Select2({
|
|
|
20509
20504
|
}) => {
|
|
20510
20505
|
const { value: currentValue, label, ...rest2 } = options[index];
|
|
20511
20506
|
const isSelected = value === currentValue;
|
|
20512
|
-
return /* @__PURE__ */
|
|
20507
|
+
return /* @__PURE__ */ jsx110(
|
|
20513
20508
|
ListItemButton_default,
|
|
20514
20509
|
{
|
|
20515
20510
|
text: label ?? currentValue?.toString() ?? "",
|
|
@@ -20540,7 +20535,7 @@ var Select = function Select2({
|
|
|
20540
20535
|
currentValue ?? ""
|
|
20541
20536
|
);
|
|
20542
20537
|
};
|
|
20543
|
-
const getVirtualizedSelect = () => /* @__PURE__ */
|
|
20538
|
+
const getVirtualizedSelect = () => /* @__PURE__ */ jsx110(
|
|
20544
20539
|
MuiSelect,
|
|
20545
20540
|
{
|
|
20546
20541
|
className: `Cn-Select ${className}`,
|
|
@@ -20576,8 +20571,8 @@ var Select = function Select2({
|
|
|
20576
20571
|
displayEmpty: true,
|
|
20577
20572
|
variant: "standard",
|
|
20578
20573
|
value,
|
|
20579
|
-
IconComponent: () => /* @__PURE__ */
|
|
20580
|
-
input: /* @__PURE__ */
|
|
20574
|
+
IconComponent: () => /* @__PURE__ */ jsx110(ChevronIcon, { disabled: rest.disabled }),
|
|
20575
|
+
input: /* @__PURE__ */ jsx110(BootstrapInput, { placeholder }),
|
|
20581
20576
|
onOpen: () => {
|
|
20582
20577
|
setOpen(true);
|
|
20583
20578
|
onOpen && onOpen();
|
|
@@ -20593,7 +20588,7 @@ var Select = function Select2({
|
|
|
20593
20588
|
return renderValue(value2, options);
|
|
20594
20589
|
}
|
|
20595
20590
|
if (!value2) {
|
|
20596
|
-
return /* @__PURE__ */
|
|
20591
|
+
return /* @__PURE__ */ jsx110("span", { style: { color: grey900 }, children: placeholder });
|
|
20597
20592
|
}
|
|
20598
20593
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
20599
20594
|
},
|
|
@@ -20626,7 +20621,7 @@ var Select = function Select2({
|
|
|
20626
20621
|
}
|
|
20627
20622
|
}
|
|
20628
20623
|
},
|
|
20629
|
-
children: /* @__PURE__ */
|
|
20624
|
+
children: /* @__PURE__ */ jsx110(AutoSizer4, { disableWidth: true, children: ({ height: height2 }) => /* @__PURE__ */ jsx110(
|
|
20630
20625
|
FixedSizeList2,
|
|
20631
20626
|
{
|
|
20632
20627
|
height: height2,
|
|
@@ -20640,7 +20635,7 @@ var Select = function Select2({
|
|
|
20640
20635
|
) })
|
|
20641
20636
|
}
|
|
20642
20637
|
);
|
|
20643
|
-
const getNotVirtualizedSelect = () => /* @__PURE__ */
|
|
20638
|
+
const getNotVirtualizedSelect = () => /* @__PURE__ */ jsx110(
|
|
20644
20639
|
MuiSelect,
|
|
20645
20640
|
{
|
|
20646
20641
|
className: `Cn-Select ${className}`,
|
|
@@ -20680,9 +20675,9 @@ var Select = function Select2({
|
|
|
20680
20675
|
},
|
|
20681
20676
|
multiple,
|
|
20682
20677
|
value,
|
|
20683
|
-
IconComponent: () => /* @__PURE__ */
|
|
20678
|
+
IconComponent: () => /* @__PURE__ */ jsx110(ChevronIcon, { disabled: rest.disabled }),
|
|
20684
20679
|
open,
|
|
20685
|
-
input: /* @__PURE__ */
|
|
20680
|
+
input: /* @__PURE__ */ jsx110(BootstrapInput, { placeholder }),
|
|
20686
20681
|
onOpen: () => {
|
|
20687
20682
|
setOpen(true);
|
|
20688
20683
|
onOpen && onOpen();
|
|
@@ -20698,7 +20693,7 @@ var Select = function Select2({
|
|
|
20698
20693
|
}
|
|
20699
20694
|
if (Array.isArray(value2)) {
|
|
20700
20695
|
if (value2.length === 0) {
|
|
20701
|
-
return /* @__PURE__ */
|
|
20696
|
+
return /* @__PURE__ */ jsx110("span", { style: { color: grey900 }, children: placeholder });
|
|
20702
20697
|
} else {
|
|
20703
20698
|
return value2.map((v) => {
|
|
20704
20699
|
const option = options.find((o) => o.value === v);
|
|
@@ -20707,7 +20702,7 @@ var Select = function Select2({
|
|
|
20707
20702
|
}
|
|
20708
20703
|
} else {
|
|
20709
20704
|
if (!value2) {
|
|
20710
|
-
return /* @__PURE__ */
|
|
20705
|
+
return /* @__PURE__ */ jsx110("span", { style: { color: grey900 }, children: placeholder });
|
|
20711
20706
|
}
|
|
20712
20707
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
20713
20708
|
}
|
|
@@ -20732,7 +20727,7 @@ var Select = function Select2({
|
|
|
20732
20727
|
}
|
|
20733
20728
|
},
|
|
20734
20729
|
...rest,
|
|
20735
|
-
children: children ?? options.map(({ label, value: value2, ...rest2 }) => /* @__PURE__ */
|
|
20730
|
+
children: children ?? options.map(({ label, value: value2, ...rest2 }) => /* @__PURE__ */ jsx110(
|
|
20736
20731
|
SelectOption,
|
|
20737
20732
|
{
|
|
20738
20733
|
label: label ?? value2?.toString() ?? "",
|
|
@@ -20749,7 +20744,7 @@ var Select = function Select2({
|
|
|
20749
20744
|
var Select_default = React57.forwardRef(Select);
|
|
20750
20745
|
|
|
20751
20746
|
// src/components/input/TimezoneSelector.tsx
|
|
20752
|
-
import { jsx as
|
|
20747
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
20753
20748
|
var TimezoneSelector = ({
|
|
20754
20749
|
initialTimezone,
|
|
20755
20750
|
onTimezoneChange
|
|
@@ -20760,7 +20755,7 @@ var TimezoneSelector = ({
|
|
|
20760
20755
|
onTimezoneChange(timezone);
|
|
20761
20756
|
};
|
|
20762
20757
|
const timeZones = moment2.tz.names();
|
|
20763
|
-
return /* @__PURE__ */
|
|
20758
|
+
return /* @__PURE__ */ jsx111(
|
|
20764
20759
|
Select_default,
|
|
20765
20760
|
{
|
|
20766
20761
|
value: selectedTimezone,
|
|
@@ -20774,7 +20769,7 @@ var TimezoneSelector_default = TimezoneSelector;
|
|
|
20774
20769
|
|
|
20775
20770
|
// src/components/input/DaysOfWeekPicker.tsx
|
|
20776
20771
|
import * as React59 from "react";
|
|
20777
|
-
import { jsx as
|
|
20772
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
20778
20773
|
var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
20779
20774
|
const { locale } = React59.useContext(IntlContext);
|
|
20780
20775
|
const daysOfWeekLong = React59.useMemo(
|
|
@@ -20794,7 +20789,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20794
20789
|
"saturday",
|
|
20795
20790
|
"sunday"
|
|
20796
20791
|
];
|
|
20797
|
-
return /* @__PURE__ */
|
|
20792
|
+
return /* @__PURE__ */ jsx112(
|
|
20798
20793
|
Stack_default,
|
|
20799
20794
|
{
|
|
20800
20795
|
direction: "row",
|
|
@@ -20803,7 +20798,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20803
20798
|
height: "34px",
|
|
20804
20799
|
alignItems: "center"
|
|
20805
20800
|
},
|
|
20806
|
-
children: daysOfWeek.map((day, index) => /* @__PURE__ */
|
|
20801
|
+
children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx112("div", { style: { margin: "0 2px" }, children: /* @__PURE__ */ jsx112(
|
|
20807
20802
|
ToggleButton_default,
|
|
20808
20803
|
{
|
|
20809
20804
|
sx: {
|
|
@@ -20826,7 +20821,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20826
20821
|
onChange(value.concat([currentValue]));
|
|
20827
20822
|
}
|
|
20828
20823
|
},
|
|
20829
|
-
children: /* @__PURE__ */
|
|
20824
|
+
children: /* @__PURE__ */ jsx112(Tooltip_default, { title: daysOfWeekLong[index], children: /* @__PURE__ */ jsx112("span", { children: day }) }, index)
|
|
20830
20825
|
}
|
|
20831
20826
|
) }, index))
|
|
20832
20827
|
}
|
|
@@ -20839,7 +20834,7 @@ import * as React60 from "react";
|
|
|
20839
20834
|
import GradientColorPicker, {
|
|
20840
20835
|
useColorPicker
|
|
20841
20836
|
} from "react-best-gradient-color-picker";
|
|
20842
|
-
import { Fragment as Fragment22, jsx as
|
|
20837
|
+
import { Fragment as Fragment22, jsx as jsx113, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
20843
20838
|
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
20839
|
var isValidColor = (color2) => colorRegex.test(color2);
|
|
20845
20840
|
var colorPickerDefaultColors = [
|
|
@@ -20910,7 +20905,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20910
20905
|
return hex.length === 1 ? "0" + hex : hex;
|
|
20911
20906
|
}).join("");
|
|
20912
20907
|
};
|
|
20913
|
-
const iconColor = /* @__PURE__ */
|
|
20908
|
+
const iconColor = /* @__PURE__ */ jsx113(
|
|
20914
20909
|
IconButton_default,
|
|
20915
20910
|
{
|
|
20916
20911
|
iconId: value ? "color-square" : "transparent",
|
|
@@ -20933,7 +20928,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20933
20928
|
}
|
|
20934
20929
|
}, [value, internalPickerValue, onChange, isValidPickerChange, valueToHex]);
|
|
20935
20930
|
return /* @__PURE__ */ jsxs52(Fragment22, { children: [
|
|
20936
|
-
/* @__PURE__ */
|
|
20931
|
+
/* @__PURE__ */ jsx113(
|
|
20937
20932
|
TextField_default,
|
|
20938
20933
|
{
|
|
20939
20934
|
value: textFieldValue,
|
|
@@ -20958,7 +20953,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20958
20953
|
ref
|
|
20959
20954
|
}
|
|
20960
20955
|
),
|
|
20961
|
-
/* @__PURE__ */
|
|
20956
|
+
/* @__PURE__ */ jsx113(
|
|
20962
20957
|
Popover_default,
|
|
20963
20958
|
{
|
|
20964
20959
|
anchorEl,
|
|
@@ -20967,7 +20962,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
20967
20962
|
onMouseUp: () => {
|
|
20968
20963
|
setValidPickerChange(true);
|
|
20969
20964
|
},
|
|
20970
|
-
children: /* @__PURE__ */
|
|
20965
|
+
children: /* @__PURE__ */ jsx113(
|
|
20971
20966
|
Box_default2,
|
|
20972
20967
|
{
|
|
20973
20968
|
className: "Cn-Color-Gradient-Box",
|
|
@@ -21011,7 +21006,7 @@ var ColorPicker = React60.forwardRef(function ColorPickerWrapper({
|
|
|
21011
21006
|
fontFamily: "Source Sans Pro, sans-serif"
|
|
21012
21007
|
}
|
|
21013
21008
|
},
|
|
21014
|
-
children: /* @__PURE__ */
|
|
21009
|
+
children: /* @__PURE__ */ jsx113(
|
|
21015
21010
|
GradientColorPicker,
|
|
21016
21011
|
{
|
|
21017
21012
|
className: "Cn-Color-Gradient-Picker",
|
|
@@ -21042,7 +21037,7 @@ var ColorPicker_default = ColorPicker;
|
|
|
21042
21037
|
|
|
21043
21038
|
// src/components/input/UploadClickableArea.tsx
|
|
21044
21039
|
import { Box as Box3 } from "@mui/material";
|
|
21045
|
-
import { jsx as
|
|
21040
|
+
import { jsx as jsx114, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
21046
21041
|
var UploadClickableArea = ({
|
|
21047
21042
|
accept,
|
|
21048
21043
|
onFilesChanged,
|
|
@@ -21056,7 +21051,7 @@ var UploadClickableArea = ({
|
|
|
21056
21051
|
display: "inline-block"
|
|
21057
21052
|
},
|
|
21058
21053
|
children: [
|
|
21059
|
-
/* @__PURE__ */
|
|
21054
|
+
/* @__PURE__ */ jsx114(
|
|
21060
21055
|
"input",
|
|
21061
21056
|
{
|
|
21062
21057
|
type: "file",
|
|
@@ -21074,8 +21069,8 @@ var UploadClickableArea_default = UploadClickableArea;
|
|
|
21074
21069
|
// src/components/input/CategorizedPicker.tsx
|
|
21075
21070
|
import React61 from "react";
|
|
21076
21071
|
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__ */
|
|
21072
|
+
import { Fragment as Fragment23, jsx as jsx115, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
21073
|
+
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */ jsx115(
|
|
21079
21074
|
Icon_default,
|
|
21080
21075
|
{
|
|
21081
21076
|
id: "chevron-down",
|
|
@@ -21171,7 +21166,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21171
21166
|
}
|
|
21172
21167
|
}, [filteredCategories, selectedCategory]);
|
|
21173
21168
|
return /* @__PURE__ */ jsxs54(Fragment23, { children: [
|
|
21174
|
-
/* @__PURE__ */
|
|
21169
|
+
/* @__PURE__ */ jsx115(
|
|
21175
21170
|
Select3,
|
|
21176
21171
|
{
|
|
21177
21172
|
ref: anchorRef,
|
|
@@ -21186,7 +21181,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21186
21181
|
value: value?.name || "",
|
|
21187
21182
|
displayEmpty: true,
|
|
21188
21183
|
disabled,
|
|
21189
|
-
input: /* @__PURE__ */
|
|
21184
|
+
input: /* @__PURE__ */ jsx115(
|
|
21190
21185
|
BootstrapInput,
|
|
21191
21186
|
{
|
|
21192
21187
|
sx: {
|
|
@@ -21195,7 +21190,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21195
21190
|
}
|
|
21196
21191
|
),
|
|
21197
21192
|
renderValue: (value2) => value2 || placeholder,
|
|
21198
|
-
IconComponent: () => /* @__PURE__ */
|
|
21193
|
+
IconComponent: () => /* @__PURE__ */ jsx115(ChevronIcon2, { disabled }),
|
|
21199
21194
|
onClick: !disabled ? (e) => {
|
|
21200
21195
|
e.preventDefault();
|
|
21201
21196
|
e.stopPropagation();
|
|
@@ -21203,10 +21198,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21203
21198
|
} : void 0,
|
|
21204
21199
|
open: false,
|
|
21205
21200
|
"data-testid": dataTestId,
|
|
21206
|
-
children: options.map((option) => /* @__PURE__ */
|
|
21201
|
+
children: options.map((option) => /* @__PURE__ */ jsx115("option", { value: option.name }, option.id))
|
|
21207
21202
|
}
|
|
21208
21203
|
),
|
|
21209
|
-
/* @__PURE__ */
|
|
21204
|
+
/* @__PURE__ */ jsx115(
|
|
21210
21205
|
Popover2,
|
|
21211
21206
|
{
|
|
21212
21207
|
anchorEl: anchorRef.current,
|
|
@@ -21228,7 +21223,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21228
21223
|
}
|
|
21229
21224
|
},
|
|
21230
21225
|
children: /* @__PURE__ */ jsxs54(Grid3, { container: true, children: [
|
|
21231
|
-
/* @__PURE__ */
|
|
21226
|
+
/* @__PURE__ */ jsx115(
|
|
21232
21227
|
Grid3,
|
|
21233
21228
|
{
|
|
21234
21229
|
size: {
|
|
@@ -21236,7 +21231,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21236
21231
|
},
|
|
21237
21232
|
padding: "8px",
|
|
21238
21233
|
borderBottom: `1px solid ${grey200}`,
|
|
21239
|
-
children: /* @__PURE__ */
|
|
21234
|
+
children: /* @__PURE__ */ jsx115(
|
|
21240
21235
|
DebouncedTextField_default,
|
|
21241
21236
|
{
|
|
21242
21237
|
placeholder: t(
|
|
@@ -21244,12 +21239,12 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21244
21239
|
),
|
|
21245
21240
|
value: search,
|
|
21246
21241
|
onChange: onTypeSearch,
|
|
21247
|
-
startAdornment: /* @__PURE__ */
|
|
21242
|
+
startAdornment: /* @__PURE__ */ jsx115(Icon_default, { id: "magnify" })
|
|
21248
21243
|
}
|
|
21249
21244
|
)
|
|
21250
21245
|
}
|
|
21251
21246
|
),
|
|
21252
|
-
/* @__PURE__ */
|
|
21247
|
+
/* @__PURE__ */ jsx115(
|
|
21253
21248
|
Grid3,
|
|
21254
21249
|
{
|
|
21255
21250
|
size: {
|
|
@@ -21258,14 +21253,14 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21258
21253
|
sx: { borderRight: `1px solid ${grey200}` },
|
|
21259
21254
|
height: "316px",
|
|
21260
21255
|
className: "Slim-Vertical-Scroll",
|
|
21261
|
-
children: /* @__PURE__ */
|
|
21256
|
+
children: /* @__PURE__ */ jsx115(Stack8, { children: filteredCategories.map((category, idx) => /* @__PURE__ */ jsx115(
|
|
21262
21257
|
ListItemButton_default,
|
|
21263
21258
|
{
|
|
21264
21259
|
selected: selectedCategory === category,
|
|
21265
21260
|
onClick: () => {
|
|
21266
21261
|
setSelectedCategory(category);
|
|
21267
21262
|
},
|
|
21268
|
-
endAdornment: selectedCategory === category ? /* @__PURE__ */
|
|
21263
|
+
endAdornment: selectedCategory === category ? /* @__PURE__ */ jsx115(
|
|
21269
21264
|
Icon_default,
|
|
21270
21265
|
{
|
|
21271
21266
|
id: "menu-right",
|
|
@@ -21273,10 +21268,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21273
21268
|
}
|
|
21274
21269
|
) : void 0,
|
|
21275
21270
|
buttonDataTest: dataTestId ? dataTestId + "-category-" + idx : void 0,
|
|
21276
|
-
children: /* @__PURE__ */
|
|
21271
|
+
children: /* @__PURE__ */ jsx115(
|
|
21277
21272
|
TextEllipsis_default,
|
|
21278
21273
|
{
|
|
21279
|
-
text: /* @__PURE__ */
|
|
21274
|
+
text: /* @__PURE__ */ jsx115(
|
|
21280
21275
|
TextMarker_default,
|
|
21281
21276
|
{
|
|
21282
21277
|
searchText: search,
|
|
@@ -21294,7 +21289,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21294
21289
|
)) })
|
|
21295
21290
|
}
|
|
21296
21291
|
),
|
|
21297
|
-
/* @__PURE__ */
|
|
21292
|
+
/* @__PURE__ */ jsx115(
|
|
21298
21293
|
Grid3,
|
|
21299
21294
|
{
|
|
21300
21295
|
size: {
|
|
@@ -21302,7 +21297,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21302
21297
|
},
|
|
21303
21298
|
height: "316px",
|
|
21304
21299
|
className: "Slim-Vertical-Scroll",
|
|
21305
|
-
children: /* @__PURE__ */
|
|
21300
|
+
children: /* @__PURE__ */ jsx115(Stack8, { children: /* @__PURE__ */ jsx115(Stack8, { children: !selectedCategory ? /* @__PURE__ */ jsx115(Stack8, { padding: "12px", alignItems: "center", children: /* @__PURE__ */ jsx115(
|
|
21306
21301
|
Typography_default,
|
|
21307
21302
|
{
|
|
21308
21303
|
variant: "body2",
|
|
@@ -21314,7 +21309,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21314
21309
|
)
|
|
21315
21310
|
}
|
|
21316
21311
|
) }) : selectedCategory.categoryOptions.map(
|
|
21317
|
-
(option, idx) => /* @__PURE__ */
|
|
21312
|
+
(option, idx) => /* @__PURE__ */ jsx115(
|
|
21318
21313
|
ListItemButton_default,
|
|
21319
21314
|
{
|
|
21320
21315
|
selected: value?.id === option.id,
|
|
@@ -21323,10 +21318,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21323
21318
|
closePopover();
|
|
21324
21319
|
},
|
|
21325
21320
|
buttonDataTest: dataTestId ? dataTestId + "-option-" + idx : void 0,
|
|
21326
|
-
children: /* @__PURE__ */
|
|
21321
|
+
children: /* @__PURE__ */ jsx115(
|
|
21327
21322
|
TextEllipsis_default,
|
|
21328
21323
|
{
|
|
21329
|
-
text: /* @__PURE__ */
|
|
21324
|
+
text: /* @__PURE__ */ jsx115(
|
|
21330
21325
|
TextMarker_default,
|
|
21331
21326
|
{
|
|
21332
21327
|
searchText: search,
|
|
@@ -21359,7 +21354,7 @@ import * as React62 from "react";
|
|
|
21359
21354
|
import { Grid as Grid4, Stack as Stack9 } from "@mui/material";
|
|
21360
21355
|
import { useState as useState22 } from "react";
|
|
21361
21356
|
import InfiniteScroll from "react-infinite-scroll-component";
|
|
21362
|
-
import { jsx as
|
|
21357
|
+
import { jsx as jsx116, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
21363
21358
|
var defaultItemsColorStyles = {
|
|
21364
21359
|
selectedColor: Colors_exports.primaryMain,
|
|
21365
21360
|
disabledColor: ""
|
|
@@ -21501,14 +21496,14 @@ var SelectPopover = function SelectPopover2({
|
|
|
21501
21496
|
anchorEl,
|
|
21502
21497
|
disableRestoreFocus,
|
|
21503
21498
|
children: [
|
|
21504
|
-
/* @__PURE__ */
|
|
21499
|
+
/* @__PURE__ */ jsx116(
|
|
21505
21500
|
Box_default2,
|
|
21506
21501
|
{
|
|
21507
21502
|
sx: {
|
|
21508
21503
|
borderBottom: `1px solid ${Colors_exports.grey200}`,
|
|
21509
21504
|
padding: "8px"
|
|
21510
21505
|
},
|
|
21511
|
-
children: /* @__PURE__ */
|
|
21506
|
+
children: /* @__PURE__ */ jsx116(
|
|
21512
21507
|
DebouncedTextField_default,
|
|
21513
21508
|
{
|
|
21514
21509
|
iconId: "magnify",
|
|
@@ -21523,7 +21518,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21523
21518
|
)
|
|
21524
21519
|
}
|
|
21525
21520
|
),
|
|
21526
|
-
/* @__PURE__ */
|
|
21521
|
+
/* @__PURE__ */ jsx116(
|
|
21527
21522
|
InfiniteScroll,
|
|
21528
21523
|
{
|
|
21529
21524
|
height: 300,
|
|
@@ -21582,7 +21577,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21582
21577
|
onItemSelected
|
|
21583
21578
|
) : getItemElement(item, onItemSelected)
|
|
21584
21579
|
),
|
|
21585
|
-
isLoading && /* @__PURE__ */
|
|
21580
|
+
isLoading && /* @__PURE__ */ jsx116(
|
|
21586
21581
|
Skeleton_default,
|
|
21587
21582
|
{
|
|
21588
21583
|
variant: "text",
|
|
@@ -21595,13 +21590,13 @@ var SelectPopover = function SelectPopover2({
|
|
|
21595
21590
|
}
|
|
21596
21591
|
}
|
|
21597
21592
|
),
|
|
21598
|
-
!isLoading && currentItems.length === 0 ? /* @__PURE__ */
|
|
21593
|
+
!isLoading && currentItems.length === 0 ? /* @__PURE__ */ jsx116(
|
|
21599
21594
|
Stack9,
|
|
21600
21595
|
{
|
|
21601
21596
|
alignItems: "center",
|
|
21602
21597
|
justifyContent: "center",
|
|
21603
21598
|
width: "100%",
|
|
21604
|
-
children: /* @__PURE__ */
|
|
21599
|
+
children: /* @__PURE__ */ jsx116(Typography_default, { variant: "body2", color: grey600, children: emptyListPlaceholder })
|
|
21605
21600
|
}
|
|
21606
21601
|
) : ""
|
|
21607
21602
|
]
|
|
@@ -21609,11 +21604,11 @@ var SelectPopover = function SelectPopover2({
|
|
|
21609
21604
|
)
|
|
21610
21605
|
}
|
|
21611
21606
|
),
|
|
21612
|
-
/* @__PURE__ */
|
|
21607
|
+
/* @__PURE__ */ jsx116(
|
|
21613
21608
|
PopoverActions_default,
|
|
21614
21609
|
{
|
|
21615
21610
|
sx: { padding: "16px 24px" },
|
|
21616
|
-
leftContent: /* @__PURE__ */
|
|
21611
|
+
leftContent: /* @__PURE__ */ jsx116(
|
|
21617
21612
|
Button_default,
|
|
21618
21613
|
{
|
|
21619
21614
|
variant: "contained",
|
|
@@ -21623,7 +21618,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21623
21618
|
onClick: closePopover
|
|
21624
21619
|
}
|
|
21625
21620
|
),
|
|
21626
|
-
rightContent: /* @__PURE__ */
|
|
21621
|
+
rightContent: /* @__PURE__ */ jsx116(
|
|
21627
21622
|
Button_default,
|
|
21628
21623
|
{
|
|
21629
21624
|
variant: "contained",
|
|
@@ -21647,7 +21642,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21647
21642
|
);
|
|
21648
21643
|
};
|
|
21649
21644
|
function getItemElement(item, onItemClick) {
|
|
21650
|
-
return /* @__PURE__ */
|
|
21645
|
+
return /* @__PURE__ */ jsx116(
|
|
21651
21646
|
SelectPopoverItem_default,
|
|
21652
21647
|
{
|
|
21653
21648
|
id: item.id,
|
|
@@ -21676,7 +21671,7 @@ var arraysEqual = (a, b) => {
|
|
|
21676
21671
|
var SelectPopover_default = SelectPopover;
|
|
21677
21672
|
|
|
21678
21673
|
// src/components/input/ItemSelector.tsx
|
|
21679
|
-
import { Fragment as Fragment24, jsx as
|
|
21674
|
+
import { Fragment as Fragment24, jsx as jsx117, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
21680
21675
|
var ItemSelector = function ItemSelector2({
|
|
21681
21676
|
items,
|
|
21682
21677
|
selectedItems,
|
|
@@ -21730,7 +21725,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21730
21725
|
item
|
|
21731
21726
|
}) => {
|
|
21732
21727
|
const [ref, { contentWidth: width2 }] = useResizeObserver();
|
|
21733
|
-
return /* @__PURE__ */
|
|
21728
|
+
return /* @__PURE__ */ jsx117(
|
|
21734
21729
|
Chip_default,
|
|
21735
21730
|
{
|
|
21736
21731
|
ref,
|
|
@@ -21761,7 +21756,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21761
21756
|
return selectedItem ? [selectedItem] : "";
|
|
21762
21757
|
};
|
|
21763
21758
|
return /* @__PURE__ */ jsxs56(Fragment24, { children: [
|
|
21764
|
-
/* @__PURE__ */
|
|
21759
|
+
/* @__PURE__ */ jsx117(
|
|
21765
21760
|
Select_default,
|
|
21766
21761
|
{
|
|
21767
21762
|
ref: selectRef,
|
|
@@ -21778,16 +21773,16 @@ var ItemSelector = function ItemSelector2({
|
|
|
21778
21773
|
let component;
|
|
21779
21774
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
21780
21775
|
component = /* @__PURE__ */ jsxs56(Fragment24, { children: [
|
|
21781
|
-
/* @__PURE__ */
|
|
21776
|
+
/* @__PURE__ */ jsx117(
|
|
21782
21777
|
Stack_default,
|
|
21783
21778
|
{
|
|
21784
21779
|
direction: "row",
|
|
21785
21780
|
flexWrap: "wrap",
|
|
21786
21781
|
padding: "6px 0",
|
|
21787
|
-
children: /* @__PURE__ */
|
|
21782
|
+
children: /* @__PURE__ */ jsx117(Typography_default, { variant: "body2", color: grey600, children: placeholder })
|
|
21788
21783
|
}
|
|
21789
21784
|
),
|
|
21790
|
-
/* @__PURE__ */
|
|
21785
|
+
/* @__PURE__ */ jsx117(
|
|
21791
21786
|
Divider_default,
|
|
21792
21787
|
{
|
|
21793
21788
|
variant: "middle",
|
|
@@ -21812,7 +21807,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21812
21807
|
const item = selectedItems.find(
|
|
21813
21808
|
(i) => i.id === id
|
|
21814
21809
|
);
|
|
21815
|
-
return item ? /* @__PURE__ */
|
|
21810
|
+
return item ? /* @__PURE__ */ jsx117(
|
|
21816
21811
|
ItemChip,
|
|
21817
21812
|
{
|
|
21818
21813
|
item: {
|
|
@@ -21821,14 +21816,14 @@ var ItemSelector = function ItemSelector2({
|
|
|
21821
21816
|
}
|
|
21822
21817
|
},
|
|
21823
21818
|
id
|
|
21824
|
-
) : /* @__PURE__ */
|
|
21819
|
+
) : /* @__PURE__ */ jsx117(Fragment24, {});
|
|
21825
21820
|
}),
|
|
21826
|
-
value.length - limitItemChips > 0 ? /* @__PURE__ */
|
|
21821
|
+
value.length - limitItemChips > 0 ? /* @__PURE__ */ jsx117(
|
|
21827
21822
|
Tooltip_default,
|
|
21828
21823
|
{
|
|
21829
21824
|
interactive: true,
|
|
21830
21825
|
variant: "white",
|
|
21831
|
-
title: /* @__PURE__ */
|
|
21826
|
+
title: /* @__PURE__ */ jsx117(
|
|
21832
21827
|
Stack_default,
|
|
21833
21828
|
{
|
|
21834
21829
|
direction: "row",
|
|
@@ -21845,24 +21840,24 @@ var ItemSelector = function ItemSelector2({
|
|
|
21845
21840
|
const item = selectedItems.find(
|
|
21846
21841
|
(i) => i.id === id
|
|
21847
21842
|
);
|
|
21848
|
-
return item ? /* @__PURE__ */
|
|
21843
|
+
return item ? /* @__PURE__ */ jsx117(
|
|
21849
21844
|
ItemChip,
|
|
21850
21845
|
{
|
|
21851
21846
|
item
|
|
21852
21847
|
},
|
|
21853
21848
|
id
|
|
21854
|
-
) : /* @__PURE__ */
|
|
21849
|
+
) : /* @__PURE__ */ jsx117(Fragment24, {});
|
|
21855
21850
|
})
|
|
21856
21851
|
}
|
|
21857
21852
|
),
|
|
21858
|
-
children: /* @__PURE__ */
|
|
21853
|
+
children: /* @__PURE__ */ jsx117(Typography_default, { variant: "body2", children: `+${value.length - limitItemChips}` })
|
|
21859
21854
|
}
|
|
21860
21855
|
) : void 0
|
|
21861
21856
|
]
|
|
21862
21857
|
}
|
|
21863
21858
|
),
|
|
21864
21859
|
!disabled && /* @__PURE__ */ jsxs56(Stack_default, { direction: "row", children: [
|
|
21865
|
-
/* @__PURE__ */
|
|
21860
|
+
/* @__PURE__ */ jsx117(
|
|
21866
21861
|
IconButton_default,
|
|
21867
21862
|
{
|
|
21868
21863
|
iconId: "close",
|
|
@@ -21880,7 +21875,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21880
21875
|
}
|
|
21881
21876
|
}
|
|
21882
21877
|
),
|
|
21883
|
-
/* @__PURE__ */
|
|
21878
|
+
/* @__PURE__ */ jsx117(
|
|
21884
21879
|
Divider_default,
|
|
21885
21880
|
{
|
|
21886
21881
|
variant: "middle",
|
|
@@ -21891,7 +21886,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21891
21886
|
] })
|
|
21892
21887
|
] });
|
|
21893
21888
|
}
|
|
21894
|
-
return /* @__PURE__ */
|
|
21889
|
+
return /* @__PURE__ */ jsx117(
|
|
21895
21890
|
Stack_default,
|
|
21896
21891
|
{
|
|
21897
21892
|
direction: "row",
|
|
@@ -21913,8 +21908,8 @@ var ItemSelector = function ItemSelector2({
|
|
|
21913
21908
|
}
|
|
21914
21909
|
}
|
|
21915
21910
|
),
|
|
21916
|
-
helperText && /* @__PURE__ */
|
|
21917
|
-
/* @__PURE__ */
|
|
21911
|
+
helperText && /* @__PURE__ */ jsx117(InputHelperText_default, { severity: isError ? "error" : "info", children: helperText }),
|
|
21912
|
+
/* @__PURE__ */ jsx117(
|
|
21918
21913
|
SelectPopover_default,
|
|
21919
21914
|
{
|
|
21920
21915
|
items: items.map((item) => {
|
|
@@ -21979,7 +21974,7 @@ var map = {
|
|
|
21979
21974
|
var toDiacriticInsensitiveString = (input) => Array.from(input).map((char) => map[char] ? `[${map[char]}]` : char).join("");
|
|
21980
21975
|
|
|
21981
21976
|
// src/components/input/Autocomplete.tsx
|
|
21982
|
-
import { Fragment as Fragment25, jsx as
|
|
21977
|
+
import { Fragment as Fragment25, jsx as jsx118, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
21983
21978
|
var AUTOCOMPLETE_ITEM_HEIGHT = 44;
|
|
21984
21979
|
var Autocomplete = function Autocomplete2({
|
|
21985
21980
|
variant = "default",
|
|
@@ -22175,7 +22170,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22175
22170
|
style: style3
|
|
22176
22171
|
}) => {
|
|
22177
22172
|
const option = filteredOptions[index];
|
|
22178
|
-
return /* @__PURE__ */
|
|
22173
|
+
return /* @__PURE__ */ jsx118(
|
|
22179
22174
|
ListItemButton_default,
|
|
22180
22175
|
{
|
|
22181
22176
|
selected: index === selectedIndex,
|
|
@@ -22184,7 +22179,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22184
22179
|
sx: style3,
|
|
22185
22180
|
color: Array.isArray(value) && value.includes(option.id) ? "primary" : void 0,
|
|
22186
22181
|
text: getText(option),
|
|
22187
|
-
endAdornment: multiple && (options.some((elem) => elem.id === option.id) ? Array.isArray(value) && value.includes(option.id) && /* @__PURE__ */
|
|
22182
|
+
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
22183
|
Icon_default,
|
|
22189
22184
|
{
|
|
22190
22185
|
id: Array.isArray(value) && value.includes(option.id) ? "close" : "plus"
|
|
@@ -22197,7 +22192,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22197
22192
|
);
|
|
22198
22193
|
};
|
|
22199
22194
|
return /* @__PURE__ */ jsxs57(Fragment25, { children: [
|
|
22200
|
-
/* @__PURE__ */
|
|
22195
|
+
/* @__PURE__ */ jsx118(
|
|
22201
22196
|
DebouncedTextField_default,
|
|
22202
22197
|
{
|
|
22203
22198
|
ref: ref ?? inputRef,
|
|
@@ -22287,7 +22282,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22287
22282
|
alignItems: "center"
|
|
22288
22283
|
},
|
|
22289
22284
|
children: [
|
|
22290
|
-
value.slice(0, limitValueTags || value.length).map((id) => /* @__PURE__ */
|
|
22285
|
+
value.slice(0, limitValueTags || value.length).map((id) => /* @__PURE__ */ jsx118(
|
|
22291
22286
|
Chip_default,
|
|
22292
22287
|
{
|
|
22293
22288
|
label: (renderLabel ?? _renderLabel)(
|
|
@@ -22307,12 +22302,12 @@ var Autocomplete = function Autocomplete2({
|
|
|
22307
22302
|
},
|
|
22308
22303
|
id
|
|
22309
22304
|
)),
|
|
22310
|
-
limitValueTags && value.length - limitValueTags > 0 ? /* @__PURE__ */
|
|
22305
|
+
limitValueTags && value.length - limitValueTags > 0 ? /* @__PURE__ */ jsx118(
|
|
22311
22306
|
Tooltip_default,
|
|
22312
22307
|
{
|
|
22313
22308
|
interactive: true,
|
|
22314
22309
|
variant: "white",
|
|
22315
|
-
title: /* @__PURE__ */
|
|
22310
|
+
title: /* @__PURE__ */ jsx118(
|
|
22316
22311
|
Stack_default,
|
|
22317
22312
|
{
|
|
22318
22313
|
direction: "row",
|
|
@@ -22325,7 +22320,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22325
22320
|
children: value.slice(
|
|
22326
22321
|
limitValueTags,
|
|
22327
22322
|
value.length
|
|
22328
|
-
).map((id) => /* @__PURE__ */
|
|
22323
|
+
).map((id) => /* @__PURE__ */ jsx118(
|
|
22329
22324
|
Chip_default,
|
|
22330
22325
|
{
|
|
22331
22326
|
label: (renderLabel ?? _renderLabel)(id),
|
|
@@ -22345,7 +22340,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22345
22340
|
))
|
|
22346
22341
|
}
|
|
22347
22342
|
),
|
|
22348
|
-
children: /* @__PURE__ */
|
|
22343
|
+
children: /* @__PURE__ */ jsx118(Typography_default, { variant: "body2", children: `+${value.length - limitValueTags}` })
|
|
22349
22344
|
}
|
|
22350
22345
|
) : ""
|
|
22351
22346
|
]
|
|
@@ -22362,7 +22357,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22362
22357
|
spacing: 1,
|
|
22363
22358
|
children: [
|
|
22364
22359
|
textFieldProps?.endAdornment,
|
|
22365
|
-
!disabled && dirty && showClearButton && /* @__PURE__ */
|
|
22360
|
+
!disabled && dirty && showClearButton && /* @__PURE__ */ jsx118(Tooltip_default, { title: t("AUTOCOMPLETE.CLEAR"), children: /* @__PURE__ */ jsx118(
|
|
22366
22361
|
IconButton_default,
|
|
22367
22362
|
{
|
|
22368
22363
|
iconId: "close",
|
|
@@ -22385,7 +22380,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22385
22380
|
"data-test": "clear-autocomplete"
|
|
22386
22381
|
}
|
|
22387
22382
|
) }),
|
|
22388
|
-
!disabled && dirty && showClearButton && /* @__PURE__ */
|
|
22383
|
+
!disabled && dirty && showClearButton && /* @__PURE__ */ jsx118(
|
|
22389
22384
|
Divider_default,
|
|
22390
22385
|
{
|
|
22391
22386
|
variant: "middle",
|
|
@@ -22393,11 +22388,11 @@ var Autocomplete = function Autocomplete2({
|
|
|
22393
22388
|
flexItem: true
|
|
22394
22389
|
}
|
|
22395
22390
|
),
|
|
22396
|
-
!disabled && variant !== "text" && /* @__PURE__ */
|
|
22391
|
+
!disabled && variant !== "text" && /* @__PURE__ */ jsx118(
|
|
22397
22392
|
Tooltip_default,
|
|
22398
22393
|
{
|
|
22399
22394
|
title: isOpen ? t("AUTOCOMPLETE.COLLAPSE") : t("AUTOCOMPLETE.EXPAND"),
|
|
22400
|
-
children: /* @__PURE__ */
|
|
22395
|
+
children: /* @__PURE__ */ jsx118(
|
|
22401
22396
|
IconButton_default,
|
|
22402
22397
|
{
|
|
22403
22398
|
ref: expandSelectButtonRef,
|
|
@@ -22419,7 +22414,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22419
22414
|
autoComplete: "off"
|
|
22420
22415
|
}
|
|
22421
22416
|
),
|
|
22422
|
-
/* @__PURE__ */
|
|
22417
|
+
/* @__PURE__ */ jsx118(
|
|
22423
22418
|
ClickAwayListener,
|
|
22424
22419
|
{
|
|
22425
22420
|
onClickAway: (event) => {
|
|
@@ -22444,13 +22439,13 @@ var Autocomplete = function Autocomplete2({
|
|
|
22444
22439
|
}
|
|
22445
22440
|
},
|
|
22446
22441
|
mouseEvent: "onMouseDown",
|
|
22447
|
-
children: /* @__PURE__ */
|
|
22442
|
+
children: /* @__PURE__ */ jsx118(
|
|
22448
22443
|
Popper,
|
|
22449
22444
|
{
|
|
22450
22445
|
anchorEl: anchorRef.current,
|
|
22451
22446
|
open: isOpen,
|
|
22452
22447
|
sx: { zIndex: 3e3 },
|
|
22453
|
-
children: /* @__PURE__ */
|
|
22448
|
+
children: /* @__PURE__ */ jsx118(Paper_default, { sx: { boxShadow: shadows[1], borderRadius: "8px" }, children: /* @__PURE__ */ jsxs57(
|
|
22454
22449
|
Box_default2,
|
|
22455
22450
|
{
|
|
22456
22451
|
sx: {
|
|
@@ -22462,22 +22457,22 @@ var Autocomplete = function Autocomplete2({
|
|
|
22462
22457
|
className: "Slim-Vertical-Scroll",
|
|
22463
22458
|
ref: listRef,
|
|
22464
22459
|
children: [
|
|
22465
|
-
isLoading && /* @__PURE__ */
|
|
22460
|
+
isLoading && /* @__PURE__ */ jsx118(
|
|
22466
22461
|
ListItem_default,
|
|
22467
22462
|
{
|
|
22468
22463
|
text: loadingText ?? t("AUTOCOMPLETE.LOADING")
|
|
22469
22464
|
}
|
|
22470
22465
|
),
|
|
22471
|
-
!isLoading && filteredOptions.length === 0 && /* @__PURE__ */
|
|
22466
|
+
!isLoading && filteredOptions.length === 0 && /* @__PURE__ */ jsx118(
|
|
22472
22467
|
ListItem_default,
|
|
22473
22468
|
{
|
|
22474
22469
|
text: noOptionsText ?? t("AUTOCOMPLETE.NO_OPTIONS")
|
|
22475
22470
|
}
|
|
22476
22471
|
),
|
|
22477
|
-
!isLoading && filteredOptions.length > 0 && /* @__PURE__ */
|
|
22472
|
+
!isLoading && filteredOptions.length > 0 && /* @__PURE__ */ jsx118(AutoSizer5, { children: ({
|
|
22478
22473
|
height: height2,
|
|
22479
22474
|
width: width2
|
|
22480
|
-
}) => /* @__PURE__ */
|
|
22475
|
+
}) => /* @__PURE__ */ jsx118(
|
|
22481
22476
|
FixedSizeList3,
|
|
22482
22477
|
{
|
|
22483
22478
|
overscanCount: 3,
|
|
@@ -22545,7 +22540,7 @@ import CodeMirror, {
|
|
|
22545
22540
|
} from "@uiw/react-codemirror";
|
|
22546
22541
|
import { html } from "@codemirror/lang-html";
|
|
22547
22542
|
import { linter, lintGutter } from "@codemirror/lint";
|
|
22548
|
-
import { jsx as
|
|
22543
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
22549
22544
|
var removeFocusOutline = EditorView.baseTheme({
|
|
22550
22545
|
"&.cm-focused": {
|
|
22551
22546
|
outline: "none"
|
|
@@ -22567,7 +22562,7 @@ var CodeEditor = function CodeEditor2({
|
|
|
22567
22562
|
linter(linterOptions?.source || null, linterOptions?.config),
|
|
22568
22563
|
...extensions
|
|
22569
22564
|
] : extensions;
|
|
22570
|
-
return /* @__PURE__ */
|
|
22565
|
+
return /* @__PURE__ */ jsx119(
|
|
22571
22566
|
CodeMirror,
|
|
22572
22567
|
{
|
|
22573
22568
|
...rest,
|
|
@@ -22586,7 +22581,7 @@ var CodeEditor_default = React65.forwardRef(CodeEditor);
|
|
|
22586
22581
|
|
|
22587
22582
|
// src/components/input/CodeEditorPopup.tsx
|
|
22588
22583
|
import format from "html-format";
|
|
22589
|
-
import { Fragment as Fragment26, jsx as
|
|
22584
|
+
import { Fragment as Fragment26, jsx as jsx120, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
22590
22585
|
var FORMAT_CHARACTERS_LINE = 120;
|
|
22591
22586
|
var FORMAT_NUMBER_SPACES_INDENTATION = 2;
|
|
22592
22587
|
var CodeEditorPopup = ({
|
|
@@ -22630,7 +22625,7 @@ var CodeEditorPopup = ({
|
|
|
22630
22625
|
FORMAT_CHARACTERS_LINE
|
|
22631
22626
|
);
|
|
22632
22627
|
return /* @__PURE__ */ jsxs58(Fragment26, { children: [
|
|
22633
|
-
readonly && /* @__PURE__ */
|
|
22628
|
+
readonly && /* @__PURE__ */ jsx120(
|
|
22634
22629
|
Dialog_default,
|
|
22635
22630
|
{
|
|
22636
22631
|
open,
|
|
@@ -22649,7 +22644,7 @@ var CodeEditorPopup = ({
|
|
|
22649
22644
|
justifyContent: "space-between",
|
|
22650
22645
|
paddingTop: "20px",
|
|
22651
22646
|
children: [
|
|
22652
|
-
/* @__PURE__ */
|
|
22647
|
+
/* @__PURE__ */ jsx120(
|
|
22653
22648
|
Box_default2,
|
|
22654
22649
|
{
|
|
22655
22650
|
flexGrow: 1,
|
|
@@ -22666,7 +22661,7 @@ var CodeEditorPopup = ({
|
|
|
22666
22661
|
}
|
|
22667
22662
|
},
|
|
22668
22663
|
children: [
|
|
22669
|
-
/* @__PURE__ */
|
|
22664
|
+
/* @__PURE__ */ jsx120(Box_default2, { flexGrow: 1, minHeight: 0, children: /* @__PURE__ */ jsx120(
|
|
22670
22665
|
CodeEditor_default,
|
|
22671
22666
|
{
|
|
22672
22667
|
autoFocus: true,
|
|
@@ -22695,7 +22690,7 @@ var CodeEditorPopup = ({
|
|
|
22695
22690
|
}
|
|
22696
22691
|
) }),
|
|
22697
22692
|
messageNode,
|
|
22698
|
-
hasErrors && /* @__PURE__ */
|
|
22693
|
+
hasErrors && /* @__PURE__ */ jsx120(Alert_default, { severity: "info", children: t(
|
|
22699
22694
|
"TEXT_EDITOR.SOURCE_CODE.VALIDATION_ERRORS_FOUND"
|
|
22700
22695
|
) })
|
|
22701
22696
|
]
|
|
@@ -22703,13 +22698,13 @@ var CodeEditorPopup = ({
|
|
|
22703
22698
|
)
|
|
22704
22699
|
}
|
|
22705
22700
|
),
|
|
22706
|
-
/* @__PURE__ */
|
|
22701
|
+
/* @__PURE__ */ jsx120(
|
|
22707
22702
|
Box_default2,
|
|
22708
22703
|
{
|
|
22709
22704
|
sx: {
|
|
22710
22705
|
padding: "16px 24px 16px 24px"
|
|
22711
22706
|
},
|
|
22712
|
-
children: /* @__PURE__ */
|
|
22707
|
+
children: /* @__PURE__ */ jsx120(
|
|
22713
22708
|
Button_default,
|
|
22714
22709
|
{
|
|
22715
22710
|
text: t(
|
|
@@ -22726,7 +22721,7 @@ var CodeEditorPopup = ({
|
|
|
22726
22721
|
)
|
|
22727
22722
|
}
|
|
22728
22723
|
),
|
|
22729
|
-
!readonly && /* @__PURE__ */
|
|
22724
|
+
!readonly && /* @__PURE__ */ jsx120(
|
|
22730
22725
|
ConfirmationDialog_default,
|
|
22731
22726
|
{
|
|
22732
22727
|
fullScreen: true,
|
|
@@ -22745,7 +22740,7 @@ var CodeEditorPopup = ({
|
|
|
22745
22740
|
}
|
|
22746
22741
|
},
|
|
22747
22742
|
children: [
|
|
22748
|
-
codeEditorSubtitle && /* @__PURE__ */
|
|
22743
|
+
codeEditorSubtitle && /* @__PURE__ */ jsx120(Box_default2, { sx: { marginTop: "4px", marginBottom: "8px" }, children: /* @__PURE__ */ jsx120(
|
|
22749
22744
|
Typography_default,
|
|
22750
22745
|
{
|
|
22751
22746
|
variant: "body2",
|
|
@@ -22753,7 +22748,7 @@ var CodeEditorPopup = ({
|
|
|
22753
22748
|
children: codeEditorSubtitle
|
|
22754
22749
|
}
|
|
22755
22750
|
) }),
|
|
22756
|
-
/* @__PURE__ */
|
|
22751
|
+
/* @__PURE__ */ jsx120(Box_default2, { flexGrow: 1, minHeight: 0, children: /* @__PURE__ */ jsx120(
|
|
22757
22752
|
CodeEditor_default,
|
|
22758
22753
|
{
|
|
22759
22754
|
autoFocus: true,
|
|
@@ -22782,7 +22777,7 @@ var CodeEditorPopup = ({
|
|
|
22782
22777
|
}
|
|
22783
22778
|
) }),
|
|
22784
22779
|
messageNode,
|
|
22785
|
-
hasErrors && /* @__PURE__ */
|
|
22780
|
+
hasErrors && /* @__PURE__ */ jsx120(Alert_default, { severity: "info", children: t(
|
|
22786
22781
|
"TEXT_EDITOR.SOURCE_CODE.VALIDATION_ERRORS_FOUND"
|
|
22787
22782
|
) })
|
|
22788
22783
|
]
|
|
@@ -22795,7 +22790,7 @@ var CodeEditorPopup = ({
|
|
|
22795
22790
|
var CodeEditorPopup_default = CodeEditorPopup;
|
|
22796
22791
|
|
|
22797
22792
|
// src/components/input/TextEditor.tsx
|
|
22798
|
-
import { Fragment as Fragment27, jsx as
|
|
22793
|
+
import { Fragment as Fragment27, jsx as jsx121, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
22799
22794
|
var DEFAULT_TOOLBAR_INSERT_MENU_ITEMS = [
|
|
22800
22795
|
"link",
|
|
22801
22796
|
"image",
|
|
@@ -23082,7 +23077,7 @@ var TextEditor = function TextEditor2({
|
|
|
23082
23077
|
}
|
|
23083
23078
|
};
|
|
23084
23079
|
return /* @__PURE__ */ jsxs59(Fragment27, { children: [
|
|
23085
|
-
/* @__PURE__ */
|
|
23080
|
+
/* @__PURE__ */ jsx121(
|
|
23086
23081
|
Editor,
|
|
23087
23082
|
{
|
|
23088
23083
|
id,
|
|
@@ -23102,7 +23097,7 @@ var TextEditor = function TextEditor2({
|
|
|
23102
23097
|
...rest
|
|
23103
23098
|
}
|
|
23104
23099
|
),
|
|
23105
|
-
/* @__PURE__ */
|
|
23100
|
+
/* @__PURE__ */ jsx121(
|
|
23106
23101
|
CodeEditorPopup_default,
|
|
23107
23102
|
{
|
|
23108
23103
|
value: contentValue,
|
|
@@ -23142,14 +23137,14 @@ import { TimeField as MuiTimeField } from "@mui/x-date-pickers";
|
|
|
23142
23137
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
23143
23138
|
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
|
|
23144
23139
|
import { tz as tz6 } from "moment-timezone";
|
|
23145
|
-
import { jsx as
|
|
23140
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
23146
23141
|
var ExtendedTextField = ({
|
|
23147
23142
|
inputProps,
|
|
23148
23143
|
ownerState,
|
|
23149
23144
|
InputProps,
|
|
23150
23145
|
error,
|
|
23151
23146
|
...rest
|
|
23152
|
-
}) => /* @__PURE__ */
|
|
23147
|
+
}) => /* @__PURE__ */ jsx122(TextField_default, { ...inputProps, ...rest });
|
|
23153
23148
|
var TimeField = function TimeField2({
|
|
23154
23149
|
onChange,
|
|
23155
23150
|
value,
|
|
@@ -23178,7 +23173,7 @@ var TimeField = function TimeField2({
|
|
|
23178
23173
|
},
|
|
23179
23174
|
[onChange]
|
|
23180
23175
|
);
|
|
23181
|
-
return /* @__PURE__ */
|
|
23176
|
+
return /* @__PURE__ */ jsx122(LocalizationProvider, { dateAdapter: AdapterMoment, children: /* @__PURE__ */ jsx122(
|
|
23182
23177
|
MuiTimeField,
|
|
23183
23178
|
{
|
|
23184
23179
|
onChange: _onChange,
|
|
@@ -23198,7 +23193,7 @@ var TimeField_default = TimeField;
|
|
|
23198
23193
|
|
|
23199
23194
|
// src/components/input/PhoneField.tsx
|
|
23200
23195
|
import * as React69 from "react";
|
|
23201
|
-
import { Fragment as Fragment28, jsx as
|
|
23196
|
+
import { Fragment as Fragment28, jsx as jsx123, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
23202
23197
|
var maxPhoneLengthWithPrefix = 16;
|
|
23203
23198
|
var PhoneField = React69.forwardRef(function PhoneField2({
|
|
23204
23199
|
value,
|
|
@@ -23261,7 +23256,7 @@ var PhoneField = React69.forwardRef(function PhoneField2({
|
|
|
23261
23256
|
setCountryCode(countryCode2);
|
|
23262
23257
|
setTextValue(phone);
|
|
23263
23258
|
}, [value]);
|
|
23264
|
-
const select = /* @__PURE__ */
|
|
23259
|
+
const select = /* @__PURE__ */ jsx123(
|
|
23265
23260
|
Select_default,
|
|
23266
23261
|
{
|
|
23267
23262
|
className: "Cn-PhoneField-countryCodeSelector",
|
|
@@ -23277,7 +23272,7 @@ var PhoneField = React69.forwardRef(function PhoneField2({
|
|
|
23277
23272
|
}
|
|
23278
23273
|
}
|
|
23279
23274
|
);
|
|
23280
|
-
return /* @__PURE__ */
|
|
23275
|
+
return /* @__PURE__ */ jsx123(
|
|
23281
23276
|
TextField_default,
|
|
23282
23277
|
{
|
|
23283
23278
|
groupElements: true,
|
|
@@ -23297,7 +23292,7 @@ var PhoneField_default = PhoneField;
|
|
|
23297
23292
|
|
|
23298
23293
|
// src/components/input/NumberField.tsx
|
|
23299
23294
|
import * as React70 from "react";
|
|
23300
|
-
import { jsx as
|
|
23295
|
+
import { jsx as jsx124, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
23301
23296
|
var setValueAndTriggerChangeEvent = (r2, value) => {
|
|
23302
23297
|
const propDescriptor = Object.getOwnPropertyDescriptor(
|
|
23303
23298
|
window["HTMLInputElement"].prototype,
|
|
@@ -23460,12 +23455,12 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23460
23455
|
}
|
|
23461
23456
|
},
|
|
23462
23457
|
children: [
|
|
23463
|
-
/* @__PURE__ */
|
|
23458
|
+
/* @__PURE__ */ jsx124(
|
|
23464
23459
|
Tooltip_default,
|
|
23465
23460
|
{
|
|
23466
23461
|
title: stepUpDisabledTooltip && stepUpDisabled ? stepUpDisabledTooltip : "",
|
|
23467
23462
|
allowDisabled: true,
|
|
23468
|
-
children: /* @__PURE__ */
|
|
23463
|
+
children: /* @__PURE__ */ jsx124(
|
|
23469
23464
|
IconButton_default,
|
|
23470
23465
|
{
|
|
23471
23466
|
disabled: stepUpDisabled,
|
|
@@ -23476,12 +23471,12 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23476
23471
|
)
|
|
23477
23472
|
}
|
|
23478
23473
|
),
|
|
23479
|
-
/* @__PURE__ */
|
|
23474
|
+
/* @__PURE__ */ jsx124(
|
|
23480
23475
|
Tooltip_default,
|
|
23481
23476
|
{
|
|
23482
23477
|
title: stepDownDisabledTooltip && stepDownDisabled ? stepDownDisabledTooltip : "",
|
|
23483
23478
|
allowDisabled: true,
|
|
23484
|
-
children: /* @__PURE__ */
|
|
23479
|
+
children: /* @__PURE__ */ jsx124(
|
|
23485
23480
|
IconButton_default,
|
|
23486
23481
|
{
|
|
23487
23482
|
disabled: stepDownDisabled,
|
|
@@ -23501,7 +23496,7 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23501
23496
|
setTextValue(numberToString(value));
|
|
23502
23497
|
}
|
|
23503
23498
|
}, [numberToString, stringToNumber, textValue, value]);
|
|
23504
|
-
return /* @__PURE__ */
|
|
23499
|
+
return /* @__PURE__ */ jsx124(
|
|
23505
23500
|
TextField_default,
|
|
23506
23501
|
{
|
|
23507
23502
|
...rest,
|
|
@@ -23523,7 +23518,7 @@ import { tz as tz8 } from "moment-timezone";
|
|
|
23523
23518
|
// src/components/input/DatePickerStatic.tsx
|
|
23524
23519
|
import * as React71 from "react";
|
|
23525
23520
|
import { tz as tz7 } from "moment-timezone";
|
|
23526
|
-
import { jsx as
|
|
23521
|
+
import { jsx as jsx125, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
23527
23522
|
var minYear = 1900;
|
|
23528
23523
|
var maxYear = 2100;
|
|
23529
23524
|
var DatePickerStatic = ({
|
|
@@ -23631,7 +23626,7 @@ var DatePickerStatic = ({
|
|
|
23631
23626
|
spacing: 2,
|
|
23632
23627
|
justifyContent: "space-between",
|
|
23633
23628
|
children: [
|
|
23634
|
-
/* @__PURE__ */
|
|
23629
|
+
/* @__PURE__ */ jsx125(
|
|
23635
23630
|
Select_default,
|
|
23636
23631
|
{
|
|
23637
23632
|
value: visibleMonth.year,
|
|
@@ -23640,7 +23635,7 @@ var DatePickerStatic = ({
|
|
|
23640
23635
|
}
|
|
23641
23636
|
),
|
|
23642
23637
|
/* @__PURE__ */ jsxs62(Stack_default, { direction: "row", spacing: 2, children: [
|
|
23643
|
-
/* @__PURE__ */
|
|
23638
|
+
/* @__PURE__ */ jsx125(
|
|
23644
23639
|
IconButton_default,
|
|
23645
23640
|
{
|
|
23646
23641
|
disabled: isDisabledPreviousMonth,
|
|
@@ -23648,7 +23643,7 @@ var DatePickerStatic = ({
|
|
|
23648
23643
|
onClick: navigatePreviousMonth
|
|
23649
23644
|
}
|
|
23650
23645
|
),
|
|
23651
|
-
/* @__PURE__ */
|
|
23646
|
+
/* @__PURE__ */ jsx125(
|
|
23652
23647
|
IconButton_default,
|
|
23653
23648
|
{
|
|
23654
23649
|
disabled: isDisabledNextMonth,
|
|
@@ -23660,8 +23655,8 @@ var DatePickerStatic = ({
|
|
|
23660
23655
|
]
|
|
23661
23656
|
}
|
|
23662
23657
|
),
|
|
23663
|
-
/* @__PURE__ */
|
|
23664
|
-
/* @__PURE__ */
|
|
23658
|
+
/* @__PURE__ */ jsx125(DaysOfWeekRow_default, {}),
|
|
23659
|
+
/* @__PURE__ */ jsx125(Box_default2, { sx: { padding: "8px" }, children: /* @__PURE__ */ jsx125(
|
|
23665
23660
|
CalendarMonth_default,
|
|
23666
23661
|
{
|
|
23667
23662
|
allowKeyboardNavigation: true,
|
|
@@ -23698,14 +23693,14 @@ var DatePickerStatic = ({
|
|
|
23698
23693
|
var DatePickerStatic_default = DatePickerStatic;
|
|
23699
23694
|
|
|
23700
23695
|
// src/components/input/DatePickerPopover.tsx
|
|
23701
|
-
import { jsx as
|
|
23696
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
23702
23697
|
var DatePickerPopover = ({
|
|
23703
23698
|
value,
|
|
23704
23699
|
onSelect,
|
|
23705
23700
|
minDate,
|
|
23706
23701
|
maxDate,
|
|
23707
23702
|
...rest
|
|
23708
|
-
}) => /* @__PURE__ */
|
|
23703
|
+
}) => /* @__PURE__ */ jsx126(Popover_default, { anchorHorizontalOrigin: "right", horizontalAlign: "right", ...rest, children: /* @__PURE__ */ jsx126(
|
|
23709
23704
|
DatePickerStatic_default,
|
|
23710
23705
|
{
|
|
23711
23706
|
value,
|
|
@@ -23717,7 +23712,7 @@ var DatePickerPopover = ({
|
|
|
23717
23712
|
var DatePickerPopover_default = DatePickerPopover;
|
|
23718
23713
|
|
|
23719
23714
|
// src/components/input/DatePicker.tsx
|
|
23720
|
-
import { Fragment as Fragment29, jsx as
|
|
23715
|
+
import { Fragment as Fragment29, jsx as jsx127, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
23721
23716
|
var DatePicker = React72.forwardRef(
|
|
23722
23717
|
function DatePicker2({ value, onChange, onBlur, onKeyDown, minDate, maxDate, ...rest }, ref) {
|
|
23723
23718
|
const { locale, timezone } = React72.useContext(IntlContext);
|
|
@@ -23794,7 +23789,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23794
23789
|
setTextValue(text);
|
|
23795
23790
|
}, [dateInputFormat, timezone, value]);
|
|
23796
23791
|
return /* @__PURE__ */ jsxs63(Fragment29, { children: [
|
|
23797
|
-
/* @__PURE__ */
|
|
23792
|
+
/* @__PURE__ */ jsx127(
|
|
23798
23793
|
TextField_default,
|
|
23799
23794
|
{
|
|
23800
23795
|
ref,
|
|
@@ -23805,7 +23800,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23805
23800
|
onChange: onChangeTextField,
|
|
23806
23801
|
onBlur: onBlurTextField,
|
|
23807
23802
|
onKeyDown: onKeyDownTextField,
|
|
23808
|
-
endAdornment: /* @__PURE__ */
|
|
23803
|
+
endAdornment: /* @__PURE__ */ jsx127(
|
|
23809
23804
|
IconButton_default,
|
|
23810
23805
|
{
|
|
23811
23806
|
"data-testid": "date-picker-open-button",
|
|
@@ -23817,7 +23812,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23817
23812
|
)
|
|
23818
23813
|
}
|
|
23819
23814
|
),
|
|
23820
|
-
/* @__PURE__ */
|
|
23815
|
+
/* @__PURE__ */ jsx127(
|
|
23821
23816
|
DatePickerPopover_default,
|
|
23822
23817
|
{
|
|
23823
23818
|
anchorEl,
|
|
@@ -23836,14 +23831,14 @@ var DatePicker_default = DatePicker;
|
|
|
23836
23831
|
// src/components/input/Checkbox.tsx
|
|
23837
23832
|
import MuiCheckbox from "@mui/material/Checkbox";
|
|
23838
23833
|
import { FormControlLabel, FormGroup } from "@mui/material";
|
|
23839
|
-
import { Fragment as Fragment30, jsx as
|
|
23834
|
+
import { Fragment as Fragment30, jsx as jsx128, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
23840
23835
|
var MaterialCheckbox = ({
|
|
23841
23836
|
checked,
|
|
23842
23837
|
disabled,
|
|
23843
23838
|
inputClass,
|
|
23844
23839
|
indeterminate,
|
|
23845
23840
|
onChange
|
|
23846
|
-
}) => /* @__PURE__ */
|
|
23841
|
+
}) => /* @__PURE__ */ jsx128(
|
|
23847
23842
|
MuiCheckbox,
|
|
23848
23843
|
{
|
|
23849
23844
|
disabled,
|
|
@@ -23870,7 +23865,7 @@ var Checkbox = ({
|
|
|
23870
23865
|
onChange,
|
|
23871
23866
|
tabIndex
|
|
23872
23867
|
}) => /* @__PURE__ */ jsxs64(Fragment30, { children: [
|
|
23873
|
-
!label && /* @__PURE__ */
|
|
23868
|
+
!label && /* @__PURE__ */ jsx128(
|
|
23874
23869
|
MaterialCheckbox,
|
|
23875
23870
|
{
|
|
23876
23871
|
disabled,
|
|
@@ -23881,11 +23876,11 @@ var Checkbox = ({
|
|
|
23881
23876
|
inputClass
|
|
23882
23877
|
}
|
|
23883
23878
|
),
|
|
23884
|
-
label && /* @__PURE__ */
|
|
23879
|
+
label && /* @__PURE__ */ jsx128(FormGroup, { children: /* @__PURE__ */ jsx128(
|
|
23885
23880
|
FormControlLabel,
|
|
23886
23881
|
{
|
|
23887
23882
|
value: label,
|
|
23888
|
-
control: /* @__PURE__ */
|
|
23883
|
+
control: /* @__PURE__ */ jsx128(
|
|
23889
23884
|
MaterialCheckbox,
|
|
23890
23885
|
{
|
|
23891
23886
|
disabled,
|
|
@@ -23896,7 +23891,7 @@ var Checkbox = ({
|
|
|
23896
23891
|
inputClass
|
|
23897
23892
|
}
|
|
23898
23893
|
),
|
|
23899
|
-
label: /* @__PURE__ */
|
|
23894
|
+
label: /* @__PURE__ */ jsx128(Typography_default, { variant: "body2", children: label }),
|
|
23900
23895
|
labelPlacement,
|
|
23901
23896
|
sx: {
|
|
23902
23897
|
margin: 0,
|
|
@@ -23911,7 +23906,7 @@ var Checkbox_default = Checkbox;
|
|
|
23911
23906
|
import * as React73 from "react";
|
|
23912
23907
|
import MuiRadio from "@mui/material/Radio";
|
|
23913
23908
|
import { FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
23914
|
-
import { Fragment as Fragment31, jsx as
|
|
23909
|
+
import { Fragment as Fragment31, jsx as jsx129, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
23915
23910
|
var Radio = React73.forwardRef(function Radio2({
|
|
23916
23911
|
label,
|
|
23917
23912
|
labelPlacement = "end",
|
|
@@ -23929,7 +23924,7 @@ var Radio = React73.forwardRef(function Radio2({
|
|
|
23929
23924
|
},
|
|
23930
23925
|
[onChange]
|
|
23931
23926
|
);
|
|
23932
|
-
const radio = /* @__PURE__ */
|
|
23927
|
+
const radio = /* @__PURE__ */ jsx129(
|
|
23933
23928
|
MuiRadio,
|
|
23934
23929
|
{
|
|
23935
23930
|
className: `Cn-Radio ${className}`,
|
|
@@ -23950,11 +23945,11 @@ var Radio = React73.forwardRef(function Radio2({
|
|
|
23950
23945
|
);
|
|
23951
23946
|
return /* @__PURE__ */ jsxs65(Fragment31, { children: [
|
|
23952
23947
|
!label && radio,
|
|
23953
|
-
label && /* @__PURE__ */
|
|
23948
|
+
label && /* @__PURE__ */ jsx129(
|
|
23954
23949
|
FormControlLabel2,
|
|
23955
23950
|
{
|
|
23956
23951
|
control: radio,
|
|
23957
|
-
label: /* @__PURE__ */
|
|
23952
|
+
label: /* @__PURE__ */ jsx129(Typography_default, { variant: "body2", children: label }),
|
|
23958
23953
|
labelPlacement,
|
|
23959
23954
|
sx: {
|
|
23960
23955
|
margin: 0,
|
|
@@ -23968,7 +23963,7 @@ var Radio_default = Radio;
|
|
|
23968
23963
|
|
|
23969
23964
|
// src/components/input/PageSelector.tsx
|
|
23970
23965
|
import * as React74 from "react";
|
|
23971
|
-
import { jsx as
|
|
23966
|
+
import { jsx as jsx130, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
23972
23967
|
var PageSelector = ({
|
|
23973
23968
|
currentPage,
|
|
23974
23969
|
pageSize,
|
|
@@ -23995,7 +23990,7 @@ var PageSelector = ({
|
|
|
23995
23990
|
justifyContent: "flex-end",
|
|
23996
23991
|
flexGrow: 1,
|
|
23997
23992
|
children: [
|
|
23998
|
-
text && /* @__PURE__ */
|
|
23993
|
+
text && /* @__PURE__ */ jsx130(Typography_default, { variant: "body2", children: /* @__PURE__ */ jsx130(
|
|
23999
23994
|
"div",
|
|
24000
23995
|
{
|
|
24001
23996
|
dangerouslySetInnerHTML: {
|
|
@@ -24004,7 +23999,7 @@ var PageSelector = ({
|
|
|
24004
23999
|
}
|
|
24005
24000
|
) }),
|
|
24006
24001
|
/* @__PURE__ */ jsxs66(Stack_default, { direction: "row", alignItems: "center", children: [
|
|
24007
|
-
/* @__PURE__ */
|
|
24002
|
+
/* @__PURE__ */ jsx130(
|
|
24008
24003
|
IconButton_default,
|
|
24009
24004
|
{
|
|
24010
24005
|
iconId: "chevron-left",
|
|
@@ -24012,7 +24007,7 @@ var PageSelector = ({
|
|
|
24012
24007
|
disabled: currentPage <= 1
|
|
24013
24008
|
}
|
|
24014
24009
|
),
|
|
24015
|
-
/* @__PURE__ */
|
|
24010
|
+
/* @__PURE__ */ jsx130(
|
|
24016
24011
|
NumberField_default,
|
|
24017
24012
|
{
|
|
24018
24013
|
value: currentPage,
|
|
@@ -24030,7 +24025,7 @@ var PageSelector = ({
|
|
|
24030
24025
|
}
|
|
24031
24026
|
}
|
|
24032
24027
|
),
|
|
24033
|
-
/* @__PURE__ */
|
|
24028
|
+
/* @__PURE__ */ jsx130(
|
|
24034
24029
|
IconButton_default,
|
|
24035
24030
|
{
|
|
24036
24031
|
iconId: "chevron-right",
|
|
@@ -24050,13 +24045,13 @@ import Fade from "@mui/material/Fade";
|
|
|
24050
24045
|
|
|
24051
24046
|
// src/components/progress/LinearProgress.tsx
|
|
24052
24047
|
import MuiLinearProgress from "@mui/material/LinearProgress";
|
|
24053
|
-
import { jsx as
|
|
24048
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
24054
24049
|
var LinearProgress = ({
|
|
24055
24050
|
color: color2,
|
|
24056
24051
|
backgroundColor: backgroundColor2,
|
|
24057
24052
|
variant = "indeterminate",
|
|
24058
24053
|
...rest
|
|
24059
|
-
}) => /* @__PURE__ */
|
|
24054
|
+
}) => /* @__PURE__ */ jsx131(
|
|
24060
24055
|
MuiLinearProgress,
|
|
24061
24056
|
{
|
|
24062
24057
|
...rest,
|
|
@@ -24083,7 +24078,7 @@ import * as React75 from "react";
|
|
|
24083
24078
|
import MuiCircularProgress from "@mui/material/CircularProgress";
|
|
24084
24079
|
import Typography3 from "@mui/material/Typography";
|
|
24085
24080
|
import Box4 from "@mui/material/Box";
|
|
24086
|
-
import { jsx as
|
|
24081
|
+
import { jsx as jsx132, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
24087
24082
|
var circularSizes = {
|
|
24088
24083
|
XS: "20px",
|
|
24089
24084
|
SM: "24px",
|
|
@@ -24122,7 +24117,7 @@ var CircularProgress = ({
|
|
|
24122
24117
|
}
|
|
24123
24118
|
},
|
|
24124
24119
|
children: [
|
|
24125
|
-
gradientColors && /* @__PURE__ */
|
|
24120
|
+
gradientColors && /* @__PURE__ */ jsx132("svg", { width: 0, height: 0, children: /* @__PURE__ */ jsx132("defs", { children: /* @__PURE__ */ jsxs67(
|
|
24126
24121
|
"linearGradient",
|
|
24127
24122
|
{
|
|
24128
24123
|
id: gradientName.current,
|
|
@@ -24131,14 +24126,14 @@ var CircularProgress = ({
|
|
|
24131
24126
|
x2: "0%",
|
|
24132
24127
|
y2: "100%",
|
|
24133
24128
|
children: [
|
|
24134
|
-
/* @__PURE__ */
|
|
24129
|
+
/* @__PURE__ */ jsx132(
|
|
24135
24130
|
"stop",
|
|
24136
24131
|
{
|
|
24137
24132
|
offset: "0%",
|
|
24138
24133
|
stopColor: gradientColors.startColor
|
|
24139
24134
|
}
|
|
24140
24135
|
),
|
|
24141
|
-
/* @__PURE__ */
|
|
24136
|
+
/* @__PURE__ */ jsx132(
|
|
24142
24137
|
"stop",
|
|
24143
24138
|
{
|
|
24144
24139
|
offset: "100%",
|
|
@@ -24148,7 +24143,7 @@ var CircularProgress = ({
|
|
|
24148
24143
|
]
|
|
24149
24144
|
}
|
|
24150
24145
|
) }) }),
|
|
24151
|
-
showCircularBackground && /* @__PURE__ */
|
|
24146
|
+
showCircularBackground && /* @__PURE__ */ jsx132(
|
|
24152
24147
|
Box4,
|
|
24153
24148
|
{
|
|
24154
24149
|
sx: {
|
|
@@ -24161,7 +24156,7 @@ var CircularProgress = ({
|
|
|
24161
24156
|
maxHeight: circularSizes[size]
|
|
24162
24157
|
}
|
|
24163
24158
|
},
|
|
24164
|
-
children: /* @__PURE__ */
|
|
24159
|
+
children: /* @__PURE__ */ jsx132(
|
|
24165
24160
|
MuiCircularProgress,
|
|
24166
24161
|
{
|
|
24167
24162
|
variant: "determinate",
|
|
@@ -24173,7 +24168,7 @@ var CircularProgress = ({
|
|
|
24173
24168
|
)
|
|
24174
24169
|
}
|
|
24175
24170
|
),
|
|
24176
|
-
/* @__PURE__ */
|
|
24171
|
+
/* @__PURE__ */ jsx132(
|
|
24177
24172
|
MuiCircularProgress,
|
|
24178
24173
|
{
|
|
24179
24174
|
variant,
|
|
@@ -24202,7 +24197,7 @@ var CircularProgress = ({
|
|
|
24202
24197
|
thickness
|
|
24203
24198
|
}
|
|
24204
24199
|
),
|
|
24205
|
-
variant !== "indeterminate" && /* @__PURE__ */
|
|
24200
|
+
variant !== "indeterminate" && /* @__PURE__ */ jsx132(
|
|
24206
24201
|
Box4,
|
|
24207
24202
|
{
|
|
24208
24203
|
sx: {
|
|
@@ -24217,7 +24212,7 @@ var CircularProgress = ({
|
|
|
24217
24212
|
height: circularSizes[size],
|
|
24218
24213
|
width: circularSizes[size]
|
|
24219
24214
|
},
|
|
24220
|
-
children: typeof label === "string" ? /* @__PURE__ */
|
|
24215
|
+
children: typeof label === "string" ? /* @__PURE__ */ jsx132(
|
|
24221
24216
|
Typography3,
|
|
24222
24217
|
{
|
|
24223
24218
|
variant: typographyVariant,
|
|
@@ -24237,7 +24232,7 @@ var CircularProgress_default = CircularProgress;
|
|
|
24237
24232
|
// src/components/progress/DonutProgress.tsx
|
|
24238
24233
|
import Box5 from "@mui/material/Box";
|
|
24239
24234
|
import { Stack as Stack10 } from "@mui/material";
|
|
24240
|
-
import { jsx as
|
|
24235
|
+
import { jsx as jsx133, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
24241
24236
|
var CIRCULAR_PROGRESS_PERCENTAGE = 85;
|
|
24242
24237
|
var variants2 = {
|
|
24243
24238
|
empty: {
|
|
@@ -24274,8 +24269,8 @@ var DonutProgress = ({
|
|
|
24274
24269
|
showPercentageSymbol
|
|
24275
24270
|
}) => {
|
|
24276
24271
|
const getPercentageWithSymbol = () => /* @__PURE__ */ jsxs68(Stack10, { direction: "row", alignItems: "center", position: "relative", children: [
|
|
24277
|
-
/* @__PURE__ */
|
|
24278
|
-
/* @__PURE__ */
|
|
24272
|
+
/* @__PURE__ */ jsx133(Typography_default, { variant: "h6", component: "div", color: grey800, children: label }),
|
|
24273
|
+
/* @__PURE__ */ jsx133(
|
|
24279
24274
|
Typography_default,
|
|
24280
24275
|
{
|
|
24281
24276
|
variant: "tooltip",
|
|
@@ -24294,7 +24289,7 @@ var DonutProgress = ({
|
|
|
24294
24289
|
width: "fit-content"
|
|
24295
24290
|
},
|
|
24296
24291
|
children: [
|
|
24297
|
-
/* @__PURE__ */
|
|
24292
|
+
/* @__PURE__ */ jsx133(
|
|
24298
24293
|
CircularProgress_default,
|
|
24299
24294
|
{
|
|
24300
24295
|
variant: "determinate",
|
|
@@ -24310,7 +24305,7 @@ var DonutProgress = ({
|
|
|
24310
24305
|
color: variants2[variant].emptyColor
|
|
24311
24306
|
}
|
|
24312
24307
|
),
|
|
24313
|
-
/* @__PURE__ */
|
|
24308
|
+
/* @__PURE__ */ jsx133(
|
|
24314
24309
|
Box5,
|
|
24315
24310
|
{
|
|
24316
24311
|
sx: {
|
|
@@ -24318,7 +24313,7 @@ var DonutProgress = ({
|
|
|
24318
24313
|
top: 0,
|
|
24319
24314
|
left: 0
|
|
24320
24315
|
},
|
|
24321
|
-
children: /* @__PURE__ */
|
|
24316
|
+
children: /* @__PURE__ */ jsx133(
|
|
24322
24317
|
CircularProgress_default,
|
|
24323
24318
|
{
|
|
24324
24319
|
variant: "determinate",
|
|
@@ -24333,7 +24328,7 @@ var DonutProgress = ({
|
|
|
24333
24328
|
)
|
|
24334
24329
|
}
|
|
24335
24330
|
),
|
|
24336
|
-
variant !== "empty" && labelChip && /* @__PURE__ */
|
|
24331
|
+
variant !== "empty" && labelChip && /* @__PURE__ */ jsx133(
|
|
24337
24332
|
Box5,
|
|
24338
24333
|
{
|
|
24339
24334
|
sx: {
|
|
@@ -24350,7 +24345,7 @@ var DonutProgress = ({
|
|
|
24350
24345
|
justifyContent: "center",
|
|
24351
24346
|
boxSizing: "border-box"
|
|
24352
24347
|
},
|
|
24353
|
-
children: /* @__PURE__ */
|
|
24348
|
+
children: /* @__PURE__ */ jsx133(
|
|
24354
24349
|
Typography_default,
|
|
24355
24350
|
{
|
|
24356
24351
|
variant: "tooltip",
|
|
@@ -24367,14 +24362,14 @@ var DonutProgress = ({
|
|
|
24367
24362
|
var DonutProgress_default = DonutProgress;
|
|
24368
24363
|
|
|
24369
24364
|
// src/components/loader/Loader.tsx
|
|
24370
|
-
import { jsx as
|
|
24365
|
+
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
24371
24366
|
var Loader = ({
|
|
24372
24367
|
isVisible,
|
|
24373
24368
|
zIndex = 1e4,
|
|
24374
24369
|
size,
|
|
24375
24370
|
hideProgress = false,
|
|
24376
24371
|
sx
|
|
24377
|
-
}) => /* @__PURE__ */
|
|
24372
|
+
}) => /* @__PURE__ */ jsx134(Fade, { in: isVisible, children: /* @__PURE__ */ jsx134(
|
|
24378
24373
|
Box_default2,
|
|
24379
24374
|
{
|
|
24380
24375
|
sx: {
|
|
@@ -24390,7 +24385,7 @@ var Loader = ({
|
|
|
24390
24385
|
backgroundColor: whiteOpacity32,
|
|
24391
24386
|
...sx
|
|
24392
24387
|
},
|
|
24393
|
-
children: !hideProgress && /* @__PURE__ */
|
|
24388
|
+
children: !hideProgress && /* @__PURE__ */ jsx134(CircularProgress_default, { size })
|
|
24394
24389
|
}
|
|
24395
24390
|
) });
|
|
24396
24391
|
var Loader_default = Loader;
|
|
@@ -24403,14 +24398,14 @@ import "katex/dist/katex.min.css";
|
|
|
24403
24398
|
|
|
24404
24399
|
// src/components/markdown/KatexRenderer.tsx
|
|
24405
24400
|
import katex from "katex";
|
|
24406
|
-
import { jsx as
|
|
24401
|
+
import { jsx as jsx135, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
24407
24402
|
var KatexRenderer = ({ children, block }) => {
|
|
24408
24403
|
try {
|
|
24409
24404
|
const html2 = katex.renderToString(children, {
|
|
24410
24405
|
throwOnError: false,
|
|
24411
24406
|
displayMode: block
|
|
24412
24407
|
});
|
|
24413
|
-
return /* @__PURE__ */
|
|
24408
|
+
return /* @__PURE__ */ jsx135("span", { dangerouslySetInnerHTML: { __html: html2 } });
|
|
24414
24409
|
} catch (err) {
|
|
24415
24410
|
return /* @__PURE__ */ jsxs69("pre", { style: { color: "red" }, children: [
|
|
24416
24411
|
"KaTeX error: $",
|
|
@@ -24421,7 +24416,7 @@ var KatexRenderer = ({ children, block }) => {
|
|
|
24421
24416
|
var KatexRenderer_default = KatexRenderer;
|
|
24422
24417
|
|
|
24423
24418
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
24424
|
-
import { jsx as
|
|
24419
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
24425
24420
|
var MarkdownContainer = styled8("div")(
|
|
24426
24421
|
({
|
|
24427
24422
|
color: color2,
|
|
@@ -24525,11 +24520,11 @@ var renderWithMath = (text) => {
|
|
|
24525
24520
|
const inline = match[2];
|
|
24526
24521
|
if (block !== void 0) {
|
|
24527
24522
|
parts.push(
|
|
24528
|
-
/* @__PURE__ */
|
|
24523
|
+
/* @__PURE__ */ jsx136(KatexRenderer_default, { block: true, children: block.trim() }, start)
|
|
24529
24524
|
);
|
|
24530
24525
|
} else if (inline !== void 0) {
|
|
24531
24526
|
parts.push(
|
|
24532
|
-
/* @__PURE__ */
|
|
24527
|
+
/* @__PURE__ */ jsx136(KatexRenderer_default, { children: inline.trim() }, start)
|
|
24533
24528
|
);
|
|
24534
24529
|
}
|
|
24535
24530
|
lastIndex = regex.lastIndex;
|
|
@@ -24559,11 +24554,11 @@ var CodeOrMath = ({ children, ...props }) => {
|
|
|
24559
24554
|
if (m) {
|
|
24560
24555
|
const expr = m[1] || m[2] || "";
|
|
24561
24556
|
const isBlock = Boolean(m[1]);
|
|
24562
|
-
return /* @__PURE__ */
|
|
24557
|
+
return /* @__PURE__ */ jsx136(KatexRenderer_default, { block: isBlock, children: expr.trim() });
|
|
24563
24558
|
}
|
|
24564
24559
|
const maybe = renderWithMath(s);
|
|
24565
24560
|
const onlyText = maybe.length === 1 && typeof maybe[0] === "string";
|
|
24566
|
-
return onlyText ? /* @__PURE__ */
|
|
24561
|
+
return onlyText ? /* @__PURE__ */ jsx136("code", { ...props, children }) : /* @__PURE__ */ jsx136("span", { children: maybe });
|
|
24567
24562
|
};
|
|
24568
24563
|
var escapeInlineUnderscores = (s) => s.replace(/(\S)_(\S)/g, "$1\\_$2");
|
|
24569
24564
|
var MarkdownRenderer = ({
|
|
@@ -24573,19 +24568,19 @@ var MarkdownRenderer = ({
|
|
|
24573
24568
|
}) => {
|
|
24574
24569
|
const protectedText = escapeInlineUnderscores(text || "");
|
|
24575
24570
|
const normalized = normalizeLatexDelimiters(protectedText);
|
|
24576
|
-
return /* @__PURE__ */
|
|
24571
|
+
return /* @__PURE__ */ jsx136(
|
|
24577
24572
|
MarkdownContainer,
|
|
24578
24573
|
{
|
|
24579
24574
|
className: `markdown-container ${className || ""}`,
|
|
24580
24575
|
...rest,
|
|
24581
|
-
children: /* @__PURE__ */
|
|
24576
|
+
children: /* @__PURE__ */ jsx136(
|
|
24582
24577
|
Markdown,
|
|
24583
24578
|
{
|
|
24584
24579
|
options: {
|
|
24585
24580
|
forceBlock: true,
|
|
24586
24581
|
overrides: {
|
|
24587
24582
|
p: {
|
|
24588
|
-
component: ({ children, ...props }) => /* @__PURE__ */
|
|
24583
|
+
component: ({ children, ...props }) => /* @__PURE__ */ jsx136("p", { ...props, children: renderChildrenWithMath(children) })
|
|
24589
24584
|
},
|
|
24590
24585
|
code: { component: CodeOrMath }
|
|
24591
24586
|
}
|
|
@@ -24600,7 +24595,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
24600
24595
|
|
|
24601
24596
|
// src/components/navbar/Navbar.tsx
|
|
24602
24597
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
24603
|
-
import { Fragment as Fragment32, jsx as
|
|
24598
|
+
import { Fragment as Fragment32, jsx as jsx137, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
24604
24599
|
var Navbar = ({
|
|
24605
24600
|
topContent,
|
|
24606
24601
|
bottomContent,
|
|
@@ -24624,8 +24619,8 @@ var Navbar = ({
|
|
|
24624
24619
|
},
|
|
24625
24620
|
className: "Slim-Vertical-Scroll",
|
|
24626
24621
|
children: [
|
|
24627
|
-
/* @__PURE__ */
|
|
24628
|
-
/* @__PURE__ */
|
|
24622
|
+
/* @__PURE__ */ jsx137(Box_default2, { children: topContent }),
|
|
24623
|
+
/* @__PURE__ */ jsx137(Box_default2, { children: bottomContent })
|
|
24629
24624
|
]
|
|
24630
24625
|
}
|
|
24631
24626
|
),
|
|
@@ -24652,8 +24647,8 @@ var Navbar = ({
|
|
|
24652
24647
|
},
|
|
24653
24648
|
onClose,
|
|
24654
24649
|
children: [
|
|
24655
|
-
/* @__PURE__ */
|
|
24656
|
-
/* @__PURE__ */
|
|
24650
|
+
/* @__PURE__ */ jsx137("div", { children: drawerTopContent }),
|
|
24651
|
+
/* @__PURE__ */ jsx137("div", { children: drawerBottomContent })
|
|
24657
24652
|
]
|
|
24658
24653
|
}
|
|
24659
24654
|
)
|
|
@@ -24663,7 +24658,7 @@ var Navbar_default = Navbar;
|
|
|
24663
24658
|
// src/components/navbar/NavbarButton.tsx
|
|
24664
24659
|
import * as React77 from "react";
|
|
24665
24660
|
import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
|
|
24666
|
-
import { jsx as
|
|
24661
|
+
import { jsx as jsx138, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
24667
24662
|
var NavbarButton = React77.forwardRef(
|
|
24668
24663
|
function NavbarButton2({
|
|
24669
24664
|
iconId,
|
|
@@ -24688,7 +24683,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24688
24683
|
position: "relative"
|
|
24689
24684
|
},
|
|
24690
24685
|
children: [
|
|
24691
|
-
/* @__PURE__ */
|
|
24686
|
+
/* @__PURE__ */ jsx138(
|
|
24692
24687
|
Box6,
|
|
24693
24688
|
{
|
|
24694
24689
|
sx: {
|
|
@@ -24704,7 +24699,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24704
24699
|
}
|
|
24705
24700
|
}
|
|
24706
24701
|
),
|
|
24707
|
-
/* @__PURE__ */
|
|
24702
|
+
/* @__PURE__ */ jsx138(
|
|
24708
24703
|
Box6,
|
|
24709
24704
|
{
|
|
24710
24705
|
sx: {
|
|
@@ -24737,7 +24732,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24737
24732
|
},
|
|
24738
24733
|
children: [
|
|
24739
24734
|
srcUrl ? getButtonContent(
|
|
24740
|
-
/* @__PURE__ */
|
|
24735
|
+
/* @__PURE__ */ jsx138(
|
|
24741
24736
|
Avatar_default,
|
|
24742
24737
|
{
|
|
24743
24738
|
className: "NavbarButton-icon",
|
|
@@ -24747,7 +24742,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24747
24742
|
}
|
|
24748
24743
|
)
|
|
24749
24744
|
) : getButtonContent(
|
|
24750
|
-
/* @__PURE__ */
|
|
24745
|
+
/* @__PURE__ */ jsx138(
|
|
24751
24746
|
Icon_default,
|
|
24752
24747
|
{
|
|
24753
24748
|
id: iconId,
|
|
@@ -24763,7 +24758,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24763
24758
|
}
|
|
24764
24759
|
)
|
|
24765
24760
|
),
|
|
24766
|
-
badgeIconProps && /* @__PURE__ */
|
|
24761
|
+
badgeIconProps && /* @__PURE__ */ jsx138(
|
|
24767
24762
|
Icon_default,
|
|
24768
24763
|
{
|
|
24769
24764
|
...badgeIconProps,
|
|
@@ -24785,8 +24780,8 @@ var NavbarButton = React77.forwardRef(
|
|
|
24785
24780
|
var NavbarButton_default = NavbarButton;
|
|
24786
24781
|
|
|
24787
24782
|
// src/components/navbar/NavbarHeader.tsx
|
|
24788
|
-
import { jsx as
|
|
24789
|
-
var NavbarHeader = ({ text }) => /* @__PURE__ */
|
|
24783
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
24784
|
+
var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx139(
|
|
24790
24785
|
Typography_default,
|
|
24791
24786
|
{
|
|
24792
24787
|
sx: {
|
|
@@ -24808,10 +24803,10 @@ var NavbarHeader_default = NavbarHeader;
|
|
|
24808
24803
|
// src/components/navbar/NavbarLogo.tsx
|
|
24809
24804
|
import * as React78 from "react";
|
|
24810
24805
|
import { ButtonBase as ButtonBase3 } from "@mui/material";
|
|
24811
|
-
import { jsx as
|
|
24806
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
24812
24807
|
var NavbarLogo = React78.forwardRef(
|
|
24813
24808
|
function NavbarButton3({ src, ...rest }, ref) {
|
|
24814
|
-
return /* @__PURE__ */
|
|
24809
|
+
return /* @__PURE__ */ jsx140(
|
|
24815
24810
|
ButtonBase3,
|
|
24816
24811
|
{
|
|
24817
24812
|
ref,
|
|
@@ -24822,7 +24817,7 @@ var NavbarLogo = React78.forwardRef(
|
|
|
24822
24817
|
borderBottom: `1px solid ${grey200}`,
|
|
24823
24818
|
boxSizing: "border-box"
|
|
24824
24819
|
},
|
|
24825
|
-
children: /* @__PURE__ */
|
|
24820
|
+
children: /* @__PURE__ */ jsx140("img", { src, width: "32px", height: "32px" })
|
|
24826
24821
|
}
|
|
24827
24822
|
);
|
|
24828
24823
|
}
|
|
@@ -24831,7 +24826,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
24831
24826
|
|
|
24832
24827
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
24833
24828
|
import * as React79 from "react";
|
|
24834
|
-
import { Fragment as Fragment33, jsx as
|
|
24829
|
+
import { Fragment as Fragment33, jsx as jsx141, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
24835
24830
|
var DonutFocusOverlay = ({
|
|
24836
24831
|
isVisible,
|
|
24837
24832
|
elementRef,
|
|
@@ -24873,7 +24868,7 @@ var DonutFocusOverlay = ({
|
|
|
24873
24868
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
24874
24869
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
24875
24870
|
return /* @__PURE__ */ jsxs72(Fragment33, { children: [
|
|
24876
|
-
/* @__PURE__ */
|
|
24871
|
+
/* @__PURE__ */ jsx141(
|
|
24877
24872
|
Box_default2,
|
|
24878
24873
|
{
|
|
24879
24874
|
sx: {
|
|
@@ -24890,7 +24885,7 @@ var DonutFocusOverlay = ({
|
|
|
24890
24885
|
}
|
|
24891
24886
|
}
|
|
24892
24887
|
),
|
|
24893
|
-
chipLabel && /* @__PURE__ */
|
|
24888
|
+
chipLabel && /* @__PURE__ */ jsx141(
|
|
24894
24889
|
Chip_default,
|
|
24895
24890
|
{
|
|
24896
24891
|
label: chipLabel,
|
|
@@ -24917,7 +24912,7 @@ var DonutFocusOverlay = ({
|
|
|
24917
24912
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
24918
24913
|
|
|
24919
24914
|
// src/components/pager/Pager.tsx
|
|
24920
|
-
import { Fragment as Fragment34, jsx as
|
|
24915
|
+
import { Fragment as Fragment34, jsx as jsx142, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
24921
24916
|
var Pager = ({
|
|
24922
24917
|
page,
|
|
24923
24918
|
pageSize,
|
|
@@ -24931,10 +24926,10 @@ var Pager = ({
|
|
|
24931
24926
|
const to = Math.min(current + pageSize, total);
|
|
24932
24927
|
const pages = Math.max(Math.ceil(total / pageSize), 1);
|
|
24933
24928
|
const options = [...Array(pages).keys()].map((i) => ({ value: i + 1 }));
|
|
24934
|
-
const Label = ({ children }) => /* @__PURE__ */
|
|
24929
|
+
const Label = ({ children }) => /* @__PURE__ */ jsx142(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
|
|
24935
24930
|
return /* @__PURE__ */ jsxs73(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
|
|
24936
|
-
/* @__PURE__ */
|
|
24937
|
-
/* @__PURE__ */
|
|
24931
|
+
/* @__PURE__ */ jsx142(Label, { children: t("PAGER.PAGE") }),
|
|
24932
|
+
/* @__PURE__ */ jsx142(
|
|
24938
24933
|
Select_default,
|
|
24939
24934
|
{
|
|
24940
24935
|
value: page,
|
|
@@ -24944,8 +24939,8 @@ var Pager = ({
|
|
|
24944
24939
|
}
|
|
24945
24940
|
),
|
|
24946
24941
|
allowedPageSizes && /* @__PURE__ */ jsxs73(Fragment34, { children: [
|
|
24947
|
-
/* @__PURE__ */
|
|
24948
|
-
/* @__PURE__ */
|
|
24942
|
+
/* @__PURE__ */ jsx142(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
24943
|
+
/* @__PURE__ */ jsx142(
|
|
24949
24944
|
Select_default,
|
|
24950
24945
|
{
|
|
24951
24946
|
value: pageSize,
|
|
@@ -24968,7 +24963,7 @@ var Pager = ({
|
|
|
24968
24963
|
" ",
|
|
24969
24964
|
total
|
|
24970
24965
|
] }),
|
|
24971
|
-
/* @__PURE__ */
|
|
24966
|
+
/* @__PURE__ */ jsx142(
|
|
24972
24967
|
IconButton_default,
|
|
24973
24968
|
{
|
|
24974
24969
|
disabled: page <= 1,
|
|
@@ -24976,7 +24971,7 @@ var Pager = ({
|
|
|
24976
24971
|
onClick: () => onPageChange(page - 1, pageSize)
|
|
24977
24972
|
}
|
|
24978
24973
|
),
|
|
24979
|
-
/* @__PURE__ */
|
|
24974
|
+
/* @__PURE__ */ jsx142(
|
|
24980
24975
|
IconButton_default,
|
|
24981
24976
|
{
|
|
24982
24977
|
disabled: page > total / pageSize,
|
|
@@ -24991,7 +24986,7 @@ var Pager_default = Pager;
|
|
|
24991
24986
|
// src/components/scrollable/HorizontalScrollable.tsx
|
|
24992
24987
|
import { ButtonBase as ButtonBase4 } from "@mui/material";
|
|
24993
24988
|
import * as React80 from "react";
|
|
24994
|
-
import { jsx as
|
|
24989
|
+
import { jsx as jsx143, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
24995
24990
|
var HorizontalScrollable = ({
|
|
24996
24991
|
style: style3,
|
|
24997
24992
|
children,
|
|
@@ -25041,7 +25036,7 @@ var HorizontalScrollable = ({
|
|
|
25041
25036
|
current.scrollBy(stepDistance, 0);
|
|
25042
25037
|
};
|
|
25043
25038
|
return /* @__PURE__ */ jsxs74(Box_default2, { sx: { position: "relative", ...style3 }, children: [
|
|
25044
|
-
/* @__PURE__ */
|
|
25039
|
+
/* @__PURE__ */ jsx143(
|
|
25045
25040
|
ButtonBase4,
|
|
25046
25041
|
{
|
|
25047
25042
|
sx: {
|
|
@@ -25058,10 +25053,10 @@ var HorizontalScrollable = ({
|
|
|
25058
25053
|
...isLeftArrowHidden && { display: "none" }
|
|
25059
25054
|
},
|
|
25060
25055
|
onClick: () => leftScroll(),
|
|
25061
|
-
children: /* @__PURE__ */
|
|
25056
|
+
children: /* @__PURE__ */ jsx143(Icon_default, { id: "chevron-left" })
|
|
25062
25057
|
}
|
|
25063
25058
|
),
|
|
25064
|
-
/* @__PURE__ */
|
|
25059
|
+
/* @__PURE__ */ jsx143(
|
|
25065
25060
|
Box_default2,
|
|
25066
25061
|
{
|
|
25067
25062
|
ref: horizontalContainerRef,
|
|
@@ -25080,7 +25075,7 @@ var HorizontalScrollable = ({
|
|
|
25080
25075
|
children
|
|
25081
25076
|
}
|
|
25082
25077
|
),
|
|
25083
|
-
/* @__PURE__ */
|
|
25078
|
+
/* @__PURE__ */ jsx143(
|
|
25084
25079
|
ButtonBase4,
|
|
25085
25080
|
{
|
|
25086
25081
|
sx: {
|
|
@@ -25097,7 +25092,7 @@ var HorizontalScrollable = ({
|
|
|
25097
25092
|
...isRightArrowHidden && { display: "none" }
|
|
25098
25093
|
},
|
|
25099
25094
|
onClick: () => rightScroll(),
|
|
25100
|
-
children: /* @__PURE__ */
|
|
25095
|
+
children: /* @__PURE__ */ jsx143(Icon_default, { id: "chevron-right" })
|
|
25101
25096
|
}
|
|
25102
25097
|
)
|
|
25103
25098
|
] });
|
|
@@ -25108,12 +25103,12 @@ var HorizontalScrollable_default = HorizontalScrollable;
|
|
|
25108
25103
|
import {
|
|
25109
25104
|
SnackbarProvider as NotistackSnackbarProvider
|
|
25110
25105
|
} from "notistack";
|
|
25111
|
-
import { jsx as
|
|
25106
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
25112
25107
|
var SnackbarProvider = ({
|
|
25113
25108
|
children,
|
|
25114
25109
|
maxSnack = 3,
|
|
25115
25110
|
domRoot
|
|
25116
|
-
}) => /* @__PURE__ */
|
|
25111
|
+
}) => /* @__PURE__ */ jsx144(
|
|
25117
25112
|
NotistackSnackbarProvider,
|
|
25118
25113
|
{
|
|
25119
25114
|
maxSnack,
|
|
@@ -25134,7 +25129,7 @@ import {
|
|
|
25134
25129
|
import * as React81 from "react";
|
|
25135
25130
|
import { SnackbarContent } from "notistack";
|
|
25136
25131
|
import { Typography as Typography4 } from "@mui/material";
|
|
25137
|
-
import { jsx as
|
|
25132
|
+
import { jsx as jsx145, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
25138
25133
|
var sizeStyles5 = {
|
|
25139
25134
|
M: {
|
|
25140
25135
|
width: "344px",
|
|
@@ -25177,7 +25172,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25177
25172
|
const closeClickHandler = React81.useCallback(() => {
|
|
25178
25173
|
onCloseClick && onCloseClick(key);
|
|
25179
25174
|
}, [onCloseClick, key]);
|
|
25180
|
-
return /* @__PURE__ */
|
|
25175
|
+
return /* @__PURE__ */ jsx145(
|
|
25181
25176
|
SnackbarContent,
|
|
25182
25177
|
{
|
|
25183
25178
|
ref,
|
|
@@ -25202,7 +25197,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25202
25197
|
spacing: 2,
|
|
25203
25198
|
sx: { width: "100%", alignItems: "center" },
|
|
25204
25199
|
children: [
|
|
25205
|
-
withIcon && /* @__PURE__ */
|
|
25200
|
+
withIcon && /* @__PURE__ */ jsx145(
|
|
25206
25201
|
Box_default2,
|
|
25207
25202
|
{
|
|
25208
25203
|
sx: {
|
|
@@ -25210,10 +25205,10 @@ var Snackbar = React81.forwardRef(
|
|
|
25210
25205
|
flexShrink: 0,
|
|
25211
25206
|
color: iconColors[severity]
|
|
25212
25207
|
},
|
|
25213
|
-
children: /* @__PURE__ */
|
|
25208
|
+
children: /* @__PURE__ */ jsx145(Icon_default, { id: severityIcons[severity] })
|
|
25214
25209
|
}
|
|
25215
25210
|
),
|
|
25216
|
-
/* @__PURE__ */
|
|
25211
|
+
/* @__PURE__ */ jsx145(
|
|
25217
25212
|
Typography4,
|
|
25218
25213
|
{
|
|
25219
25214
|
variant: "body2",
|
|
@@ -25221,7 +25216,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25221
25216
|
children: message
|
|
25222
25217
|
}
|
|
25223
25218
|
),
|
|
25224
|
-
actionText && /* @__PURE__ */
|
|
25219
|
+
actionText && /* @__PURE__ */ jsx145(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
|
|
25225
25220
|
Button_default,
|
|
25226
25221
|
{
|
|
25227
25222
|
sx: {
|
|
@@ -25236,7 +25231,7 @@ var Snackbar = React81.forwardRef(
|
|
|
25236
25231
|
onClick: actionClickHandler
|
|
25237
25232
|
}
|
|
25238
25233
|
) }),
|
|
25239
|
-
/* @__PURE__ */
|
|
25234
|
+
/* @__PURE__ */ jsx145(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
|
|
25240
25235
|
IconButton_default,
|
|
25241
25236
|
{
|
|
25242
25237
|
iconId: "close",
|
|
@@ -25261,7 +25256,7 @@ var Snackbar_default = Snackbar;
|
|
|
25261
25256
|
|
|
25262
25257
|
// src/components/snackbar/enqueueSnackbar.tsx
|
|
25263
25258
|
import { closeSnackbar as closeSnackbar2 } from "notistack";
|
|
25264
|
-
import { jsx as
|
|
25259
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
25265
25260
|
var enqueueSnackbar = (message, options = {}) => {
|
|
25266
25261
|
const {
|
|
25267
25262
|
persist,
|
|
@@ -25277,7 +25272,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
25277
25272
|
autoHideDuration: autoHideDurationMs ?? 1e4,
|
|
25278
25273
|
persist: persist ?? false,
|
|
25279
25274
|
content(key, message2) {
|
|
25280
|
-
return /* @__PURE__ */
|
|
25275
|
+
return /* @__PURE__ */ jsx146(
|
|
25281
25276
|
Snackbar_default,
|
|
25282
25277
|
{
|
|
25283
25278
|
identifierKey: key,
|
|
@@ -25294,7 +25289,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
25294
25289
|
|
|
25295
25290
|
// src/components/tab/TabButton.tsx
|
|
25296
25291
|
import MuiTab from "@mui/material/Tab";
|
|
25297
|
-
import { jsx as
|
|
25292
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
25298
25293
|
var TabButton = ({
|
|
25299
25294
|
children,
|
|
25300
25295
|
disabled = false,
|
|
@@ -25303,10 +25298,10 @@ var TabButton = ({
|
|
|
25303
25298
|
dataTestId,
|
|
25304
25299
|
disableUppercase = false,
|
|
25305
25300
|
...rest
|
|
25306
|
-
}) => /* @__PURE__ */
|
|
25301
|
+
}) => /* @__PURE__ */ jsx147(
|
|
25307
25302
|
MuiTab,
|
|
25308
25303
|
{
|
|
25309
|
-
label: /* @__PURE__ */
|
|
25304
|
+
label: /* @__PURE__ */ jsx147(
|
|
25310
25305
|
"div",
|
|
25311
25306
|
{
|
|
25312
25307
|
style: {
|
|
@@ -25344,7 +25339,7 @@ import MuiTabs from "@mui/material/Tabs";
|
|
|
25344
25339
|
// src/components/layout/SwipeableViews.tsx
|
|
25345
25340
|
import * as React82 from "react";
|
|
25346
25341
|
import { useEffect as useEffect21, useRef as useRef22, useState as useState31 } from "react";
|
|
25347
|
-
import { jsx as
|
|
25342
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
25348
25343
|
var styles = {
|
|
25349
25344
|
container: {
|
|
25350
25345
|
maxHeight: "100%",
|
|
@@ -25415,7 +25410,7 @@ function SwipeableViews({
|
|
|
25415
25410
|
return () => cancelAnimationFrame(animationFrame);
|
|
25416
25411
|
}
|
|
25417
25412
|
}, [index]);
|
|
25418
|
-
return /* @__PURE__ */
|
|
25413
|
+
return /* @__PURE__ */ jsx148(
|
|
25419
25414
|
"div",
|
|
25420
25415
|
{
|
|
25421
25416
|
...rootProps,
|
|
@@ -25438,7 +25433,7 @@ function SwipeableViews({
|
|
|
25438
25433
|
);
|
|
25439
25434
|
}, 100);
|
|
25440
25435
|
},
|
|
25441
|
-
children: React82.Children.map(children, (child, childIndex) => /* @__PURE__ */
|
|
25436
|
+
children: React82.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx148(
|
|
25442
25437
|
"div",
|
|
25443
25438
|
{
|
|
25444
25439
|
className: "Slim-Vertical-Scroll",
|
|
@@ -25451,7 +25446,7 @@ function SwipeableViews({
|
|
|
25451
25446
|
}
|
|
25452
25447
|
|
|
25453
25448
|
// src/components/tab/Tabs.tsx
|
|
25454
|
-
import { jsx as
|
|
25449
|
+
import { jsx as jsx149, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
25455
25450
|
var Tabs = ({
|
|
25456
25451
|
tabButtons,
|
|
25457
25452
|
children,
|
|
@@ -25487,7 +25482,7 @@ var Tabs = ({
|
|
|
25487
25482
|
}
|
|
25488
25483
|
},
|
|
25489
25484
|
children: [
|
|
25490
|
-
/* @__PURE__ */
|
|
25485
|
+
/* @__PURE__ */ jsx149(
|
|
25491
25486
|
MuiTabs,
|
|
25492
25487
|
{
|
|
25493
25488
|
value: currentTabIndex ?? value,
|
|
@@ -25513,7 +25508,7 @@ var Tabs = ({
|
|
|
25513
25508
|
children: tabButtons
|
|
25514
25509
|
}
|
|
25515
25510
|
),
|
|
25516
|
-
/* @__PURE__ */
|
|
25511
|
+
/* @__PURE__ */ jsx149(
|
|
25517
25512
|
Box_default2,
|
|
25518
25513
|
{
|
|
25519
25514
|
sx: {
|
|
@@ -25522,7 +25517,7 @@ var Tabs = ({
|
|
|
25522
25517
|
height: "100%"
|
|
25523
25518
|
}
|
|
25524
25519
|
},
|
|
25525
|
-
children: /* @__PURE__ */
|
|
25520
|
+
children: /* @__PURE__ */ jsx149(
|
|
25526
25521
|
SwipeableViews,
|
|
25527
25522
|
{
|
|
25528
25523
|
index: currentTabIndex ?? value,
|
|
@@ -25550,8 +25545,8 @@ var Tabs = ({
|
|
|
25550
25545
|
var Tabs_default = Tabs;
|
|
25551
25546
|
|
|
25552
25547
|
// src/components/tab/TabContent.tsx
|
|
25553
|
-
import { jsx as
|
|
25554
|
-
var TabContent = ({ children }) => /* @__PURE__ */
|
|
25548
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
25549
|
+
var TabContent = ({ children }) => /* @__PURE__ */ jsx150(
|
|
25555
25550
|
Box_default2,
|
|
25556
25551
|
{
|
|
25557
25552
|
sx: {
|
|
@@ -25568,8 +25563,8 @@ import {
|
|
|
25568
25563
|
TableRow as MuiTableRow,
|
|
25569
25564
|
TableCell as MuiTableCell
|
|
25570
25565
|
} from "@mui/material";
|
|
25571
|
-
import { jsx as
|
|
25572
|
-
var TableDivider = () => /* @__PURE__ */
|
|
25566
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
25567
|
+
var TableDivider = () => /* @__PURE__ */ jsx151(MuiTableRow, { children: /* @__PURE__ */ jsx151(
|
|
25573
25568
|
MuiTableCell,
|
|
25574
25569
|
{
|
|
25575
25570
|
colSpan: 1e3,
|
|
@@ -25582,8 +25577,8 @@ var TableDivider_default = TableDivider;
|
|
|
25582
25577
|
import {
|
|
25583
25578
|
TableSortLabel as MuiTableSortLabel
|
|
25584
25579
|
} from "@mui/material";
|
|
25585
|
-
import { jsx as
|
|
25586
|
-
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */
|
|
25580
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
25581
|
+
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx152(MuiTableSortLabel, { ...rest, children });
|
|
25587
25582
|
var TableSortLabel_default = TableSortLabel;
|
|
25588
25583
|
|
|
25589
25584
|
// src/components/table/Table.tsx
|
|
@@ -25591,21 +25586,21 @@ import {
|
|
|
25591
25586
|
TableContainer,
|
|
25592
25587
|
Table as MuiTable
|
|
25593
25588
|
} from "@mui/material";
|
|
25594
|
-
import { jsx as
|
|
25595
|
-
var Table = ({ children, sx, className }) => /* @__PURE__ */
|
|
25589
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
25590
|
+
var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx153(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx153(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
|
|
25596
25591
|
var Table_default = Table;
|
|
25597
25592
|
|
|
25598
25593
|
// src/components/table/TableBody.tsx
|
|
25599
25594
|
import { TableBody as MuiTableBody } from "@mui/material";
|
|
25600
|
-
import { jsx as
|
|
25601
|
-
var TableBody = ({ children }) => /* @__PURE__ */
|
|
25595
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
25596
|
+
var TableBody = ({ children }) => /* @__PURE__ */ jsx154(MuiTableBody, { children });
|
|
25602
25597
|
var TableBody_default = TableBody;
|
|
25603
25598
|
|
|
25604
25599
|
// src/components/table/TableCell.tsx
|
|
25605
25600
|
import {
|
|
25606
25601
|
TableCell as MuiTableCell2
|
|
25607
25602
|
} from "@mui/material";
|
|
25608
|
-
import { jsx as
|
|
25603
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
25609
25604
|
var TableCell = ({
|
|
25610
25605
|
children,
|
|
25611
25606
|
size = "M",
|
|
@@ -25616,7 +25611,7 @@ var TableCell = ({
|
|
|
25616
25611
|
onClick,
|
|
25617
25612
|
noBorder = false,
|
|
25618
25613
|
...rest
|
|
25619
|
-
}) => /* @__PURE__ */
|
|
25614
|
+
}) => /* @__PURE__ */ jsx155(
|
|
25620
25615
|
MuiTableCell2,
|
|
25621
25616
|
{
|
|
25622
25617
|
...rest,
|
|
@@ -25641,7 +25636,7 @@ var TableCell_default = TableCell;
|
|
|
25641
25636
|
|
|
25642
25637
|
// src/components/table/TableCellCopy.tsx
|
|
25643
25638
|
import * as React84 from "react";
|
|
25644
|
-
import { jsx as
|
|
25639
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
25645
25640
|
var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
25646
25641
|
const { t } = useTranslation();
|
|
25647
25642
|
const [isCopied, setIsCopied] = React84.useState(false);
|
|
@@ -25659,7 +25654,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
25659
25654
|
const getIconId = () => !isCopied ? "content-copy" : "check";
|
|
25660
25655
|
const iconHiddenClass = "icon-hidden";
|
|
25661
25656
|
const iconCopiedClass = "icon-copied";
|
|
25662
|
-
return /* @__PURE__ */
|
|
25657
|
+
return /* @__PURE__ */ jsx156(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx156(
|
|
25663
25658
|
Stack_default,
|
|
25664
25659
|
{
|
|
25665
25660
|
direction: "row",
|
|
@@ -25668,7 +25663,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
25668
25663
|
onMouseEnter: () => setShowIcon(true),
|
|
25669
25664
|
onMouseLeave: () => setShowIcon(false),
|
|
25670
25665
|
onClick: manageButtonClicked,
|
|
25671
|
-
children: /* @__PURE__ */
|
|
25666
|
+
children: /* @__PURE__ */ jsx156(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx156(
|
|
25672
25667
|
Button_default,
|
|
25673
25668
|
{
|
|
25674
25669
|
className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
|
|
@@ -25698,21 +25693,21 @@ var TableCellCopy_default = TableCellCopy;
|
|
|
25698
25693
|
|
|
25699
25694
|
// src/components/table/TableHead.tsx
|
|
25700
25695
|
import { TableHead as MuiTableHead } from "@mui/material";
|
|
25701
|
-
import { jsx as
|
|
25702
|
-
var TableHead = ({ children }) => /* @__PURE__ */
|
|
25696
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
25697
|
+
var TableHead = ({ children }) => /* @__PURE__ */ jsx157(MuiTableHead, { children });
|
|
25703
25698
|
var TableHead_default = TableHead;
|
|
25704
25699
|
|
|
25705
25700
|
// src/components/table/TableRow.tsx
|
|
25706
25701
|
import {
|
|
25707
25702
|
TableRow as MuiTableRow2
|
|
25708
25703
|
} from "@mui/material";
|
|
25709
|
-
import { jsx as
|
|
25704
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
25710
25705
|
var TableRow = ({
|
|
25711
25706
|
children,
|
|
25712
25707
|
isFollowedByNestedTable = false,
|
|
25713
25708
|
fadeInLeftAnimation = false,
|
|
25714
25709
|
sx
|
|
25715
|
-
}) => /* @__PURE__ */
|
|
25710
|
+
}) => /* @__PURE__ */ jsx158(
|
|
25716
25711
|
MuiTableRow2,
|
|
25717
25712
|
{
|
|
25718
25713
|
className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
|
|
@@ -25724,14 +25719,14 @@ var TableRow_default = TableRow;
|
|
|
25724
25719
|
|
|
25725
25720
|
// src/components/table/NestedTable.tsx
|
|
25726
25721
|
import { Collapse as Collapse7 } from "@mui/material";
|
|
25727
|
-
import { jsx as
|
|
25722
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
25728
25723
|
var NestedTable = ({
|
|
25729
25724
|
colSpan,
|
|
25730
25725
|
children,
|
|
25731
25726
|
className = "",
|
|
25732
25727
|
sx,
|
|
25733
25728
|
isVisible = true
|
|
25734
|
-
}) => /* @__PURE__ */
|
|
25729
|
+
}) => /* @__PURE__ */ jsx159(TableRow_default, { children: /* @__PURE__ */ jsx159(
|
|
25735
25730
|
TableCell_default,
|
|
25736
25731
|
{
|
|
25737
25732
|
colSpan,
|
|
@@ -25740,14 +25735,14 @@ var NestedTable = ({
|
|
|
25740
25735
|
height: "auto",
|
|
25741
25736
|
...!isVisible && { borderBottom: "none" }
|
|
25742
25737
|
},
|
|
25743
|
-
children: /* @__PURE__ */
|
|
25738
|
+
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
25739
|
}
|
|
25745
25740
|
) });
|
|
25746
25741
|
var NestedTable_default = NestedTable;
|
|
25747
25742
|
|
|
25748
25743
|
// src/components/toolbar/ToolbarBreadcrumb.tsx
|
|
25749
|
-
import { jsx as
|
|
25750
|
-
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */
|
|
25744
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
25745
|
+
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx160(
|
|
25751
25746
|
Stack_default,
|
|
25752
25747
|
{
|
|
25753
25748
|
direction: "row",
|
|
@@ -25757,7 +25752,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx161(
|
|
|
25757
25752
|
(previous, current, index) => [
|
|
25758
25753
|
...previous,
|
|
25759
25754
|
...index > 0 ? [
|
|
25760
|
-
/* @__PURE__ */
|
|
25755
|
+
/* @__PURE__ */ jsx160(
|
|
25761
25756
|
Typography_default,
|
|
25762
25757
|
{
|
|
25763
25758
|
color: grey500,
|
|
@@ -25781,9 +25776,9 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
25781
25776
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
25782
25777
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
25783
25778
|
import * as React85 from "react";
|
|
25784
|
-
import { jsx as
|
|
25779
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
25785
25780
|
var ToolbarBreadcrumbButton = React85.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
25786
|
-
return /* @__PURE__ */
|
|
25781
|
+
return /* @__PURE__ */ jsx161(
|
|
25787
25782
|
ButtonBase5,
|
|
25788
25783
|
{
|
|
25789
25784
|
className: `Cn-ToolbarBreadcrumbButton ${className}`,
|
|
@@ -25802,14 +25797,14 @@ var ToolbarBreadcrumbButton = React85.forwardRef(function ToolbarBreadcrumbButto
|
|
|
25802
25797
|
}
|
|
25803
25798
|
},
|
|
25804
25799
|
...rest,
|
|
25805
|
-
children: /* @__PURE__ */
|
|
25800
|
+
children: /* @__PURE__ */ jsx161(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
|
|
25806
25801
|
}
|
|
25807
25802
|
);
|
|
25808
25803
|
});
|
|
25809
25804
|
var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
|
|
25810
25805
|
|
|
25811
25806
|
// src/components/toolbar/Toolbar.tsx
|
|
25812
|
-
import { jsx as
|
|
25807
|
+
import { jsx as jsx162, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
25813
25808
|
var Toolbar = ({
|
|
25814
25809
|
children,
|
|
25815
25810
|
rightActions,
|
|
@@ -25850,7 +25845,7 @@ var Toolbar = ({
|
|
|
25850
25845
|
width: "100%"
|
|
25851
25846
|
},
|
|
25852
25847
|
children: [
|
|
25853
|
-
leftActions && /* @__PURE__ */
|
|
25848
|
+
leftActions && /* @__PURE__ */ jsx162(
|
|
25854
25849
|
Box_default2,
|
|
25855
25850
|
{
|
|
25856
25851
|
className: `Cn-Toolbar-left`,
|
|
@@ -25860,7 +25855,7 @@ var Toolbar = ({
|
|
|
25860
25855
|
children: leftActions
|
|
25861
25856
|
}
|
|
25862
25857
|
),
|
|
25863
|
-
/* @__PURE__ */
|
|
25858
|
+
/* @__PURE__ */ jsx162(
|
|
25864
25859
|
Box_default2,
|
|
25865
25860
|
{
|
|
25866
25861
|
className: `Cn-Toolbar-children`,
|
|
@@ -25875,7 +25870,7 @@ var Toolbar = ({
|
|
|
25875
25870
|
]
|
|
25876
25871
|
}
|
|
25877
25872
|
),
|
|
25878
|
-
rightActions && /* @__PURE__ */
|
|
25873
|
+
rightActions && /* @__PURE__ */ jsx162(
|
|
25879
25874
|
Box_default2,
|
|
25880
25875
|
{
|
|
25881
25876
|
className: `Cn-Toolbar-right`,
|
|
@@ -25896,7 +25891,7 @@ var Toolbar_default = Toolbar;
|
|
|
25896
25891
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
25897
25892
|
import * as React86 from "react";
|
|
25898
25893
|
import { useState as useState34 } from "react";
|
|
25899
|
-
import { jsx as
|
|
25894
|
+
import { jsx as jsx163, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
25900
25895
|
var ToolbarTitle = React86.forwardRef(function ToolbarTitle2({
|
|
25901
25896
|
title,
|
|
25902
25897
|
align = "left",
|
|
@@ -25906,7 +25901,7 @@ var ToolbarTitle = React86.forwardRef(function ToolbarTitle2({
|
|
|
25906
25901
|
}, ref) {
|
|
25907
25902
|
const textElementRef = React86.useRef(null);
|
|
25908
25903
|
const [showHoverActions, setShowHoverActions] = useState34(false);
|
|
25909
|
-
return /* @__PURE__ */
|
|
25904
|
+
return /* @__PURE__ */ jsx163(Box_default2, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx163(
|
|
25910
25905
|
TextEllipsisTooltip_default,
|
|
25911
25906
|
{
|
|
25912
25907
|
title: title ?? "\xA0",
|
|
@@ -25929,7 +25924,7 @@ var ToolbarTitle = React86.forwardRef(function ToolbarTitle2({
|
|
|
25929
25924
|
},
|
|
25930
25925
|
children: [
|
|
25931
25926
|
title || "\xA0",
|
|
25932
|
-
hoverActions && showHoverActions && /* @__PURE__ */
|
|
25927
|
+
hoverActions && showHoverActions && /* @__PURE__ */ jsx163(
|
|
25933
25928
|
Box_default2,
|
|
25934
25929
|
{
|
|
25935
25930
|
sx: {
|
|
@@ -25958,13 +25953,13 @@ var Slide_default = Slide;
|
|
|
25958
25953
|
|
|
25959
25954
|
// src/components/widget/WidgetLegendItem.tsx
|
|
25960
25955
|
import { ButtonBase as ButtonBase6 } from "@mui/material";
|
|
25961
|
-
import { jsx as
|
|
25956
|
+
import { jsx as jsx164, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
25962
25957
|
var WidgetLegendItem = ({
|
|
25963
25958
|
groupLabel,
|
|
25964
25959
|
legendDirection = "column",
|
|
25965
25960
|
items = [],
|
|
25966
25961
|
onClick
|
|
25967
|
-
}) => /* @__PURE__ */
|
|
25962
|
+
}) => /* @__PURE__ */ jsx164(
|
|
25968
25963
|
ButtonBase6,
|
|
25969
25964
|
{
|
|
25970
25965
|
tabIndex: onClick ? 0 : -1,
|
|
@@ -25990,7 +25985,7 @@ var WidgetLegendItem = ({
|
|
|
25990
25985
|
color: grey800
|
|
25991
25986
|
},
|
|
25992
25987
|
children: [
|
|
25993
|
-
groupLabel && /* @__PURE__ */
|
|
25988
|
+
groupLabel && /* @__PURE__ */ jsx164(
|
|
25994
25989
|
Typography_default,
|
|
25995
25990
|
{
|
|
25996
25991
|
variant: "overline",
|
|
@@ -26022,7 +26017,7 @@ var WidgetLegendItem = ({
|
|
|
26022
26017
|
paddingRight: legendDirection === "row" ? "12px" : "inherit"
|
|
26023
26018
|
},
|
|
26024
26019
|
children: [
|
|
26025
|
-
iconColor && /* @__PURE__ */
|
|
26020
|
+
iconColor && /* @__PURE__ */ jsx164(
|
|
26026
26021
|
Icon_default,
|
|
26027
26022
|
{
|
|
26028
26023
|
id: iconId,
|
|
@@ -26033,7 +26028,7 @@ var WidgetLegendItem = ({
|
|
|
26033
26028
|
size: iconSize
|
|
26034
26029
|
}
|
|
26035
26030
|
),
|
|
26036
|
-
label && /* @__PURE__ */
|
|
26031
|
+
label && /* @__PURE__ */ jsx164(
|
|
26037
26032
|
Typography_default,
|
|
26038
26033
|
{
|
|
26039
26034
|
variant: "caption",
|
|
@@ -26042,7 +26037,7 @@ var WidgetLegendItem = ({
|
|
|
26042
26037
|
children: label
|
|
26043
26038
|
}
|
|
26044
26039
|
),
|
|
26045
|
-
value && /* @__PURE__ */
|
|
26040
|
+
value && /* @__PURE__ */ jsx164(
|
|
26046
26041
|
Typography_default,
|
|
26047
26042
|
{
|
|
26048
26043
|
sx: style3,
|
|
@@ -26051,7 +26046,7 @@ var WidgetLegendItem = ({
|
|
|
26051
26046
|
children: value
|
|
26052
26047
|
}
|
|
26053
26048
|
),
|
|
26054
|
-
incrementLabelValue && /* @__PURE__ */
|
|
26049
|
+
incrementLabelValue && /* @__PURE__ */ jsx164(
|
|
26055
26050
|
IncrementLabel_default,
|
|
26056
26051
|
{
|
|
26057
26052
|
label: incrementLabelValue,
|
|
@@ -26077,8 +26072,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
|
|
|
26077
26072
|
|
|
26078
26073
|
// src/components/widget/Widget.tsx
|
|
26079
26074
|
import MuiCard2 from "@mui/material/Card";
|
|
26080
|
-
import { jsx as
|
|
26081
|
-
var Widget = ({ children }) => /* @__PURE__ */
|
|
26075
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
26076
|
+
var Widget = ({ children }) => /* @__PURE__ */ jsx165(
|
|
26082
26077
|
MuiCard2,
|
|
26083
26078
|
{
|
|
26084
26079
|
variant: "elevation",
|
|
@@ -26102,8 +26097,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx166(
|
|
|
26102
26097
|
var Widget_default = Widget;
|
|
26103
26098
|
|
|
26104
26099
|
// src/components/widget/WidgetActions.tsx
|
|
26105
|
-
import { jsx as
|
|
26106
|
-
var WidgetActions = ({ children }) => /* @__PURE__ */
|
|
26100
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
26101
|
+
var WidgetActions = ({ children }) => /* @__PURE__ */ jsx166(
|
|
26107
26102
|
Box_default2,
|
|
26108
26103
|
{
|
|
26109
26104
|
sx: {
|
|
@@ -26117,8 +26112,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx167(
|
|
|
26117
26112
|
var WidgetActions_default = WidgetActions;
|
|
26118
26113
|
|
|
26119
26114
|
// src/components/widget/WidgetTitle.tsx
|
|
26120
|
-
import { jsx as
|
|
26121
|
-
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */
|
|
26115
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
26116
|
+
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx167(
|
|
26122
26117
|
Box_default2,
|
|
26123
26118
|
{
|
|
26124
26119
|
sx: {
|
|
@@ -26128,7 +26123,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
26128
26123
|
maxWidth: "100%",
|
|
26129
26124
|
...sx
|
|
26130
26125
|
},
|
|
26131
|
-
children: /* @__PURE__ */
|
|
26126
|
+
children: /* @__PURE__ */ jsx167(
|
|
26132
26127
|
Typography_default,
|
|
26133
26128
|
{
|
|
26134
26129
|
variant: "subtitle2",
|
|
@@ -26142,12 +26137,12 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
26142
26137
|
}
|
|
26143
26138
|
)
|
|
26144
26139
|
}
|
|
26145
|
-
) : /* @__PURE__ */
|
|
26140
|
+
) : /* @__PURE__ */ jsx167("span", {});
|
|
26146
26141
|
var WidgetTitle_default = WidgetTitle;
|
|
26147
26142
|
|
|
26148
26143
|
// src/components/window/MinimizableWindow.tsx
|
|
26149
26144
|
import * as React87 from "react";
|
|
26150
|
-
import { Fragment as Fragment35, jsx as
|
|
26145
|
+
import { Fragment as Fragment35, jsx as jsx168, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
26151
26146
|
var sizes6 = {
|
|
26152
26147
|
M: 400,
|
|
26153
26148
|
L: 500,
|
|
@@ -26262,7 +26257,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26262
26257
|
}, 750);
|
|
26263
26258
|
};
|
|
26264
26259
|
return /* @__PURE__ */ jsxs80(Fragment35, { children: [
|
|
26265
|
-
isDraggingState && /* @__PURE__ */
|
|
26260
|
+
isDraggingState && /* @__PURE__ */ jsx168(
|
|
26266
26261
|
Box_default2,
|
|
26267
26262
|
{
|
|
26268
26263
|
sx: {
|
|
@@ -26278,7 +26273,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26278
26273
|
onMouseMove: (ev) => handleMouseMove(ev)
|
|
26279
26274
|
}
|
|
26280
26275
|
),
|
|
26281
|
-
/* @__PURE__ */
|
|
26276
|
+
/* @__PURE__ */ jsx168(
|
|
26282
26277
|
Box_default2,
|
|
26283
26278
|
{
|
|
26284
26279
|
ref: overlayRef,
|
|
@@ -26320,19 +26315,19 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26320
26315
|
onMouseDown: handleMouseDown,
|
|
26321
26316
|
minHeight: "44px",
|
|
26322
26317
|
children: [
|
|
26323
|
-
/* @__PURE__ */
|
|
26318
|
+
/* @__PURE__ */ jsx168(
|
|
26324
26319
|
Stack_default,
|
|
26325
26320
|
{
|
|
26326
26321
|
direction: "row",
|
|
26327
26322
|
alignItems: "center",
|
|
26328
26323
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26329
|
-
children: showBackButton && (!backButton ? /* @__PURE__ */
|
|
26324
|
+
children: showBackButton && (!backButton ? /* @__PURE__ */ jsx168(
|
|
26330
26325
|
Tooltip_default,
|
|
26331
26326
|
{
|
|
26332
26327
|
title: t("MINIMIZABLE_WINDOW.GO_BACK"),
|
|
26333
26328
|
zIndex: 999999,
|
|
26334
26329
|
placement: "top",
|
|
26335
|
-
children: /* @__PURE__ */
|
|
26330
|
+
children: /* @__PURE__ */ jsx168(
|
|
26336
26331
|
IconButton_default,
|
|
26337
26332
|
{
|
|
26338
26333
|
size: iconSizes4,
|
|
@@ -26345,7 +26340,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26345
26340
|
) : backButton)
|
|
26346
26341
|
}
|
|
26347
26342
|
),
|
|
26348
|
-
/* @__PURE__ */
|
|
26343
|
+
/* @__PURE__ */ jsx168(
|
|
26349
26344
|
Box_default2,
|
|
26350
26345
|
{
|
|
26351
26346
|
sx: {
|
|
@@ -26353,7 +26348,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26353
26348
|
left: "50%",
|
|
26354
26349
|
transform: "translateX(-50%)"
|
|
26355
26350
|
},
|
|
26356
|
-
children: typeof title === "string" ? /* @__PURE__ */
|
|
26351
|
+
children: typeof title === "string" ? /* @__PURE__ */ jsx168(Typography_default, { children: title }) : title
|
|
26357
26352
|
}
|
|
26358
26353
|
),
|
|
26359
26354
|
/* @__PURE__ */ jsxs80(
|
|
@@ -26363,13 +26358,13 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26363
26358
|
alignItems: "center",
|
|
26364
26359
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26365
26360
|
children: [
|
|
26366
|
-
/* @__PURE__ */
|
|
26361
|
+
/* @__PURE__ */ jsx168(Box_default2, { children: /* @__PURE__ */ jsx168(
|
|
26367
26362
|
Tooltip_default,
|
|
26368
26363
|
{
|
|
26369
26364
|
title: t("MINIMIZABLE_WINDOW.MINIMIZE"),
|
|
26370
26365
|
zIndex: 999999,
|
|
26371
26366
|
placement: "top",
|
|
26372
|
-
children: /* @__PURE__ */
|
|
26367
|
+
children: /* @__PURE__ */ jsx168(
|
|
26373
26368
|
IconButton_default,
|
|
26374
26369
|
{
|
|
26375
26370
|
size: iconSizes4,
|
|
@@ -26385,13 +26380,13 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26385
26380
|
)
|
|
26386
26381
|
}
|
|
26387
26382
|
) }),
|
|
26388
|
-
closeable && /* @__PURE__ */
|
|
26383
|
+
closeable && /* @__PURE__ */ jsx168(Box_default2, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx168(
|
|
26389
26384
|
Tooltip_default,
|
|
26390
26385
|
{
|
|
26391
26386
|
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
26392
26387
|
zIndex: 999999,
|
|
26393
26388
|
placement: "top",
|
|
26394
|
-
children: /* @__PURE__ */
|
|
26389
|
+
children: /* @__PURE__ */ jsx168(
|
|
26395
26390
|
IconButton_default,
|
|
26396
26391
|
{
|
|
26397
26392
|
size: iconSizes4,
|
|
@@ -26408,7 +26403,7 @@ var MinimizableWindow = React87.forwardRef(function MinimizableWindow2({
|
|
|
26408
26403
|
]
|
|
26409
26404
|
}
|
|
26410
26405
|
),
|
|
26411
|
-
/* @__PURE__ */
|
|
26406
|
+
/* @__PURE__ */ jsx168(
|
|
26412
26407
|
Stack_default,
|
|
26413
26408
|
{
|
|
26414
26409
|
sx: {
|
|
@@ -26632,6 +26627,7 @@ export {
|
|
|
26632
26627
|
getDateInputFormatForLocale,
|
|
26633
26628
|
getDatesFromDateInterval,
|
|
26634
26629
|
getDisplayEndDate,
|
|
26630
|
+
getIconPath,
|
|
26635
26631
|
getPhoneWithoutCountryCode,
|
|
26636
26632
|
getSafeResizeObserverCallback,
|
|
26637
26633
|
getWeekDayNamesForLocale,
|