@connectif/ui-components 9.0.7 → 9.1.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/CHANGELOG.md +24 -0
- package/dist/components/button/ButtonWithActions.d.ts +1 -1
- package/dist/components/chart/BarChart.d.ts +13 -1
- package/dist/components/input/CalendarMonth.d.ts +3 -1
- package/dist/components/input/DateCalendar.d.ts +8 -0
- package/dist/components/input/DaysOfWeekRow.d.ts +5 -1
- package/dist/components/input/Select.d.ts +1 -1
- package/dist/components/input/index.d.ts +2 -0
- package/dist/index.js +502 -276
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -12811,6 +12811,7 @@ var BarChart2 = ({
|
|
|
12811
12811
|
categories = [],
|
|
12812
12812
|
labelColor = grey400,
|
|
12813
12813
|
gridLineColor = grey200,
|
|
12814
|
+
barBorderRadius = 4,
|
|
12814
12815
|
gridLabelSize = "sm",
|
|
12815
12816
|
chartRef,
|
|
12816
12817
|
yAxisLabelFormatter = (value) => `${value}`,
|
|
@@ -12829,10 +12830,10 @@ var BarChart2 = ({
|
|
|
12829
12830
|
barGap: 0,
|
|
12830
12831
|
backgroundStyle: {
|
|
12831
12832
|
color: alpha2(grey200, 0.32),
|
|
12832
|
-
borderRadius: [
|
|
12833
|
+
borderRadius: [barBorderRadius, barBorderRadius, 0, 0]
|
|
12833
12834
|
},
|
|
12834
12835
|
itemStyle: {
|
|
12835
|
-
borderRadius: [
|
|
12836
|
+
borderRadius: [barBorderRadius, barBorderRadius, 0, 0]
|
|
12836
12837
|
},
|
|
12837
12838
|
label: {
|
|
12838
12839
|
formatter(params) {
|
|
@@ -12865,7 +12866,7 @@ var BarChart2 = ({
|
|
|
12865
12866
|
value: value !== 0 ? value : null,
|
|
12866
12867
|
itemStyle: {
|
|
12867
12868
|
color: color2,
|
|
12868
|
-
borderRadius: value > 0 ? [
|
|
12869
|
+
borderRadius: value > 0 ? [barBorderRadius, barBorderRadius, 0, 0] : [0, 0, barBorderRadius, barBorderRadius]
|
|
12869
12870
|
},
|
|
12870
12871
|
label: {
|
|
12871
12872
|
show: !!(incrementLabelValue && incrementLabelType),
|
|
@@ -12919,7 +12920,7 @@ var BarChart2 = ({
|
|
|
12919
12920
|
value: (comparisonValue || 0) !== 0 ? comparisonValue : null,
|
|
12920
12921
|
itemStyle: {
|
|
12921
12922
|
color: comparisonColor,
|
|
12922
|
-
borderRadius: (comparisonValue || 0) > 0 ? [
|
|
12923
|
+
borderRadius: (comparisonValue || 0) > 0 ? [barBorderRadius, barBorderRadius, 0, 0] : [0, 0, barBorderRadius, barBorderRadius]
|
|
12923
12924
|
},
|
|
12924
12925
|
label: {
|
|
12925
12926
|
show: false
|
|
@@ -12995,12 +12996,14 @@ var BarChart2 = ({
|
|
|
12995
12996
|
({
|
|
12996
12997
|
tooltipValue,
|
|
12997
12998
|
value,
|
|
12999
|
+
color: itemColor,
|
|
12998
13000
|
comparisonTooltipValue,
|
|
12999
13001
|
comparisonValue,
|
|
13002
|
+
comparisonColor: itemComparisonColor,
|
|
13000
13003
|
incrementLabelType,
|
|
13001
13004
|
incrementLabelValue
|
|
13002
13005
|
}) => comparisonValue < value ? getOptionsForMainBar({
|
|
13003
|
-
color: color2,
|
|
13006
|
+
color: itemColor ?? color2,
|
|
13004
13007
|
tooltipName,
|
|
13005
13008
|
tooltipValue,
|
|
13006
13009
|
value,
|
|
@@ -13008,7 +13011,7 @@ var BarChart2 = ({
|
|
|
13008
13011
|
incrementLabelValue,
|
|
13009
13012
|
tooltipOrder: serieIndex
|
|
13010
13013
|
}) : getOptionsForComparisonBar({
|
|
13011
|
-
comparisonColor,
|
|
13014
|
+
comparisonColor: itemComparisonColor ?? comparisonColor,
|
|
13012
13015
|
comparisonTooltipName,
|
|
13013
13016
|
comparisonTooltipValue,
|
|
13014
13017
|
comparisonValue,
|
|
@@ -13027,18 +13030,20 @@ var BarChart2 = ({
|
|
|
13027
13030
|
({
|
|
13028
13031
|
tooltipValue,
|
|
13029
13032
|
value,
|
|
13033
|
+
color: itemColor,
|
|
13030
13034
|
comparisonTooltipValue,
|
|
13031
13035
|
comparisonValue,
|
|
13036
|
+
comparisonColor: itemComparisonColor,
|
|
13032
13037
|
incrementLabelType,
|
|
13033
13038
|
incrementLabelValue
|
|
13034
13039
|
}) => isComparison && comparisonValue < value ? getOptionsForComparisonBar({
|
|
13035
|
-
comparisonColor,
|
|
13040
|
+
comparisonColor: itemComparisonColor ?? comparisonColor,
|
|
13036
13041
|
comparisonTooltipName,
|
|
13037
13042
|
comparisonTooltipValue,
|
|
13038
13043
|
comparisonValue,
|
|
13039
13044
|
tooltipOrder: serieIndex
|
|
13040
13045
|
}) : getOptionsForMainBar({
|
|
13041
|
-
color: color2,
|
|
13046
|
+
color: itemColor ?? color2,
|
|
13042
13047
|
tooltipName,
|
|
13043
13048
|
tooltipValue,
|
|
13044
13049
|
value,
|
|
@@ -20083,8 +20088,12 @@ var CalendarMonth = ({
|
|
|
20083
20088
|
intersectionColor = white,
|
|
20084
20089
|
onSelect,
|
|
20085
20090
|
allowKeyboardNavigation = false,
|
|
20086
|
-
focusedDate = null
|
|
20091
|
+
focusedDate = null,
|
|
20092
|
+
todayForegroundColor,
|
|
20093
|
+
hideMonthLabel = false
|
|
20087
20094
|
}) => {
|
|
20095
|
+
const theme2 = useCustomTheme();
|
|
20096
|
+
const effectiveTodayForegroundColor = todayForegroundColor ?? theme2.palette.primary.main;
|
|
20088
20097
|
const { timezone } = React54.useContext(IntlContext);
|
|
20089
20098
|
const firstDayOfMonth = tz2({ year, month, date: 1 }, timezone);
|
|
20090
20099
|
const dayOfWeek = firstDayOfMonth.day();
|
|
@@ -20200,7 +20209,7 @@ var CalendarMonth = ({
|
|
|
20200
20209
|
color: fgColor,
|
|
20201
20210
|
type: "fill"
|
|
20202
20211
|
} : isToday ? {
|
|
20203
|
-
color:
|
|
20212
|
+
color: effectiveTodayForegroundColor,
|
|
20204
20213
|
type: "stroke"
|
|
20205
20214
|
} : void 0
|
|
20206
20215
|
};
|
|
@@ -20226,7 +20235,7 @@ var CalendarMonth = ({
|
|
|
20226
20235
|
color: s.color,
|
|
20227
20236
|
type: "fill"
|
|
20228
20237
|
} : isToday ? {
|
|
20229
|
-
color:
|
|
20238
|
+
color: effectiveTodayForegroundColor,
|
|
20230
20239
|
type: "stroke"
|
|
20231
20240
|
} : void 0
|
|
20232
20241
|
};
|
|
@@ -20235,10 +20244,10 @@ var CalendarMonth = ({
|
|
|
20235
20244
|
return {
|
|
20236
20245
|
...disabledPart,
|
|
20237
20246
|
foregroundHighlight: isFocused ? {
|
|
20238
|
-
color:
|
|
20247
|
+
color: theme2.palette.primary.main,
|
|
20239
20248
|
type: "fill"
|
|
20240
20249
|
} : isToday ? {
|
|
20241
|
-
color:
|
|
20250
|
+
color: effectiveTodayForegroundColor,
|
|
20242
20251
|
type: "stroke"
|
|
20243
20252
|
} : void 0
|
|
20244
20253
|
};
|
|
@@ -20250,12 +20259,12 @@ var CalendarMonth = ({
|
|
|
20250
20259
|
sx: {
|
|
20251
20260
|
display: "grid",
|
|
20252
20261
|
gridTemplateColumns: "repeat(7, 1fr)",
|
|
20253
|
-
gridTemplateRows: "repeat(6, 32px)",
|
|
20262
|
+
gridTemplateRows: hideMonthLabel ? "repeat(5, 32px)" : "repeat(6, 32px)",
|
|
20254
20263
|
height: "100%"
|
|
20255
20264
|
},
|
|
20256
20265
|
"data-testid": `calendar-month-${year}-${month}`,
|
|
20257
20266
|
children: [
|
|
20258
|
-
/* @__PURE__ */ jsx107(
|
|
20267
|
+
!hideMonthLabel && /* @__PURE__ */ jsx107(
|
|
20259
20268
|
Typography_default,
|
|
20260
20269
|
{
|
|
20261
20270
|
sx: {
|
|
@@ -20275,7 +20284,8 @@ var CalendarMonth = ({
|
|
|
20275
20284
|
)
|
|
20276
20285
|
}
|
|
20277
20286
|
),
|
|
20278
|
-
isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */ jsx107("span", { style: { gridColumn: `span ${indexOfDay}` }, children: "\xA0" }),
|
|
20287
|
+
!hideMonthLabel && isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */ jsx107("span", { style: { gridColumn: `span ${indexOfDay}` }, children: "\xA0" }),
|
|
20288
|
+
hideMonthLabel && indexOfDay > 0 && /* @__PURE__ */ jsx107("span", { style: { gridColumn: `span ${indexOfDay}` }, children: "\xA0" }),
|
|
20279
20289
|
dayList.map((day) => /* @__PURE__ */ jsx107(
|
|
20280
20290
|
CalendarDay_default,
|
|
20281
20291
|
{
|
|
@@ -20295,16 +20305,28 @@ var CalendarMonth_default = CalendarMonth;
|
|
|
20295
20305
|
// src/components/input/DaysOfWeekRow.tsx
|
|
20296
20306
|
import * as React55 from "react";
|
|
20297
20307
|
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
20298
|
-
var
|
|
20308
|
+
var formatShortLowercaseDay = (day, locale) => day.replace(/[\s.]/g, "").slice(0, 3).toLocaleLowerCase(locale);
|
|
20309
|
+
var DaysOfWeekRow = ({
|
|
20310
|
+
transparentBackground = false,
|
|
20311
|
+
dayLabelFormat = "narrow"
|
|
20312
|
+
}) => {
|
|
20313
|
+
const theme2 = useCustomTheme();
|
|
20299
20314
|
const { locale, timezone } = React55.useContext(IntlContext);
|
|
20300
20315
|
const daysOfWeekLong = React55.useMemo(
|
|
20301
20316
|
() => getWeekDayNamesForLocale(locale, "long", timezone),
|
|
20302
20317
|
[locale, timezone]
|
|
20303
20318
|
);
|
|
20304
|
-
const
|
|
20319
|
+
const daysOfWeekNarrow = React55.useMemo(
|
|
20305
20320
|
() => getWeekDayNamesForLocale(locale, "narrow", timezone),
|
|
20306
20321
|
[locale, timezone]
|
|
20307
20322
|
);
|
|
20323
|
+
const daysOfWeekShortLowercase = React55.useMemo(
|
|
20324
|
+
() => getWeekDayNamesForLocale(locale, "short", timezone).map(
|
|
20325
|
+
(day) => formatShortLowercaseDay(day, locale)
|
|
20326
|
+
),
|
|
20327
|
+
[locale, timezone]
|
|
20328
|
+
);
|
|
20329
|
+
const daysOfWeek = dayLabelFormat === "short-lowercase" ? daysOfWeekShortLowercase : daysOfWeekNarrow;
|
|
20308
20330
|
return /* @__PURE__ */ jsx108(
|
|
20309
20331
|
Stack_default,
|
|
20310
20332
|
{
|
|
@@ -20312,12 +20334,16 @@ var DaysOfWeekRow = () => {
|
|
|
20312
20334
|
sx: {
|
|
20313
20335
|
padding: "0 8px",
|
|
20314
20336
|
height: "32px",
|
|
20315
|
-
backgroundColor:
|
|
20337
|
+
backgroundColor: transparentBackground ? "transparent" : theme2.palette.grey[100],
|
|
20316
20338
|
alignItems: "center"
|
|
20317
20339
|
},
|
|
20318
20340
|
children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx108(Tooltip_default, { title: daysOfWeekLong[index], children: /* @__PURE__ */ jsx108(
|
|
20319
20341
|
Typography_default,
|
|
20320
20342
|
{
|
|
20343
|
+
...dayLabelFormat === "short-lowercase" && {
|
|
20344
|
+
variant: "body2",
|
|
20345
|
+
color: theme2.palette.grey[600]
|
|
20346
|
+
},
|
|
20321
20347
|
sx: {
|
|
20322
20348
|
flex: "1 1 0",
|
|
20323
20349
|
textAlign: "center",
|
|
@@ -25061,6 +25087,19 @@ var Autocomplete = function Autocomplete2({
|
|
|
25061
25087
|
anchorRef.current,
|
|
25062
25088
|
event.target
|
|
25063
25089
|
)) {
|
|
25090
|
+
document.addEventListener(
|
|
25091
|
+
"click",
|
|
25092
|
+
(e) => {
|
|
25093
|
+
const target = e.target;
|
|
25094
|
+
if (target.closest(".MuiDialog-container") === target) {
|
|
25095
|
+
e.stopPropagation();
|
|
25096
|
+
}
|
|
25097
|
+
},
|
|
25098
|
+
{
|
|
25099
|
+
capture: true,
|
|
25100
|
+
once: true
|
|
25101
|
+
}
|
|
25102
|
+
);
|
|
25064
25103
|
closePopover();
|
|
25065
25104
|
if (inputValue) {
|
|
25066
25105
|
onSearch && onSearch("");
|
|
@@ -26647,12 +26686,198 @@ var PageSelector = ({
|
|
|
26647
26686
|
};
|
|
26648
26687
|
var PageSelector_default = PageSelector;
|
|
26649
26688
|
|
|
26689
|
+
// src/components/input/DateCalendar.tsx
|
|
26690
|
+
import * as React87 from "react";
|
|
26691
|
+
import { tz as tz13 } from "moment-timezone";
|
|
26692
|
+
import { jsx as jsx149, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
26693
|
+
var minYear2 = 1900;
|
|
26694
|
+
var maxYear2 = 2100;
|
|
26695
|
+
var DateCalendar = ({
|
|
26696
|
+
value,
|
|
26697
|
+
onSelect,
|
|
26698
|
+
minDate,
|
|
26699
|
+
maxDate
|
|
26700
|
+
}) => {
|
|
26701
|
+
const { timezone } = React87.useContext(IntlContext);
|
|
26702
|
+
const [selectedDateParts, setSelectedDateParts] = React87.useState(void 0);
|
|
26703
|
+
const [visibleMonth, setVisibleMonth] = React87.useState({
|
|
26704
|
+
year: minYear2,
|
|
26705
|
+
month: 0
|
|
26706
|
+
});
|
|
26707
|
+
React87.useEffect(() => {
|
|
26708
|
+
if (selectedDateParts) {
|
|
26709
|
+
setVisibleMonth({
|
|
26710
|
+
year: selectedDateParts.year,
|
|
26711
|
+
month: selectedDateParts.month
|
|
26712
|
+
});
|
|
26713
|
+
} else {
|
|
26714
|
+
const now = tz13(timezone);
|
|
26715
|
+
setVisibleMonth({
|
|
26716
|
+
year: now.year(),
|
|
26717
|
+
month: now.month()
|
|
26718
|
+
});
|
|
26719
|
+
}
|
|
26720
|
+
}, [selectedDateParts, timezone]);
|
|
26721
|
+
React87.useEffect(() => {
|
|
26722
|
+
if (!value || isNaN(value.getTime())) {
|
|
26723
|
+
setSelectedDateParts(void 0);
|
|
26724
|
+
return;
|
|
26725
|
+
}
|
|
26726
|
+
const valueTz = tz13(value, timezone);
|
|
26727
|
+
const [year, month, day] = [
|
|
26728
|
+
valueTz.year(),
|
|
26729
|
+
valueTz.month(),
|
|
26730
|
+
valueTz.date()
|
|
26731
|
+
];
|
|
26732
|
+
setVisibleMonth({ year, month });
|
|
26733
|
+
setSelectedDateParts({ year, month, day });
|
|
26734
|
+
}, [timezone, value]);
|
|
26735
|
+
const minSimpleDate = React87.useMemo(
|
|
26736
|
+
() => dateToSimpleDate(minDate, timezone),
|
|
26737
|
+
[minDate, timezone]
|
|
26738
|
+
);
|
|
26739
|
+
const maxSimpleDate = React87.useMemo(
|
|
26740
|
+
() => dateToSimpleDate(maxDate, timezone),
|
|
26741
|
+
[maxDate, timezone]
|
|
26742
|
+
);
|
|
26743
|
+
const startYear = minSimpleDate?.year ?? minYear2;
|
|
26744
|
+
const endYear = maxSimpleDate?.year ?? maxYear2;
|
|
26745
|
+
const startMonth = minSimpleDate?.month ?? 0;
|
|
26746
|
+
const endMonth = maxSimpleDate?.month ?? 11;
|
|
26747
|
+
const navigatePreviousMonth = React87.useCallback(() => {
|
|
26748
|
+
setVisibleMonth((prev) => ({
|
|
26749
|
+
month: prev.month === 0 ? 11 : prev.month - 1,
|
|
26750
|
+
year: prev.month === 0 ? prev.year - 1 : prev.year
|
|
26751
|
+
}));
|
|
26752
|
+
}, []);
|
|
26753
|
+
const navigateNextMonth = React87.useCallback(() => {
|
|
26754
|
+
setVisibleMonth((prev) => ({
|
|
26755
|
+
month: prev.month === 11 ? 0 : prev.month + 1,
|
|
26756
|
+
year: prev.month === 11 ? prev.year + 1 : prev.year
|
|
26757
|
+
}));
|
|
26758
|
+
}, []);
|
|
26759
|
+
const isDisabledPreviousMonth = visibleMonth.year < startYear || visibleMonth.year === startYear && visibleMonth.month <= startMonth;
|
|
26760
|
+
const isDisabledNextMonth = visibleMonth.year > endYear || visibleMonth.year === endYear && visibleMonth.month >= endMonth;
|
|
26761
|
+
const firstDayOfMonth = tz13(
|
|
26762
|
+
{ year: visibleMonth.year, month: visibleMonth.month, date: 1 },
|
|
26763
|
+
timezone
|
|
26764
|
+
).toDate();
|
|
26765
|
+
return /* @__PURE__ */ jsxs77(
|
|
26766
|
+
Stack_default,
|
|
26767
|
+
{
|
|
26768
|
+
sx: {
|
|
26769
|
+
width: `${7 * 32 + 16}px`,
|
|
26770
|
+
maxWidth: "100%",
|
|
26771
|
+
boxSizing: "border-box"
|
|
26772
|
+
},
|
|
26773
|
+
children: [
|
|
26774
|
+
/* @__PURE__ */ jsxs77(
|
|
26775
|
+
Stack_default,
|
|
26776
|
+
{
|
|
26777
|
+
direction: "row",
|
|
26778
|
+
sx: { padding: "8px", alignItems: "center" },
|
|
26779
|
+
justifyContent: "space-between",
|
|
26780
|
+
children: [
|
|
26781
|
+
/* @__PURE__ */ jsx149(
|
|
26782
|
+
IconButton_default,
|
|
26783
|
+
{
|
|
26784
|
+
disabled: isDisabledPreviousMonth,
|
|
26785
|
+
iconId: "chevron-left",
|
|
26786
|
+
size: "L",
|
|
26787
|
+
"data-test": "date-calendar-prev-month",
|
|
26788
|
+
onClick: navigatePreviousMonth
|
|
26789
|
+
}
|
|
26790
|
+
),
|
|
26791
|
+
/* @__PURE__ */ jsx149(
|
|
26792
|
+
Typography_default,
|
|
26793
|
+
{
|
|
26794
|
+
variant: "body1-semibold",
|
|
26795
|
+
sx: {
|
|
26796
|
+
flex: 1,
|
|
26797
|
+
textAlign: "center",
|
|
26798
|
+
"&::first-letter": {
|
|
26799
|
+
textTransform: "uppercase"
|
|
26800
|
+
}
|
|
26801
|
+
},
|
|
26802
|
+
children: /* @__PURE__ */ jsx149(
|
|
26803
|
+
DateFormatter_default,
|
|
26804
|
+
{
|
|
26805
|
+
date: firstDayOfMonth,
|
|
26806
|
+
format: "yearMonthLongFormat"
|
|
26807
|
+
}
|
|
26808
|
+
)
|
|
26809
|
+
}
|
|
26810
|
+
),
|
|
26811
|
+
/* @__PURE__ */ jsx149(
|
|
26812
|
+
IconButton_default,
|
|
26813
|
+
{
|
|
26814
|
+
disabled: isDisabledNextMonth,
|
|
26815
|
+
iconId: "chevron-right",
|
|
26816
|
+
size: "L",
|
|
26817
|
+
"data-test": "date-calendar-next-month",
|
|
26818
|
+
onClick: navigateNextMonth
|
|
26819
|
+
}
|
|
26820
|
+
)
|
|
26821
|
+
]
|
|
26822
|
+
}
|
|
26823
|
+
),
|
|
26824
|
+
/* @__PURE__ */ jsx149(
|
|
26825
|
+
DaysOfWeekRow_default,
|
|
26826
|
+
{
|
|
26827
|
+
transparentBackground: true,
|
|
26828
|
+
dayLabelFormat: "short-lowercase"
|
|
26829
|
+
}
|
|
26830
|
+
),
|
|
26831
|
+
/* @__PURE__ */ jsx149(Box_default2, { sx: { padding: "8px" }, children: /* @__PURE__ */ jsx149(
|
|
26832
|
+
CalendarMonth_default,
|
|
26833
|
+
{
|
|
26834
|
+
allowKeyboardNavigation: true,
|
|
26835
|
+
hideMonthLabel: true,
|
|
26836
|
+
todayForegroundColor: gunMetal,
|
|
26837
|
+
minDate: minSimpleDate,
|
|
26838
|
+
maxDate: maxSimpleDate,
|
|
26839
|
+
...visibleMonth,
|
|
26840
|
+
selections: selectedDateParts ? [
|
|
26841
|
+
{
|
|
26842
|
+
color: primaryMain,
|
|
26843
|
+
endDate: selectedDateParts,
|
|
26844
|
+
startDate: selectedDateParts
|
|
26845
|
+
}
|
|
26846
|
+
] : [],
|
|
26847
|
+
onSelect: (day) => {
|
|
26848
|
+
const selectedDate = tz13(
|
|
26849
|
+
[
|
|
26850
|
+
visibleMonth.year,
|
|
26851
|
+
visibleMonth.month,
|
|
26852
|
+
day,
|
|
26853
|
+
0,
|
|
26854
|
+
0,
|
|
26855
|
+
0,
|
|
26856
|
+
0
|
|
26857
|
+
],
|
|
26858
|
+
timezone
|
|
26859
|
+
).toDate();
|
|
26860
|
+
setSelectedDateParts({
|
|
26861
|
+
year: visibleMonth.year,
|
|
26862
|
+
month: visibleMonth.month,
|
|
26863
|
+
day
|
|
26864
|
+
});
|
|
26865
|
+
onSelect && onSelect(selectedDate);
|
|
26866
|
+
}
|
|
26867
|
+
}
|
|
26868
|
+
) })
|
|
26869
|
+
]
|
|
26870
|
+
}
|
|
26871
|
+
);
|
|
26872
|
+
};
|
|
26873
|
+
var DateCalendar_default = DateCalendar;
|
|
26874
|
+
|
|
26650
26875
|
// src/components/loader/Loader.tsx
|
|
26651
26876
|
import Fade from "@mui/material/Fade";
|
|
26652
26877
|
|
|
26653
26878
|
// src/components/progress/LinearProgress.tsx
|
|
26654
26879
|
import MuiLinearProgress from "@mui/material/LinearProgress";
|
|
26655
|
-
import { jsx as
|
|
26880
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
26656
26881
|
var LinearProgress = ({
|
|
26657
26882
|
color: color2,
|
|
26658
26883
|
backgroundColor: backgroundColor2,
|
|
@@ -26660,7 +26885,7 @@ var LinearProgress = ({
|
|
|
26660
26885
|
...rest
|
|
26661
26886
|
}) => {
|
|
26662
26887
|
const { palette: palette2 } = useCustomTheme();
|
|
26663
|
-
return /* @__PURE__ */
|
|
26888
|
+
return /* @__PURE__ */ jsx150(
|
|
26664
26889
|
MuiLinearProgress,
|
|
26665
26890
|
{
|
|
26666
26891
|
...rest,
|
|
@@ -26677,11 +26902,11 @@ var LinearProgress = ({
|
|
|
26677
26902
|
var LinearProgress_default = LinearProgress;
|
|
26678
26903
|
|
|
26679
26904
|
// src/components/progress/CircularProgress.tsx
|
|
26680
|
-
import * as
|
|
26905
|
+
import * as React88 from "react";
|
|
26681
26906
|
import MuiCircularProgress from "@mui/material/CircularProgress";
|
|
26682
26907
|
import Typography3 from "@mui/material/Typography";
|
|
26683
26908
|
import Box4 from "@mui/material/Box";
|
|
26684
|
-
import { jsx as
|
|
26909
|
+
import { jsx as jsx151, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
26685
26910
|
var circularSizesPxMap = {
|
|
26686
26911
|
XS: "20px",
|
|
26687
26912
|
SM: "24px",
|
|
@@ -26703,10 +26928,10 @@ var CircularProgress = ({
|
|
|
26703
26928
|
typographyColor = black,
|
|
26704
26929
|
gradientColors
|
|
26705
26930
|
}) => {
|
|
26706
|
-
const gradientName =
|
|
26931
|
+
const gradientName = React88.useRef(
|
|
26707
26932
|
gradientColors ? crypto.randomUUID() : void 0
|
|
26708
26933
|
);
|
|
26709
|
-
return /* @__PURE__ */
|
|
26934
|
+
return /* @__PURE__ */ jsxs78(
|
|
26710
26935
|
Box4,
|
|
26711
26936
|
{
|
|
26712
26937
|
sx: {
|
|
@@ -26720,7 +26945,7 @@ var CircularProgress = ({
|
|
|
26720
26945
|
}
|
|
26721
26946
|
},
|
|
26722
26947
|
children: [
|
|
26723
|
-
gradientColors && /* @__PURE__ */
|
|
26948
|
+
gradientColors && /* @__PURE__ */ jsx151("svg", { width: 0, height: 0, children: /* @__PURE__ */ jsx151("defs", { children: /* @__PURE__ */ jsxs78(
|
|
26724
26949
|
"linearGradient",
|
|
26725
26950
|
{
|
|
26726
26951
|
id: gradientName.current,
|
|
@@ -26729,14 +26954,14 @@ var CircularProgress = ({
|
|
|
26729
26954
|
x2: "0%",
|
|
26730
26955
|
y2: "100%",
|
|
26731
26956
|
children: [
|
|
26732
|
-
/* @__PURE__ */
|
|
26957
|
+
/* @__PURE__ */ jsx151(
|
|
26733
26958
|
"stop",
|
|
26734
26959
|
{
|
|
26735
26960
|
offset: "0%",
|
|
26736
26961
|
stopColor: gradientColors.startColor
|
|
26737
26962
|
}
|
|
26738
26963
|
),
|
|
26739
|
-
/* @__PURE__ */
|
|
26964
|
+
/* @__PURE__ */ jsx151(
|
|
26740
26965
|
"stop",
|
|
26741
26966
|
{
|
|
26742
26967
|
offset: "100%",
|
|
@@ -26746,7 +26971,7 @@ var CircularProgress = ({
|
|
|
26746
26971
|
]
|
|
26747
26972
|
}
|
|
26748
26973
|
) }) }),
|
|
26749
|
-
showCircularBackground && /* @__PURE__ */
|
|
26974
|
+
showCircularBackground && /* @__PURE__ */ jsx151(
|
|
26750
26975
|
Box4,
|
|
26751
26976
|
{
|
|
26752
26977
|
sx: {
|
|
@@ -26759,7 +26984,7 @@ var CircularProgress = ({
|
|
|
26759
26984
|
maxHeight: circularSizesPxMap[size]
|
|
26760
26985
|
}
|
|
26761
26986
|
},
|
|
26762
|
-
children: /* @__PURE__ */
|
|
26987
|
+
children: /* @__PURE__ */ jsx151(
|
|
26763
26988
|
MuiCircularProgress,
|
|
26764
26989
|
{
|
|
26765
26990
|
variant: "determinate",
|
|
@@ -26771,7 +26996,7 @@ var CircularProgress = ({
|
|
|
26771
26996
|
)
|
|
26772
26997
|
}
|
|
26773
26998
|
),
|
|
26774
|
-
/* @__PURE__ */
|
|
26999
|
+
/* @__PURE__ */ jsx151(
|
|
26775
27000
|
MuiCircularProgress,
|
|
26776
27001
|
{
|
|
26777
27002
|
variant,
|
|
@@ -26800,7 +27025,7 @@ var CircularProgress = ({
|
|
|
26800
27025
|
thickness
|
|
26801
27026
|
}
|
|
26802
27027
|
),
|
|
26803
|
-
variant !== "indeterminate" && /* @__PURE__ */
|
|
27028
|
+
variant !== "indeterminate" && /* @__PURE__ */ jsx151(
|
|
26804
27029
|
Box4,
|
|
26805
27030
|
{
|
|
26806
27031
|
sx: {
|
|
@@ -26815,7 +27040,7 @@ var CircularProgress = ({
|
|
|
26815
27040
|
height: circularSizesPxMap[size],
|
|
26816
27041
|
width: circularSizesPxMap[size]
|
|
26817
27042
|
},
|
|
26818
|
-
children: typeof label === "string" ? /* @__PURE__ */
|
|
27043
|
+
children: typeof label === "string" ? /* @__PURE__ */ jsx151(
|
|
26819
27044
|
Typography3,
|
|
26820
27045
|
{
|
|
26821
27046
|
variant: typographyVariant,
|
|
@@ -26835,7 +27060,7 @@ var CircularProgress_default = CircularProgress;
|
|
|
26835
27060
|
// src/components/progress/DonutProgress.tsx
|
|
26836
27061
|
import Box5 from "@mui/material/Box";
|
|
26837
27062
|
import { Stack as Stack13 } from "@mui/material";
|
|
26838
|
-
import { jsx as
|
|
27063
|
+
import { jsx as jsx152, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
26839
27064
|
var CIRCULAR_PROGRESS_PERCENTAGE = 85;
|
|
26840
27065
|
var variants2 = {
|
|
26841
27066
|
empty: {
|
|
@@ -26874,9 +27099,9 @@ var DonutProgress = ({
|
|
|
26874
27099
|
labelChip,
|
|
26875
27100
|
showPercentageSymbol
|
|
26876
27101
|
}) => {
|
|
26877
|
-
const getPercentageWithSymbol = () => /* @__PURE__ */
|
|
26878
|
-
/* @__PURE__ */
|
|
26879
|
-
/* @__PURE__ */
|
|
27102
|
+
const getPercentageWithSymbol = () => /* @__PURE__ */ jsxs79(Stack13, { direction: "row", alignItems: "center", position: "relative", children: [
|
|
27103
|
+
/* @__PURE__ */ jsx152(Typography_default, { variant: "h6", component: "div", color: grey800, children: label }),
|
|
27104
|
+
/* @__PURE__ */ jsx152(
|
|
26880
27105
|
Typography_default,
|
|
26881
27106
|
{
|
|
26882
27107
|
variant: "tooltip",
|
|
@@ -26887,7 +27112,7 @@ var DonutProgress = ({
|
|
|
26887
27112
|
}
|
|
26888
27113
|
)
|
|
26889
27114
|
] });
|
|
26890
|
-
return /* @__PURE__ */
|
|
27115
|
+
return /* @__PURE__ */ jsxs79(
|
|
26891
27116
|
Box5,
|
|
26892
27117
|
{
|
|
26893
27118
|
sx: {
|
|
@@ -26895,7 +27120,7 @@ var DonutProgress = ({
|
|
|
26895
27120
|
width: "fit-content"
|
|
26896
27121
|
},
|
|
26897
27122
|
children: [
|
|
26898
|
-
/* @__PURE__ */
|
|
27123
|
+
/* @__PURE__ */ jsx152(
|
|
26899
27124
|
CircularProgress_default,
|
|
26900
27125
|
{
|
|
26901
27126
|
variant: "determinate",
|
|
@@ -26911,7 +27136,7 @@ var DonutProgress = ({
|
|
|
26911
27136
|
color: variants2[variant].emptyColor
|
|
26912
27137
|
}
|
|
26913
27138
|
),
|
|
26914
|
-
/* @__PURE__ */
|
|
27139
|
+
/* @__PURE__ */ jsx152(
|
|
26915
27140
|
Box5,
|
|
26916
27141
|
{
|
|
26917
27142
|
sx: {
|
|
@@ -26919,7 +27144,7 @@ var DonutProgress = ({
|
|
|
26919
27144
|
top: 0,
|
|
26920
27145
|
left: 0
|
|
26921
27146
|
},
|
|
26922
|
-
children: /* @__PURE__ */
|
|
27147
|
+
children: /* @__PURE__ */ jsx152(
|
|
26923
27148
|
CircularProgress_default,
|
|
26924
27149
|
{
|
|
26925
27150
|
variant: "determinate",
|
|
@@ -26934,7 +27159,7 @@ var DonutProgress = ({
|
|
|
26934
27159
|
)
|
|
26935
27160
|
}
|
|
26936
27161
|
),
|
|
26937
|
-
variant !== "empty" && labelChip && /* @__PURE__ */
|
|
27162
|
+
variant !== "empty" && labelChip && /* @__PURE__ */ jsx152(
|
|
26938
27163
|
Box5,
|
|
26939
27164
|
{
|
|
26940
27165
|
sx: {
|
|
@@ -26951,7 +27176,7 @@ var DonutProgress = ({
|
|
|
26951
27176
|
justifyContent: "center",
|
|
26952
27177
|
boxSizing: "border-box"
|
|
26953
27178
|
},
|
|
26954
|
-
children: /* @__PURE__ */
|
|
27179
|
+
children: /* @__PURE__ */ jsx152(
|
|
26955
27180
|
Typography_default,
|
|
26956
27181
|
{
|
|
26957
27182
|
variant: "tooltip",
|
|
@@ -26968,14 +27193,14 @@ var DonutProgress = ({
|
|
|
26968
27193
|
var DonutProgress_default = DonutProgress;
|
|
26969
27194
|
|
|
26970
27195
|
// src/components/loader/Loader.tsx
|
|
26971
|
-
import { jsx as
|
|
27196
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
26972
27197
|
var Loader = ({
|
|
26973
27198
|
isVisible,
|
|
26974
27199
|
zIndex = 1e4,
|
|
26975
27200
|
size,
|
|
26976
27201
|
hideProgress = false,
|
|
26977
27202
|
sx
|
|
26978
|
-
}) => /* @__PURE__ */
|
|
27203
|
+
}) => /* @__PURE__ */ jsx153(Fade, { in: isVisible, children: /* @__PURE__ */ jsx153(
|
|
26979
27204
|
Box_default2,
|
|
26980
27205
|
{
|
|
26981
27206
|
sx: {
|
|
@@ -26991,29 +27216,29 @@ var Loader = ({
|
|
|
26991
27216
|
backgroundColor: whiteOpacity32,
|
|
26992
27217
|
...sx
|
|
26993
27218
|
},
|
|
26994
|
-
children: !hideProgress && /* @__PURE__ */
|
|
27219
|
+
children: !hideProgress && /* @__PURE__ */ jsx153(CircularProgress_default, { size })
|
|
26995
27220
|
}
|
|
26996
27221
|
) });
|
|
26997
27222
|
var Loader_default = Loader;
|
|
26998
27223
|
|
|
26999
27224
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
27000
|
-
import
|
|
27225
|
+
import React89 from "react";
|
|
27001
27226
|
import Markdown from "markdown-to-jsx";
|
|
27002
27227
|
import { styled as styled8 } from "@mui/material/styles";
|
|
27003
27228
|
import "katex/dist/katex.min.css";
|
|
27004
27229
|
|
|
27005
27230
|
// src/components/markdown/KatexRenderer.tsx
|
|
27006
27231
|
import katex from "katex";
|
|
27007
|
-
import { jsx as
|
|
27232
|
+
import { jsx as jsx154, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
27008
27233
|
var KatexRenderer = ({ children, block }) => {
|
|
27009
27234
|
try {
|
|
27010
27235
|
const html2 = katex.renderToString(children, {
|
|
27011
27236
|
throwOnError: false,
|
|
27012
27237
|
displayMode: block
|
|
27013
27238
|
});
|
|
27014
|
-
return /* @__PURE__ */
|
|
27239
|
+
return /* @__PURE__ */ jsx154("span", { dangerouslySetInnerHTML: { __html: html2 } });
|
|
27015
27240
|
} catch (err) {
|
|
27016
|
-
return /* @__PURE__ */
|
|
27241
|
+
return /* @__PURE__ */ jsxs80("pre", { style: { color: "red" }, children: [
|
|
27017
27242
|
"KaTeX error: $",
|
|
27018
27243
|
err.message
|
|
27019
27244
|
] });
|
|
@@ -27022,7 +27247,7 @@ var KatexRenderer = ({ children, block }) => {
|
|
|
27022
27247
|
var KatexRenderer_default = KatexRenderer;
|
|
27023
27248
|
|
|
27024
27249
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
27025
|
-
import { jsx as
|
|
27250
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
27026
27251
|
var MarkdownContainer = styled8("div")(
|
|
27027
27252
|
({
|
|
27028
27253
|
color: color2,
|
|
@@ -27126,11 +27351,11 @@ var renderWithMath = (text) => {
|
|
|
27126
27351
|
const inline = match[2];
|
|
27127
27352
|
if (block !== void 0) {
|
|
27128
27353
|
parts.push(
|
|
27129
|
-
/* @__PURE__ */
|
|
27354
|
+
/* @__PURE__ */ jsx155(KatexRenderer_default, { block: true, children: block.trim() }, start)
|
|
27130
27355
|
);
|
|
27131
27356
|
} else if (inline !== void 0) {
|
|
27132
27357
|
parts.push(
|
|
27133
|
-
/* @__PURE__ */
|
|
27358
|
+
/* @__PURE__ */ jsx155(KatexRenderer_default, { children: inline.trim() }, start)
|
|
27134
27359
|
);
|
|
27135
27360
|
}
|
|
27136
27361
|
lastIndex = regex.lastIndex;
|
|
@@ -27140,13 +27365,13 @@ var renderWithMath = (text) => {
|
|
|
27140
27365
|
}
|
|
27141
27366
|
return parts;
|
|
27142
27367
|
};
|
|
27143
|
-
var renderChildrenWithMath = (children) =>
|
|
27368
|
+
var renderChildrenWithMath = (children) => React89.Children.map(children, (child) => {
|
|
27144
27369
|
if (typeof child === "string") {
|
|
27145
27370
|
return renderWithMath(child);
|
|
27146
27371
|
}
|
|
27147
|
-
if (
|
|
27372
|
+
if (React89.isValidElement(child)) {
|
|
27148
27373
|
const element = child;
|
|
27149
|
-
return
|
|
27374
|
+
return React89.cloneElement(element, {
|
|
27150
27375
|
...element.props,
|
|
27151
27376
|
children: renderChildrenWithMath(element.props.children)
|
|
27152
27377
|
});
|
|
@@ -27161,11 +27386,11 @@ var CodeOrMath = ({ children, ...props }) => {
|
|
|
27161
27386
|
if (m) {
|
|
27162
27387
|
const expr = m[1] || m[2] || "";
|
|
27163
27388
|
const isBlock = Boolean(m[1]);
|
|
27164
|
-
return /* @__PURE__ */
|
|
27389
|
+
return /* @__PURE__ */ jsx155(KatexRenderer_default, { block: isBlock, children: expr.trim() });
|
|
27165
27390
|
}
|
|
27166
27391
|
const maybe = renderWithMath(s);
|
|
27167
27392
|
const onlyText = maybe.length === 1 && typeof maybe[0] === "string";
|
|
27168
|
-
return onlyText ? /* @__PURE__ */
|
|
27393
|
+
return onlyText ? /* @__PURE__ */ jsx155("code", { ...props, children }) : /* @__PURE__ */ jsx155("span", { children: maybe });
|
|
27169
27394
|
};
|
|
27170
27395
|
var escapeInlineUnderscores = (s) => s.replace(/(\S)_(\S)/g, "$1\\_$2");
|
|
27171
27396
|
var MarkdownRenderer = ({
|
|
@@ -27175,19 +27400,19 @@ var MarkdownRenderer = ({
|
|
|
27175
27400
|
}) => {
|
|
27176
27401
|
const protectedText = escapeInlineUnderscores(text || "");
|
|
27177
27402
|
const normalized = normalizeLatexDelimiters(protectedText);
|
|
27178
|
-
return /* @__PURE__ */
|
|
27403
|
+
return /* @__PURE__ */ jsx155(
|
|
27179
27404
|
MarkdownContainer,
|
|
27180
27405
|
{
|
|
27181
27406
|
className: `markdown-container ${className || ""}`,
|
|
27182
27407
|
...rest,
|
|
27183
|
-
children: /* @__PURE__ */
|
|
27408
|
+
children: /* @__PURE__ */ jsx155(
|
|
27184
27409
|
Markdown,
|
|
27185
27410
|
{
|
|
27186
27411
|
options: {
|
|
27187
27412
|
forceBlock: true,
|
|
27188
27413
|
overrides: {
|
|
27189
27414
|
p: {
|
|
27190
|
-
component: ({ children, ...props }) => /* @__PURE__ */
|
|
27415
|
+
component: ({ children, ...props }) => /* @__PURE__ */ jsx155("p", { ...props, children: renderChildrenWithMath(children) })
|
|
27191
27416
|
},
|
|
27192
27417
|
code: { component: CodeOrMath }
|
|
27193
27418
|
}
|
|
@@ -27202,7 +27427,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
27202
27427
|
|
|
27203
27428
|
// src/components/navbar/Navbar.tsx
|
|
27204
27429
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
27205
|
-
import { Fragment as Fragment42, jsx as
|
|
27430
|
+
import { Fragment as Fragment42, jsx as jsx156, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
27206
27431
|
var Navbar = ({
|
|
27207
27432
|
topContent,
|
|
27208
27433
|
bottomContent,
|
|
@@ -27210,8 +27435,8 @@ var Navbar = ({
|
|
|
27210
27435
|
drawerBottomContent,
|
|
27211
27436
|
onClose,
|
|
27212
27437
|
isDrawerOpen = false
|
|
27213
|
-
}) => /* @__PURE__ */
|
|
27214
|
-
/* @__PURE__ */
|
|
27438
|
+
}) => /* @__PURE__ */ jsxs81(Fragment42, { children: [
|
|
27439
|
+
/* @__PURE__ */ jsxs81(
|
|
27215
27440
|
Box_default2,
|
|
27216
27441
|
{
|
|
27217
27442
|
sx: {
|
|
@@ -27226,12 +27451,12 @@ var Navbar = ({
|
|
|
27226
27451
|
},
|
|
27227
27452
|
className: "Slim-Vertical-Scroll",
|
|
27228
27453
|
children: [
|
|
27229
|
-
/* @__PURE__ */
|
|
27230
|
-
/* @__PURE__ */
|
|
27454
|
+
/* @__PURE__ */ jsx156(Box_default2, { children: topContent }),
|
|
27455
|
+
/* @__PURE__ */ jsx156(Box_default2, { children: bottomContent })
|
|
27231
27456
|
]
|
|
27232
27457
|
}
|
|
27233
27458
|
),
|
|
27234
|
-
/* @__PURE__ */
|
|
27459
|
+
/* @__PURE__ */ jsxs81(
|
|
27235
27460
|
Drawer2,
|
|
27236
27461
|
{
|
|
27237
27462
|
open: isDrawerOpen,
|
|
@@ -27254,8 +27479,8 @@ var Navbar = ({
|
|
|
27254
27479
|
},
|
|
27255
27480
|
onClose,
|
|
27256
27481
|
children: [
|
|
27257
|
-
/* @__PURE__ */
|
|
27258
|
-
/* @__PURE__ */
|
|
27482
|
+
/* @__PURE__ */ jsx156("div", { children: drawerTopContent }),
|
|
27483
|
+
/* @__PURE__ */ jsx156("div", { children: drawerBottomContent })
|
|
27259
27484
|
]
|
|
27260
27485
|
}
|
|
27261
27486
|
)
|
|
@@ -27263,10 +27488,10 @@ var Navbar = ({
|
|
|
27263
27488
|
var Navbar_default = Navbar;
|
|
27264
27489
|
|
|
27265
27490
|
// src/components/navbar/NavbarButton.tsx
|
|
27266
|
-
import * as
|
|
27491
|
+
import * as React90 from "react";
|
|
27267
27492
|
import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
|
|
27268
|
-
import { jsx as
|
|
27269
|
-
var NavbarButton =
|
|
27493
|
+
import { jsx as jsx157, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
27494
|
+
var NavbarButton = React90.forwardRef(
|
|
27270
27495
|
function NavbarButton2({
|
|
27271
27496
|
iconId,
|
|
27272
27497
|
srcUrl,
|
|
@@ -27281,7 +27506,7 @@ var NavbarButton = React89.forwardRef(
|
|
|
27281
27506
|
if (!highlighted) {
|
|
27282
27507
|
return element;
|
|
27283
27508
|
}
|
|
27284
|
-
return /* @__PURE__ */
|
|
27509
|
+
return /* @__PURE__ */ jsxs82(
|
|
27285
27510
|
Box6,
|
|
27286
27511
|
{
|
|
27287
27512
|
sx: {
|
|
@@ -27291,7 +27516,7 @@ var NavbarButton = React89.forwardRef(
|
|
|
27291
27516
|
position: "relative"
|
|
27292
27517
|
},
|
|
27293
27518
|
children: [
|
|
27294
|
-
/* @__PURE__ */
|
|
27519
|
+
/* @__PURE__ */ jsx157(
|
|
27295
27520
|
Box6,
|
|
27296
27521
|
{
|
|
27297
27522
|
sx: {
|
|
@@ -27307,7 +27532,7 @@ var NavbarButton = React89.forwardRef(
|
|
|
27307
27532
|
}
|
|
27308
27533
|
}
|
|
27309
27534
|
),
|
|
27310
|
-
/* @__PURE__ */
|
|
27535
|
+
/* @__PURE__ */ jsx157(
|
|
27311
27536
|
Box6,
|
|
27312
27537
|
{
|
|
27313
27538
|
sx: {
|
|
@@ -27322,7 +27547,7 @@ var NavbarButton = React89.forwardRef(
|
|
|
27322
27547
|
}
|
|
27323
27548
|
);
|
|
27324
27549
|
};
|
|
27325
|
-
return /* @__PURE__ */
|
|
27550
|
+
return /* @__PURE__ */ jsxs82(
|
|
27326
27551
|
ButtonBase2,
|
|
27327
27552
|
{
|
|
27328
27553
|
className: "NavbarButton-root",
|
|
@@ -27340,7 +27565,7 @@ var NavbarButton = React89.forwardRef(
|
|
|
27340
27565
|
},
|
|
27341
27566
|
children: [
|
|
27342
27567
|
srcUrl ? getButtonContent(
|
|
27343
|
-
/* @__PURE__ */
|
|
27568
|
+
/* @__PURE__ */ jsx157(
|
|
27344
27569
|
Avatar_default,
|
|
27345
27570
|
{
|
|
27346
27571
|
className: "NavbarButton-icon",
|
|
@@ -27350,7 +27575,7 @@ var NavbarButton = React89.forwardRef(
|
|
|
27350
27575
|
}
|
|
27351
27576
|
)
|
|
27352
27577
|
) : getButtonContent(
|
|
27353
|
-
/* @__PURE__ */
|
|
27578
|
+
/* @__PURE__ */ jsx157(
|
|
27354
27579
|
Icon_default,
|
|
27355
27580
|
{
|
|
27356
27581
|
id: iconId,
|
|
@@ -27366,7 +27591,7 @@ var NavbarButton = React89.forwardRef(
|
|
|
27366
27591
|
}
|
|
27367
27592
|
)
|
|
27368
27593
|
),
|
|
27369
|
-
badgeIconProps && /* @__PURE__ */
|
|
27594
|
+
badgeIconProps && /* @__PURE__ */ jsx157(
|
|
27370
27595
|
Icon_default,
|
|
27371
27596
|
{
|
|
27372
27597
|
...badgeIconProps,
|
|
@@ -27388,8 +27613,8 @@ var NavbarButton = React89.forwardRef(
|
|
|
27388
27613
|
var NavbarButton_default = NavbarButton;
|
|
27389
27614
|
|
|
27390
27615
|
// src/components/navbar/NavbarHeader.tsx
|
|
27391
|
-
import { jsx as
|
|
27392
|
-
var NavbarHeader = ({ text }) => /* @__PURE__ */
|
|
27616
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
27617
|
+
var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx158(
|
|
27393
27618
|
Typography_default,
|
|
27394
27619
|
{
|
|
27395
27620
|
sx: {
|
|
@@ -27409,12 +27634,12 @@ var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx157(
|
|
|
27409
27634
|
var NavbarHeader_default = NavbarHeader;
|
|
27410
27635
|
|
|
27411
27636
|
// src/components/navbar/NavbarLogo.tsx
|
|
27412
|
-
import * as
|
|
27637
|
+
import * as React91 from "react";
|
|
27413
27638
|
import { ButtonBase as ButtonBase3 } from "@mui/material";
|
|
27414
|
-
import { jsx as
|
|
27415
|
-
var NavbarLogo =
|
|
27639
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
27640
|
+
var NavbarLogo = React91.forwardRef(
|
|
27416
27641
|
function NavbarButton3({ src, ...rest }, ref) {
|
|
27417
|
-
return /* @__PURE__ */
|
|
27642
|
+
return /* @__PURE__ */ jsx159(
|
|
27418
27643
|
ButtonBase3,
|
|
27419
27644
|
{
|
|
27420
27645
|
ref,
|
|
@@ -27425,7 +27650,7 @@ var NavbarLogo = React90.forwardRef(
|
|
|
27425
27650
|
borderBottom: `1px solid ${grey200}`,
|
|
27426
27651
|
boxSizing: "border-box"
|
|
27427
27652
|
},
|
|
27428
|
-
children: /* @__PURE__ */
|
|
27653
|
+
children: /* @__PURE__ */ jsx159("img", { src, width: "32px", height: "32px" })
|
|
27429
27654
|
}
|
|
27430
27655
|
);
|
|
27431
27656
|
}
|
|
@@ -27433,8 +27658,8 @@ var NavbarLogo = React90.forwardRef(
|
|
|
27433
27658
|
var NavbarLogo_default = NavbarLogo;
|
|
27434
27659
|
|
|
27435
27660
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
27436
|
-
import * as
|
|
27437
|
-
import { Fragment as Fragment43, jsx as
|
|
27661
|
+
import * as React92 from "react";
|
|
27662
|
+
import { Fragment as Fragment43, jsx as jsx160, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
27438
27663
|
var DonutFocusOverlay = ({
|
|
27439
27664
|
isVisible,
|
|
27440
27665
|
elementRef,
|
|
@@ -27443,8 +27668,8 @@ var DonutFocusOverlay = ({
|
|
|
27443
27668
|
chipLabel,
|
|
27444
27669
|
chipPosition = "right"
|
|
27445
27670
|
}) => {
|
|
27446
|
-
const [clientRect, setClientRect] =
|
|
27447
|
-
|
|
27671
|
+
const [clientRect, setClientRect] = React92.useState();
|
|
27672
|
+
React92.useEffect(() => {
|
|
27448
27673
|
if (!elementRef?.current) {
|
|
27449
27674
|
setClientRect(void 0);
|
|
27450
27675
|
return;
|
|
@@ -27475,8 +27700,8 @@ var DonutFocusOverlay = ({
|
|
|
27475
27700
|
const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
|
|
27476
27701
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
27477
27702
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
27478
|
-
return /* @__PURE__ */
|
|
27479
|
-
/* @__PURE__ */
|
|
27703
|
+
return /* @__PURE__ */ jsxs83(Fragment43, { children: [
|
|
27704
|
+
/* @__PURE__ */ jsx160(
|
|
27480
27705
|
Box_default2,
|
|
27481
27706
|
{
|
|
27482
27707
|
sx: {
|
|
@@ -27493,7 +27718,7 @@ var DonutFocusOverlay = ({
|
|
|
27493
27718
|
}
|
|
27494
27719
|
}
|
|
27495
27720
|
),
|
|
27496
|
-
chipLabel && /* @__PURE__ */
|
|
27721
|
+
chipLabel && /* @__PURE__ */ jsx160(
|
|
27497
27722
|
Chip_default,
|
|
27498
27723
|
{
|
|
27499
27724
|
label: chipLabel,
|
|
@@ -27520,7 +27745,7 @@ var DonutFocusOverlay = ({
|
|
|
27520
27745
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
27521
27746
|
|
|
27522
27747
|
// src/components/pager/Pager.tsx
|
|
27523
|
-
import { Fragment as Fragment44, jsx as
|
|
27748
|
+
import { Fragment as Fragment44, jsx as jsx161, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
27524
27749
|
var Pager = ({
|
|
27525
27750
|
page,
|
|
27526
27751
|
pageSize,
|
|
@@ -27534,10 +27759,10 @@ var Pager = ({
|
|
|
27534
27759
|
const to = Math.min(current + pageSize, total);
|
|
27535
27760
|
const pages = Math.max(Math.ceil(total / pageSize), 1);
|
|
27536
27761
|
const options = [...Array(pages).keys()].map((i) => ({ value: i + 1 }));
|
|
27537
|
-
const Label = ({ children }) => /* @__PURE__ */
|
|
27538
|
-
return /* @__PURE__ */
|
|
27539
|
-
/* @__PURE__ */
|
|
27540
|
-
/* @__PURE__ */
|
|
27762
|
+
const Label = ({ children }) => /* @__PURE__ */ jsx161(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
|
|
27763
|
+
return /* @__PURE__ */ jsxs84(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
|
|
27764
|
+
/* @__PURE__ */ jsx161(Label, { children: t("PAGER.PAGE") }),
|
|
27765
|
+
/* @__PURE__ */ jsx161(
|
|
27541
27766
|
Select_default,
|
|
27542
27767
|
{
|
|
27543
27768
|
value: page,
|
|
@@ -27546,9 +27771,9 @@ var Pager = ({
|
|
|
27546
27771
|
sx: { minWidth: 78 }
|
|
27547
27772
|
}
|
|
27548
27773
|
),
|
|
27549
|
-
allowedPageSizes && /* @__PURE__ */
|
|
27550
|
-
/* @__PURE__ */
|
|
27551
|
-
/* @__PURE__ */
|
|
27774
|
+
allowedPageSizes && /* @__PURE__ */ jsxs84(Fragment44, { children: [
|
|
27775
|
+
/* @__PURE__ */ jsx161(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
27776
|
+
/* @__PURE__ */ jsx161(
|
|
27552
27777
|
Select_default,
|
|
27553
27778
|
{
|
|
27554
27779
|
value: pageSize,
|
|
@@ -27562,7 +27787,7 @@ var Pager = ({
|
|
|
27562
27787
|
}
|
|
27563
27788
|
)
|
|
27564
27789
|
] }),
|
|
27565
|
-
/* @__PURE__ */
|
|
27790
|
+
/* @__PURE__ */ jsxs84(Label, { children: [
|
|
27566
27791
|
from,
|
|
27567
27792
|
" - ",
|
|
27568
27793
|
to,
|
|
@@ -27571,7 +27796,7 @@ var Pager = ({
|
|
|
27571
27796
|
" ",
|
|
27572
27797
|
total
|
|
27573
27798
|
] }),
|
|
27574
|
-
/* @__PURE__ */
|
|
27799
|
+
/* @__PURE__ */ jsx161(
|
|
27575
27800
|
IconButton_default,
|
|
27576
27801
|
{
|
|
27577
27802
|
disabled: page <= 1,
|
|
@@ -27579,7 +27804,7 @@ var Pager = ({
|
|
|
27579
27804
|
onClick: () => onPageChange(page - 1, pageSize)
|
|
27580
27805
|
}
|
|
27581
27806
|
),
|
|
27582
|
-
/* @__PURE__ */
|
|
27807
|
+
/* @__PURE__ */ jsx161(
|
|
27583
27808
|
IconButton_default,
|
|
27584
27809
|
{
|
|
27585
27810
|
disabled: page > total / pageSize,
|
|
@@ -27593,17 +27818,17 @@ var Pager_default = Pager;
|
|
|
27593
27818
|
|
|
27594
27819
|
// src/components/scrollable/HorizontalScrollable.tsx
|
|
27595
27820
|
import { ButtonBase as ButtonBase4 } from "@mui/material";
|
|
27596
|
-
import * as
|
|
27597
|
-
import { jsx as
|
|
27821
|
+
import * as React93 from "react";
|
|
27822
|
+
import { jsx as jsx162, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
27598
27823
|
var HorizontalScrollable = ({
|
|
27599
27824
|
style: style3,
|
|
27600
27825
|
children,
|
|
27601
27826
|
stepDistance = 200
|
|
27602
27827
|
}) => {
|
|
27603
|
-
const horizontalContainerRef =
|
|
27604
|
-
const [isLeftArrowHidden, setLeftArrowHidden] =
|
|
27605
|
-
const [isRightArrowHidden, setRightArrowHidden] =
|
|
27606
|
-
|
|
27828
|
+
const horizontalContainerRef = React93.useRef(null);
|
|
27829
|
+
const [isLeftArrowHidden, setLeftArrowHidden] = React93.useState(true);
|
|
27830
|
+
const [isRightArrowHidden, setRightArrowHidden] = React93.useState(true);
|
|
27831
|
+
React93.useEffect(() => {
|
|
27607
27832
|
if (!horizontalContainerRef.current) {
|
|
27608
27833
|
return;
|
|
27609
27834
|
}
|
|
@@ -27643,8 +27868,8 @@ var HorizontalScrollable = ({
|
|
|
27643
27868
|
);
|
|
27644
27869
|
current.scrollBy(stepDistance, 0);
|
|
27645
27870
|
};
|
|
27646
|
-
return /* @__PURE__ */
|
|
27647
|
-
/* @__PURE__ */
|
|
27871
|
+
return /* @__PURE__ */ jsxs85(Box_default2, { sx: { position: "relative", ...style3 }, children: [
|
|
27872
|
+
/* @__PURE__ */ jsx162(
|
|
27648
27873
|
ButtonBase4,
|
|
27649
27874
|
{
|
|
27650
27875
|
sx: {
|
|
@@ -27661,10 +27886,10 @@ var HorizontalScrollable = ({
|
|
|
27661
27886
|
...isLeftArrowHidden && { display: "none" }
|
|
27662
27887
|
},
|
|
27663
27888
|
onClick: () => leftScroll(),
|
|
27664
|
-
children: /* @__PURE__ */
|
|
27889
|
+
children: /* @__PURE__ */ jsx162(Icon_default, { id: "chevron-left" })
|
|
27665
27890
|
}
|
|
27666
27891
|
),
|
|
27667
|
-
/* @__PURE__ */
|
|
27892
|
+
/* @__PURE__ */ jsx162(
|
|
27668
27893
|
Box_default2,
|
|
27669
27894
|
{
|
|
27670
27895
|
ref: horizontalContainerRef,
|
|
@@ -27683,7 +27908,7 @@ var HorizontalScrollable = ({
|
|
|
27683
27908
|
children
|
|
27684
27909
|
}
|
|
27685
27910
|
),
|
|
27686
|
-
/* @__PURE__ */
|
|
27911
|
+
/* @__PURE__ */ jsx162(
|
|
27687
27912
|
ButtonBase4,
|
|
27688
27913
|
{
|
|
27689
27914
|
sx: {
|
|
@@ -27700,7 +27925,7 @@ var HorizontalScrollable = ({
|
|
|
27700
27925
|
...isRightArrowHidden && { display: "none" }
|
|
27701
27926
|
},
|
|
27702
27927
|
onClick: () => rightScroll(),
|
|
27703
|
-
children: /* @__PURE__ */
|
|
27928
|
+
children: /* @__PURE__ */ jsx162(Icon_default, { id: "chevron-right" })
|
|
27704
27929
|
}
|
|
27705
27930
|
)
|
|
27706
27931
|
] });
|
|
@@ -27708,8 +27933,8 @@ var HorizontalScrollable = ({
|
|
|
27708
27933
|
var HorizontalScrollable_default = HorizontalScrollable;
|
|
27709
27934
|
|
|
27710
27935
|
// src/components/scrollable/Carousel.tsx
|
|
27711
|
-
import * as
|
|
27712
|
-
import { jsx as
|
|
27936
|
+
import * as React94 from "react";
|
|
27937
|
+
import { jsx as jsx163, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
27713
27938
|
var buttonStyles = {
|
|
27714
27939
|
color: grey800,
|
|
27715
27940
|
position: "absolute",
|
|
@@ -27728,23 +27953,23 @@ function Carousel({
|
|
|
27728
27953
|
padding: padding2 = 8,
|
|
27729
27954
|
alignment = "left"
|
|
27730
27955
|
}) {
|
|
27731
|
-
const rootRef =
|
|
27732
|
-
const containerRef =
|
|
27733
|
-
const previousClientWidth =
|
|
27734
|
-
const isScrolling =
|
|
27735
|
-
const [isLeftArrowHidden, setLeftArrowHidden] =
|
|
27736
|
-
const [isRightArrowHidden, setRightArrowHidden] =
|
|
27737
|
-
const [paddingElement, setPaddingElement] =
|
|
27738
|
-
const [visibleCount, setVisibleCount] =
|
|
27739
|
-
const showedElementsRef =
|
|
27740
|
-
const updateArrows =
|
|
27956
|
+
const rootRef = React94.useRef(null);
|
|
27957
|
+
const containerRef = React94.useRef(null);
|
|
27958
|
+
const previousClientWidth = React94.useRef(null);
|
|
27959
|
+
const isScrolling = React94.useRef(false);
|
|
27960
|
+
const [isLeftArrowHidden, setLeftArrowHidden] = React94.useState(true);
|
|
27961
|
+
const [isRightArrowHidden, setRightArrowHidden] = React94.useState(true);
|
|
27962
|
+
const [paddingElement, setPaddingElement] = React94.useState();
|
|
27963
|
+
const [visibleCount, setVisibleCount] = React94.useState();
|
|
27964
|
+
const showedElementsRef = React94.useRef(void 0);
|
|
27965
|
+
const updateArrows = React94.useCallback(() => {
|
|
27741
27966
|
if (!showedElementsRef.current) {
|
|
27742
27967
|
return;
|
|
27743
27968
|
}
|
|
27744
27969
|
setLeftArrowHidden(showedElementsRef.current.start === 0);
|
|
27745
27970
|
setRightArrowHidden(showedElementsRef.current.end === items.length - 1);
|
|
27746
27971
|
}, [items.length]);
|
|
27747
|
-
const getUsableWidth =
|
|
27972
|
+
const getUsableWidth = React94.useCallback(
|
|
27748
27973
|
(el) => {
|
|
27749
27974
|
let current = el;
|
|
27750
27975
|
while (current) {
|
|
@@ -27758,7 +27983,7 @@ function Carousel({
|
|
|
27758
27983
|
},
|
|
27759
27984
|
[]
|
|
27760
27985
|
);
|
|
27761
|
-
const resetCarousel =
|
|
27986
|
+
const resetCarousel = React94.useCallback(
|
|
27762
27987
|
(root, container) => {
|
|
27763
27988
|
root.style.width = "";
|
|
27764
27989
|
showedElementsRef.current = void 0;
|
|
@@ -27766,7 +27991,7 @@ function Carousel({
|
|
|
27766
27991
|
},
|
|
27767
27992
|
[]
|
|
27768
27993
|
);
|
|
27769
|
-
const setMeasures =
|
|
27994
|
+
const setMeasures = React94.useCallback(
|
|
27770
27995
|
(root, container, nextElementsIndex) => {
|
|
27771
27996
|
const children = Array.from(container.children);
|
|
27772
27997
|
if (children.length === 0) {
|
|
@@ -27795,7 +28020,7 @@ function Carousel({
|
|
|
27795
28020
|
},
|
|
27796
28021
|
[alignment, gap2, getUsableWidth, items.length, padding2]
|
|
27797
28022
|
);
|
|
27798
|
-
const updateVisibleCount =
|
|
28023
|
+
const updateVisibleCount = React94.useCallback(() => {
|
|
27799
28024
|
const root = rootRef.current;
|
|
27800
28025
|
const container = containerRef.current;
|
|
27801
28026
|
if (!container || !parent) {
|
|
@@ -27842,7 +28067,7 @@ function Carousel({
|
|
|
27842
28067
|
updateArrows,
|
|
27843
28068
|
resetCarousel
|
|
27844
28069
|
]);
|
|
27845
|
-
const getInitialWidth =
|
|
28070
|
+
const getInitialWidth = React94.useCallback(
|
|
27846
28071
|
(el) => {
|
|
27847
28072
|
let current = el;
|
|
27848
28073
|
let width2 = 0;
|
|
@@ -27860,7 +28085,7 @@ function Carousel({
|
|
|
27860
28085
|
},
|
|
27861
28086
|
[]
|
|
27862
28087
|
);
|
|
27863
|
-
const resizeObserverCallback =
|
|
28088
|
+
const resizeObserverCallback = React94.useCallback(() => {
|
|
27864
28089
|
if (!rootRef.current || !containerRef.current) {
|
|
27865
28090
|
return;
|
|
27866
28091
|
}
|
|
@@ -27871,7 +28096,7 @@ function Carousel({
|
|
|
27871
28096
|
previousClientWidth.current = newClientWidth;
|
|
27872
28097
|
updateVisibleCount();
|
|
27873
28098
|
}, [getInitialWidth, updateVisibleCount]);
|
|
27874
|
-
|
|
28099
|
+
React94.useEffect(() => {
|
|
27875
28100
|
const container = containerRef.current;
|
|
27876
28101
|
if (!container) {
|
|
27877
28102
|
return;
|
|
@@ -27961,7 +28186,7 @@ function Carousel({
|
|
|
27961
28186
|
}
|
|
27962
28187
|
scrollHorizontal(scrollData);
|
|
27963
28188
|
};
|
|
27964
|
-
return /* @__PURE__ */
|
|
28189
|
+
return /* @__PURE__ */ jsx163(Box_default2, { ref: rootRef, width: "100%", children: /* @__PURE__ */ jsxs86(
|
|
27965
28190
|
Box_default2,
|
|
27966
28191
|
{
|
|
27967
28192
|
sx: {
|
|
@@ -27973,7 +28198,7 @@ function Carousel({
|
|
|
27973
28198
|
}
|
|
27974
28199
|
},
|
|
27975
28200
|
children: [
|
|
27976
|
-
/* @__PURE__ */
|
|
28201
|
+
/* @__PURE__ */ jsx163(
|
|
27977
28202
|
IconButton_default,
|
|
27978
28203
|
{
|
|
27979
28204
|
iconId: "chevron-left",
|
|
@@ -27986,7 +28211,7 @@ function Carousel({
|
|
|
27986
28211
|
onClick: () => scrollToNext("left")
|
|
27987
28212
|
}
|
|
27988
28213
|
),
|
|
27989
|
-
/* @__PURE__ */
|
|
28214
|
+
/* @__PURE__ */ jsx163(
|
|
27990
28215
|
Box_default2,
|
|
27991
28216
|
{
|
|
27992
28217
|
ref: containerRef,
|
|
@@ -28000,7 +28225,7 @@ function Carousel({
|
|
|
28000
28225
|
"::-webkit-scrollbar": { display: "none" },
|
|
28001
28226
|
gap: `${gap2}px`
|
|
28002
28227
|
},
|
|
28003
|
-
children: items.map((item, index) => /* @__PURE__ */
|
|
28228
|
+
children: items.map((item, index) => /* @__PURE__ */ jsx163(
|
|
28004
28229
|
Box_default2,
|
|
28005
28230
|
{
|
|
28006
28231
|
sx: {
|
|
@@ -28012,7 +28237,7 @@ function Carousel({
|
|
|
28012
28237
|
))
|
|
28013
28238
|
}
|
|
28014
28239
|
),
|
|
28015
|
-
/* @__PURE__ */
|
|
28240
|
+
/* @__PURE__ */ jsx163(
|
|
28016
28241
|
IconButton_default,
|
|
28017
28242
|
{
|
|
28018
28243
|
iconId: "chevron-right",
|
|
@@ -28035,12 +28260,12 @@ var Carousel_default = Carousel;
|
|
|
28035
28260
|
import {
|
|
28036
28261
|
SnackbarProvider as NotistackSnackbarProvider
|
|
28037
28262
|
} from "notistack";
|
|
28038
|
-
import { jsx as
|
|
28263
|
+
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
28039
28264
|
var SnackbarProvider = ({
|
|
28040
28265
|
children,
|
|
28041
28266
|
maxSnack = 3,
|
|
28042
28267
|
domRoot
|
|
28043
|
-
}) => /* @__PURE__ */
|
|
28268
|
+
}) => /* @__PURE__ */ jsx164(
|
|
28044
28269
|
NotistackSnackbarProvider,
|
|
28045
28270
|
{
|
|
28046
28271
|
maxSnack,
|
|
@@ -28058,10 +28283,10 @@ import {
|
|
|
28058
28283
|
} from "notistack";
|
|
28059
28284
|
|
|
28060
28285
|
// src/components/snackbar/Snackbar.tsx
|
|
28061
|
-
import * as
|
|
28286
|
+
import * as React95 from "react";
|
|
28062
28287
|
import { SnackbarContent } from "notistack";
|
|
28063
28288
|
import { Typography as Typography4 } from "@mui/material";
|
|
28064
|
-
import { jsx as
|
|
28289
|
+
import { jsx as jsx165, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
28065
28290
|
var sizeStyles5 = {
|
|
28066
28291
|
M: {
|
|
28067
28292
|
width: "344px",
|
|
@@ -28086,7 +28311,7 @@ var iconColors = {
|
|
|
28086
28311
|
error: error300,
|
|
28087
28312
|
warning: complementary300
|
|
28088
28313
|
};
|
|
28089
|
-
var Snackbar =
|
|
28314
|
+
var Snackbar = React95.forwardRef(
|
|
28090
28315
|
function Snackbar2({
|
|
28091
28316
|
severity = "info",
|
|
28092
28317
|
message,
|
|
@@ -28098,13 +28323,13 @@ var Snackbar = React94.forwardRef(
|
|
|
28098
28323
|
identifierKey: key,
|
|
28099
28324
|
dataTestKey
|
|
28100
28325
|
}, ref) {
|
|
28101
|
-
const actionClickHandler =
|
|
28326
|
+
const actionClickHandler = React95.useCallback(() => {
|
|
28102
28327
|
onActionClick && onActionClick(key);
|
|
28103
28328
|
}, [onActionClick, key]);
|
|
28104
|
-
const closeClickHandler =
|
|
28329
|
+
const closeClickHandler = React95.useCallback(() => {
|
|
28105
28330
|
onCloseClick && onCloseClick(key);
|
|
28106
28331
|
}, [onCloseClick, key]);
|
|
28107
|
-
return /* @__PURE__ */
|
|
28332
|
+
return /* @__PURE__ */ jsx165(
|
|
28108
28333
|
SnackbarContent,
|
|
28109
28334
|
{
|
|
28110
28335
|
ref,
|
|
@@ -28122,14 +28347,14 @@ var Snackbar = React94.forwardRef(
|
|
|
28122
28347
|
...dataTestKey && {
|
|
28123
28348
|
"data-test": dataTestKey
|
|
28124
28349
|
},
|
|
28125
|
-
children: /* @__PURE__ */
|
|
28350
|
+
children: /* @__PURE__ */ jsxs87(
|
|
28126
28351
|
Stack_default,
|
|
28127
28352
|
{
|
|
28128
28353
|
direction: "row",
|
|
28129
28354
|
spacing: 2,
|
|
28130
28355
|
sx: { width: "100%", alignItems: "center" },
|
|
28131
28356
|
children: [
|
|
28132
|
-
withIcon && /* @__PURE__ */
|
|
28357
|
+
withIcon && /* @__PURE__ */ jsx165(
|
|
28133
28358
|
Box_default2,
|
|
28134
28359
|
{
|
|
28135
28360
|
sx: {
|
|
@@ -28137,10 +28362,10 @@ var Snackbar = React94.forwardRef(
|
|
|
28137
28362
|
flexShrink: 0,
|
|
28138
28363
|
color: iconColors[severity]
|
|
28139
28364
|
},
|
|
28140
|
-
children: /* @__PURE__ */
|
|
28365
|
+
children: /* @__PURE__ */ jsx165(Icon_default, { id: severityIcons[severity] })
|
|
28141
28366
|
}
|
|
28142
28367
|
),
|
|
28143
|
-
/* @__PURE__ */
|
|
28368
|
+
/* @__PURE__ */ jsx165(
|
|
28144
28369
|
Typography4,
|
|
28145
28370
|
{
|
|
28146
28371
|
variant: "body2",
|
|
@@ -28148,7 +28373,7 @@ var Snackbar = React94.forwardRef(
|
|
|
28148
28373
|
children: message
|
|
28149
28374
|
}
|
|
28150
28375
|
),
|
|
28151
|
-
actionText && /* @__PURE__ */
|
|
28376
|
+
actionText && /* @__PURE__ */ jsx165(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx165(
|
|
28152
28377
|
Button_default,
|
|
28153
28378
|
{
|
|
28154
28379
|
sx: {
|
|
@@ -28163,7 +28388,7 @@ var Snackbar = React94.forwardRef(
|
|
|
28163
28388
|
onClick: actionClickHandler
|
|
28164
28389
|
}
|
|
28165
28390
|
) }),
|
|
28166
|
-
/* @__PURE__ */
|
|
28391
|
+
/* @__PURE__ */ jsx165(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx165(
|
|
28167
28392
|
IconButton_default,
|
|
28168
28393
|
{
|
|
28169
28394
|
iconId: "close",
|
|
@@ -28188,7 +28413,7 @@ var Snackbar_default = Snackbar;
|
|
|
28188
28413
|
|
|
28189
28414
|
// src/components/snackbar/enqueueSnackbar.tsx
|
|
28190
28415
|
import { closeSnackbar as closeSnackbar2 } from "notistack";
|
|
28191
|
-
import { jsx as
|
|
28416
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
28192
28417
|
var enqueueSnackbar = (message, options = {}) => {
|
|
28193
28418
|
const {
|
|
28194
28419
|
persist,
|
|
@@ -28204,7 +28429,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
28204
28429
|
autoHideDuration: autoHideDurationMs ?? 1e4,
|
|
28205
28430
|
persist: persist ?? false,
|
|
28206
28431
|
content(key, message2) {
|
|
28207
|
-
return /* @__PURE__ */
|
|
28432
|
+
return /* @__PURE__ */ jsx166(
|
|
28208
28433
|
Snackbar_default,
|
|
28209
28434
|
{
|
|
28210
28435
|
identifierKey: key,
|
|
@@ -28221,7 +28446,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
28221
28446
|
|
|
28222
28447
|
// src/components/tab/TabButton.tsx
|
|
28223
28448
|
import MuiTab from "@mui/material/Tab";
|
|
28224
|
-
import { jsx as
|
|
28449
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
28225
28450
|
var TabButton = ({
|
|
28226
28451
|
children,
|
|
28227
28452
|
disabled = false,
|
|
@@ -28229,10 +28454,10 @@ var TabButton = ({
|
|
|
28229
28454
|
marginRight = "0px",
|
|
28230
28455
|
dataTestId,
|
|
28231
28456
|
...rest
|
|
28232
|
-
}) => /* @__PURE__ */
|
|
28457
|
+
}) => /* @__PURE__ */ jsx167(
|
|
28233
28458
|
MuiTab,
|
|
28234
28459
|
{
|
|
28235
|
-
label: /* @__PURE__ */
|
|
28460
|
+
label: /* @__PURE__ */ jsx167(
|
|
28236
28461
|
"div",
|
|
28237
28462
|
{
|
|
28238
28463
|
style: {
|
|
@@ -28267,13 +28492,13 @@ var TabButton = ({
|
|
|
28267
28492
|
var TabButton_default = TabButton;
|
|
28268
28493
|
|
|
28269
28494
|
// src/components/tab/Tabs.tsx
|
|
28270
|
-
import * as
|
|
28495
|
+
import * as React97 from "react";
|
|
28271
28496
|
import MuiTabs from "@mui/material/Tabs";
|
|
28272
28497
|
|
|
28273
28498
|
// src/components/layout/SwipeableViews.tsx
|
|
28274
|
-
import * as
|
|
28275
|
-
import { useEffect as
|
|
28276
|
-
import { jsx as
|
|
28499
|
+
import * as React96 from "react";
|
|
28500
|
+
import { useEffect as useEffect30, useRef as useRef33, useState as useState43 } from "react";
|
|
28501
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
28277
28502
|
var styles = {
|
|
28278
28503
|
container: {
|
|
28279
28504
|
maxHeight: "100%",
|
|
@@ -28309,9 +28534,9 @@ function SwipeableViews({
|
|
|
28309
28534
|
const containerRef = useRef33(null);
|
|
28310
28535
|
const scrollTimeout = useRef33(null);
|
|
28311
28536
|
const scrollingMethod = useRef33("none");
|
|
28312
|
-
const [previousIndex, setPreviousIndex] =
|
|
28537
|
+
const [previousIndex, setPreviousIndex] = useState43(index);
|
|
28313
28538
|
const hideScrollAnimation = useRef33(true);
|
|
28314
|
-
|
|
28539
|
+
useEffect30(() => {
|
|
28315
28540
|
if (containerRef.current) {
|
|
28316
28541
|
if (scrollingMethod.current === "manual") {
|
|
28317
28542
|
scrollingMethod.current = "none";
|
|
@@ -28348,7 +28573,7 @@ function SwipeableViews({
|
|
|
28348
28573
|
}
|
|
28349
28574
|
}, [index]);
|
|
28350
28575
|
const hasShowTab = (childIndex) => childIndex === index || childIndex === previousIndex;
|
|
28351
|
-
return /* @__PURE__ */
|
|
28576
|
+
return /* @__PURE__ */ jsx168(
|
|
28352
28577
|
"div",
|
|
28353
28578
|
{
|
|
28354
28579
|
...rootProps,
|
|
@@ -28371,12 +28596,12 @@ function SwipeableViews({
|
|
|
28371
28596
|
);
|
|
28372
28597
|
}, 100);
|
|
28373
28598
|
},
|
|
28374
|
-
children:
|
|
28599
|
+
children: React96.Children.map(children, (child, childIndex) => {
|
|
28375
28600
|
let mountedChild = false;
|
|
28376
|
-
if (
|
|
28601
|
+
if (React96.isValidElement(child)) {
|
|
28377
28602
|
mountedChild = !!child.props.keepMounted;
|
|
28378
28603
|
}
|
|
28379
|
-
return /* @__PURE__ */
|
|
28604
|
+
return /* @__PURE__ */ jsx168(
|
|
28380
28605
|
"div",
|
|
28381
28606
|
{
|
|
28382
28607
|
style: Object.assign(
|
|
@@ -28401,7 +28626,7 @@ function SwipeableViews({
|
|
|
28401
28626
|
}
|
|
28402
28627
|
|
|
28403
28628
|
// src/components/tab/Tabs.tsx
|
|
28404
|
-
import { jsx as
|
|
28629
|
+
import { jsx as jsx169, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
28405
28630
|
var Tabs = ({
|
|
28406
28631
|
tabButtons,
|
|
28407
28632
|
children,
|
|
@@ -28416,8 +28641,8 @@ var Tabs = ({
|
|
|
28416
28641
|
hideLineTabs = false,
|
|
28417
28642
|
backgroundScrollButtons = Colors_exports.white
|
|
28418
28643
|
}) => {
|
|
28419
|
-
const tabsRef =
|
|
28420
|
-
const [value, setValue] =
|
|
28644
|
+
const tabsRef = React97.useRef(null);
|
|
28645
|
+
const [value, setValue] = React97.useState(0);
|
|
28421
28646
|
const measureTextWidthRange = (child) => {
|
|
28422
28647
|
const walker = document.createTreeWalker(child, NodeFilter.SHOW_TEXT, {
|
|
28423
28648
|
acceptNode: (node) => node.textContent?.trim() ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT
|
|
@@ -28431,7 +28656,7 @@ var Tabs = ({
|
|
|
28431
28656
|
const rect = range.getBoundingClientRect();
|
|
28432
28657
|
return Math.round(rect.width);
|
|
28433
28658
|
};
|
|
28434
|
-
const waitForSmoothScrollEnd =
|
|
28659
|
+
const waitForSmoothScrollEnd = React97.useCallback(
|
|
28435
28660
|
(container, onEnd) => {
|
|
28436
28661
|
let prev = container.scrollLeft;
|
|
28437
28662
|
let idleFrames = 0;
|
|
@@ -28455,7 +28680,7 @@ var Tabs = ({
|
|
|
28455
28680
|
},
|
|
28456
28681
|
[]
|
|
28457
28682
|
);
|
|
28458
|
-
const calculateIndicatorTabWidth =
|
|
28683
|
+
const calculateIndicatorTabWidth = React97.useCallback((index) => {
|
|
28459
28684
|
if (!tabsRef.current) {
|
|
28460
28685
|
return null;
|
|
28461
28686
|
}
|
|
@@ -28474,7 +28699,7 @@ var Tabs = ({
|
|
|
28474
28699
|
indicator.style.width = `${textWidth}px`;
|
|
28475
28700
|
indicator.style.left = `${left}px`;
|
|
28476
28701
|
}, []);
|
|
28477
|
-
|
|
28702
|
+
React97.useEffect(() => {
|
|
28478
28703
|
if (!tabsRef.current) {
|
|
28479
28704
|
return;
|
|
28480
28705
|
}
|
|
@@ -28500,7 +28725,7 @@ var Tabs = ({
|
|
|
28500
28725
|
bottom: 0,
|
|
28501
28726
|
borderRadius: "8px"
|
|
28502
28727
|
};
|
|
28503
|
-
return /* @__PURE__ */
|
|
28728
|
+
return /* @__PURE__ */ jsxs88(
|
|
28504
28729
|
Box_default2,
|
|
28505
28730
|
{
|
|
28506
28731
|
sx: {
|
|
@@ -28514,7 +28739,7 @@ var Tabs = ({
|
|
|
28514
28739
|
}
|
|
28515
28740
|
},
|
|
28516
28741
|
children: [
|
|
28517
|
-
/* @__PURE__ */
|
|
28742
|
+
/* @__PURE__ */ jsx169(
|
|
28518
28743
|
MuiTabs,
|
|
28519
28744
|
{
|
|
28520
28745
|
ref: tabsRef,
|
|
@@ -28553,7 +28778,7 @@ var Tabs = ({
|
|
|
28553
28778
|
children: tabButtons
|
|
28554
28779
|
}
|
|
28555
28780
|
),
|
|
28556
|
-
/* @__PURE__ */
|
|
28781
|
+
/* @__PURE__ */ jsx169(
|
|
28557
28782
|
Box_default2,
|
|
28558
28783
|
{
|
|
28559
28784
|
sx: {
|
|
@@ -28562,7 +28787,7 @@ var Tabs = ({
|
|
|
28562
28787
|
height: "100%"
|
|
28563
28788
|
}
|
|
28564
28789
|
},
|
|
28565
|
-
children: /* @__PURE__ */
|
|
28790
|
+
children: /* @__PURE__ */ jsx169(
|
|
28566
28791
|
SwipeableViews,
|
|
28567
28792
|
{
|
|
28568
28793
|
index: currentTabIndex ?? value,
|
|
@@ -28591,8 +28816,8 @@ var Tabs = ({
|
|
|
28591
28816
|
var Tabs_default = Tabs;
|
|
28592
28817
|
|
|
28593
28818
|
// src/components/tab/TabContent.tsx
|
|
28594
|
-
import { jsx as
|
|
28595
|
-
var TabContent = ({ children }) => /* @__PURE__ */
|
|
28819
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
28820
|
+
var TabContent = ({ children }) => /* @__PURE__ */ jsx170(
|
|
28596
28821
|
Box_default2,
|
|
28597
28822
|
{
|
|
28598
28823
|
sx: {
|
|
@@ -28609,8 +28834,8 @@ import {
|
|
|
28609
28834
|
TableRow as MuiTableRow,
|
|
28610
28835
|
TableCell as MuiTableCell
|
|
28611
28836
|
} from "@mui/material";
|
|
28612
|
-
import { jsx as
|
|
28613
|
-
var TableDivider = () => /* @__PURE__ */
|
|
28837
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
28838
|
+
var TableDivider = () => /* @__PURE__ */ jsx171(MuiTableRow, { children: /* @__PURE__ */ jsx171(
|
|
28614
28839
|
MuiTableCell,
|
|
28615
28840
|
{
|
|
28616
28841
|
colSpan: 1e3,
|
|
@@ -28623,8 +28848,8 @@ var TableDivider_default = TableDivider;
|
|
|
28623
28848
|
import {
|
|
28624
28849
|
TableSortLabel as MuiTableSortLabel
|
|
28625
28850
|
} from "@mui/material";
|
|
28626
|
-
import { jsx as
|
|
28627
|
-
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */
|
|
28851
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
28852
|
+
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx172(MuiTableSortLabel, { ...rest, children });
|
|
28628
28853
|
var TableSortLabel_default = TableSortLabel;
|
|
28629
28854
|
|
|
28630
28855
|
// src/components/table/Table.tsx
|
|
@@ -28632,21 +28857,21 @@ import {
|
|
|
28632
28857
|
TableContainer,
|
|
28633
28858
|
Table as MuiTable
|
|
28634
28859
|
} from "@mui/material";
|
|
28635
|
-
import { jsx as
|
|
28636
|
-
var Table = ({ children, sx, className, containerSx }) => /* @__PURE__ */
|
|
28860
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
28861
|
+
var Table = ({ children, sx, className, containerSx }) => /* @__PURE__ */ jsx173(TableContainer, { className: "Slim-Horizontal-Scroll", sx: containerSx, children: /* @__PURE__ */ jsx173(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
|
|
28637
28862
|
var Table_default = Table;
|
|
28638
28863
|
|
|
28639
28864
|
// src/components/table/TableBody.tsx
|
|
28640
28865
|
import { TableBody as MuiTableBody } from "@mui/material";
|
|
28641
|
-
import { jsx as
|
|
28642
|
-
var TableBody = ({ children }) => /* @__PURE__ */
|
|
28866
|
+
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
28867
|
+
var TableBody = ({ children }) => /* @__PURE__ */ jsx174(MuiTableBody, { children });
|
|
28643
28868
|
var TableBody_default = TableBody;
|
|
28644
28869
|
|
|
28645
28870
|
// src/components/table/TableCell.tsx
|
|
28646
28871
|
import {
|
|
28647
28872
|
TableCell as MuiTableCell2
|
|
28648
28873
|
} from "@mui/material";
|
|
28649
|
-
import { jsx as
|
|
28874
|
+
import { jsx as jsx175 } from "react/jsx-runtime";
|
|
28650
28875
|
var TableCell = ({
|
|
28651
28876
|
children,
|
|
28652
28877
|
size = "M",
|
|
@@ -28657,7 +28882,7 @@ var TableCell = ({
|
|
|
28657
28882
|
onClick,
|
|
28658
28883
|
noBorder = false,
|
|
28659
28884
|
...rest
|
|
28660
|
-
}) => /* @__PURE__ */
|
|
28885
|
+
}) => /* @__PURE__ */ jsx175(
|
|
28661
28886
|
MuiTableCell2,
|
|
28662
28887
|
{
|
|
28663
28888
|
...rest,
|
|
@@ -28681,12 +28906,12 @@ var TableCell = ({
|
|
|
28681
28906
|
var TableCell_default = TableCell;
|
|
28682
28907
|
|
|
28683
28908
|
// src/components/table/TableCellCopy.tsx
|
|
28684
|
-
import * as
|
|
28685
|
-
import { jsx as
|
|
28909
|
+
import * as React98 from "react";
|
|
28910
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
28686
28911
|
var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
28687
28912
|
const { t } = useTranslation();
|
|
28688
|
-
const [isCopied, setIsCopied] =
|
|
28689
|
-
const [showIcon, setShowIcon] =
|
|
28913
|
+
const [isCopied, setIsCopied] = React98.useState(false);
|
|
28914
|
+
const [showIcon, setShowIcon] = React98.useState(false);
|
|
28690
28915
|
const manageButtonClicked = () => {
|
|
28691
28916
|
void navigator.clipboard.writeText(textToCopy ?? text);
|
|
28692
28917
|
if (isCopied) {
|
|
@@ -28700,7 +28925,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
28700
28925
|
const getIconId = () => !isCopied ? "content-copy" : "check";
|
|
28701
28926
|
const iconHiddenClass = "icon-hidden";
|
|
28702
28927
|
const iconCopiedClass = "icon-copied";
|
|
28703
|
-
return /* @__PURE__ */
|
|
28928
|
+
return /* @__PURE__ */ jsx176(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx176(
|
|
28704
28929
|
Stack_default,
|
|
28705
28930
|
{
|
|
28706
28931
|
direction: "row",
|
|
@@ -28709,7 +28934,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
28709
28934
|
onMouseEnter: () => setShowIcon(true),
|
|
28710
28935
|
onMouseLeave: () => setShowIcon(false),
|
|
28711
28936
|
onClick: manageButtonClicked,
|
|
28712
|
-
children: /* @__PURE__ */
|
|
28937
|
+
children: /* @__PURE__ */ jsx176(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx176(
|
|
28713
28938
|
Button_default,
|
|
28714
28939
|
{
|
|
28715
28940
|
className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
|
|
@@ -28739,21 +28964,21 @@ var TableCellCopy_default = TableCellCopy;
|
|
|
28739
28964
|
|
|
28740
28965
|
// src/components/table/TableHead.tsx
|
|
28741
28966
|
import { TableHead as MuiTableHead } from "@mui/material";
|
|
28742
|
-
import { jsx as
|
|
28743
|
-
var TableHead = ({ children }) => /* @__PURE__ */
|
|
28967
|
+
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
28968
|
+
var TableHead = ({ children }) => /* @__PURE__ */ jsx177(MuiTableHead, { children });
|
|
28744
28969
|
var TableHead_default = TableHead;
|
|
28745
28970
|
|
|
28746
28971
|
// src/components/table/TableRow.tsx
|
|
28747
28972
|
import {
|
|
28748
28973
|
TableRow as MuiTableRow2
|
|
28749
28974
|
} from "@mui/material";
|
|
28750
|
-
import { jsx as
|
|
28975
|
+
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
28751
28976
|
var TableRow = ({
|
|
28752
28977
|
children,
|
|
28753
28978
|
isFollowedByNestedTable = false,
|
|
28754
28979
|
fadeInLeftAnimation = false,
|
|
28755
28980
|
sx
|
|
28756
|
-
}) => /* @__PURE__ */
|
|
28981
|
+
}) => /* @__PURE__ */ jsx178(
|
|
28757
28982
|
MuiTableRow2,
|
|
28758
28983
|
{
|
|
28759
28984
|
className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
|
|
@@ -28765,14 +28990,14 @@ var TableRow_default = TableRow;
|
|
|
28765
28990
|
|
|
28766
28991
|
// src/components/table/NestedTable.tsx
|
|
28767
28992
|
import { Collapse as Collapse7 } from "@mui/material";
|
|
28768
|
-
import { jsx as
|
|
28993
|
+
import { jsx as jsx179 } from "react/jsx-runtime";
|
|
28769
28994
|
var NestedTable = ({
|
|
28770
28995
|
colSpan,
|
|
28771
28996
|
children,
|
|
28772
28997
|
className = "",
|
|
28773
28998
|
sx,
|
|
28774
28999
|
isVisible = true
|
|
28775
|
-
}) => /* @__PURE__ */
|
|
29000
|
+
}) => /* @__PURE__ */ jsx179(TableRow_default, { children: /* @__PURE__ */ jsx179(
|
|
28776
29001
|
TableCell_default,
|
|
28777
29002
|
{
|
|
28778
29003
|
colSpan,
|
|
@@ -28781,14 +29006,14 @@ var NestedTable = ({
|
|
|
28781
29006
|
height: "auto",
|
|
28782
29007
|
...!isVisible && { borderBottom: "none" }
|
|
28783
29008
|
},
|
|
28784
|
-
children: /* @__PURE__ */
|
|
29009
|
+
children: /* @__PURE__ */ jsx179(Collapse7, { in: isVisible, children: /* @__PURE__ */ jsx179(Box_default2, { sx: { padding: "16px", backgroundColor: grey100 }, children: /* @__PURE__ */ jsx179(Paper_default, { children: /* @__PURE__ */ jsx179(Table_default, { sx, className: `Nested-Table ${className}`, children }) }) }) })
|
|
28785
29010
|
}
|
|
28786
29011
|
) });
|
|
28787
29012
|
var NestedTable_default = NestedTable;
|
|
28788
29013
|
|
|
28789
29014
|
// src/components/toolbar/ToolbarBreadcrumb.tsx
|
|
28790
|
-
import { jsx as
|
|
28791
|
-
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */
|
|
29015
|
+
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
29016
|
+
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx180(
|
|
28792
29017
|
Stack_default,
|
|
28793
29018
|
{
|
|
28794
29019
|
direction: "row",
|
|
@@ -28798,7 +29023,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx179(
|
|
|
28798
29023
|
(previous, current, index) => [
|
|
28799
29024
|
...previous,
|
|
28800
29025
|
...index > 0 ? [
|
|
28801
|
-
/* @__PURE__ */
|
|
29026
|
+
/* @__PURE__ */ jsx180(
|
|
28802
29027
|
Typography_default,
|
|
28803
29028
|
{
|
|
28804
29029
|
color: grey500,
|
|
@@ -28821,10 +29046,10 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
28821
29046
|
|
|
28822
29047
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
28823
29048
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
28824
|
-
import * as
|
|
28825
|
-
import { jsx as
|
|
28826
|
-
var ToolbarBreadcrumbButton =
|
|
28827
|
-
return /* @__PURE__ */
|
|
29049
|
+
import * as React99 from "react";
|
|
29050
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
29051
|
+
var ToolbarBreadcrumbButton = React99.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
29052
|
+
return /* @__PURE__ */ jsx181(
|
|
28828
29053
|
ButtonBase5,
|
|
28829
29054
|
{
|
|
28830
29055
|
className: `Cn-ToolbarBreadcrumbButton ${className}`,
|
|
@@ -28843,14 +29068,14 @@ var ToolbarBreadcrumbButton = React98.forwardRef(function ToolbarBreadcrumbButto
|
|
|
28843
29068
|
}
|
|
28844
29069
|
},
|
|
28845
29070
|
...rest,
|
|
28846
|
-
children: /* @__PURE__ */
|
|
29071
|
+
children: /* @__PURE__ */ jsx181(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
|
|
28847
29072
|
}
|
|
28848
29073
|
);
|
|
28849
29074
|
});
|
|
28850
29075
|
var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
|
|
28851
29076
|
|
|
28852
29077
|
// src/components/toolbar/Toolbar.tsx
|
|
28853
|
-
import { jsx as
|
|
29078
|
+
import { jsx as jsx182, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
28854
29079
|
var Toolbar = ({
|
|
28855
29080
|
children,
|
|
28856
29081
|
rightActions,
|
|
@@ -28859,7 +29084,7 @@ var Toolbar = ({
|
|
|
28859
29084
|
sx,
|
|
28860
29085
|
dataTestId,
|
|
28861
29086
|
onClickToolbar
|
|
28862
|
-
}) => /* @__PURE__ */
|
|
29087
|
+
}) => /* @__PURE__ */ jsxs89(
|
|
28863
29088
|
Box_default2,
|
|
28864
29089
|
{
|
|
28865
29090
|
className: `Cn-Toolbar ${className}`,
|
|
@@ -28879,7 +29104,7 @@ var Toolbar = ({
|
|
|
28879
29104
|
onClick: onClickToolbar,
|
|
28880
29105
|
"data-testid": dataTestId,
|
|
28881
29106
|
children: [
|
|
28882
|
-
/* @__PURE__ */
|
|
29107
|
+
/* @__PURE__ */ jsxs89(
|
|
28883
29108
|
Box_default2,
|
|
28884
29109
|
{
|
|
28885
29110
|
sx: {
|
|
@@ -28891,7 +29116,7 @@ var Toolbar = ({
|
|
|
28891
29116
|
width: "100%"
|
|
28892
29117
|
},
|
|
28893
29118
|
children: [
|
|
28894
|
-
leftActions && /* @__PURE__ */
|
|
29119
|
+
leftActions && /* @__PURE__ */ jsx182(
|
|
28895
29120
|
Box_default2,
|
|
28896
29121
|
{
|
|
28897
29122
|
className: `Cn-Toolbar-left`,
|
|
@@ -28901,7 +29126,7 @@ var Toolbar = ({
|
|
|
28901
29126
|
children: leftActions
|
|
28902
29127
|
}
|
|
28903
29128
|
),
|
|
28904
|
-
/* @__PURE__ */
|
|
29129
|
+
/* @__PURE__ */ jsx182(
|
|
28905
29130
|
Box_default2,
|
|
28906
29131
|
{
|
|
28907
29132
|
className: `Cn-Toolbar-children`,
|
|
@@ -28916,7 +29141,7 @@ var Toolbar = ({
|
|
|
28916
29141
|
]
|
|
28917
29142
|
}
|
|
28918
29143
|
),
|
|
28919
|
-
rightActions && /* @__PURE__ */
|
|
29144
|
+
rightActions && /* @__PURE__ */ jsx182(
|
|
28920
29145
|
Box_default2,
|
|
28921
29146
|
{
|
|
28922
29147
|
className: `Cn-Toolbar-right`,
|
|
@@ -28935,26 +29160,26 @@ var Toolbar = ({
|
|
|
28935
29160
|
var Toolbar_default = Toolbar;
|
|
28936
29161
|
|
|
28937
29162
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
28938
|
-
import * as
|
|
28939
|
-
import { useState as
|
|
28940
|
-
import { jsx as
|
|
28941
|
-
var ToolbarTitle =
|
|
29163
|
+
import * as React100 from "react";
|
|
29164
|
+
import { useState as useState46 } from "react";
|
|
29165
|
+
import { jsx as jsx183, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
29166
|
+
var ToolbarTitle = React100.forwardRef(function ToolbarTitle2({
|
|
28942
29167
|
title,
|
|
28943
29168
|
align = "left",
|
|
28944
29169
|
className,
|
|
28945
29170
|
hoverActions,
|
|
28946
29171
|
color: color2 = grey900
|
|
28947
29172
|
}, ref) {
|
|
28948
|
-
const textElementRef =
|
|
29173
|
+
const textElementRef = React100.useRef(
|
|
28949
29174
|
null
|
|
28950
29175
|
);
|
|
28951
|
-
const [showHoverActions, setShowHoverActions] =
|
|
28952
|
-
return /* @__PURE__ */
|
|
29176
|
+
const [showHoverActions, setShowHoverActions] = useState46(false);
|
|
29177
|
+
return /* @__PURE__ */ jsx183(Box_default2, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx183(
|
|
28953
29178
|
TextEllipsisTooltip_default,
|
|
28954
29179
|
{
|
|
28955
29180
|
title: title ?? "\xA0",
|
|
28956
29181
|
textEllipsableElement: textElementRef,
|
|
28957
|
-
children: /* @__PURE__ */
|
|
29182
|
+
children: /* @__PURE__ */ jsxs90(
|
|
28958
29183
|
Typography_default,
|
|
28959
29184
|
{
|
|
28960
29185
|
color: color2,
|
|
@@ -28972,7 +29197,7 @@ var ToolbarTitle = React99.forwardRef(function ToolbarTitle2({
|
|
|
28972
29197
|
},
|
|
28973
29198
|
children: [
|
|
28974
29199
|
title || "\xA0",
|
|
28975
|
-
hoverActions && showHoverActions && /* @__PURE__ */
|
|
29200
|
+
hoverActions && showHoverActions && /* @__PURE__ */ jsx183(
|
|
28976
29201
|
Box_default2,
|
|
28977
29202
|
{
|
|
28978
29203
|
sx: {
|
|
@@ -29001,13 +29226,13 @@ var Slide_default = Slide;
|
|
|
29001
29226
|
|
|
29002
29227
|
// src/components/widget/WidgetLegendItem.tsx
|
|
29003
29228
|
import { ButtonBase as ButtonBase6 } from "@mui/material";
|
|
29004
|
-
import { jsx as
|
|
29229
|
+
import { jsx as jsx184, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
29005
29230
|
var WidgetLegendItem = ({
|
|
29006
29231
|
groupLabel,
|
|
29007
29232
|
legendDirection = "column",
|
|
29008
29233
|
items = [],
|
|
29009
29234
|
onClick
|
|
29010
|
-
}) => /* @__PURE__ */
|
|
29235
|
+
}) => /* @__PURE__ */ jsx184(
|
|
29011
29236
|
ButtonBase6,
|
|
29012
29237
|
{
|
|
29013
29238
|
tabIndex: onClick ? 0 : -1,
|
|
@@ -29021,7 +29246,7 @@ var WidgetLegendItem = ({
|
|
|
29021
29246
|
p: "2px 12px",
|
|
29022
29247
|
cursor: onClick ? "pointer" : "default"
|
|
29023
29248
|
},
|
|
29024
|
-
children: /* @__PURE__ */
|
|
29249
|
+
children: /* @__PURE__ */ jsxs91(
|
|
29025
29250
|
Box_default2,
|
|
29026
29251
|
{
|
|
29027
29252
|
sx: {
|
|
@@ -29033,7 +29258,7 @@ var WidgetLegendItem = ({
|
|
|
29033
29258
|
color: grey800
|
|
29034
29259
|
},
|
|
29035
29260
|
children: [
|
|
29036
|
-
groupLabel && /* @__PURE__ */
|
|
29261
|
+
groupLabel && /* @__PURE__ */ jsx184(
|
|
29037
29262
|
Typography_default,
|
|
29038
29263
|
{
|
|
29039
29264
|
variant: "overline",
|
|
@@ -29055,7 +29280,7 @@ var WidgetLegendItem = ({
|
|
|
29055
29280
|
style: style3
|
|
29056
29281
|
}, i) => {
|
|
29057
29282
|
const incrementLabelIconId = incrementLabelType && incrementLabelStyles[incrementLabelType].icon;
|
|
29058
|
-
return /* @__PURE__ */
|
|
29283
|
+
return /* @__PURE__ */ jsxs91(
|
|
29059
29284
|
Box_default2,
|
|
29060
29285
|
{
|
|
29061
29286
|
sx: {
|
|
@@ -29065,7 +29290,7 @@ var WidgetLegendItem = ({
|
|
|
29065
29290
|
paddingRight: legendDirection === "row" ? "12px" : "inherit"
|
|
29066
29291
|
},
|
|
29067
29292
|
children: [
|
|
29068
|
-
iconColor && /* @__PURE__ */
|
|
29293
|
+
iconColor && /* @__PURE__ */ jsx184(
|
|
29069
29294
|
Icon_default,
|
|
29070
29295
|
{
|
|
29071
29296
|
id: iconId,
|
|
@@ -29076,7 +29301,7 @@ var WidgetLegendItem = ({
|
|
|
29076
29301
|
size: iconSize
|
|
29077
29302
|
}
|
|
29078
29303
|
),
|
|
29079
|
-
label && /* @__PURE__ */
|
|
29304
|
+
label && /* @__PURE__ */ jsx184(
|
|
29080
29305
|
Typography_default,
|
|
29081
29306
|
{
|
|
29082
29307
|
variant: "caption",
|
|
@@ -29085,7 +29310,7 @@ var WidgetLegendItem = ({
|
|
|
29085
29310
|
children: label
|
|
29086
29311
|
}
|
|
29087
29312
|
),
|
|
29088
|
-
value && /* @__PURE__ */
|
|
29313
|
+
value && /* @__PURE__ */ jsx184(
|
|
29089
29314
|
Typography_default,
|
|
29090
29315
|
{
|
|
29091
29316
|
sx: style3,
|
|
@@ -29094,7 +29319,7 @@ var WidgetLegendItem = ({
|
|
|
29094
29319
|
children: value
|
|
29095
29320
|
}
|
|
29096
29321
|
),
|
|
29097
|
-
incrementLabelValue && /* @__PURE__ */
|
|
29322
|
+
incrementLabelValue && /* @__PURE__ */ jsx184(
|
|
29098
29323
|
IncrementLabel_default,
|
|
29099
29324
|
{
|
|
29100
29325
|
label: incrementLabelValue,
|
|
@@ -29120,8 +29345,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
|
|
|
29120
29345
|
|
|
29121
29346
|
// src/components/widget/Widget.tsx
|
|
29122
29347
|
import MuiCard2 from "@mui/material/Card";
|
|
29123
|
-
import { jsx as
|
|
29124
|
-
var Widget = ({ children }) => /* @__PURE__ */
|
|
29348
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
29349
|
+
var Widget = ({ children }) => /* @__PURE__ */ jsx185(
|
|
29125
29350
|
MuiCard2,
|
|
29126
29351
|
{
|
|
29127
29352
|
variant: "elevation",
|
|
@@ -29145,8 +29370,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx184(
|
|
|
29145
29370
|
var Widget_default = Widget;
|
|
29146
29371
|
|
|
29147
29372
|
// src/components/widget/WidgetActions.tsx
|
|
29148
|
-
import { jsx as
|
|
29149
|
-
var WidgetActions = ({ children }) => /* @__PURE__ */
|
|
29373
|
+
import { jsx as jsx186 } from "react/jsx-runtime";
|
|
29374
|
+
var WidgetActions = ({ children }) => /* @__PURE__ */ jsx186(
|
|
29150
29375
|
Box_default2,
|
|
29151
29376
|
{
|
|
29152
29377
|
sx: {
|
|
@@ -29160,8 +29385,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx185(
|
|
|
29160
29385
|
var WidgetActions_default = WidgetActions;
|
|
29161
29386
|
|
|
29162
29387
|
// src/components/widget/WidgetTitle.tsx
|
|
29163
|
-
import { jsx as
|
|
29164
|
-
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */
|
|
29388
|
+
import { jsx as jsx187 } from "react/jsx-runtime";
|
|
29389
|
+
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx187(
|
|
29165
29390
|
Box_default2,
|
|
29166
29391
|
{
|
|
29167
29392
|
sx: {
|
|
@@ -29171,7 +29396,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
29171
29396
|
maxWidth: "100%",
|
|
29172
29397
|
...sx
|
|
29173
29398
|
},
|
|
29174
|
-
children: /* @__PURE__ */
|
|
29399
|
+
children: /* @__PURE__ */ jsx187(
|
|
29175
29400
|
Typography_default,
|
|
29176
29401
|
{
|
|
29177
29402
|
variant: "subtitle2",
|
|
@@ -29185,12 +29410,12 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
29185
29410
|
}
|
|
29186
29411
|
)
|
|
29187
29412
|
}
|
|
29188
|
-
) : /* @__PURE__ */
|
|
29413
|
+
) : /* @__PURE__ */ jsx187("span", {});
|
|
29189
29414
|
var WidgetTitle_default = WidgetTitle;
|
|
29190
29415
|
|
|
29191
29416
|
// src/components/window/MinimizableWindow.tsx
|
|
29192
|
-
import * as
|
|
29193
|
-
import { Fragment as Fragment45, jsx as
|
|
29417
|
+
import * as React101 from "react";
|
|
29418
|
+
import { Fragment as Fragment45, jsx as jsx188, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
29194
29419
|
var sizes7 = {
|
|
29195
29420
|
M: 400,
|
|
29196
29421
|
L: 500,
|
|
@@ -29218,7 +29443,7 @@ var iconButtonsStyles = {
|
|
|
29218
29443
|
backgroundColor: "rgba(255, 255, 255, 0.2)"
|
|
29219
29444
|
}
|
|
29220
29445
|
};
|
|
29221
|
-
var MinimizableWindow =
|
|
29446
|
+
var MinimizableWindow = React101.forwardRef(function MinimizableWindow2({
|
|
29222
29447
|
children,
|
|
29223
29448
|
title,
|
|
29224
29449
|
size = "M",
|
|
@@ -29237,17 +29462,17 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29237
29462
|
onBack
|
|
29238
29463
|
}, ref) {
|
|
29239
29464
|
const { t } = useTranslation();
|
|
29240
|
-
const overlayRef =
|
|
29241
|
-
const windowRef =
|
|
29242
|
-
const headerRef =
|
|
29243
|
-
const [isDraggingState, setIsDraggingState] =
|
|
29244
|
-
const diffRef =
|
|
29245
|
-
|
|
29465
|
+
const overlayRef = React101.useRef(null);
|
|
29466
|
+
const windowRef = React101.useRef(null);
|
|
29467
|
+
const headerRef = React101.useRef(null);
|
|
29468
|
+
const [isDraggingState, setIsDraggingState] = React101.useState(false);
|
|
29469
|
+
const diffRef = React101.useRef({ x: 0, y: 0 });
|
|
29470
|
+
React101.useImperativeHandle(ref, () => ({
|
|
29246
29471
|
window: windowRef.current,
|
|
29247
29472
|
header: headerRef.current,
|
|
29248
29473
|
overlay: overlayRef.current
|
|
29249
29474
|
}));
|
|
29250
|
-
|
|
29475
|
+
React101.useEffect(() => {
|
|
29251
29476
|
if (open) {
|
|
29252
29477
|
overlayRef.current?.style.removeProperty("transform");
|
|
29253
29478
|
overlayRef.current?.style.removeProperty("opacity");
|
|
@@ -29289,8 +29514,8 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29289
29514
|
overlayRef.current.style.opacity = "0";
|
|
29290
29515
|
}
|
|
29291
29516
|
};
|
|
29292
|
-
return /* @__PURE__ */
|
|
29293
|
-
isDraggingState && /* @__PURE__ */
|
|
29517
|
+
return /* @__PURE__ */ jsxs92(Fragment45, { children: [
|
|
29518
|
+
isDraggingState && /* @__PURE__ */ jsx188(
|
|
29294
29519
|
Box_default2,
|
|
29295
29520
|
{
|
|
29296
29521
|
sx: {
|
|
@@ -29306,7 +29531,7 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29306
29531
|
onMouseMove: (ev) => handleMouseMove(ev)
|
|
29307
29532
|
}
|
|
29308
29533
|
),
|
|
29309
|
-
/* @__PURE__ */
|
|
29534
|
+
/* @__PURE__ */ jsx188(
|
|
29310
29535
|
Box_default2,
|
|
29311
29536
|
{
|
|
29312
29537
|
ref: overlayRef,
|
|
@@ -29323,7 +29548,7 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29323
29548
|
...!open && { pointerEvents: "none" },
|
|
29324
29549
|
transition: "transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
29325
29550
|
},
|
|
29326
|
-
children: /* @__PURE__ */
|
|
29551
|
+
children: /* @__PURE__ */ jsxs92(
|
|
29327
29552
|
Stack_default,
|
|
29328
29553
|
{
|
|
29329
29554
|
sx: {
|
|
@@ -29334,7 +29559,7 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29334
29559
|
width: `${sizes7[size]}px`,
|
|
29335
29560
|
height: contentHeight !== void 0 && headerRef.current ? `${contentHeight + contentPadding + headerRef.current.scrollHeight}px` : void 0,
|
|
29336
29561
|
children: [
|
|
29337
|
-
/* @__PURE__ */
|
|
29562
|
+
/* @__PURE__ */ jsxs92(
|
|
29338
29563
|
Stack_default,
|
|
29339
29564
|
{
|
|
29340
29565
|
ref: headerRef,
|
|
@@ -29348,19 +29573,19 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29348
29573
|
onMouseDown: handleMouseDown,
|
|
29349
29574
|
minHeight: "44px",
|
|
29350
29575
|
children: [
|
|
29351
|
-
/* @__PURE__ */
|
|
29576
|
+
/* @__PURE__ */ jsx188(
|
|
29352
29577
|
Stack_default,
|
|
29353
29578
|
{
|
|
29354
29579
|
direction: "row",
|
|
29355
29580
|
alignItems: "center",
|
|
29356
29581
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
29357
|
-
children: showBackButton && (!backButton ? /* @__PURE__ */
|
|
29582
|
+
children: showBackButton && (!backButton ? /* @__PURE__ */ jsx188(
|
|
29358
29583
|
Tooltip_default,
|
|
29359
29584
|
{
|
|
29360
29585
|
title: t("MINIMIZABLE_WINDOW.GO_BACK"),
|
|
29361
29586
|
zIndex: 999999,
|
|
29362
29587
|
placement: "top",
|
|
29363
|
-
children: /* @__PURE__ */
|
|
29588
|
+
children: /* @__PURE__ */ jsx188(
|
|
29364
29589
|
IconButton_default,
|
|
29365
29590
|
{
|
|
29366
29591
|
size: iconSizes2,
|
|
@@ -29373,7 +29598,7 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29373
29598
|
) : backButton)
|
|
29374
29599
|
}
|
|
29375
29600
|
),
|
|
29376
|
-
/* @__PURE__ */
|
|
29601
|
+
/* @__PURE__ */ jsx188(
|
|
29377
29602
|
Box_default2,
|
|
29378
29603
|
{
|
|
29379
29604
|
sx: {
|
|
@@ -29381,10 +29606,10 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29381
29606
|
left: "50%",
|
|
29382
29607
|
transform: "translateX(-50%)"
|
|
29383
29608
|
},
|
|
29384
|
-
children: typeof title === "string" ? /* @__PURE__ */
|
|
29609
|
+
children: typeof title === "string" ? /* @__PURE__ */ jsx188(Typography_default, { children: title }) : title
|
|
29385
29610
|
}
|
|
29386
29611
|
),
|
|
29387
|
-
/* @__PURE__ */
|
|
29612
|
+
/* @__PURE__ */ jsxs92(
|
|
29388
29613
|
Stack_default,
|
|
29389
29614
|
{
|
|
29390
29615
|
direction: "row",
|
|
@@ -29392,13 +29617,13 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29392
29617
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
29393
29618
|
children: [
|
|
29394
29619
|
rightActions,
|
|
29395
|
-
closeable && /* @__PURE__ */
|
|
29620
|
+
closeable && /* @__PURE__ */ jsx188(Box_default2, { children: /* @__PURE__ */ jsx188(
|
|
29396
29621
|
Tooltip_default,
|
|
29397
29622
|
{
|
|
29398
29623
|
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
29399
29624
|
zIndex: 999999,
|
|
29400
29625
|
placement: "top",
|
|
29401
|
-
children: /* @__PURE__ */
|
|
29626
|
+
children: /* @__PURE__ */ jsx188(
|
|
29402
29627
|
IconButton_default,
|
|
29403
29628
|
{
|
|
29404
29629
|
size: iconSizes2,
|
|
@@ -29420,7 +29645,7 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29420
29645
|
]
|
|
29421
29646
|
}
|
|
29422
29647
|
),
|
|
29423
|
-
/* @__PURE__ */
|
|
29648
|
+
/* @__PURE__ */ jsx188(
|
|
29424
29649
|
Stack_default,
|
|
29425
29650
|
{
|
|
29426
29651
|
sx: {
|
|
@@ -29439,31 +29664,31 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29439
29664
|
var MinimizableWindow_default = MinimizableWindow;
|
|
29440
29665
|
|
|
29441
29666
|
// src/hooks/useFormatters.ts
|
|
29442
|
-
import { useCallback as
|
|
29667
|
+
import { useCallback as useCallback26, useContext as useContext21 } from "react";
|
|
29443
29668
|
var useFormatters = () => {
|
|
29444
|
-
const { locale, currency, timezone } =
|
|
29669
|
+
const { locale, currency, timezone } = useContext21(IntlContext);
|
|
29445
29670
|
return {
|
|
29446
|
-
formatCompactNumber:
|
|
29671
|
+
formatCompactNumber: useCallback26(
|
|
29447
29672
|
(value) => formatCompactNumber(value, locale),
|
|
29448
29673
|
[locale]
|
|
29449
29674
|
),
|
|
29450
|
-
formatNumber:
|
|
29675
|
+
formatNumber: useCallback26(
|
|
29451
29676
|
(value, fractionSize) => formatNumber(value, locale, fractionSize),
|
|
29452
29677
|
[locale]
|
|
29453
29678
|
),
|
|
29454
|
-
formatPercentage:
|
|
29679
|
+
formatPercentage: useCallback26(
|
|
29455
29680
|
(value, fractionSize) => formatPercentage(value, locale, fractionSize),
|
|
29456
29681
|
[locale]
|
|
29457
29682
|
),
|
|
29458
|
-
formatCurrency:
|
|
29683
|
+
formatCurrency: useCallback26(
|
|
29459
29684
|
(value, notation) => formatCurrency(value, locale, currency, notation),
|
|
29460
29685
|
[currency, locale]
|
|
29461
29686
|
),
|
|
29462
|
-
formatDate:
|
|
29687
|
+
formatDate: useCallback26(
|
|
29463
29688
|
(date, format2) => formatDate(date, locale, timezone, format2),
|
|
29464
29689
|
[locale, timezone]
|
|
29465
29690
|
),
|
|
29466
|
-
formatPhone:
|
|
29691
|
+
formatPhone: useCallback26(
|
|
29467
29692
|
(phone, format2) => formatPhone(phone, format2),
|
|
29468
29693
|
[]
|
|
29469
29694
|
)
|
|
@@ -29510,6 +29735,7 @@ export {
|
|
|
29510
29735
|
ConfirmationDialog_default as ConfirmationDialog,
|
|
29511
29736
|
Container_default as Container,
|
|
29512
29737
|
CurrencyFormatter_default as CurrencyFormatter,
|
|
29738
|
+
DateCalendar_default as DateCalendar,
|
|
29513
29739
|
DateFormatter_default as DateFormatter,
|
|
29514
29740
|
DateIntervalPicker_default as DateIntervalPicker,
|
|
29515
29741
|
DatePicker_default as DatePicker,
|