@connectif/ui-components 2.4.3 → 3.0.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 +40 -1
- package/dist/components/formatter/PhoneFormatter.d.ts +16 -0
- package/dist/components/formatter/index.d.ts +2 -0
- package/dist/components/tab/TabButton.d.ts +1 -7
- package/dist/components/tab/Tabs.d.ts +9 -1
- package/dist/hooks/useFormatters.d.ts +2 -0
- package/dist/index.js +692 -479
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/DateUtils.d.ts +4 -2
- package/dist/utils/PhoneUtils.d.ts +2 -0
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -97,7 +97,7 @@ var require_react_is_development = __commonJS({
|
|
|
97
97
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
98
98
|
var Element2 = REACT_ELEMENT_TYPE;
|
|
99
99
|
var ForwardRef2 = REACT_FORWARD_REF_TYPE;
|
|
100
|
-
var
|
|
100
|
+
var Fragment37 = REACT_FRAGMENT_TYPE;
|
|
101
101
|
var Lazy = REACT_LAZY_TYPE;
|
|
102
102
|
var Memo2 = REACT_MEMO_TYPE;
|
|
103
103
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -156,7 +156,7 @@ var require_react_is_development = __commonJS({
|
|
|
156
156
|
exports.ContextProvider = ContextProvider;
|
|
157
157
|
exports.Element = Element2;
|
|
158
158
|
exports.ForwardRef = ForwardRef2;
|
|
159
|
-
exports.Fragment =
|
|
159
|
+
exports.Fragment = Fragment37;
|
|
160
160
|
exports.Lazy = Lazy;
|
|
161
161
|
exports.Memo = Memo2;
|
|
162
162
|
exports.Portal = Portal;
|
|
@@ -5329,9 +5329,9 @@ var tabsTheme = {
|
|
|
5329
5329
|
minHeight: "40px"
|
|
5330
5330
|
},
|
|
5331
5331
|
indicator: {
|
|
5332
|
-
bottom: "
|
|
5333
|
-
height: "
|
|
5334
|
-
borderRadius: "
|
|
5332
|
+
bottom: "0",
|
|
5333
|
+
height: "2px",
|
|
5334
|
+
borderRadius: "8px"
|
|
5335
5335
|
},
|
|
5336
5336
|
scrollButtons: {
|
|
5337
5337
|
width: "24px"
|
|
@@ -16078,7 +16078,7 @@ function parseDateForLocale(dateString, locale, timezone) {
|
|
|
16078
16078
|
const m = tz({ year, month, date }, timezone);
|
|
16079
16079
|
return m.isValid() ? m.toDate() : /* @__PURE__ */ new Date(NaN);
|
|
16080
16080
|
}
|
|
16081
|
-
function
|
|
16081
|
+
function getDateRangeFromInterval(interval, maxSelectableDays, timezone) {
|
|
16082
16082
|
const end = tz(timezone).startOf("day");
|
|
16083
16083
|
const endDate = end.toDate();
|
|
16084
16084
|
switch (interval) {
|
|
@@ -16089,56 +16089,127 @@ function getDatesFromDateInterval(interval, maxSelectableDays, timezone) {
|
|
|
16089
16089
|
};
|
|
16090
16090
|
case "yesterday":
|
|
16091
16091
|
return {
|
|
16092
|
-
startDate: end.subtract(1, "day").toDate(),
|
|
16092
|
+
startDate: end.clone().subtract(1, "day").toDate(),
|
|
16093
16093
|
endDate
|
|
16094
16094
|
};
|
|
16095
16095
|
case "thisWeekFromSunday":
|
|
16096
16096
|
return {
|
|
16097
16097
|
startDate: end.clone().day(0).toDate(),
|
|
16098
|
-
endDate: end.add(1, "day").toDate()
|
|
16098
|
+
endDate: end.clone().add(1, "day").toDate()
|
|
16099
16099
|
};
|
|
16100
16100
|
case "thisWeekFromMonday":
|
|
16101
16101
|
return {
|
|
16102
16102
|
startDate: end.clone().day(1).toDate(),
|
|
16103
|
-
endDate: end.add(1, "day").toDate()
|
|
16103
|
+
endDate: end.clone().add(1, "day").toDate()
|
|
16104
16104
|
};
|
|
16105
16105
|
case "thisMonth":
|
|
16106
16106
|
return {
|
|
16107
16107
|
startDate: end.clone().date(1).toDate(),
|
|
16108
|
-
endDate: end.add(1, "day").toDate()
|
|
16108
|
+
endDate: end.clone().add(1, "day").toDate()
|
|
16109
16109
|
};
|
|
16110
16110
|
case "thisYear":
|
|
16111
16111
|
return {
|
|
16112
16112
|
startDate: end.clone().month(0).date(1).toDate(),
|
|
16113
|
-
endDate: end.add(1, "day").toDate()
|
|
16113
|
+
endDate: end.clone().add(1, "day").toDate()
|
|
16114
16114
|
};
|
|
16115
16115
|
case "last7Days":
|
|
16116
16116
|
return {
|
|
16117
|
-
startDate: end.subtract(7, "days").toDate(),
|
|
16117
|
+
startDate: end.clone().subtract(7, "days").toDate(),
|
|
16118
16118
|
endDate
|
|
16119
16119
|
};
|
|
16120
16120
|
case "last30Days":
|
|
16121
16121
|
return {
|
|
16122
|
-
startDate: end.subtract(30, "day").toDate(),
|
|
16122
|
+
startDate: end.clone().subtract(30, "day").toDate(),
|
|
16123
16123
|
endDate
|
|
16124
16124
|
};
|
|
16125
16125
|
case "last90Days":
|
|
16126
16126
|
return {
|
|
16127
|
-
startDate: end.subtract(90, "day").toDate(),
|
|
16127
|
+
startDate: end.clone().subtract(90, "day").toDate(),
|
|
16128
16128
|
endDate
|
|
16129
16129
|
};
|
|
16130
16130
|
case "last12Months":
|
|
16131
16131
|
return {
|
|
16132
|
-
startDate: end.subtract(12, "month").toDate(),
|
|
16132
|
+
startDate: end.clone().subtract(12, "month").toDate(),
|
|
16133
16133
|
endDate
|
|
16134
16134
|
};
|
|
16135
16135
|
case "all":
|
|
16136
16136
|
return {
|
|
16137
|
-
startDate: end.subtract(maxSelectableDays - 1, "day").toDate(),
|
|
16137
|
+
startDate: end.clone().subtract(maxSelectableDays - 1, "day").toDate(),
|
|
16138
16138
|
endDate
|
|
16139
16139
|
};
|
|
16140
16140
|
}
|
|
16141
16141
|
}
|
|
16142
|
+
function getDateRangeWithTimeFromInterval(interval, maxSelectableDays, timezone) {
|
|
16143
|
+
const currentMoment = tz(timezone);
|
|
16144
|
+
const currentDate = currentMoment.toDate();
|
|
16145
|
+
switch (interval) {
|
|
16146
|
+
case "today":
|
|
16147
|
+
return {
|
|
16148
|
+
startDate: currentMoment.clone().startOf("day").toDate(),
|
|
16149
|
+
endDate: currentDate
|
|
16150
|
+
};
|
|
16151
|
+
case "yesterday":
|
|
16152
|
+
return {
|
|
16153
|
+
startDate: currentMoment.clone().subtract(1, "day").startOf("day").toDate(),
|
|
16154
|
+
endDate: currentMoment.clone().subtract(1, "day").endOf("day").toDate()
|
|
16155
|
+
};
|
|
16156
|
+
case "thisWeekFromSunday":
|
|
16157
|
+
return {
|
|
16158
|
+
startDate: currentMoment.clone().day(0).startOf("day").toDate(),
|
|
16159
|
+
endDate: currentDate
|
|
16160
|
+
};
|
|
16161
|
+
case "thisWeekFromMonday":
|
|
16162
|
+
return {
|
|
16163
|
+
startDate: currentMoment.clone().day(1).startOf("day").toDate(),
|
|
16164
|
+
endDate: currentDate
|
|
16165
|
+
};
|
|
16166
|
+
case "thisMonth":
|
|
16167
|
+
return {
|
|
16168
|
+
startDate: currentMoment.clone().date(1).startOf("day").toDate(),
|
|
16169
|
+
endDate: currentDate
|
|
16170
|
+
};
|
|
16171
|
+
case "thisYear":
|
|
16172
|
+
return {
|
|
16173
|
+
startDate: currentMoment.clone().month(0).date(1).startOf("day").toDate(),
|
|
16174
|
+
endDate: currentDate
|
|
16175
|
+
};
|
|
16176
|
+
case "last7Days":
|
|
16177
|
+
return {
|
|
16178
|
+
startDate: currentMoment.clone().subtract(7, "days").toDate(),
|
|
16179
|
+
endDate: currentDate
|
|
16180
|
+
};
|
|
16181
|
+
case "last30Days":
|
|
16182
|
+
return {
|
|
16183
|
+
startDate: currentMoment.clone().subtract(30, "day").toDate(),
|
|
16184
|
+
endDate: currentDate
|
|
16185
|
+
};
|
|
16186
|
+
case "last90Days":
|
|
16187
|
+
return {
|
|
16188
|
+
startDate: currentMoment.clone().subtract(90, "day").toDate(),
|
|
16189
|
+
endDate: currentDate
|
|
16190
|
+
};
|
|
16191
|
+
case "last12Months":
|
|
16192
|
+
return {
|
|
16193
|
+
startDate: currentMoment.clone().subtract(12, "month").toDate(),
|
|
16194
|
+
endDate: currentDate
|
|
16195
|
+
};
|
|
16196
|
+
case "all":
|
|
16197
|
+
return {
|
|
16198
|
+
startDate: currentMoment.clone().subtract(maxSelectableDays - 1, "day").toDate(),
|
|
16199
|
+
endDate: currentDate
|
|
16200
|
+
};
|
|
16201
|
+
}
|
|
16202
|
+
}
|
|
16203
|
+
function getDatesFromDateInterval(interval, maxSelectableDays, timezone, options) {
|
|
16204
|
+
if (!options?.includeTime) {
|
|
16205
|
+
return getDateRangeFromInterval(interval, maxSelectableDays, timezone);
|
|
16206
|
+
}
|
|
16207
|
+
return getDateRangeWithTimeFromInterval(
|
|
16208
|
+
interval,
|
|
16209
|
+
maxSelectableDays,
|
|
16210
|
+
timezone
|
|
16211
|
+
);
|
|
16212
|
+
}
|
|
16142
16213
|
function getComparisonInterval(comparisonInterval, startSimpleDate, endSimpleDate, timezone, minDate) {
|
|
16143
16214
|
const startMoment = tz(
|
|
16144
16215
|
{
|
|
@@ -16202,7 +16273,10 @@ function dateToSimpleDate(date, timezone) {
|
|
|
16202
16273
|
day: momentDate.date()
|
|
16203
16274
|
};
|
|
16204
16275
|
}
|
|
16205
|
-
function getDisplayEndDate(date, timezone) {
|
|
16276
|
+
function getDisplayEndDate(date, timezone, includeTime) {
|
|
16277
|
+
if (includeTime) {
|
|
16278
|
+
return tz(date, timezone).toDate();
|
|
16279
|
+
}
|
|
16206
16280
|
return tz(date, timezone).subtract(1, "day").toDate();
|
|
16207
16281
|
}
|
|
16208
16282
|
function applyTimeToDate(date, time) {
|
|
@@ -17669,6 +17743,32 @@ function isValidPhoneNumber(phone) {
|
|
|
17669
17743
|
const phoneRegex = /^\+[1-9]\d{6,14}$/;
|
|
17670
17744
|
return phoneRegex.test(phone) && getCountryCode(phone) !== "";
|
|
17671
17745
|
}
|
|
17746
|
+
function getPhoneNumber(phone) {
|
|
17747
|
+
const countryCode = getCountryCode(phone);
|
|
17748
|
+
if (!countryCode) {
|
|
17749
|
+
return phone;
|
|
17750
|
+
}
|
|
17751
|
+
return phone.substring(countryCode.length + 1);
|
|
17752
|
+
}
|
|
17753
|
+
function getCountryCodeWithPlus(phone) {
|
|
17754
|
+
const countryCode = getCountryCode(phone);
|
|
17755
|
+
if (!countryCode) {
|
|
17756
|
+
return "";
|
|
17757
|
+
}
|
|
17758
|
+
return `+${countryCode}`;
|
|
17759
|
+
}
|
|
17760
|
+
function formatPhone(phone, format2) {
|
|
17761
|
+
switch (format2) {
|
|
17762
|
+
case "country":
|
|
17763
|
+
return getCountryCodeWithPlus(phone);
|
|
17764
|
+
case "phone": {
|
|
17765
|
+
return getPhoneNumber(phone);
|
|
17766
|
+
}
|
|
17767
|
+
default: {
|
|
17768
|
+
return `${getCountryCodeWithPlus(phone)} ${getPhoneNumber(phone)}`.trim();
|
|
17769
|
+
}
|
|
17770
|
+
}
|
|
17771
|
+
}
|
|
17672
17772
|
|
|
17673
17773
|
// src/components/formatter/CompactNumberFormatter.tsx
|
|
17674
17774
|
import { Fragment as Fragment15, jsx as jsx84 } from "react/jsx-runtime";
|
|
@@ -17726,17 +17826,22 @@ var DateFormatter = ({ date, format: format2 }) => {
|
|
|
17726
17826
|
};
|
|
17727
17827
|
var DateFormatter_default = DateFormatter;
|
|
17728
17828
|
|
|
17829
|
+
// src/components/formatter/PhoneFormatter.tsx
|
|
17830
|
+
import { Fragment as Fragment20, jsx as jsx89 } from "react/jsx-runtime";
|
|
17831
|
+
var PhoneFormatter = ({ phone, format: format2 }) => /* @__PURE__ */ jsx89(Fragment20, { children: formatPhone(phone, format2) });
|
|
17832
|
+
var PhoneFormatter_default = PhoneFormatter;
|
|
17833
|
+
|
|
17729
17834
|
// src/components/header/HeaderTitle.tsx
|
|
17730
17835
|
import * as React43 from "react";
|
|
17731
|
-
import { jsx as
|
|
17836
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
17732
17837
|
var HeaderTitle = ({ text }) => {
|
|
17733
17838
|
const textElementRef = React43.useRef(null);
|
|
17734
|
-
return /* @__PURE__ */
|
|
17839
|
+
return /* @__PURE__ */ jsx90(
|
|
17735
17840
|
TextEllipsisTooltip_default,
|
|
17736
17841
|
{
|
|
17737
17842
|
title: text ?? "\xA0",
|
|
17738
17843
|
textEllipsableElement: textElementRef,
|
|
17739
|
-
children: /* @__PURE__ */
|
|
17844
|
+
children: /* @__PURE__ */ jsx90(
|
|
17740
17845
|
Typography_default,
|
|
17741
17846
|
{
|
|
17742
17847
|
color: grey800,
|
|
@@ -17754,15 +17859,15 @@ var HeaderTitle_default = HeaderTitle;
|
|
|
17754
17859
|
|
|
17755
17860
|
// src/components/header/HeaderSubtitle.tsx
|
|
17756
17861
|
import * as React44 from "react";
|
|
17757
|
-
import { jsx as
|
|
17862
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
17758
17863
|
var HeaderSubtitle = ({ text }) => {
|
|
17759
17864
|
const textElementRef = React44.useRef(null);
|
|
17760
|
-
return typeof text === "string" ? /* @__PURE__ */
|
|
17865
|
+
return typeof text === "string" ? /* @__PURE__ */ jsx91(
|
|
17761
17866
|
TextEllipsisTooltip_default,
|
|
17762
17867
|
{
|
|
17763
17868
|
title: text ?? "\xA0",
|
|
17764
17869
|
textEllipsableElement: textElementRef,
|
|
17765
|
-
children: /* @__PURE__ */
|
|
17870
|
+
children: /* @__PURE__ */ jsx91(
|
|
17766
17871
|
Typography_default,
|
|
17767
17872
|
{
|
|
17768
17873
|
color: grey800,
|
|
@@ -17774,12 +17879,12 @@ var HeaderSubtitle = ({ text }) => {
|
|
|
17774
17879
|
}
|
|
17775
17880
|
)
|
|
17776
17881
|
}
|
|
17777
|
-
) : /* @__PURE__ */
|
|
17882
|
+
) : /* @__PURE__ */ jsx91(Typography_default, { color: grey800, component: "div", variant: "body1", noWrap: true, children: text });
|
|
17778
17883
|
};
|
|
17779
17884
|
var HeaderSubtitle_default = HeaderSubtitle;
|
|
17780
17885
|
|
|
17781
17886
|
// src/components/header/Header.tsx
|
|
17782
|
-
import { jsx as
|
|
17887
|
+
import { jsx as jsx92, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
17783
17888
|
var Header = ({
|
|
17784
17889
|
title,
|
|
17785
17890
|
subtitle,
|
|
@@ -17787,7 +17892,7 @@ var Header = ({
|
|
|
17787
17892
|
isElevated = false,
|
|
17788
17893
|
actions,
|
|
17789
17894
|
children
|
|
17790
|
-
}) => /* @__PURE__ */
|
|
17895
|
+
}) => /* @__PURE__ */ jsx92(PageScrollContext.Consumer, { children: (value) => /* @__PURE__ */ jsx92(
|
|
17791
17896
|
Box_default2,
|
|
17792
17897
|
{
|
|
17793
17898
|
sx: {
|
|
@@ -17827,12 +17932,12 @@ var Header = ({
|
|
|
17827
17932
|
overflow: "clip"
|
|
17828
17933
|
},
|
|
17829
17934
|
children: [
|
|
17830
|
-
iconId && /* @__PURE__ */
|
|
17831
|
-
/* @__PURE__ */
|
|
17935
|
+
iconId && /* @__PURE__ */ jsx92(Avatar_default, { iconId, size: "L" }),
|
|
17936
|
+
/* @__PURE__ */ jsx92(HeaderTitle_default, { text: title })
|
|
17832
17937
|
]
|
|
17833
17938
|
}
|
|
17834
17939
|
),
|
|
17835
|
-
/* @__PURE__ */
|
|
17940
|
+
/* @__PURE__ */ jsx92(
|
|
17836
17941
|
Box_default2,
|
|
17837
17942
|
{
|
|
17838
17943
|
sx: {
|
|
@@ -17848,7 +17953,7 @@ var Header = ({
|
|
|
17848
17953
|
]
|
|
17849
17954
|
}
|
|
17850
17955
|
),
|
|
17851
|
-
subtitle && /* @__PURE__ */
|
|
17956
|
+
subtitle && /* @__PURE__ */ jsx92(
|
|
17852
17957
|
Box_default2,
|
|
17853
17958
|
{
|
|
17854
17959
|
sx: {
|
|
@@ -17856,10 +17961,10 @@ var Header = ({
|
|
|
17856
17961
|
...iconId && { paddingLeft: "56px" },
|
|
17857
17962
|
paddingBottom: "8px"
|
|
17858
17963
|
},
|
|
17859
|
-
children: /* @__PURE__ */
|
|
17964
|
+
children: /* @__PURE__ */ jsx92(HeaderSubtitle_default, { text: subtitle })
|
|
17860
17965
|
}
|
|
17861
17966
|
),
|
|
17862
|
-
children && /* @__PURE__ */
|
|
17967
|
+
children && /* @__PURE__ */ jsx92(Box_default2, { children })
|
|
17863
17968
|
] })
|
|
17864
17969
|
}
|
|
17865
17970
|
) });
|
|
@@ -17871,7 +17976,7 @@ import FilerobotImageEditor, {
|
|
|
17871
17976
|
TABS,
|
|
17872
17977
|
TOOLS
|
|
17873
17978
|
} from "react-filerobot-image-editor";
|
|
17874
|
-
import { jsx as
|
|
17979
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
17875
17980
|
var ImageEditor = ({
|
|
17876
17981
|
imageUrl,
|
|
17877
17982
|
maxWidth: maxWidth2,
|
|
@@ -18110,7 +18215,7 @@ var ImageEditor = ({
|
|
|
18110
18215
|
document.head.removeChild(style3);
|
|
18111
18216
|
};
|
|
18112
18217
|
}, []);
|
|
18113
|
-
return /* @__PURE__ */
|
|
18218
|
+
return /* @__PURE__ */ jsx93(
|
|
18114
18219
|
Box_default2,
|
|
18115
18220
|
{
|
|
18116
18221
|
sx: {
|
|
@@ -18177,7 +18282,7 @@ var ImageEditor = ({
|
|
|
18177
18282
|
},
|
|
18178
18283
|
height: "100%"
|
|
18179
18284
|
},
|
|
18180
|
-
children: /* @__PURE__ */
|
|
18285
|
+
children: /* @__PURE__ */ jsx93(
|
|
18181
18286
|
FilerobotImageEditor,
|
|
18182
18287
|
{
|
|
18183
18288
|
source: imageUrl,
|
|
@@ -18297,7 +18402,7 @@ function useResizeObserver() {
|
|
|
18297
18402
|
}
|
|
18298
18403
|
|
|
18299
18404
|
// src/components/info/InfoBox.tsx
|
|
18300
|
-
import { jsx as
|
|
18405
|
+
import { jsx as jsx94, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
18301
18406
|
var variantStyles2 = {
|
|
18302
18407
|
default: {
|
|
18303
18408
|
borderLeft: `2px solid ${electricLavender}`,
|
|
@@ -18342,7 +18447,7 @@ var InfoBox = ({
|
|
|
18342
18447
|
...sx && { sx }
|
|
18343
18448
|
},
|
|
18344
18449
|
children: [
|
|
18345
|
-
/* @__PURE__ */
|
|
18450
|
+
/* @__PURE__ */ jsx94(
|
|
18346
18451
|
Box_default2,
|
|
18347
18452
|
{
|
|
18348
18453
|
sx: !expanded && showExpandButton ? {
|
|
@@ -18360,7 +18465,7 @@ var InfoBox = ({
|
|
|
18360
18465
|
children
|
|
18361
18466
|
}
|
|
18362
18467
|
),
|
|
18363
|
-
showExpandButton && /* @__PURE__ */
|
|
18468
|
+
showExpandButton && /* @__PURE__ */ jsx94(
|
|
18364
18469
|
IconButton_default,
|
|
18365
18470
|
{
|
|
18366
18471
|
iconId: expanded ? "chevron-up" : "chevron-down",
|
|
@@ -18379,7 +18484,7 @@ var InfoBox_default = InfoBox;
|
|
|
18379
18484
|
// src/components/input/TextFieldContainer.tsx
|
|
18380
18485
|
import * as React47 from "react";
|
|
18381
18486
|
import { lighten } from "@mui/material";
|
|
18382
|
-
import { jsx as
|
|
18487
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
18383
18488
|
var TextFieldContainer = React47.forwardRef(function TextFieldContainer2({
|
|
18384
18489
|
children,
|
|
18385
18490
|
variant = "default",
|
|
@@ -18394,7 +18499,7 @@ var TextFieldContainer = React47.forwardRef(function TextFieldContainer2({
|
|
|
18394
18499
|
sx,
|
|
18395
18500
|
"data-test": dataTest
|
|
18396
18501
|
}, ref) {
|
|
18397
|
-
return /* @__PURE__ */
|
|
18502
|
+
return /* @__PURE__ */ jsx95(
|
|
18398
18503
|
Box_default2,
|
|
18399
18504
|
{
|
|
18400
18505
|
className: `Cn-TextFieldContainer ${className}`,
|
|
@@ -18484,7 +18589,7 @@ import { styled as styled6 } from "@mui/material";
|
|
|
18484
18589
|
// src/components/input/InputLabel.tsx
|
|
18485
18590
|
import * as React48 from "react";
|
|
18486
18591
|
import { styled as styled4 } from "@mui/material";
|
|
18487
|
-
import { jsx as
|
|
18592
|
+
import { jsx as jsx96, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
18488
18593
|
var severityColors = {
|
|
18489
18594
|
info: grey900,
|
|
18490
18595
|
error: errorMain
|
|
@@ -18510,7 +18615,7 @@ var InputLabel = React48.forwardRef(
|
|
|
18510
18615
|
ref,
|
|
18511
18616
|
children: [
|
|
18512
18617
|
children,
|
|
18513
|
-
infoText && /* @__PURE__ */
|
|
18618
|
+
infoText && /* @__PURE__ */ jsx96(Tooltip_default, { textVariant: "caption", title: infoText, children: /* @__PURE__ */ jsx96(
|
|
18514
18619
|
Icon_default,
|
|
18515
18620
|
{
|
|
18516
18621
|
id: "information-outline",
|
|
@@ -18532,7 +18637,7 @@ var InputLabel_default = InputLabel;
|
|
|
18532
18637
|
// src/components/input/InputHelperText.tsx
|
|
18533
18638
|
import { styled as styled5 } from "@mui/material";
|
|
18534
18639
|
import * as React49 from "react";
|
|
18535
|
-
import { jsx as
|
|
18640
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
18536
18641
|
var severityColors2 = {
|
|
18537
18642
|
info: grey800,
|
|
18538
18643
|
error: errorMain
|
|
@@ -18548,13 +18653,13 @@ var StyledDiv = styled5("div", {
|
|
|
18548
18653
|
);
|
|
18549
18654
|
var InputHelperText = React49.forwardRef(
|
|
18550
18655
|
function InputLabel3({ severity = "info", ...rest }, ref) {
|
|
18551
|
-
return /* @__PURE__ */
|
|
18656
|
+
return /* @__PURE__ */ jsx97(StyledDiv, { ...rest, ref, severity });
|
|
18552
18657
|
}
|
|
18553
18658
|
);
|
|
18554
18659
|
var InputHelperText_default = InputHelperText;
|
|
18555
18660
|
|
|
18556
18661
|
// src/components/input/TextField.tsx
|
|
18557
|
-
import { Fragment as
|
|
18662
|
+
import { Fragment as Fragment21, jsx as jsx98, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
18558
18663
|
var commonInputStylesOptions = {
|
|
18559
18664
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
18560
18665
|
};
|
|
@@ -18695,7 +18800,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18695
18800
|
gap: "8px"
|
|
18696
18801
|
},
|
|
18697
18802
|
children: [
|
|
18698
|
-
iconId && /* @__PURE__ */
|
|
18803
|
+
iconId && /* @__PURE__ */ jsx98(
|
|
18699
18804
|
Icon_default,
|
|
18700
18805
|
{
|
|
18701
18806
|
id: iconId,
|
|
@@ -18708,7 +18813,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18708
18813
|
}
|
|
18709
18814
|
),
|
|
18710
18815
|
!groupElements && startAdornment,
|
|
18711
|
-
multiline && /* @__PURE__ */
|
|
18816
|
+
multiline && /* @__PURE__ */ jsx98(
|
|
18712
18817
|
StyledTextarea,
|
|
18713
18818
|
{
|
|
18714
18819
|
ref: ref || inputRef,
|
|
@@ -18742,7 +18847,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18742
18847
|
...restProps
|
|
18743
18848
|
}
|
|
18744
18849
|
),
|
|
18745
|
-
!multiline && /* @__PURE__ */
|
|
18850
|
+
!multiline && /* @__PURE__ */ jsx98(
|
|
18746
18851
|
StyledInput,
|
|
18747
18852
|
{
|
|
18748
18853
|
type,
|
|
@@ -18780,7 +18885,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18780
18885
|
gap: "8px"
|
|
18781
18886
|
},
|
|
18782
18887
|
children: [
|
|
18783
|
-
existsClearButton && /* @__PURE__ */
|
|
18888
|
+
existsClearButton && /* @__PURE__ */ jsx98(
|
|
18784
18889
|
IconButton_default,
|
|
18785
18890
|
{
|
|
18786
18891
|
size: "M",
|
|
@@ -18810,8 +18915,8 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18810
18915
|
]
|
|
18811
18916
|
}
|
|
18812
18917
|
);
|
|
18813
|
-
return /* @__PURE__ */ jsxs43(
|
|
18814
|
-
label && /* @__PURE__ */
|
|
18918
|
+
return /* @__PURE__ */ jsxs43(Fragment21, { children: [
|
|
18919
|
+
label && /* @__PURE__ */ jsx98(
|
|
18815
18920
|
InputLabel_default,
|
|
18816
18921
|
{
|
|
18817
18922
|
htmlFor: customId ?? id,
|
|
@@ -18864,7 +18969,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18864
18969
|
}
|
|
18865
18970
|
),
|
|
18866
18971
|
!groupElements && getTextFieldContainer(),
|
|
18867
|
-
helperText && /* @__PURE__ */
|
|
18972
|
+
helperText && /* @__PURE__ */ jsx98(
|
|
18868
18973
|
InputHelperText_default,
|
|
18869
18974
|
{
|
|
18870
18975
|
severity: isError ? "error" : "info",
|
|
@@ -18879,7 +18984,7 @@ var TextField = React50.forwardRef(function TextField2({
|
|
|
18879
18984
|
var TextField_default = TextField;
|
|
18880
18985
|
|
|
18881
18986
|
// src/components/input/DebouncedTextField.tsx
|
|
18882
|
-
import { jsx as
|
|
18987
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
18883
18988
|
var DebouncedTextField = React51.forwardRef(function DebouncedTextField2({ value, onChange, debounce = 100, ...rest }, ref) {
|
|
18884
18989
|
const [text, setText] = useState15(value);
|
|
18885
18990
|
const onChangeDebounced = useDebouncedCallback(
|
|
@@ -18893,7 +18998,7 @@ var DebouncedTextField = React51.forwardRef(function DebouncedTextField2({ value
|
|
|
18893
18998
|
useEffect10(() => {
|
|
18894
18999
|
setText(value);
|
|
18895
19000
|
}, [value]);
|
|
18896
|
-
return /* @__PURE__ */
|
|
19001
|
+
return /* @__PURE__ */ jsx99(
|
|
18897
19002
|
TextField_default,
|
|
18898
19003
|
{
|
|
18899
19004
|
value: text,
|
|
@@ -18918,7 +19023,7 @@ import { tz as tz4 } from "moment-timezone";
|
|
|
18918
19023
|
|
|
18919
19024
|
// src/components/popover/Popover.tsx
|
|
18920
19025
|
import MuiPopover from "@mui/material/Popover";
|
|
18921
|
-
import { jsx as
|
|
19026
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
18922
19027
|
var Popover = ({
|
|
18923
19028
|
horizontalAlign = "center",
|
|
18924
19029
|
anchorHorizontalOrigin = "center",
|
|
@@ -18926,7 +19031,7 @@ var Popover = ({
|
|
|
18926
19031
|
anchorVerticalAlign = "bottom",
|
|
18927
19032
|
centeredInScreen = false,
|
|
18928
19033
|
...props
|
|
18929
|
-
}) => /* @__PURE__ */
|
|
19034
|
+
}) => /* @__PURE__ */ jsx100(
|
|
18930
19035
|
MuiPopover,
|
|
18931
19036
|
{
|
|
18932
19037
|
disableRestoreFocus: props.disableRestoreFocus,
|
|
@@ -18959,7 +19064,7 @@ var Popover_default = Popover;
|
|
|
18959
19064
|
|
|
18960
19065
|
// src/components/popover/PopoverActions.tsx
|
|
18961
19066
|
import { Stack as Stack6 } from "@mui/material";
|
|
18962
|
-
import { jsx as
|
|
19067
|
+
import { jsx as jsx101, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
18963
19068
|
var PopoverActions = ({
|
|
18964
19069
|
leftContent,
|
|
18965
19070
|
rightContent,
|
|
@@ -18978,8 +19083,8 @@ var PopoverActions = ({
|
|
|
18978
19083
|
...sx
|
|
18979
19084
|
},
|
|
18980
19085
|
children: [
|
|
18981
|
-
/* @__PURE__ */
|
|
18982
|
-
/* @__PURE__ */
|
|
19086
|
+
/* @__PURE__ */ jsx101("div", { children: leftContent }),
|
|
19087
|
+
/* @__PURE__ */ jsx101("div", { children: rightContent })
|
|
18983
19088
|
]
|
|
18984
19089
|
}
|
|
18985
19090
|
);
|
|
@@ -18997,7 +19102,7 @@ import { lighten as lighten2 } from "@mui/material";
|
|
|
18997
19102
|
|
|
18998
19103
|
// src/components/input/CalendarDay.tsx
|
|
18999
19104
|
import { useTheme as useTheme5 } from "@mui/material/styles";
|
|
19000
|
-
import { jsx as
|
|
19105
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
19001
19106
|
var calendarDayButtonSize = 32;
|
|
19002
19107
|
var CalendarDayButton = styled_default("button")({});
|
|
19003
19108
|
var CalendarDay = ({
|
|
@@ -19015,7 +19120,7 @@ var CalendarDay = ({
|
|
|
19015
19120
|
allowKeyboardNavigation = false
|
|
19016
19121
|
}) => {
|
|
19017
19122
|
const theme2 = useTheme5();
|
|
19018
|
-
return /* @__PURE__ */
|
|
19123
|
+
return /* @__PURE__ */ jsx102(
|
|
19019
19124
|
CalendarDayButton,
|
|
19020
19125
|
{
|
|
19021
19126
|
"data-testid": `calendar-day-${children}`,
|
|
@@ -19058,7 +19163,7 @@ var CalendarDay = ({
|
|
|
19058
19163
|
},
|
|
19059
19164
|
role: "button",
|
|
19060
19165
|
onClick,
|
|
19061
|
-
children: /* @__PURE__ */
|
|
19166
|
+
children: /* @__PURE__ */ jsx102(
|
|
19062
19167
|
Typography_default,
|
|
19063
19168
|
{
|
|
19064
19169
|
sx: {
|
|
@@ -19086,7 +19191,7 @@ var CalendarDay = ({
|
|
|
19086
19191
|
var CalendarDay_default = CalendarDay;
|
|
19087
19192
|
|
|
19088
19193
|
// src/components/input/CalendarMonth.tsx
|
|
19089
|
-
import { jsx as
|
|
19194
|
+
import { jsx as jsx103, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
19090
19195
|
var bgColorLightCoefficient = 0.6;
|
|
19091
19196
|
var CalendarMonth = ({
|
|
19092
19197
|
minDate = null,
|
|
@@ -19264,7 +19369,7 @@ var CalendarMonth = ({
|
|
|
19264
19369
|
},
|
|
19265
19370
|
"data-testid": `calendar-month-${year}-${month}`,
|
|
19266
19371
|
children: [
|
|
19267
|
-
/* @__PURE__ */
|
|
19372
|
+
/* @__PURE__ */ jsx103(
|
|
19268
19373
|
Typography_default,
|
|
19269
19374
|
{
|
|
19270
19375
|
sx: {
|
|
@@ -19275,7 +19380,7 @@ var CalendarMonth = ({
|
|
|
19275
19380
|
textTransform: "uppercase"
|
|
19276
19381
|
}
|
|
19277
19382
|
},
|
|
19278
|
-
children: /* @__PURE__ */
|
|
19383
|
+
children: /* @__PURE__ */ jsx103(
|
|
19279
19384
|
DateFormatter_default,
|
|
19280
19385
|
{
|
|
19281
19386
|
date: firstDayOfMonth.toDate(),
|
|
@@ -19284,8 +19389,8 @@ var CalendarMonth = ({
|
|
|
19284
19389
|
)
|
|
19285
19390
|
}
|
|
19286
19391
|
),
|
|
19287
|
-
isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */
|
|
19288
|
-
dayList.map((day) => /* @__PURE__ */
|
|
19392
|
+
isMonthInFullLine && indexOfDay > 0 && /* @__PURE__ */ jsx103("span", { style: { gridColumn: `span ${indexOfDay}` }, children: "\xA0" }),
|
|
19393
|
+
dayList.map((day) => /* @__PURE__ */ jsx103(
|
|
19289
19394
|
CalendarDay_default,
|
|
19290
19395
|
{
|
|
19291
19396
|
allowKeyboardNavigation,
|
|
@@ -19303,7 +19408,7 @@ var CalendarMonth_default = CalendarMonth;
|
|
|
19303
19408
|
|
|
19304
19409
|
// src/components/input/DaysOfWeekRow.tsx
|
|
19305
19410
|
import * as React53 from "react";
|
|
19306
|
-
import { jsx as
|
|
19411
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
19307
19412
|
var DaysOfWeekRow = () => {
|
|
19308
19413
|
const { locale, timezone } = React53.useContext(IntlContext);
|
|
19309
19414
|
const daysOfWeekLong = React53.useMemo(
|
|
@@ -19314,7 +19419,7 @@ var DaysOfWeekRow = () => {
|
|
|
19314
19419
|
() => getWeekDayNamesForLocale(locale, "narrow", timezone),
|
|
19315
19420
|
[locale, timezone]
|
|
19316
19421
|
);
|
|
19317
|
-
return /* @__PURE__ */
|
|
19422
|
+
return /* @__PURE__ */ jsx104(
|
|
19318
19423
|
Stack_default,
|
|
19319
19424
|
{
|
|
19320
19425
|
direction: "row",
|
|
@@ -19324,7 +19429,7 @@ var DaysOfWeekRow = () => {
|
|
|
19324
19429
|
backgroundColor: grey100,
|
|
19325
19430
|
alignItems: "center"
|
|
19326
19431
|
},
|
|
19327
|
-
children: daysOfWeek.map((day, index) => /* @__PURE__ */
|
|
19432
|
+
children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx104(Tooltip_default, { title: daysOfWeekLong[index], children: /* @__PURE__ */ jsx104(
|
|
19328
19433
|
Typography_default,
|
|
19329
19434
|
{
|
|
19330
19435
|
sx: {
|
|
@@ -19341,7 +19446,7 @@ var DaysOfWeekRow = () => {
|
|
|
19341
19446
|
var DaysOfWeekRow_default = DaysOfWeekRow;
|
|
19342
19447
|
|
|
19343
19448
|
// src/components/input/CalendarScrollPicker.tsx
|
|
19344
|
-
import { jsx as
|
|
19449
|
+
import { jsx as jsx105, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
19345
19450
|
var CalendarScrollPicker = ({
|
|
19346
19451
|
minDate,
|
|
19347
19452
|
maxDate,
|
|
@@ -19366,7 +19471,7 @@ var CalendarScrollPicker = ({
|
|
|
19366
19471
|
}) => {
|
|
19367
19472
|
const month = (minDate.month + index) % 12;
|
|
19368
19473
|
const year = Math.floor((minDate.month + index) / 12) + minDate.year;
|
|
19369
|
-
return /* @__PURE__ */
|
|
19474
|
+
return /* @__PURE__ */ jsx105(Box_default2, { sx: { ...style3, paddingLeft: "8px", boxSizing: "border-box" }, children: /* @__PURE__ */ jsx105(
|
|
19370
19475
|
CalendarMonth_default,
|
|
19371
19476
|
{
|
|
19372
19477
|
minDate,
|
|
@@ -19391,14 +19496,14 @@ var CalendarScrollPicker = ({
|
|
|
19391
19496
|
flexDirection: "column"
|
|
19392
19497
|
},
|
|
19393
19498
|
children: [
|
|
19394
|
-
/* @__PURE__ */
|
|
19395
|
-
/* @__PURE__ */
|
|
19499
|
+
/* @__PURE__ */ jsx105(DaysOfWeekRow_default, {}),
|
|
19500
|
+
/* @__PURE__ */ jsx105(
|
|
19396
19501
|
Box_default2,
|
|
19397
19502
|
{
|
|
19398
19503
|
sx: {
|
|
19399
19504
|
flex: "1 1 0"
|
|
19400
19505
|
},
|
|
19401
|
-
children: /* @__PURE__ */
|
|
19506
|
+
children: /* @__PURE__ */ jsx105(AutoSizer3, { children: ({ height: height2, width: width2 }) => /* @__PURE__ */ jsx105(
|
|
19402
19507
|
FixedSizeList,
|
|
19403
19508
|
{
|
|
19404
19509
|
ref: listRefCallback,
|
|
@@ -19420,7 +19525,7 @@ var CalendarScrollPicker = ({
|
|
|
19420
19525
|
var CalendarScrollPicker_default = CalendarScrollPicker;
|
|
19421
19526
|
|
|
19422
19527
|
// src/components/input/DateIntervalPickerList.tsx
|
|
19423
|
-
import { jsx as
|
|
19528
|
+
import { jsx as jsx106, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
19424
19529
|
var dateIntervals = {
|
|
19425
19530
|
today: "TODAY",
|
|
19426
19531
|
yesterday: "YESTERDAY",
|
|
@@ -19455,7 +19560,7 @@ var DateIntervalPickerList = ({
|
|
|
19455
19560
|
}) => {
|
|
19456
19561
|
const { t } = useTranslation();
|
|
19457
19562
|
return /* @__PURE__ */ jsxs47(List_default, { children: [
|
|
19458
|
-
Object.keys(dateIntervals).filter((i) => maxSelectableDays > 90 || !isLongInterval(i)).filter((i) => !allowedIntervals || allowedIntervals.includes(i)).map((key) => /* @__PURE__ */
|
|
19563
|
+
Object.keys(dateIntervals).filter((i) => maxSelectableDays > 90 || !isLongInterval(i)).filter((i) => !allowedIntervals || allowedIntervals.includes(i)).map((key) => /* @__PURE__ */ jsx106(
|
|
19459
19564
|
ListItemButton_default,
|
|
19460
19565
|
{
|
|
19461
19566
|
text: t(
|
|
@@ -19467,13 +19572,13 @@ var DateIntervalPickerList = ({
|
|
|
19467
19572
|
},
|
|
19468
19573
|
key
|
|
19469
19574
|
)),
|
|
19470
|
-
allowCompare && /* @__PURE__ */
|
|
19471
|
-
allowCompare && /* @__PURE__ */
|
|
19575
|
+
allowCompare && /* @__PURE__ */ jsx106(Divider_default, {}),
|
|
19576
|
+
allowCompare && /* @__PURE__ */ jsx106(
|
|
19472
19577
|
ListItem_default,
|
|
19473
19578
|
{
|
|
19474
19579
|
text: t("DATE_INTERVAL_PICKER.COMPARE"),
|
|
19475
19580
|
typographyVariant: "body1",
|
|
19476
|
-
endAdornment: /* @__PURE__ */
|
|
19581
|
+
endAdornment: /* @__PURE__ */ jsx106(
|
|
19477
19582
|
Switch_default,
|
|
19478
19583
|
{
|
|
19479
19584
|
checked: isComparing,
|
|
@@ -19484,7 +19589,7 @@ var DateIntervalPickerList = ({
|
|
|
19484
19589
|
),
|
|
19485
19590
|
allowCompare && Object.keys(comparisonIntervals).filter(
|
|
19486
19591
|
(i) => maxSelectableDays > 90 || !isLongComparisonInterval(i)
|
|
19487
|
-
).map((key) => /* @__PURE__ */
|
|
19592
|
+
).map((key) => /* @__PURE__ */ jsx106(
|
|
19488
19593
|
ListItemButton_default,
|
|
19489
19594
|
{
|
|
19490
19595
|
disabled: !isComparing,
|
|
@@ -19510,14 +19615,14 @@ import { TimeField as MuiTimeField } from "@mui/x-date-pickers";
|
|
|
19510
19615
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
19511
19616
|
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
|
|
19512
19617
|
import { tz as tz3 } from "moment-timezone";
|
|
19513
|
-
import { jsx as
|
|
19618
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
19514
19619
|
var ExtendedTextField = ({
|
|
19515
19620
|
inputProps,
|
|
19516
19621
|
ownerState,
|
|
19517
19622
|
InputProps,
|
|
19518
19623
|
error,
|
|
19519
19624
|
...rest
|
|
19520
|
-
}) => /* @__PURE__ */
|
|
19625
|
+
}) => /* @__PURE__ */ jsx107(TextField_default, { ...inputProps, ...rest });
|
|
19521
19626
|
var TimeField = function TimeField2({
|
|
19522
19627
|
onChange,
|
|
19523
19628
|
value,
|
|
@@ -19546,7 +19651,7 @@ var TimeField = function TimeField2({
|
|
|
19546
19651
|
},
|
|
19547
19652
|
[onChange]
|
|
19548
19653
|
);
|
|
19549
|
-
return /* @__PURE__ */
|
|
19654
|
+
return /* @__PURE__ */ jsx107(LocalizationProvider, { dateAdapter: AdapterMoment, children: /* @__PURE__ */ jsx107(
|
|
19550
19655
|
MuiTimeField,
|
|
19551
19656
|
{
|
|
19552
19657
|
onChange: _onChange,
|
|
@@ -19565,7 +19670,7 @@ var TimeField = function TimeField2({
|
|
|
19565
19670
|
var TimeField_default = TimeField;
|
|
19566
19671
|
|
|
19567
19672
|
// src/components/input/DateIntervalPickerInputs.tsx
|
|
19568
|
-
import { jsx as
|
|
19673
|
+
import { jsx as jsx108, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
19569
19674
|
var DateIntervalPickerInputs = ({
|
|
19570
19675
|
startDate,
|
|
19571
19676
|
startTime,
|
|
@@ -19596,7 +19701,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19596
19701
|
hourLabel,
|
|
19597
19702
|
color: color3
|
|
19598
19703
|
}) => /* @__PURE__ */ jsxs48(Stack7, { children: [
|
|
19599
|
-
/* @__PURE__ */
|
|
19704
|
+
/* @__PURE__ */ jsx108(
|
|
19600
19705
|
TextField_default,
|
|
19601
19706
|
{
|
|
19602
19707
|
"data-testid": dataTestId,
|
|
@@ -19610,7 +19715,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19610
19715
|
activeColor: color3
|
|
19611
19716
|
}
|
|
19612
19717
|
),
|
|
19613
|
-
showTime && /* @__PURE__ */
|
|
19718
|
+
showTime && /* @__PURE__ */ jsx108(
|
|
19614
19719
|
TimeField_default,
|
|
19615
19720
|
{
|
|
19616
19721
|
activeColor: color3,
|
|
@@ -19654,7 +19759,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19654
19759
|
]
|
|
19655
19760
|
}
|
|
19656
19761
|
),
|
|
19657
|
-
/* @__PURE__ */
|
|
19762
|
+
/* @__PURE__ */ jsx108(Collapse6, { in: isComparing, children: /* @__PURE__ */ jsxs48(
|
|
19658
19763
|
Box_default2,
|
|
19659
19764
|
{
|
|
19660
19765
|
sx: {
|
|
@@ -19686,7 +19791,7 @@ var DateIntervalPickerInputs = ({
|
|
|
19686
19791
|
var DateIntervalPickerInputs_default = DateIntervalPickerInputs;
|
|
19687
19792
|
|
|
19688
19793
|
// src/components/input/DateIntervalPickerPopover.tsx
|
|
19689
|
-
import { jsx as
|
|
19794
|
+
import { jsx as jsx109, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
19690
19795
|
var DateIntervalPickerPopover = ({
|
|
19691
19796
|
interval,
|
|
19692
19797
|
startDate,
|
|
@@ -19731,14 +19836,23 @@ var DateIntervalPickerPopover = ({
|
|
|
19731
19836
|
const result = getDatesFromDateInterval(
|
|
19732
19837
|
interval2,
|
|
19733
19838
|
maxSelectableDays,
|
|
19734
|
-
timezone
|
|
19839
|
+
timezone,
|
|
19840
|
+
{ includeTime: !!showTime }
|
|
19841
|
+
);
|
|
19842
|
+
const displayEndDate2 = getDisplayEndDate(
|
|
19843
|
+
result.endDate,
|
|
19844
|
+
timezone,
|
|
19845
|
+
!!showTime
|
|
19735
19846
|
);
|
|
19736
|
-
const displayEndDate2 = getDisplayEndDate(result.endDate, timezone);
|
|
19737
19847
|
return {
|
|
19738
19848
|
startDate: dateInputFormatter(result.startDate),
|
|
19739
19849
|
endDate: dateInputFormatter(displayEndDate2),
|
|
19740
19850
|
startSimpleDate: dateToSimpleDate(result.startDate, timezone),
|
|
19741
|
-
endSimpleDate: dateToSimpleDate(displayEndDate2, timezone)
|
|
19851
|
+
endSimpleDate: dateToSimpleDate(displayEndDate2, timezone),
|
|
19852
|
+
startTime: result.startDate,
|
|
19853
|
+
endTime: result.endDate,
|
|
19854
|
+
comparisonStartTime: result.startDate,
|
|
19855
|
+
comparisonEndTime: result.endDate
|
|
19742
19856
|
};
|
|
19743
19857
|
};
|
|
19744
19858
|
const getStateFieldsForComparisonInterval = (comparisonInterval2, startSimpleDate, endSimpleDate) => {
|
|
@@ -19783,8 +19897,8 @@ var DateIntervalPickerPopover = ({
|
|
|
19783
19897
|
)
|
|
19784
19898
|
};
|
|
19785
19899
|
};
|
|
19786
|
-
const displayEndDate = getDisplayEndDate(endDate, timezone);
|
|
19787
|
-
const displayComparisonEndDate = comparisonEndDate && getDisplayEndDate(comparisonEndDate, timezone);
|
|
19900
|
+
const displayEndDate = getDisplayEndDate(endDate, timezone, !!showTime);
|
|
19901
|
+
const displayComparisonEndDate = comparisonEndDate && getDisplayEndDate(comparisonEndDate, timezone, !!showTime);
|
|
19788
19902
|
const initialState = {
|
|
19789
19903
|
interval,
|
|
19790
19904
|
highlightedInput: "startDate",
|
|
@@ -19820,7 +19934,7 @@ var DateIntervalPickerPopover = ({
|
|
|
19820
19934
|
});
|
|
19821
19935
|
};
|
|
19822
19936
|
const handleApply = () => {
|
|
19823
|
-
const parseEndDate = (dateString) => tz4(parseDate(dateString), timezone).add(1, "day").toDate();
|
|
19937
|
+
const parseEndDate = (dateString) => showTime ? new Date(dateString) : tz4(parseDate(dateString), timezone).add(1, "day").toDate();
|
|
19824
19938
|
onApply({
|
|
19825
19939
|
interval: state.interval,
|
|
19826
19940
|
startDate: applyTimeToDate(
|
|
@@ -19900,7 +20014,8 @@ var DateIntervalPickerPopover = ({
|
|
|
19900
20014
|
const handleChangeTime = (value) => {
|
|
19901
20015
|
setState({
|
|
19902
20016
|
...state,
|
|
19903
|
-
[getTimePropertyName(state.highlightedInput)]: value
|
|
20017
|
+
[getTimePropertyName(state.highlightedInput)]: value,
|
|
20018
|
+
interval: "custom"
|
|
19904
20019
|
});
|
|
19905
20020
|
};
|
|
19906
20021
|
const handleFocusInputDate = (inputDate) => {
|
|
@@ -20092,7 +20207,7 @@ var DateIntervalPickerPopover = ({
|
|
|
20092
20207
|
maxWidth: `${250 + 8 * 2 + 32 * 7}px`
|
|
20093
20208
|
},
|
|
20094
20209
|
children: [
|
|
20095
|
-
/* @__PURE__ */
|
|
20210
|
+
/* @__PURE__ */ jsx109(
|
|
20096
20211
|
Box_default2,
|
|
20097
20212
|
{
|
|
20098
20213
|
sx: {
|
|
@@ -20104,7 +20219,7 @@ var DateIntervalPickerPopover = ({
|
|
|
20104
20219
|
overflowY: "auto"
|
|
20105
20220
|
},
|
|
20106
20221
|
className: "Slim-Vertical-Scroll",
|
|
20107
|
-
children: /* @__PURE__ */
|
|
20222
|
+
children: /* @__PURE__ */ jsx109(
|
|
20108
20223
|
DateIntervalPickerList_default,
|
|
20109
20224
|
{
|
|
20110
20225
|
allowCompare,
|
|
@@ -20120,13 +20235,13 @@ var DateIntervalPickerPopover = ({
|
|
|
20120
20235
|
)
|
|
20121
20236
|
}
|
|
20122
20237
|
),
|
|
20123
|
-
/* @__PURE__ */
|
|
20238
|
+
/* @__PURE__ */ jsx109(
|
|
20124
20239
|
Box_default2,
|
|
20125
20240
|
{
|
|
20126
20241
|
sx: {
|
|
20127
20242
|
gridArea: "inputs"
|
|
20128
20243
|
},
|
|
20129
|
-
children: /* @__PURE__ */
|
|
20244
|
+
children: /* @__PURE__ */ jsx109(
|
|
20130
20245
|
DateIntervalPickerInputs_default,
|
|
20131
20246
|
{
|
|
20132
20247
|
color: color2,
|
|
@@ -20151,13 +20266,13 @@ var DateIntervalPickerPopover = ({
|
|
|
20151
20266
|
)
|
|
20152
20267
|
}
|
|
20153
20268
|
),
|
|
20154
|
-
/* @__PURE__ */
|
|
20269
|
+
/* @__PURE__ */ jsx109(
|
|
20155
20270
|
Box_default2,
|
|
20156
20271
|
{
|
|
20157
20272
|
sx: {
|
|
20158
20273
|
gridArea: "calendar"
|
|
20159
20274
|
},
|
|
20160
|
-
children: /* @__PURE__ */
|
|
20275
|
+
children: /* @__PURE__ */ jsx109(
|
|
20161
20276
|
CalendarScrollPicker_default,
|
|
20162
20277
|
{
|
|
20163
20278
|
minDate: {
|
|
@@ -20196,24 +20311,26 @@ var DateIntervalPickerPopover = ({
|
|
|
20196
20311
|
]
|
|
20197
20312
|
}
|
|
20198
20313
|
),
|
|
20199
|
-
/* @__PURE__ */
|
|
20314
|
+
/* @__PURE__ */ jsx109(
|
|
20200
20315
|
PopoverActions_default,
|
|
20201
20316
|
{
|
|
20202
|
-
|
|
20317
|
+
sx: { padding: "16px 24px" },
|
|
20318
|
+
leftContent: /* @__PURE__ */ jsx109(
|
|
20203
20319
|
Button_default,
|
|
20204
20320
|
{
|
|
20205
|
-
variant: "
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20321
|
+
variant: "contained",
|
|
20322
|
+
color: "white",
|
|
20323
|
+
onClick: handleCancel,
|
|
20324
|
+
text: t("DATE_INTERVAL_PICKER.CANCEL")
|
|
20209
20325
|
}
|
|
20210
20326
|
),
|
|
20211
|
-
rightContent: /* @__PURE__ */
|
|
20327
|
+
rightContent: /* @__PURE__ */ jsx109(
|
|
20212
20328
|
Button_default,
|
|
20213
20329
|
{
|
|
20214
|
-
variant: "
|
|
20215
|
-
onClick:
|
|
20216
|
-
text: t("DATE_INTERVAL_PICKER.
|
|
20330
|
+
variant: "contained",
|
|
20331
|
+
onClick: handleApply,
|
|
20332
|
+
text: t("DATE_INTERVAL_PICKER.APPLY"),
|
|
20333
|
+
disabled: isApplyButtonDisabled()
|
|
20217
20334
|
}
|
|
20218
20335
|
)
|
|
20219
20336
|
}
|
|
@@ -20224,7 +20341,7 @@ var DateIntervalPickerPopover_default = DateIntervalPickerPopover;
|
|
|
20224
20341
|
|
|
20225
20342
|
// src/components/input/DateIntervalPicker.tsx
|
|
20226
20343
|
import { tz as tz5 } from "moment-timezone";
|
|
20227
|
-
import { jsx as
|
|
20344
|
+
import { jsx as jsx110, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
20228
20345
|
var DateIntervalPicker = ({
|
|
20229
20346
|
interval,
|
|
20230
20347
|
startDate,
|
|
@@ -20262,7 +20379,7 @@ var DateIntervalPicker = ({
|
|
|
20262
20379
|
}
|
|
20263
20380
|
setAnchorEl(null);
|
|
20264
20381
|
};
|
|
20265
|
-
const displayEndDate = getDisplayEndDate(endDate, timezone);
|
|
20382
|
+
const displayEndDate = getDisplayEndDate(endDate, timezone, !!showTime);
|
|
20266
20383
|
const isEndDateVisible = !isSameDate(startDate, displayEndDate);
|
|
20267
20384
|
const internalMaxDate = maxDate ?? tz5(timezone).toDate();
|
|
20268
20385
|
const internalMinDate = minDate ?? tz5(internalMaxDate, timezone).subtract(maxSelectableDays - 1, "days").toDate();
|
|
@@ -20282,7 +20399,7 @@ var DateIntervalPicker = ({
|
|
|
20282
20399
|
disabled,
|
|
20283
20400
|
onClick: handleButtonClick,
|
|
20284
20401
|
children: [
|
|
20285
|
-
/* @__PURE__ */
|
|
20402
|
+
/* @__PURE__ */ jsx110(
|
|
20286
20403
|
"span",
|
|
20287
20404
|
{
|
|
20288
20405
|
style: {
|
|
@@ -20292,7 +20409,7 @@ var DateIntervalPicker = ({
|
|
|
20292
20409
|
borderRadius: "2px",
|
|
20293
20410
|
alignSelf: "center"
|
|
20294
20411
|
},
|
|
20295
|
-
children: /* @__PURE__ */
|
|
20412
|
+
children: /* @__PURE__ */ jsx110(Typography_default, { variant: "body2", children: t(
|
|
20296
20413
|
`DATE_INTERVAL_PICKER.DATE_INTERVALS.${dateIntervals[interval]}`
|
|
20297
20414
|
) })
|
|
20298
20415
|
}
|
|
@@ -20307,7 +20424,7 @@ var DateIntervalPicker = ({
|
|
|
20307
20424
|
},
|
|
20308
20425
|
children: [
|
|
20309
20426
|
/* @__PURE__ */ jsxs50("div", { children: [
|
|
20310
|
-
/* @__PURE__ */
|
|
20427
|
+
/* @__PURE__ */ jsx110(
|
|
20311
20428
|
DateFormatter_default,
|
|
20312
20429
|
{
|
|
20313
20430
|
date: startDate,
|
|
@@ -20317,7 +20434,7 @@ var DateIntervalPicker = ({
|
|
|
20317
20434
|
}
|
|
20318
20435
|
),
|
|
20319
20436
|
isEndDateVisible && " - ",
|
|
20320
|
-
isEndDateVisible && /* @__PURE__ */
|
|
20437
|
+
isEndDateVisible && /* @__PURE__ */ jsx110(
|
|
20321
20438
|
DateFormatter_default,
|
|
20322
20439
|
{
|
|
20323
20440
|
date: displayEndDate,
|
|
@@ -20338,7 +20455,7 @@ var DateIntervalPicker = ({
|
|
|
20338
20455
|
children: [
|
|
20339
20456
|
t("DATE_INTERVAL_PICKER.COMPARE"),
|
|
20340
20457
|
": ",
|
|
20341
|
-
/* @__PURE__ */
|
|
20458
|
+
/* @__PURE__ */ jsx110(
|
|
20342
20459
|
DateFormatter_default,
|
|
20343
20460
|
{
|
|
20344
20461
|
date: comparisonStartDate,
|
|
@@ -20348,7 +20465,7 @@ var DateIntervalPicker = ({
|
|
|
20348
20465
|
}
|
|
20349
20466
|
),
|
|
20350
20467
|
" - ",
|
|
20351
|
-
/* @__PURE__ */
|
|
20468
|
+
/* @__PURE__ */ jsx110(
|
|
20352
20469
|
DateFormatter_default,
|
|
20353
20470
|
{
|
|
20354
20471
|
date: comparisonEndDate,
|
|
@@ -20363,11 +20480,11 @@ var DateIntervalPicker = ({
|
|
|
20363
20480
|
]
|
|
20364
20481
|
}
|
|
20365
20482
|
),
|
|
20366
|
-
/* @__PURE__ */
|
|
20483
|
+
/* @__PURE__ */ jsx110(Icon_default, { id: "menu-down", sx: { color: grey400 } })
|
|
20367
20484
|
]
|
|
20368
20485
|
}
|
|
20369
20486
|
),
|
|
20370
|
-
anchorEl !== null && /* @__PURE__ */
|
|
20487
|
+
anchorEl !== null && /* @__PURE__ */ jsx110(
|
|
20371
20488
|
DateIntervalPickerPopover_default,
|
|
20372
20489
|
{
|
|
20373
20490
|
...{
|
|
@@ -20400,7 +20517,7 @@ var DateIntervalPicker_default = DateIntervalPicker;
|
|
|
20400
20517
|
// src/components/input/SelectPopoverItem.tsx
|
|
20401
20518
|
import { Grid as Grid2, Stack as Stack8 } from "@mui/material";
|
|
20402
20519
|
import { lighten as lighten3 } from "@mui/material";
|
|
20403
|
-
import { Fragment as
|
|
20520
|
+
import { Fragment as Fragment22, jsx as jsx111, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
20404
20521
|
var bgColorLightCoefficient2 = 0.9;
|
|
20405
20522
|
var SelectPopoverItem = ({
|
|
20406
20523
|
id,
|
|
@@ -20414,7 +20531,7 @@ var SelectPopoverItem = ({
|
|
|
20414
20531
|
tooltip,
|
|
20415
20532
|
isLoadingSubtitle2,
|
|
20416
20533
|
onClick
|
|
20417
|
-
}) => /* @__PURE__ */
|
|
20534
|
+
}) => /* @__PURE__ */ jsx111(Tooltip_default, { title: tooltip || "", children: /* @__PURE__ */ jsx111(
|
|
20418
20535
|
Grid2,
|
|
20419
20536
|
{
|
|
20420
20537
|
size: {
|
|
@@ -20448,7 +20565,7 @@ var SelectPopoverItem = ({
|
|
|
20448
20565
|
boxSizing: "border-box"
|
|
20449
20566
|
},
|
|
20450
20567
|
children: [
|
|
20451
|
-
/* @__PURE__ */
|
|
20568
|
+
/* @__PURE__ */ jsx111(
|
|
20452
20569
|
TextEllipsis_default,
|
|
20453
20570
|
{
|
|
20454
20571
|
color: Colors_exports.grey800,
|
|
@@ -20457,8 +20574,8 @@ var SelectPopoverItem = ({
|
|
|
20457
20574
|
cursor: disabled ? "default" : "pointer"
|
|
20458
20575
|
},
|
|
20459
20576
|
typographyVariant: "body1",
|
|
20460
|
-
text: /* @__PURE__ */ jsxs51(
|
|
20461
|
-
iconId && /* @__PURE__ */
|
|
20577
|
+
text: /* @__PURE__ */ jsxs51(Fragment22, { children: [
|
|
20578
|
+
iconId && /* @__PURE__ */ jsx111(
|
|
20462
20579
|
Icon_default,
|
|
20463
20580
|
{
|
|
20464
20581
|
id: iconId,
|
|
@@ -20476,7 +20593,7 @@ var SelectPopoverItem = ({
|
|
|
20476
20593
|
] })
|
|
20477
20594
|
}
|
|
20478
20595
|
),
|
|
20479
|
-
subtitle1 && /* @__PURE__ */
|
|
20596
|
+
subtitle1 && /* @__PURE__ */ jsx111(
|
|
20480
20597
|
Typography_default,
|
|
20481
20598
|
{
|
|
20482
20599
|
variant: "body2",
|
|
@@ -20486,7 +20603,7 @@ var SelectPopoverItem = ({
|
|
|
20486
20603
|
children: subtitle1
|
|
20487
20604
|
}
|
|
20488
20605
|
),
|
|
20489
|
-
isLoadingSubtitle2 && /* @__PURE__ */
|
|
20606
|
+
isLoadingSubtitle2 && /* @__PURE__ */ jsx111(
|
|
20490
20607
|
Skeleton_default,
|
|
20491
20608
|
{
|
|
20492
20609
|
variant: "text",
|
|
@@ -20498,7 +20615,7 @@ var SelectPopoverItem = ({
|
|
|
20498
20615
|
}
|
|
20499
20616
|
}
|
|
20500
20617
|
),
|
|
20501
|
-
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */
|
|
20618
|
+
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */ jsx111(
|
|
20502
20619
|
Typography_default,
|
|
20503
20620
|
{
|
|
20504
20621
|
variant: "body2",
|
|
@@ -20511,7 +20628,7 @@ var SelectPopoverItem = ({
|
|
|
20511
20628
|
]
|
|
20512
20629
|
}
|
|
20513
20630
|
),
|
|
20514
|
-
chipText && /* @__PURE__ */
|
|
20631
|
+
chipText && /* @__PURE__ */ jsx111(Box_default2, { sx: { minWidth: "72px", flexShrink: 0 }, children: /* @__PURE__ */ jsx111(
|
|
20515
20632
|
Chip_default,
|
|
20516
20633
|
{
|
|
20517
20634
|
label: chipText,
|
|
@@ -20542,7 +20659,7 @@ import MuiSelect from "@mui/material/Select";
|
|
|
20542
20659
|
import InputBase from "@mui/material/InputBase";
|
|
20543
20660
|
import { FixedSizeList as FixedSizeList2 } from "react-window";
|
|
20544
20661
|
import AutoSizer4 from "react-virtualized-auto-sizer";
|
|
20545
|
-
import { jsx as
|
|
20662
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
20546
20663
|
var BootstrapInput = styled7(InputBase)(() => ({
|
|
20547
20664
|
boxShadow: shadows[0],
|
|
20548
20665
|
borderRadius: "16px",
|
|
@@ -20573,7 +20690,7 @@ var BootstrapInput = styled7(InputBase)(() => ({
|
|
|
20573
20690
|
borderColor: grey800
|
|
20574
20691
|
}
|
|
20575
20692
|
}));
|
|
20576
|
-
var ChevronIcon = ({ disabled = false }) => /* @__PURE__ */
|
|
20693
|
+
var ChevronIcon = ({ disabled = false }) => /* @__PURE__ */ jsx112(
|
|
20577
20694
|
Icon_default,
|
|
20578
20695
|
{
|
|
20579
20696
|
id: "chevron-down",
|
|
@@ -20591,7 +20708,7 @@ var SelectOption = ({
|
|
|
20591
20708
|
selected,
|
|
20592
20709
|
colors,
|
|
20593
20710
|
...rest
|
|
20594
|
-
}) => /* @__PURE__ */
|
|
20711
|
+
}) => /* @__PURE__ */ jsx112(
|
|
20595
20712
|
ListItemButton_default,
|
|
20596
20713
|
{
|
|
20597
20714
|
role: "option",
|
|
@@ -20658,7 +20775,7 @@ var Select = function Select2({
|
|
|
20658
20775
|
}) => {
|
|
20659
20776
|
const { value: currentValue, label, ...rest2 } = options[index];
|
|
20660
20777
|
const isSelected = value === currentValue;
|
|
20661
|
-
return /* @__PURE__ */
|
|
20778
|
+
return /* @__PURE__ */ jsx112(
|
|
20662
20779
|
ListItemButton_default,
|
|
20663
20780
|
{
|
|
20664
20781
|
text: label ?? currentValue?.toString() ?? "",
|
|
@@ -20689,7 +20806,7 @@ var Select = function Select2({
|
|
|
20689
20806
|
currentValue ?? ""
|
|
20690
20807
|
);
|
|
20691
20808
|
};
|
|
20692
|
-
const getVirtualizedSelect = () => /* @__PURE__ */
|
|
20809
|
+
const getVirtualizedSelect = () => /* @__PURE__ */ jsx112(
|
|
20693
20810
|
MuiSelect,
|
|
20694
20811
|
{
|
|
20695
20812
|
className: `Cn-Select ${className}`,
|
|
@@ -20725,8 +20842,8 @@ var Select = function Select2({
|
|
|
20725
20842
|
displayEmpty: true,
|
|
20726
20843
|
variant: "standard",
|
|
20727
20844
|
value,
|
|
20728
|
-
IconComponent: () => /* @__PURE__ */
|
|
20729
|
-
input: /* @__PURE__ */
|
|
20845
|
+
IconComponent: () => /* @__PURE__ */ jsx112(ChevronIcon, { disabled: rest.disabled }),
|
|
20846
|
+
input: /* @__PURE__ */ jsx112(BootstrapInput, { placeholder }),
|
|
20730
20847
|
onOpen: () => {
|
|
20731
20848
|
setOpen(true);
|
|
20732
20849
|
onOpen && onOpen();
|
|
@@ -20742,7 +20859,7 @@ var Select = function Select2({
|
|
|
20742
20859
|
return renderValue(value2, options);
|
|
20743
20860
|
}
|
|
20744
20861
|
if (!value2) {
|
|
20745
|
-
return /* @__PURE__ */
|
|
20862
|
+
return /* @__PURE__ */ jsx112("span", { style: { color: grey900 }, children: placeholder });
|
|
20746
20863
|
}
|
|
20747
20864
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
20748
20865
|
},
|
|
@@ -20775,7 +20892,7 @@ var Select = function Select2({
|
|
|
20775
20892
|
}
|
|
20776
20893
|
}
|
|
20777
20894
|
},
|
|
20778
|
-
children: /* @__PURE__ */
|
|
20895
|
+
children: /* @__PURE__ */ jsx112(AutoSizer4, { disableWidth: true, children: ({ height: height2 }) => /* @__PURE__ */ jsx112(
|
|
20779
20896
|
FixedSizeList2,
|
|
20780
20897
|
{
|
|
20781
20898
|
height: height2,
|
|
@@ -20789,7 +20906,7 @@ var Select = function Select2({
|
|
|
20789
20906
|
) })
|
|
20790
20907
|
}
|
|
20791
20908
|
);
|
|
20792
|
-
const getNotVirtualizedSelect = () => /* @__PURE__ */
|
|
20909
|
+
const getNotVirtualizedSelect = () => /* @__PURE__ */ jsx112(
|
|
20793
20910
|
MuiSelect,
|
|
20794
20911
|
{
|
|
20795
20912
|
className: `Cn-Select ${className}`,
|
|
@@ -20829,9 +20946,9 @@ var Select = function Select2({
|
|
|
20829
20946
|
},
|
|
20830
20947
|
multiple,
|
|
20831
20948
|
value,
|
|
20832
|
-
IconComponent: () => /* @__PURE__ */
|
|
20949
|
+
IconComponent: () => /* @__PURE__ */ jsx112(ChevronIcon, { disabled: rest.disabled }),
|
|
20833
20950
|
open,
|
|
20834
|
-
input: /* @__PURE__ */
|
|
20951
|
+
input: /* @__PURE__ */ jsx112(BootstrapInput, { placeholder }),
|
|
20835
20952
|
onOpen: () => {
|
|
20836
20953
|
setOpen(true);
|
|
20837
20954
|
onOpen && onOpen();
|
|
@@ -20847,7 +20964,7 @@ var Select = function Select2({
|
|
|
20847
20964
|
}
|
|
20848
20965
|
if (Array.isArray(value2)) {
|
|
20849
20966
|
if (value2.length === 0) {
|
|
20850
|
-
return /* @__PURE__ */
|
|
20967
|
+
return /* @__PURE__ */ jsx112("span", { style: { color: grey900 }, children: placeholder });
|
|
20851
20968
|
} else {
|
|
20852
20969
|
return value2.map((v) => {
|
|
20853
20970
|
const option = options.find((o) => o.value === v);
|
|
@@ -20856,7 +20973,7 @@ var Select = function Select2({
|
|
|
20856
20973
|
}
|
|
20857
20974
|
} else {
|
|
20858
20975
|
if (!value2) {
|
|
20859
|
-
return /* @__PURE__ */
|
|
20976
|
+
return /* @__PURE__ */ jsx112("span", { style: { color: grey900 }, children: placeholder });
|
|
20860
20977
|
}
|
|
20861
20978
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
20862
20979
|
}
|
|
@@ -20881,7 +20998,7 @@ var Select = function Select2({
|
|
|
20881
20998
|
}
|
|
20882
20999
|
},
|
|
20883
21000
|
...rest,
|
|
20884
|
-
children: children ?? options.map(({ label, value: value2, ...rest2 }) => /* @__PURE__ */
|
|
21001
|
+
children: children ?? options.map(({ label, value: value2, ...rest2 }) => /* @__PURE__ */ jsx112(
|
|
20885
21002
|
SelectOption,
|
|
20886
21003
|
{
|
|
20887
21004
|
label: label ?? value2?.toString() ?? "",
|
|
@@ -20898,7 +21015,7 @@ var Select = function Select2({
|
|
|
20898
21015
|
var Select_default = React58.forwardRef(Select);
|
|
20899
21016
|
|
|
20900
21017
|
// src/components/input/TimezoneSelector.tsx
|
|
20901
|
-
import { jsx as
|
|
21018
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
20902
21019
|
var TimezoneSelector = ({
|
|
20903
21020
|
initialTimezone,
|
|
20904
21021
|
onTimezoneChange
|
|
@@ -20909,7 +21026,7 @@ var TimezoneSelector = ({
|
|
|
20909
21026
|
onTimezoneChange(timezone);
|
|
20910
21027
|
};
|
|
20911
21028
|
const timeZones = moment2.tz.names();
|
|
20912
|
-
return /* @__PURE__ */
|
|
21029
|
+
return /* @__PURE__ */ jsx113(
|
|
20913
21030
|
Select_default,
|
|
20914
21031
|
{
|
|
20915
21032
|
value: selectedTimezone,
|
|
@@ -20923,7 +21040,7 @@ var TimezoneSelector_default = TimezoneSelector;
|
|
|
20923
21040
|
|
|
20924
21041
|
// src/components/input/DaysOfWeekPicker.tsx
|
|
20925
21042
|
import * as React60 from "react";
|
|
20926
|
-
import { jsx as
|
|
21043
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
20927
21044
|
var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
20928
21045
|
const { locale, timezone } = React60.useContext(IntlContext);
|
|
20929
21046
|
const daysOfWeekLong = React60.useMemo(
|
|
@@ -20943,7 +21060,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20943
21060
|
"saturday",
|
|
20944
21061
|
"sunday"
|
|
20945
21062
|
];
|
|
20946
|
-
return /* @__PURE__ */
|
|
21063
|
+
return /* @__PURE__ */ jsx114(
|
|
20947
21064
|
Stack_default,
|
|
20948
21065
|
{
|
|
20949
21066
|
direction: "row",
|
|
@@ -20952,7 +21069,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20952
21069
|
height: "34px",
|
|
20953
21070
|
alignItems: "center"
|
|
20954
21071
|
},
|
|
20955
|
-
children: daysOfWeek.map((day, index) => /* @__PURE__ */
|
|
21072
|
+
children: daysOfWeek.map((day, index) => /* @__PURE__ */ jsx114("div", { style: { margin: "0 2px" }, children: /* @__PURE__ */ jsx114(
|
|
20956
21073
|
ToggleButton_default,
|
|
20957
21074
|
{
|
|
20958
21075
|
sx: {
|
|
@@ -20975,7 +21092,7 @@ var DaysOfWeekPicker = ({ value, onChange }) => {
|
|
|
20975
21092
|
onChange(value.concat([currentValue]));
|
|
20976
21093
|
}
|
|
20977
21094
|
},
|
|
20978
|
-
children: /* @__PURE__ */
|
|
21095
|
+
children: /* @__PURE__ */ jsx114(Tooltip_default, { title: daysOfWeekLong[index], children: /* @__PURE__ */ jsx114("span", { children: day }) }, index)
|
|
20979
21096
|
}
|
|
20980
21097
|
) }, index))
|
|
20981
21098
|
}
|
|
@@ -20988,7 +21105,7 @@ import * as React61 from "react";
|
|
|
20988
21105
|
import GradientColorPicker, {
|
|
20989
21106
|
useColorPicker
|
|
20990
21107
|
} from "react-best-gradient-color-picker";
|
|
20991
|
-
import { Fragment as
|
|
21108
|
+
import { Fragment as Fragment23, jsx as jsx115, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
20992
21109
|
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+))?\)$/;
|
|
20993
21110
|
var isValidColor = (color2) => colorRegex.test(color2);
|
|
20994
21111
|
var colorPickerDefaultColors = [
|
|
@@ -21059,7 +21176,7 @@ var ColorPicker = React61.forwardRef(function ColorPickerWrapper({
|
|
|
21059
21176
|
return hex.length === 1 ? "0" + hex : hex;
|
|
21060
21177
|
}).join("");
|
|
21061
21178
|
};
|
|
21062
|
-
const iconColor = /* @__PURE__ */
|
|
21179
|
+
const iconColor = /* @__PURE__ */ jsx115(
|
|
21063
21180
|
IconButton_default,
|
|
21064
21181
|
{
|
|
21065
21182
|
iconId: value ? "color-square" : "transparent",
|
|
@@ -21081,8 +21198,8 @@ var ColorPicker = React61.forwardRef(function ColorPickerWrapper({
|
|
|
21081
21198
|
handleColorChange(internalPickerValue);
|
|
21082
21199
|
}
|
|
21083
21200
|
}, [value, internalPickerValue, onChange, isValidPickerChange, valueToHex]);
|
|
21084
|
-
return /* @__PURE__ */ jsxs52(
|
|
21085
|
-
/* @__PURE__ */
|
|
21201
|
+
return /* @__PURE__ */ jsxs52(Fragment23, { children: [
|
|
21202
|
+
/* @__PURE__ */ jsx115(
|
|
21086
21203
|
TextField_default,
|
|
21087
21204
|
{
|
|
21088
21205
|
value: textFieldValue,
|
|
@@ -21107,7 +21224,7 @@ var ColorPicker = React61.forwardRef(function ColorPickerWrapper({
|
|
|
21107
21224
|
ref
|
|
21108
21225
|
}
|
|
21109
21226
|
),
|
|
21110
|
-
/* @__PURE__ */
|
|
21227
|
+
/* @__PURE__ */ jsx115(
|
|
21111
21228
|
Popover_default,
|
|
21112
21229
|
{
|
|
21113
21230
|
anchorEl,
|
|
@@ -21116,7 +21233,7 @@ var ColorPicker = React61.forwardRef(function ColorPickerWrapper({
|
|
|
21116
21233
|
onMouseUp: () => {
|
|
21117
21234
|
setValidPickerChange(true);
|
|
21118
21235
|
},
|
|
21119
|
-
children: /* @__PURE__ */
|
|
21236
|
+
children: /* @__PURE__ */ jsx115(
|
|
21120
21237
|
Box_default2,
|
|
21121
21238
|
{
|
|
21122
21239
|
className: "Cn-Color-Gradient-Box",
|
|
@@ -21160,7 +21277,7 @@ var ColorPicker = React61.forwardRef(function ColorPickerWrapper({
|
|
|
21160
21277
|
fontFamily: "Source Sans Pro, sans-serif"
|
|
21161
21278
|
}
|
|
21162
21279
|
},
|
|
21163
|
-
children: /* @__PURE__ */
|
|
21280
|
+
children: /* @__PURE__ */ jsx115(
|
|
21164
21281
|
GradientColorPicker,
|
|
21165
21282
|
{
|
|
21166
21283
|
className: "Cn-Color-Gradient-Picker",
|
|
@@ -21191,7 +21308,7 @@ var ColorPicker_default = ColorPicker;
|
|
|
21191
21308
|
|
|
21192
21309
|
// src/components/input/UploadClickableArea.tsx
|
|
21193
21310
|
import { Box as Box3 } from "@mui/material";
|
|
21194
|
-
import { jsx as
|
|
21311
|
+
import { jsx as jsx116, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
21195
21312
|
var UploadClickableArea = ({
|
|
21196
21313
|
accept,
|
|
21197
21314
|
onFilesChanged,
|
|
@@ -21205,7 +21322,7 @@ var UploadClickableArea = ({
|
|
|
21205
21322
|
display: "inline-block"
|
|
21206
21323
|
},
|
|
21207
21324
|
children: [
|
|
21208
|
-
/* @__PURE__ */
|
|
21325
|
+
/* @__PURE__ */ jsx116(
|
|
21209
21326
|
"input",
|
|
21210
21327
|
{
|
|
21211
21328
|
type: "file",
|
|
@@ -21223,8 +21340,8 @@ var UploadClickableArea_default = UploadClickableArea;
|
|
|
21223
21340
|
// src/components/input/CategorizedPicker.tsx
|
|
21224
21341
|
import React62 from "react";
|
|
21225
21342
|
import { Grid as Grid3, Popover as Popover2, Select as Select3, Stack as Stack9 } from "@mui/material";
|
|
21226
|
-
import { Fragment as
|
|
21227
|
-
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */
|
|
21343
|
+
import { Fragment as Fragment24, jsx as jsx117, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
21344
|
+
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */ jsx117(
|
|
21228
21345
|
Icon_default,
|
|
21229
21346
|
{
|
|
21230
21347
|
id: "chevron-down",
|
|
@@ -21319,8 +21436,8 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21319
21436
|
setSelectedCategory(filteredSelectedCategory);
|
|
21320
21437
|
}
|
|
21321
21438
|
}, [filteredCategories, selectedCategory]);
|
|
21322
|
-
return /* @__PURE__ */ jsxs54(
|
|
21323
|
-
/* @__PURE__ */
|
|
21439
|
+
return /* @__PURE__ */ jsxs54(Fragment24, { children: [
|
|
21440
|
+
/* @__PURE__ */ jsx117(
|
|
21324
21441
|
Select3,
|
|
21325
21442
|
{
|
|
21326
21443
|
ref: anchorRef,
|
|
@@ -21335,7 +21452,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21335
21452
|
value: value?.name || "",
|
|
21336
21453
|
displayEmpty: true,
|
|
21337
21454
|
disabled,
|
|
21338
|
-
input: /* @__PURE__ */
|
|
21455
|
+
input: /* @__PURE__ */ jsx117(
|
|
21339
21456
|
BootstrapInput,
|
|
21340
21457
|
{
|
|
21341
21458
|
sx: {
|
|
@@ -21344,7 +21461,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21344
21461
|
}
|
|
21345
21462
|
),
|
|
21346
21463
|
renderValue: (value2) => value2 || placeholder,
|
|
21347
|
-
IconComponent: () => /* @__PURE__ */
|
|
21464
|
+
IconComponent: () => /* @__PURE__ */ jsx117(ChevronIcon2, { disabled }),
|
|
21348
21465
|
onClick: !disabled ? (e) => {
|
|
21349
21466
|
e.preventDefault();
|
|
21350
21467
|
e.stopPropagation();
|
|
@@ -21352,10 +21469,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21352
21469
|
} : void 0,
|
|
21353
21470
|
open: false,
|
|
21354
21471
|
"data-testid": dataTestId,
|
|
21355
|
-
children: options.map((option) => /* @__PURE__ */
|
|
21472
|
+
children: options.map((option) => /* @__PURE__ */ jsx117("option", { value: option.name }, option.id))
|
|
21356
21473
|
}
|
|
21357
21474
|
),
|
|
21358
|
-
/* @__PURE__ */
|
|
21475
|
+
/* @__PURE__ */ jsx117(
|
|
21359
21476
|
Popover2,
|
|
21360
21477
|
{
|
|
21361
21478
|
anchorEl: anchorRef.current,
|
|
@@ -21377,7 +21494,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21377
21494
|
}
|
|
21378
21495
|
},
|
|
21379
21496
|
children: /* @__PURE__ */ jsxs54(Grid3, { container: true, children: [
|
|
21380
|
-
/* @__PURE__ */
|
|
21497
|
+
/* @__PURE__ */ jsx117(
|
|
21381
21498
|
Grid3,
|
|
21382
21499
|
{
|
|
21383
21500
|
size: {
|
|
@@ -21385,7 +21502,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21385
21502
|
},
|
|
21386
21503
|
padding: "8px",
|
|
21387
21504
|
borderBottom: `1px solid ${grey200}`,
|
|
21388
|
-
children: /* @__PURE__ */
|
|
21505
|
+
children: /* @__PURE__ */ jsx117(
|
|
21389
21506
|
DebouncedTextField_default,
|
|
21390
21507
|
{
|
|
21391
21508
|
placeholder: t(
|
|
@@ -21393,12 +21510,12 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21393
21510
|
),
|
|
21394
21511
|
value: search,
|
|
21395
21512
|
onChange: onTypeSearch,
|
|
21396
|
-
startAdornment: /* @__PURE__ */
|
|
21513
|
+
startAdornment: /* @__PURE__ */ jsx117(Icon_default, { id: "magnify" })
|
|
21397
21514
|
}
|
|
21398
21515
|
)
|
|
21399
21516
|
}
|
|
21400
21517
|
),
|
|
21401
|
-
/* @__PURE__ */
|
|
21518
|
+
/* @__PURE__ */ jsx117(
|
|
21402
21519
|
Grid3,
|
|
21403
21520
|
{
|
|
21404
21521
|
size: {
|
|
@@ -21407,14 +21524,14 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21407
21524
|
sx: { borderRight: `1px solid ${grey200}` },
|
|
21408
21525
|
height: "316px",
|
|
21409
21526
|
className: "Slim-Vertical-Scroll",
|
|
21410
|
-
children: /* @__PURE__ */
|
|
21527
|
+
children: /* @__PURE__ */ jsx117(Stack9, { children: filteredCategories.map((category, idx) => /* @__PURE__ */ jsx117(
|
|
21411
21528
|
ListItemButton_default,
|
|
21412
21529
|
{
|
|
21413
21530
|
selected: selectedCategory === category,
|
|
21414
21531
|
onClick: () => {
|
|
21415
21532
|
setSelectedCategory(category);
|
|
21416
21533
|
},
|
|
21417
|
-
endAdornment: selectedCategory === category ? /* @__PURE__ */
|
|
21534
|
+
endAdornment: selectedCategory === category ? /* @__PURE__ */ jsx117(
|
|
21418
21535
|
Icon_default,
|
|
21419
21536
|
{
|
|
21420
21537
|
id: "menu-right",
|
|
@@ -21422,10 +21539,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21422
21539
|
}
|
|
21423
21540
|
) : void 0,
|
|
21424
21541
|
buttonDataTest: dataTestId ? dataTestId + "-category-" + idx : void 0,
|
|
21425
|
-
children: /* @__PURE__ */
|
|
21542
|
+
children: /* @__PURE__ */ jsx117(
|
|
21426
21543
|
TextEllipsis_default,
|
|
21427
21544
|
{
|
|
21428
|
-
text: /* @__PURE__ */
|
|
21545
|
+
text: /* @__PURE__ */ jsx117(
|
|
21429
21546
|
TextMarker_default,
|
|
21430
21547
|
{
|
|
21431
21548
|
searchText: search,
|
|
@@ -21443,7 +21560,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21443
21560
|
)) })
|
|
21444
21561
|
}
|
|
21445
21562
|
),
|
|
21446
|
-
/* @__PURE__ */
|
|
21563
|
+
/* @__PURE__ */ jsx117(
|
|
21447
21564
|
Grid3,
|
|
21448
21565
|
{
|
|
21449
21566
|
size: {
|
|
@@ -21451,7 +21568,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21451
21568
|
},
|
|
21452
21569
|
height: "316px",
|
|
21453
21570
|
className: "Slim-Vertical-Scroll",
|
|
21454
|
-
children: /* @__PURE__ */
|
|
21571
|
+
children: /* @__PURE__ */ jsx117(Stack9, { children: /* @__PURE__ */ jsx117(Stack9, { children: !selectedCategory ? /* @__PURE__ */ jsx117(Stack9, { padding: "12px", alignItems: "center", children: /* @__PURE__ */ jsx117(
|
|
21455
21572
|
Typography_default,
|
|
21456
21573
|
{
|
|
21457
21574
|
variant: "body2",
|
|
@@ -21463,7 +21580,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21463
21580
|
)
|
|
21464
21581
|
}
|
|
21465
21582
|
) }) : selectedCategory.categoryOptions.map(
|
|
21466
|
-
(option, idx) => /* @__PURE__ */
|
|
21583
|
+
(option, idx) => /* @__PURE__ */ jsx117(
|
|
21467
21584
|
ListItemButton_default,
|
|
21468
21585
|
{
|
|
21469
21586
|
selected: value?.id === option.id,
|
|
@@ -21472,10 +21589,10 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
21472
21589
|
closePopover();
|
|
21473
21590
|
},
|
|
21474
21591
|
buttonDataTest: dataTestId ? dataTestId + "-option-" + idx : void 0,
|
|
21475
|
-
children: /* @__PURE__ */
|
|
21592
|
+
children: /* @__PURE__ */ jsx117(
|
|
21476
21593
|
TextEllipsis_default,
|
|
21477
21594
|
{
|
|
21478
|
-
text: /* @__PURE__ */
|
|
21595
|
+
text: /* @__PURE__ */ jsx117(
|
|
21479
21596
|
TextMarker_default,
|
|
21480
21597
|
{
|
|
21481
21598
|
searchText: search,
|
|
@@ -21508,7 +21625,7 @@ import * as React63 from "react";
|
|
|
21508
21625
|
import { Grid as Grid4, Stack as Stack10 } from "@mui/material";
|
|
21509
21626
|
import { useState as useState22 } from "react";
|
|
21510
21627
|
import InfiniteScroll from "react-infinite-scroll-component";
|
|
21511
|
-
import { jsx as
|
|
21628
|
+
import { jsx as jsx118, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
21512
21629
|
var defaultItemsColorStyles = {
|
|
21513
21630
|
selectedColor: Colors_exports.primaryMain,
|
|
21514
21631
|
disabledColor: ""
|
|
@@ -21653,14 +21770,14 @@ var SelectPopover = function SelectPopover2({
|
|
|
21653
21770
|
anchorEl,
|
|
21654
21771
|
disableRestoreFocus,
|
|
21655
21772
|
children: [
|
|
21656
|
-
/* @__PURE__ */
|
|
21773
|
+
/* @__PURE__ */ jsx118(
|
|
21657
21774
|
Box_default2,
|
|
21658
21775
|
{
|
|
21659
21776
|
sx: {
|
|
21660
21777
|
borderBottom: `1px solid ${Colors_exports.grey200}`,
|
|
21661
21778
|
padding: "8px"
|
|
21662
21779
|
},
|
|
21663
|
-
children: /* @__PURE__ */
|
|
21780
|
+
children: /* @__PURE__ */ jsx118(
|
|
21664
21781
|
DebouncedTextField_default,
|
|
21665
21782
|
{
|
|
21666
21783
|
iconId: "magnify",
|
|
@@ -21675,7 +21792,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21675
21792
|
)
|
|
21676
21793
|
}
|
|
21677
21794
|
),
|
|
21678
|
-
/* @__PURE__ */
|
|
21795
|
+
/* @__PURE__ */ jsx118(
|
|
21679
21796
|
InfiniteScroll,
|
|
21680
21797
|
{
|
|
21681
21798
|
height: 300,
|
|
@@ -21737,7 +21854,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21737
21854
|
onItemSelected
|
|
21738
21855
|
) : getItemElement(item, onItemSelected)
|
|
21739
21856
|
),
|
|
21740
|
-
isLoading && /* @__PURE__ */
|
|
21857
|
+
isLoading && /* @__PURE__ */ jsx118(
|
|
21741
21858
|
Skeleton_default,
|
|
21742
21859
|
{
|
|
21743
21860
|
variant: "text",
|
|
@@ -21750,13 +21867,13 @@ var SelectPopover = function SelectPopover2({
|
|
|
21750
21867
|
}
|
|
21751
21868
|
}
|
|
21752
21869
|
),
|
|
21753
|
-
!isLoading && currentItems.length === 0 ? typeof emptyListPlaceholder === "string" ? /* @__PURE__ */
|
|
21870
|
+
!isLoading && currentItems.length === 0 ? typeof emptyListPlaceholder === "string" ? /* @__PURE__ */ jsx118(
|
|
21754
21871
|
Stack10,
|
|
21755
21872
|
{
|
|
21756
21873
|
alignItems: "center",
|
|
21757
21874
|
justifyContent: "center",
|
|
21758
21875
|
width: "100%",
|
|
21759
|
-
children: /* @__PURE__ */
|
|
21876
|
+
children: /* @__PURE__ */ jsx118(Typography_default, { variant: "body2", color: grey600, children: emptyListPlaceholder })
|
|
21760
21877
|
}
|
|
21761
21878
|
) : emptyListPlaceholder : ""
|
|
21762
21879
|
]
|
|
@@ -21764,11 +21881,11 @@ var SelectPopover = function SelectPopover2({
|
|
|
21764
21881
|
)
|
|
21765
21882
|
}
|
|
21766
21883
|
),
|
|
21767
|
-
/* @__PURE__ */
|
|
21884
|
+
/* @__PURE__ */ jsx118(
|
|
21768
21885
|
PopoverActions_default,
|
|
21769
21886
|
{
|
|
21770
21887
|
sx: { padding: "16px 24px" },
|
|
21771
|
-
leftContent: /* @__PURE__ */
|
|
21888
|
+
leftContent: /* @__PURE__ */ jsx118(
|
|
21772
21889
|
Button_default,
|
|
21773
21890
|
{
|
|
21774
21891
|
variant: "contained",
|
|
@@ -21778,7 +21895,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21778
21895
|
onClick: closePopover
|
|
21779
21896
|
}
|
|
21780
21897
|
),
|
|
21781
|
-
rightContent: /* @__PURE__ */
|
|
21898
|
+
rightContent: /* @__PURE__ */ jsx118(
|
|
21782
21899
|
Button_default,
|
|
21783
21900
|
{
|
|
21784
21901
|
variant: "contained",
|
|
@@ -21802,7 +21919,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
21802
21919
|
);
|
|
21803
21920
|
};
|
|
21804
21921
|
function getItemElement(item, onItemClick) {
|
|
21805
|
-
return /* @__PURE__ */
|
|
21922
|
+
return /* @__PURE__ */ jsx118(
|
|
21806
21923
|
SelectPopoverItem_default,
|
|
21807
21924
|
{
|
|
21808
21925
|
id: item.id,
|
|
@@ -21831,7 +21948,7 @@ var arraysEqual = (a, b) => {
|
|
|
21831
21948
|
var SelectPopover_default = SelectPopover;
|
|
21832
21949
|
|
|
21833
21950
|
// src/components/input/ItemSelector.tsx
|
|
21834
|
-
import { Fragment as
|
|
21951
|
+
import { Fragment as Fragment25, jsx as jsx119, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
21835
21952
|
var ItemSelector = function ItemSelector2({
|
|
21836
21953
|
items,
|
|
21837
21954
|
selectedItems,
|
|
@@ -21885,7 +22002,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21885
22002
|
item
|
|
21886
22003
|
}) => {
|
|
21887
22004
|
const [ref, { contentWidth: width2 }] = useResizeObserver();
|
|
21888
|
-
return /* @__PURE__ */
|
|
22005
|
+
return /* @__PURE__ */ jsx119(
|
|
21889
22006
|
Chip_default,
|
|
21890
22007
|
{
|
|
21891
22008
|
ref,
|
|
@@ -21915,8 +22032,8 @@ var ItemSelector = function ItemSelector2({
|
|
|
21915
22032
|
const selectedItem = selectedItems[0]?.id;
|
|
21916
22033
|
return selectedItem ? [selectedItem] : "";
|
|
21917
22034
|
};
|
|
21918
|
-
return /* @__PURE__ */ jsxs56(
|
|
21919
|
-
/* @__PURE__ */
|
|
22035
|
+
return /* @__PURE__ */ jsxs56(Fragment25, { children: [
|
|
22036
|
+
/* @__PURE__ */ jsx119(
|
|
21920
22037
|
Select_default,
|
|
21921
22038
|
{
|
|
21922
22039
|
ref: selectRef,
|
|
@@ -21932,17 +22049,17 @@ var ItemSelector = function ItemSelector2({
|
|
|
21932
22049
|
renderValue: (value) => {
|
|
21933
22050
|
let component;
|
|
21934
22051
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
21935
|
-
component = /* @__PURE__ */ jsxs56(
|
|
21936
|
-
/* @__PURE__ */
|
|
22052
|
+
component = /* @__PURE__ */ jsxs56(Fragment25, { children: [
|
|
22053
|
+
/* @__PURE__ */ jsx119(
|
|
21937
22054
|
Stack_default,
|
|
21938
22055
|
{
|
|
21939
22056
|
direction: "row",
|
|
21940
22057
|
flexWrap: "wrap",
|
|
21941
22058
|
padding: "6px 0",
|
|
21942
|
-
children: /* @__PURE__ */
|
|
22059
|
+
children: /* @__PURE__ */ jsx119(Typography_default, { variant: "body2", color: grey600, children: placeholder })
|
|
21943
22060
|
}
|
|
21944
22061
|
),
|
|
21945
|
-
/* @__PURE__ */
|
|
22062
|
+
/* @__PURE__ */ jsx119(
|
|
21946
22063
|
Divider_default,
|
|
21947
22064
|
{
|
|
21948
22065
|
variant: "middle",
|
|
@@ -21952,7 +22069,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21952
22069
|
)
|
|
21953
22070
|
] });
|
|
21954
22071
|
} else {
|
|
21955
|
-
component = /* @__PURE__ */ jsxs56(
|
|
22072
|
+
component = /* @__PURE__ */ jsxs56(Fragment25, { children: [
|
|
21956
22073
|
/* @__PURE__ */ jsxs56(
|
|
21957
22074
|
Stack_default,
|
|
21958
22075
|
{
|
|
@@ -21967,7 +22084,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21967
22084
|
const item = selectedItems.find(
|
|
21968
22085
|
(i) => i.id === id
|
|
21969
22086
|
);
|
|
21970
|
-
return item ? /* @__PURE__ */
|
|
22087
|
+
return item ? /* @__PURE__ */ jsx119(
|
|
21971
22088
|
ItemChip,
|
|
21972
22089
|
{
|
|
21973
22090
|
item: {
|
|
@@ -21976,14 +22093,14 @@ var ItemSelector = function ItemSelector2({
|
|
|
21976
22093
|
}
|
|
21977
22094
|
},
|
|
21978
22095
|
id
|
|
21979
|
-
) : /* @__PURE__ */
|
|
22096
|
+
) : /* @__PURE__ */ jsx119(Fragment25, {});
|
|
21980
22097
|
}),
|
|
21981
|
-
value.length - limitItemChips > 0 ? /* @__PURE__ */
|
|
22098
|
+
value.length - limitItemChips > 0 ? /* @__PURE__ */ jsx119(
|
|
21982
22099
|
Tooltip_default,
|
|
21983
22100
|
{
|
|
21984
22101
|
interactive: true,
|
|
21985
22102
|
variant: "white",
|
|
21986
|
-
title: /* @__PURE__ */
|
|
22103
|
+
title: /* @__PURE__ */ jsx119(
|
|
21987
22104
|
Stack_default,
|
|
21988
22105
|
{
|
|
21989
22106
|
direction: "row",
|
|
@@ -22000,24 +22117,24 @@ var ItemSelector = function ItemSelector2({
|
|
|
22000
22117
|
const item = selectedItems.find(
|
|
22001
22118
|
(i) => i.id === id
|
|
22002
22119
|
);
|
|
22003
|
-
return item ? /* @__PURE__ */
|
|
22120
|
+
return item ? /* @__PURE__ */ jsx119(
|
|
22004
22121
|
ItemChip,
|
|
22005
22122
|
{
|
|
22006
22123
|
item
|
|
22007
22124
|
},
|
|
22008
22125
|
id
|
|
22009
|
-
) : /* @__PURE__ */
|
|
22126
|
+
) : /* @__PURE__ */ jsx119(Fragment25, {});
|
|
22010
22127
|
})
|
|
22011
22128
|
}
|
|
22012
22129
|
),
|
|
22013
|
-
children: /* @__PURE__ */
|
|
22130
|
+
children: /* @__PURE__ */ jsx119(Typography_default, { variant: "body2", children: `+${value.length - limitItemChips}` })
|
|
22014
22131
|
}
|
|
22015
22132
|
) : void 0
|
|
22016
22133
|
]
|
|
22017
22134
|
}
|
|
22018
22135
|
),
|
|
22019
22136
|
!disabled && /* @__PURE__ */ jsxs56(Stack_default, { direction: "row", children: [
|
|
22020
|
-
/* @__PURE__ */
|
|
22137
|
+
/* @__PURE__ */ jsx119(
|
|
22021
22138
|
IconButton_default,
|
|
22022
22139
|
{
|
|
22023
22140
|
iconId: "close",
|
|
@@ -22035,7 +22152,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
22035
22152
|
}
|
|
22036
22153
|
}
|
|
22037
22154
|
),
|
|
22038
|
-
/* @__PURE__ */
|
|
22155
|
+
/* @__PURE__ */ jsx119(
|
|
22039
22156
|
Divider_default,
|
|
22040
22157
|
{
|
|
22041
22158
|
variant: "middle",
|
|
@@ -22046,7 +22163,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
22046
22163
|
] })
|
|
22047
22164
|
] });
|
|
22048
22165
|
}
|
|
22049
|
-
return /* @__PURE__ */
|
|
22166
|
+
return /* @__PURE__ */ jsx119(
|
|
22050
22167
|
Stack_default,
|
|
22051
22168
|
{
|
|
22052
22169
|
direction: "row",
|
|
@@ -22068,8 +22185,8 @@ var ItemSelector = function ItemSelector2({
|
|
|
22068
22185
|
}
|
|
22069
22186
|
}
|
|
22070
22187
|
),
|
|
22071
|
-
helperText && /* @__PURE__ */
|
|
22072
|
-
/* @__PURE__ */
|
|
22188
|
+
helperText && /* @__PURE__ */ jsx119(InputHelperText_default, { severity: isError ? "error" : "info", children: helperText }),
|
|
22189
|
+
/* @__PURE__ */ jsx119(
|
|
22073
22190
|
SelectPopover_default,
|
|
22074
22191
|
{
|
|
22075
22192
|
items: items.map((item) => {
|
|
@@ -22134,7 +22251,7 @@ var map = {
|
|
|
22134
22251
|
var toDiacriticInsensitiveString = (input) => Array.from(input).map((char) => map[char] ? `[${map[char]}]` : char).join("");
|
|
22135
22252
|
|
|
22136
22253
|
// src/components/input/Autocomplete.tsx
|
|
22137
|
-
import { Fragment as
|
|
22254
|
+
import { Fragment as Fragment26, jsx as jsx120, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
22138
22255
|
var AUTOCOMPLETE_ITEM_HEIGHT = 44;
|
|
22139
22256
|
var Autocomplete = function Autocomplete2({
|
|
22140
22257
|
variant = "default",
|
|
@@ -22330,7 +22447,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22330
22447
|
style: style3
|
|
22331
22448
|
}) => {
|
|
22332
22449
|
const option = filteredOptions[index];
|
|
22333
|
-
return /* @__PURE__ */
|
|
22450
|
+
return /* @__PURE__ */ jsx120(
|
|
22334
22451
|
ListItemButton_default,
|
|
22335
22452
|
{
|
|
22336
22453
|
selected: index === selectedIndex,
|
|
@@ -22339,7 +22456,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22339
22456
|
sx: style3,
|
|
22340
22457
|
color: Array.isArray(value) && value.includes(option.id) ? "primary" : void 0,
|
|
22341
22458
|
text: getText(option),
|
|
22342
|
-
endAdornment: multiple && (options.some((elem) => elem.id === option.id) ? Array.isArray(value) && value.includes(option.id) && /* @__PURE__ */
|
|
22459
|
+
endAdornment: multiple && (options.some((elem) => elem.id === option.id) ? Array.isArray(value) && value.includes(option.id) && /* @__PURE__ */ jsx120(Icon_default, { sx: { color: primaryMain }, id: "check" }) : /* @__PURE__ */ jsx120(
|
|
22343
22460
|
Icon_default,
|
|
22344
22461
|
{
|
|
22345
22462
|
id: Array.isArray(value) && value.includes(option.id) ? "close" : "plus"
|
|
@@ -22351,8 +22468,8 @@ var Autocomplete = function Autocomplete2({
|
|
|
22351
22468
|
option.id
|
|
22352
22469
|
);
|
|
22353
22470
|
};
|
|
22354
|
-
return /* @__PURE__ */ jsxs57(
|
|
22355
|
-
/* @__PURE__ */
|
|
22471
|
+
return /* @__PURE__ */ jsxs57(Fragment26, { children: [
|
|
22472
|
+
/* @__PURE__ */ jsx120(
|
|
22356
22473
|
DebouncedTextField_default,
|
|
22357
22474
|
{
|
|
22358
22475
|
ref: ref ?? inputRef,
|
|
@@ -22442,7 +22559,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22442
22559
|
alignItems: "center"
|
|
22443
22560
|
},
|
|
22444
22561
|
children: [
|
|
22445
|
-
value.slice(0, limitValueTags || value.length).map((id) => /* @__PURE__ */
|
|
22562
|
+
value.slice(0, limitValueTags || value.length).map((id) => /* @__PURE__ */ jsx120(
|
|
22446
22563
|
Chip_default,
|
|
22447
22564
|
{
|
|
22448
22565
|
label: (renderLabel ?? _renderLabel)(
|
|
@@ -22462,12 +22579,12 @@ var Autocomplete = function Autocomplete2({
|
|
|
22462
22579
|
},
|
|
22463
22580
|
id
|
|
22464
22581
|
)),
|
|
22465
|
-
limitValueTags && value.length - limitValueTags > 0 ? /* @__PURE__ */
|
|
22582
|
+
limitValueTags && value.length - limitValueTags > 0 ? /* @__PURE__ */ jsx120(
|
|
22466
22583
|
Tooltip_default,
|
|
22467
22584
|
{
|
|
22468
22585
|
interactive: true,
|
|
22469
22586
|
variant: "white",
|
|
22470
|
-
title: /* @__PURE__ */
|
|
22587
|
+
title: /* @__PURE__ */ jsx120(
|
|
22471
22588
|
Stack_default,
|
|
22472
22589
|
{
|
|
22473
22590
|
direction: "row",
|
|
@@ -22480,7 +22597,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22480
22597
|
children: value.slice(
|
|
22481
22598
|
limitValueTags,
|
|
22482
22599
|
value.length
|
|
22483
|
-
).map((id) => /* @__PURE__ */
|
|
22600
|
+
).map((id) => /* @__PURE__ */ jsx120(
|
|
22484
22601
|
Chip_default,
|
|
22485
22602
|
{
|
|
22486
22603
|
label: (renderLabel ?? _renderLabel)(id),
|
|
@@ -22500,7 +22617,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22500
22617
|
))
|
|
22501
22618
|
}
|
|
22502
22619
|
),
|
|
22503
|
-
children: /* @__PURE__ */
|
|
22620
|
+
children: /* @__PURE__ */ jsx120(Typography_default, { variant: "body2", children: `+${value.length - limitValueTags}` })
|
|
22504
22621
|
}
|
|
22505
22622
|
) : ""
|
|
22506
22623
|
]
|
|
@@ -22517,7 +22634,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22517
22634
|
spacing: 1,
|
|
22518
22635
|
children: [
|
|
22519
22636
|
textFieldProps?.endAdornment,
|
|
22520
|
-
!disabled && dirty && showClearButton && /* @__PURE__ */
|
|
22637
|
+
!disabled && dirty && showClearButton && /* @__PURE__ */ jsx120(Tooltip_default, { title: t("AUTOCOMPLETE.CLEAR"), children: /* @__PURE__ */ jsx120(
|
|
22521
22638
|
IconButton_default,
|
|
22522
22639
|
{
|
|
22523
22640
|
iconId: "close",
|
|
@@ -22540,7 +22657,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22540
22657
|
"data-test": "clear-autocomplete"
|
|
22541
22658
|
}
|
|
22542
22659
|
) }),
|
|
22543
|
-
!disabled && dirty && showClearButton && /* @__PURE__ */
|
|
22660
|
+
!disabled && dirty && showClearButton && /* @__PURE__ */ jsx120(
|
|
22544
22661
|
Divider_default,
|
|
22545
22662
|
{
|
|
22546
22663
|
variant: "middle",
|
|
@@ -22548,11 +22665,11 @@ var Autocomplete = function Autocomplete2({
|
|
|
22548
22665
|
flexItem: true
|
|
22549
22666
|
}
|
|
22550
22667
|
),
|
|
22551
|
-
!disabled && variant !== "text" && /* @__PURE__ */
|
|
22668
|
+
!disabled && variant !== "text" && /* @__PURE__ */ jsx120(
|
|
22552
22669
|
Tooltip_default,
|
|
22553
22670
|
{
|
|
22554
22671
|
title: isOpen ? t("AUTOCOMPLETE.COLLAPSE") : t("AUTOCOMPLETE.EXPAND"),
|
|
22555
|
-
children: /* @__PURE__ */
|
|
22672
|
+
children: /* @__PURE__ */ jsx120(
|
|
22556
22673
|
IconButton_default,
|
|
22557
22674
|
{
|
|
22558
22675
|
ref: expandSelectButtonRef,
|
|
@@ -22574,7 +22691,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
22574
22691
|
autoComplete: "off"
|
|
22575
22692
|
}
|
|
22576
22693
|
),
|
|
22577
|
-
/* @__PURE__ */
|
|
22694
|
+
/* @__PURE__ */ jsx120(
|
|
22578
22695
|
ClickAwayListener,
|
|
22579
22696
|
{
|
|
22580
22697
|
onClickAway: (event) => {
|
|
@@ -22599,13 +22716,13 @@ var Autocomplete = function Autocomplete2({
|
|
|
22599
22716
|
}
|
|
22600
22717
|
},
|
|
22601
22718
|
mouseEvent: "onMouseDown",
|
|
22602
|
-
children: /* @__PURE__ */
|
|
22719
|
+
children: /* @__PURE__ */ jsx120(
|
|
22603
22720
|
Popper,
|
|
22604
22721
|
{
|
|
22605
22722
|
anchorEl: anchorRef.current,
|
|
22606
22723
|
open: isOpen,
|
|
22607
22724
|
sx: { zIndex: 3e3 },
|
|
22608
|
-
children: /* @__PURE__ */
|
|
22725
|
+
children: /* @__PURE__ */ jsx120(Paper_default, { sx: { boxShadow: shadows[1], borderRadius: "8px" }, children: /* @__PURE__ */ jsxs57(
|
|
22609
22726
|
Box_default2,
|
|
22610
22727
|
{
|
|
22611
22728
|
sx: {
|
|
@@ -22617,22 +22734,22 @@ var Autocomplete = function Autocomplete2({
|
|
|
22617
22734
|
className: "Slim-Vertical-Scroll",
|
|
22618
22735
|
ref: listRef,
|
|
22619
22736
|
children: [
|
|
22620
|
-
isLoading && /* @__PURE__ */
|
|
22737
|
+
isLoading && /* @__PURE__ */ jsx120(
|
|
22621
22738
|
ListItem_default,
|
|
22622
22739
|
{
|
|
22623
22740
|
text: loadingText ?? t("AUTOCOMPLETE.LOADING")
|
|
22624
22741
|
}
|
|
22625
22742
|
),
|
|
22626
|
-
!isLoading && filteredOptions.length === 0 && /* @__PURE__ */
|
|
22743
|
+
!isLoading && filteredOptions.length === 0 && /* @__PURE__ */ jsx120(
|
|
22627
22744
|
ListItem_default,
|
|
22628
22745
|
{
|
|
22629
22746
|
text: noOptionsText ?? t("AUTOCOMPLETE.NO_OPTIONS")
|
|
22630
22747
|
}
|
|
22631
22748
|
),
|
|
22632
|
-
!isLoading && filteredOptions.length > 0 && /* @__PURE__ */
|
|
22749
|
+
!isLoading && filteredOptions.length > 0 && /* @__PURE__ */ jsx120(AutoSizer5, { children: ({
|
|
22633
22750
|
height: height2,
|
|
22634
22751
|
width: width2
|
|
22635
|
-
}) => /* @__PURE__ */
|
|
22752
|
+
}) => /* @__PURE__ */ jsx120(
|
|
22636
22753
|
FixedSizeList3,
|
|
22637
22754
|
{
|
|
22638
22755
|
overscanCount: 3,
|
|
@@ -22700,7 +22817,7 @@ import CodeMirror, {
|
|
|
22700
22817
|
} from "@uiw/react-codemirror";
|
|
22701
22818
|
import { html } from "@codemirror/lang-html";
|
|
22702
22819
|
import { linter, lintGutter } from "@codemirror/lint";
|
|
22703
|
-
import { jsx as
|
|
22820
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
22704
22821
|
var removeFocusOutline = EditorView.baseTheme({
|
|
22705
22822
|
"&.cm-focused": {
|
|
22706
22823
|
outline: "none"
|
|
@@ -22722,7 +22839,7 @@ var CodeEditor = function CodeEditor2({
|
|
|
22722
22839
|
linter(linterOptions?.source || null, linterOptions?.config),
|
|
22723
22840
|
...extensions
|
|
22724
22841
|
] : extensions;
|
|
22725
|
-
return /* @__PURE__ */
|
|
22842
|
+
return /* @__PURE__ */ jsx121(
|
|
22726
22843
|
CodeMirror,
|
|
22727
22844
|
{
|
|
22728
22845
|
...rest,
|
|
@@ -22741,7 +22858,7 @@ var CodeEditor_default = React66.forwardRef(CodeEditor);
|
|
|
22741
22858
|
|
|
22742
22859
|
// src/components/input/CodeEditorPopup.tsx
|
|
22743
22860
|
import format from "html-format";
|
|
22744
|
-
import { Fragment as
|
|
22861
|
+
import { Fragment as Fragment27, jsx as jsx122, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
22745
22862
|
var FORMAT_CHARACTERS_LINE = 120;
|
|
22746
22863
|
var FORMAT_NUMBER_SPACES_INDENTATION = 2;
|
|
22747
22864
|
var CodeEditorPopup = ({
|
|
@@ -22784,8 +22901,8 @@ var CodeEditorPopup = ({
|
|
|
22784
22901
|
" ".repeat(FORMAT_NUMBER_SPACES_INDENTATION),
|
|
22785
22902
|
FORMAT_CHARACTERS_LINE
|
|
22786
22903
|
);
|
|
22787
|
-
return /* @__PURE__ */ jsxs58(
|
|
22788
|
-
readonly && /* @__PURE__ */
|
|
22904
|
+
return /* @__PURE__ */ jsxs58(Fragment27, { children: [
|
|
22905
|
+
readonly && /* @__PURE__ */ jsx122(
|
|
22789
22906
|
Dialog_default,
|
|
22790
22907
|
{
|
|
22791
22908
|
open,
|
|
@@ -22804,7 +22921,7 @@ var CodeEditorPopup = ({
|
|
|
22804
22921
|
justifyContent: "space-between",
|
|
22805
22922
|
paddingTop: "20px",
|
|
22806
22923
|
children: [
|
|
22807
|
-
/* @__PURE__ */
|
|
22924
|
+
/* @__PURE__ */ jsx122(
|
|
22808
22925
|
Box_default2,
|
|
22809
22926
|
{
|
|
22810
22927
|
flexGrow: 1,
|
|
@@ -22821,7 +22938,7 @@ var CodeEditorPopup = ({
|
|
|
22821
22938
|
}
|
|
22822
22939
|
},
|
|
22823
22940
|
children: [
|
|
22824
|
-
/* @__PURE__ */
|
|
22941
|
+
/* @__PURE__ */ jsx122(Box_default2, { flexGrow: 1, minHeight: 0, children: /* @__PURE__ */ jsx122(
|
|
22825
22942
|
CodeEditor_default,
|
|
22826
22943
|
{
|
|
22827
22944
|
autoFocus: true,
|
|
@@ -22850,7 +22967,7 @@ var CodeEditorPopup = ({
|
|
|
22850
22967
|
}
|
|
22851
22968
|
) }),
|
|
22852
22969
|
messageNode,
|
|
22853
|
-
hasErrors && /* @__PURE__ */
|
|
22970
|
+
hasErrors && /* @__PURE__ */ jsx122(Alert_default, { severity: "info", children: t(
|
|
22854
22971
|
"TEXT_EDITOR.SOURCE_CODE.VALIDATION_ERRORS_FOUND"
|
|
22855
22972
|
) })
|
|
22856
22973
|
]
|
|
@@ -22858,13 +22975,13 @@ var CodeEditorPopup = ({
|
|
|
22858
22975
|
)
|
|
22859
22976
|
}
|
|
22860
22977
|
),
|
|
22861
|
-
/* @__PURE__ */
|
|
22978
|
+
/* @__PURE__ */ jsx122(
|
|
22862
22979
|
Box_default2,
|
|
22863
22980
|
{
|
|
22864
22981
|
sx: {
|
|
22865
22982
|
padding: "16px 24px 16px 24px"
|
|
22866
22983
|
},
|
|
22867
|
-
children: /* @__PURE__ */
|
|
22984
|
+
children: /* @__PURE__ */ jsx122(
|
|
22868
22985
|
Button_default,
|
|
22869
22986
|
{
|
|
22870
22987
|
text: t(
|
|
@@ -22881,7 +22998,7 @@ var CodeEditorPopup = ({
|
|
|
22881
22998
|
)
|
|
22882
22999
|
}
|
|
22883
23000
|
),
|
|
22884
|
-
!readonly && /* @__PURE__ */
|
|
23001
|
+
!readonly && /* @__PURE__ */ jsx122(
|
|
22885
23002
|
ConfirmationDialog_default,
|
|
22886
23003
|
{
|
|
22887
23004
|
fullScreen: true,
|
|
@@ -22900,7 +23017,7 @@ var CodeEditorPopup = ({
|
|
|
22900
23017
|
}
|
|
22901
23018
|
},
|
|
22902
23019
|
children: [
|
|
22903
|
-
codeEditorSubtitle && /* @__PURE__ */
|
|
23020
|
+
codeEditorSubtitle && /* @__PURE__ */ jsx122(Box_default2, { sx: { marginTop: "4px", marginBottom: "8px" }, children: /* @__PURE__ */ jsx122(
|
|
22904
23021
|
Typography_default,
|
|
22905
23022
|
{
|
|
22906
23023
|
variant: "body2",
|
|
@@ -22908,7 +23025,7 @@ var CodeEditorPopup = ({
|
|
|
22908
23025
|
children: codeEditorSubtitle
|
|
22909
23026
|
}
|
|
22910
23027
|
) }),
|
|
22911
|
-
/* @__PURE__ */
|
|
23028
|
+
/* @__PURE__ */ jsx122(Box_default2, { flexGrow: 1, minHeight: 0, children: /* @__PURE__ */ jsx122(
|
|
22912
23029
|
CodeEditor_default,
|
|
22913
23030
|
{
|
|
22914
23031
|
autoFocus: true,
|
|
@@ -22937,7 +23054,7 @@ var CodeEditorPopup = ({
|
|
|
22937
23054
|
}
|
|
22938
23055
|
) }),
|
|
22939
23056
|
messageNode,
|
|
22940
|
-
hasErrors && /* @__PURE__ */
|
|
23057
|
+
hasErrors && /* @__PURE__ */ jsx122(Alert_default, { severity: "info", children: t(
|
|
22941
23058
|
"TEXT_EDITOR.SOURCE_CODE.VALIDATION_ERRORS_FOUND"
|
|
22942
23059
|
) })
|
|
22943
23060
|
]
|
|
@@ -22950,7 +23067,7 @@ var CodeEditorPopup = ({
|
|
|
22950
23067
|
var CodeEditorPopup_default = CodeEditorPopup;
|
|
22951
23068
|
|
|
22952
23069
|
// src/components/input/TextEditor.tsx
|
|
22953
|
-
import { Fragment as
|
|
23070
|
+
import { Fragment as Fragment28, jsx as jsx123, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
22954
23071
|
var DEFAULT_TOOLBAR_INSERT_MENU_ITEMS = [
|
|
22955
23072
|
"link",
|
|
22956
23073
|
"image",
|
|
@@ -23236,8 +23353,8 @@ var TextEditor = function TextEditor2({
|
|
|
23236
23353
|
};
|
|
23237
23354
|
}
|
|
23238
23355
|
};
|
|
23239
|
-
return /* @__PURE__ */ jsxs59(
|
|
23240
|
-
/* @__PURE__ */
|
|
23356
|
+
return /* @__PURE__ */ jsxs59(Fragment28, { children: [
|
|
23357
|
+
/* @__PURE__ */ jsx123(
|
|
23241
23358
|
Editor,
|
|
23242
23359
|
{
|
|
23243
23360
|
id,
|
|
@@ -23257,7 +23374,7 @@ var TextEditor = function TextEditor2({
|
|
|
23257
23374
|
...rest
|
|
23258
23375
|
}
|
|
23259
23376
|
),
|
|
23260
|
-
/* @__PURE__ */
|
|
23377
|
+
/* @__PURE__ */ jsx123(
|
|
23261
23378
|
CodeEditorPopup_default,
|
|
23262
23379
|
{
|
|
23263
23380
|
value: contentValue,
|
|
@@ -23293,7 +23410,7 @@ var TextEditor_default = TextEditor;
|
|
|
23293
23410
|
|
|
23294
23411
|
// src/components/input/PhoneField.tsx
|
|
23295
23412
|
import * as React69 from "react";
|
|
23296
|
-
import { Fragment as
|
|
23413
|
+
import { Fragment as Fragment29, jsx as jsx124, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
23297
23414
|
var maxPhoneLengthWithPrefix = 16;
|
|
23298
23415
|
var PhoneField = React69.forwardRef(function PhoneField2({
|
|
23299
23416
|
value,
|
|
@@ -23356,7 +23473,7 @@ var PhoneField = React69.forwardRef(function PhoneField2({
|
|
|
23356
23473
|
setCountryCode(countryCode2);
|
|
23357
23474
|
setTextValue(phone);
|
|
23358
23475
|
}, [value]);
|
|
23359
|
-
const select = /* @__PURE__ */
|
|
23476
|
+
const select = /* @__PURE__ */ jsx124(
|
|
23360
23477
|
Select_default,
|
|
23361
23478
|
{
|
|
23362
23479
|
className: "Cn-PhoneField-countryCodeSelector",
|
|
@@ -23372,13 +23489,13 @@ var PhoneField = React69.forwardRef(function PhoneField2({
|
|
|
23372
23489
|
}
|
|
23373
23490
|
}
|
|
23374
23491
|
);
|
|
23375
|
-
return /* @__PURE__ */
|
|
23492
|
+
return /* @__PURE__ */ jsx124(
|
|
23376
23493
|
TextField_default,
|
|
23377
23494
|
{
|
|
23378
23495
|
groupElements: true,
|
|
23379
23496
|
...rest,
|
|
23380
23497
|
className: `Cn-PhoneField ${className}`,
|
|
23381
|
-
startAdornment: /* @__PURE__ */ jsxs60(
|
|
23498
|
+
startAdornment: /* @__PURE__ */ jsxs60(Fragment29, { children: [
|
|
23382
23499
|
rest.startAdornment,
|
|
23383
23500
|
select
|
|
23384
23501
|
] }),
|
|
@@ -23392,7 +23509,7 @@ var PhoneField_default = PhoneField;
|
|
|
23392
23509
|
|
|
23393
23510
|
// src/components/input/NumberField.tsx
|
|
23394
23511
|
import * as React70 from "react";
|
|
23395
|
-
import { jsx as
|
|
23512
|
+
import { jsx as jsx125, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
23396
23513
|
var setValueAndTriggerChangeEvent = (r2, value) => {
|
|
23397
23514
|
const propDescriptor = Object.getOwnPropertyDescriptor(
|
|
23398
23515
|
window["HTMLInputElement"].prototype,
|
|
@@ -23555,12 +23672,12 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23555
23672
|
}
|
|
23556
23673
|
},
|
|
23557
23674
|
children: [
|
|
23558
|
-
/* @__PURE__ */
|
|
23675
|
+
/* @__PURE__ */ jsx125(
|
|
23559
23676
|
Tooltip_default,
|
|
23560
23677
|
{
|
|
23561
23678
|
title: stepUpDisabledTooltip && stepUpDisabled ? stepUpDisabledTooltip : "",
|
|
23562
23679
|
allowDisabled: true,
|
|
23563
|
-
children: /* @__PURE__ */
|
|
23680
|
+
children: /* @__PURE__ */ jsx125(
|
|
23564
23681
|
IconButton_default,
|
|
23565
23682
|
{
|
|
23566
23683
|
disabled: stepUpDisabled,
|
|
@@ -23571,12 +23688,12 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23571
23688
|
)
|
|
23572
23689
|
}
|
|
23573
23690
|
),
|
|
23574
|
-
/* @__PURE__ */
|
|
23691
|
+
/* @__PURE__ */ jsx125(
|
|
23575
23692
|
Tooltip_default,
|
|
23576
23693
|
{
|
|
23577
23694
|
title: stepDownDisabledTooltip && stepDownDisabled ? stepDownDisabledTooltip : "",
|
|
23578
23695
|
allowDisabled: true,
|
|
23579
|
-
children: /* @__PURE__ */
|
|
23696
|
+
children: /* @__PURE__ */ jsx125(
|
|
23580
23697
|
IconButton_default,
|
|
23581
23698
|
{
|
|
23582
23699
|
disabled: stepDownDisabled,
|
|
@@ -23596,7 +23713,7 @@ var NumberField = React70.forwardRef(function NumberField2({
|
|
|
23596
23713
|
setTextValue(numberToString(value));
|
|
23597
23714
|
}
|
|
23598
23715
|
}, [numberToString, stringToNumber, textValue, value]);
|
|
23599
|
-
return /* @__PURE__ */
|
|
23716
|
+
return /* @__PURE__ */ jsx125(
|
|
23600
23717
|
TextField_default,
|
|
23601
23718
|
{
|
|
23602
23719
|
...rest,
|
|
@@ -23618,7 +23735,7 @@ import { tz as tz8 } from "moment-timezone";
|
|
|
23618
23735
|
// src/components/input/DatePickerStatic.tsx
|
|
23619
23736
|
import * as React71 from "react";
|
|
23620
23737
|
import { tz as tz7 } from "moment-timezone";
|
|
23621
|
-
import { jsx as
|
|
23738
|
+
import { jsx as jsx126, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
23622
23739
|
var minYear = 1900;
|
|
23623
23740
|
var maxYear = 2100;
|
|
23624
23741
|
var DatePickerStatic = ({
|
|
@@ -23726,7 +23843,7 @@ var DatePickerStatic = ({
|
|
|
23726
23843
|
spacing: 2,
|
|
23727
23844
|
justifyContent: "space-between",
|
|
23728
23845
|
children: [
|
|
23729
|
-
/* @__PURE__ */
|
|
23846
|
+
/* @__PURE__ */ jsx126(
|
|
23730
23847
|
Select_default,
|
|
23731
23848
|
{
|
|
23732
23849
|
value: visibleMonth.year,
|
|
@@ -23735,7 +23852,7 @@ var DatePickerStatic = ({
|
|
|
23735
23852
|
}
|
|
23736
23853
|
),
|
|
23737
23854
|
/* @__PURE__ */ jsxs62(Stack_default, { direction: "row", spacing: 2, children: [
|
|
23738
|
-
/* @__PURE__ */
|
|
23855
|
+
/* @__PURE__ */ jsx126(
|
|
23739
23856
|
IconButton_default,
|
|
23740
23857
|
{
|
|
23741
23858
|
disabled: isDisabledPreviousMonth,
|
|
@@ -23743,7 +23860,7 @@ var DatePickerStatic = ({
|
|
|
23743
23860
|
onClick: navigatePreviousMonth
|
|
23744
23861
|
}
|
|
23745
23862
|
),
|
|
23746
|
-
/* @__PURE__ */
|
|
23863
|
+
/* @__PURE__ */ jsx126(
|
|
23747
23864
|
IconButton_default,
|
|
23748
23865
|
{
|
|
23749
23866
|
disabled: isDisabledNextMonth,
|
|
@@ -23755,8 +23872,8 @@ var DatePickerStatic = ({
|
|
|
23755
23872
|
]
|
|
23756
23873
|
}
|
|
23757
23874
|
),
|
|
23758
|
-
/* @__PURE__ */
|
|
23759
|
-
/* @__PURE__ */
|
|
23875
|
+
/* @__PURE__ */ jsx126(DaysOfWeekRow_default, {}),
|
|
23876
|
+
/* @__PURE__ */ jsx126(Box_default2, { sx: { padding: "8px" }, children: /* @__PURE__ */ jsx126(
|
|
23760
23877
|
CalendarMonth_default,
|
|
23761
23878
|
{
|
|
23762
23879
|
allowKeyboardNavigation: true,
|
|
@@ -23793,14 +23910,14 @@ var DatePickerStatic = ({
|
|
|
23793
23910
|
var DatePickerStatic_default = DatePickerStatic;
|
|
23794
23911
|
|
|
23795
23912
|
// src/components/input/DatePickerPopover.tsx
|
|
23796
|
-
import { jsx as
|
|
23913
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
23797
23914
|
var DatePickerPopover = ({
|
|
23798
23915
|
value,
|
|
23799
23916
|
onSelect,
|
|
23800
23917
|
minDate,
|
|
23801
23918
|
maxDate,
|
|
23802
23919
|
...rest
|
|
23803
|
-
}) => /* @__PURE__ */
|
|
23920
|
+
}) => /* @__PURE__ */ jsx127(Popover_default, { anchorHorizontalOrigin: "right", horizontalAlign: "right", ...rest, children: /* @__PURE__ */ jsx127(
|
|
23804
23921
|
DatePickerStatic_default,
|
|
23805
23922
|
{
|
|
23806
23923
|
value,
|
|
@@ -23812,7 +23929,7 @@ var DatePickerPopover = ({
|
|
|
23812
23929
|
var DatePickerPopover_default = DatePickerPopover;
|
|
23813
23930
|
|
|
23814
23931
|
// src/components/input/DatePicker.tsx
|
|
23815
|
-
import { Fragment as
|
|
23932
|
+
import { Fragment as Fragment30, jsx as jsx128, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
23816
23933
|
var DatePicker = React72.forwardRef(
|
|
23817
23934
|
function DatePicker2({ value, onChange, onBlur, onKeyDown, minDate, maxDate, ...rest }, ref) {
|
|
23818
23935
|
const { locale, timezone } = React72.useContext(IntlContext);
|
|
@@ -23888,8 +24005,8 @@ var DatePicker = React72.forwardRef(
|
|
|
23888
24005
|
const text = value && !isNaN(value.getTime()) ? tz8(value, timezone).format(dateInputFormat) : "";
|
|
23889
24006
|
setTextValue(text);
|
|
23890
24007
|
}, [dateInputFormat, timezone, value]);
|
|
23891
|
-
return /* @__PURE__ */ jsxs63(
|
|
23892
|
-
/* @__PURE__ */
|
|
24008
|
+
return /* @__PURE__ */ jsxs63(Fragment30, { children: [
|
|
24009
|
+
/* @__PURE__ */ jsx128(
|
|
23893
24010
|
TextField_default,
|
|
23894
24011
|
{
|
|
23895
24012
|
ref,
|
|
@@ -23900,7 +24017,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23900
24017
|
onChange: onChangeTextField,
|
|
23901
24018
|
onBlur: onBlurTextField,
|
|
23902
24019
|
onKeyDown: onKeyDownTextField,
|
|
23903
|
-
endAdornment: /* @__PURE__ */
|
|
24020
|
+
endAdornment: /* @__PURE__ */ jsx128(
|
|
23904
24021
|
IconButton_default,
|
|
23905
24022
|
{
|
|
23906
24023
|
"data-testid": "date-picker-open-button",
|
|
@@ -23912,7 +24029,7 @@ var DatePicker = React72.forwardRef(
|
|
|
23912
24029
|
)
|
|
23913
24030
|
}
|
|
23914
24031
|
),
|
|
23915
|
-
/* @__PURE__ */
|
|
24032
|
+
/* @__PURE__ */ jsx128(
|
|
23916
24033
|
DatePickerPopover_default,
|
|
23917
24034
|
{
|
|
23918
24035
|
anchorEl,
|
|
@@ -23931,14 +24048,14 @@ var DatePicker_default = DatePicker;
|
|
|
23931
24048
|
// src/components/input/Checkbox.tsx
|
|
23932
24049
|
import MuiCheckbox from "@mui/material/Checkbox";
|
|
23933
24050
|
import { FormControlLabel, FormGroup } from "@mui/material";
|
|
23934
|
-
import { Fragment as
|
|
24051
|
+
import { Fragment as Fragment31, jsx as jsx129, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
23935
24052
|
var MaterialCheckbox = ({
|
|
23936
24053
|
checked,
|
|
23937
24054
|
disabled,
|
|
23938
24055
|
inputClass,
|
|
23939
24056
|
indeterminate,
|
|
23940
24057
|
onChange
|
|
23941
|
-
}) => /* @__PURE__ */
|
|
24058
|
+
}) => /* @__PURE__ */ jsx129(
|
|
23942
24059
|
MuiCheckbox,
|
|
23943
24060
|
{
|
|
23944
24061
|
disabled,
|
|
@@ -23964,8 +24081,8 @@ var Checkbox = ({
|
|
|
23964
24081
|
inputClass,
|
|
23965
24082
|
onChange,
|
|
23966
24083
|
tabIndex
|
|
23967
|
-
}) => /* @__PURE__ */ jsxs64(
|
|
23968
|
-
!label && /* @__PURE__ */
|
|
24084
|
+
}) => /* @__PURE__ */ jsxs64(Fragment31, { children: [
|
|
24085
|
+
!label && /* @__PURE__ */ jsx129(
|
|
23969
24086
|
MaterialCheckbox,
|
|
23970
24087
|
{
|
|
23971
24088
|
disabled,
|
|
@@ -23976,11 +24093,11 @@ var Checkbox = ({
|
|
|
23976
24093
|
inputClass
|
|
23977
24094
|
}
|
|
23978
24095
|
),
|
|
23979
|
-
label && /* @__PURE__ */
|
|
24096
|
+
label && /* @__PURE__ */ jsx129(FormGroup, { children: /* @__PURE__ */ jsx129(
|
|
23980
24097
|
FormControlLabel,
|
|
23981
24098
|
{
|
|
23982
24099
|
value: label,
|
|
23983
|
-
control: /* @__PURE__ */
|
|
24100
|
+
control: /* @__PURE__ */ jsx129(
|
|
23984
24101
|
MaterialCheckbox,
|
|
23985
24102
|
{
|
|
23986
24103
|
disabled,
|
|
@@ -23991,7 +24108,7 @@ var Checkbox = ({
|
|
|
23991
24108
|
inputClass
|
|
23992
24109
|
}
|
|
23993
24110
|
),
|
|
23994
|
-
label: /* @__PURE__ */
|
|
24111
|
+
label: /* @__PURE__ */ jsx129(Typography_default, { variant: "body2", children: label }),
|
|
23995
24112
|
labelPlacement,
|
|
23996
24113
|
sx: {
|
|
23997
24114
|
margin: 0,
|
|
@@ -24006,7 +24123,7 @@ var Checkbox_default = Checkbox;
|
|
|
24006
24123
|
import * as React73 from "react";
|
|
24007
24124
|
import MuiRadio from "@mui/material/Radio";
|
|
24008
24125
|
import { FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
24009
|
-
import { Fragment as
|
|
24126
|
+
import { Fragment as Fragment32, jsx as jsx130, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
24010
24127
|
var Radio = React73.forwardRef(function Radio2({
|
|
24011
24128
|
label,
|
|
24012
24129
|
labelPlacement = "end",
|
|
@@ -24024,7 +24141,7 @@ var Radio = React73.forwardRef(function Radio2({
|
|
|
24024
24141
|
},
|
|
24025
24142
|
[onChange]
|
|
24026
24143
|
);
|
|
24027
|
-
const radio = /* @__PURE__ */
|
|
24144
|
+
const radio = /* @__PURE__ */ jsx130(
|
|
24028
24145
|
MuiRadio,
|
|
24029
24146
|
{
|
|
24030
24147
|
className: `Cn-Radio ${className}`,
|
|
@@ -24043,13 +24160,13 @@ var Radio = React73.forwardRef(function Radio2({
|
|
|
24043
24160
|
size: size === "S" ? "small" : "medium"
|
|
24044
24161
|
}
|
|
24045
24162
|
);
|
|
24046
|
-
return /* @__PURE__ */ jsxs65(
|
|
24163
|
+
return /* @__PURE__ */ jsxs65(Fragment32, { children: [
|
|
24047
24164
|
!label && radio,
|
|
24048
|
-
label && /* @__PURE__ */
|
|
24165
|
+
label && /* @__PURE__ */ jsx130(
|
|
24049
24166
|
FormControlLabel2,
|
|
24050
24167
|
{
|
|
24051
24168
|
control: radio,
|
|
24052
|
-
label: /* @__PURE__ */
|
|
24169
|
+
label: /* @__PURE__ */ jsx130(Typography_default, { variant: "body2", children: label }),
|
|
24053
24170
|
labelPlacement,
|
|
24054
24171
|
sx: {
|
|
24055
24172
|
margin: 0,
|
|
@@ -24063,7 +24180,7 @@ var Radio_default = Radio;
|
|
|
24063
24180
|
|
|
24064
24181
|
// src/components/input/PageSelector.tsx
|
|
24065
24182
|
import * as React74 from "react";
|
|
24066
|
-
import { jsx as
|
|
24183
|
+
import { jsx as jsx131, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
24067
24184
|
var PageSelector = ({
|
|
24068
24185
|
currentPage,
|
|
24069
24186
|
pageSize,
|
|
@@ -24090,7 +24207,7 @@ var PageSelector = ({
|
|
|
24090
24207
|
justifyContent: "flex-end",
|
|
24091
24208
|
flexGrow: 1,
|
|
24092
24209
|
children: [
|
|
24093
|
-
text && /* @__PURE__ */
|
|
24210
|
+
text && /* @__PURE__ */ jsx131(Typography_default, { variant: "body2", children: /* @__PURE__ */ jsx131(
|
|
24094
24211
|
"div",
|
|
24095
24212
|
{
|
|
24096
24213
|
dangerouslySetInnerHTML: {
|
|
@@ -24099,7 +24216,7 @@ var PageSelector = ({
|
|
|
24099
24216
|
}
|
|
24100
24217
|
) }),
|
|
24101
24218
|
/* @__PURE__ */ jsxs66(Stack_default, { direction: "row", alignItems: "center", children: [
|
|
24102
|
-
/* @__PURE__ */
|
|
24219
|
+
/* @__PURE__ */ jsx131(
|
|
24103
24220
|
IconButton_default,
|
|
24104
24221
|
{
|
|
24105
24222
|
iconId: "chevron-left",
|
|
@@ -24107,7 +24224,7 @@ var PageSelector = ({
|
|
|
24107
24224
|
disabled: currentPage <= 1
|
|
24108
24225
|
}
|
|
24109
24226
|
),
|
|
24110
|
-
/* @__PURE__ */
|
|
24227
|
+
/* @__PURE__ */ jsx131(
|
|
24111
24228
|
NumberField_default,
|
|
24112
24229
|
{
|
|
24113
24230
|
value: currentPage,
|
|
@@ -24125,7 +24242,7 @@ var PageSelector = ({
|
|
|
24125
24242
|
}
|
|
24126
24243
|
}
|
|
24127
24244
|
),
|
|
24128
|
-
/* @__PURE__ */
|
|
24245
|
+
/* @__PURE__ */ jsx131(
|
|
24129
24246
|
IconButton_default,
|
|
24130
24247
|
{
|
|
24131
24248
|
iconId: "chevron-right",
|
|
@@ -24145,13 +24262,13 @@ import Fade from "@mui/material/Fade";
|
|
|
24145
24262
|
|
|
24146
24263
|
// src/components/progress/LinearProgress.tsx
|
|
24147
24264
|
import MuiLinearProgress from "@mui/material/LinearProgress";
|
|
24148
|
-
import { jsx as
|
|
24265
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
24149
24266
|
var LinearProgress = ({
|
|
24150
24267
|
color: color2,
|
|
24151
24268
|
backgroundColor: backgroundColor2,
|
|
24152
24269
|
variant = "indeterminate",
|
|
24153
24270
|
...rest
|
|
24154
|
-
}) => /* @__PURE__ */
|
|
24271
|
+
}) => /* @__PURE__ */ jsx132(
|
|
24155
24272
|
MuiLinearProgress,
|
|
24156
24273
|
{
|
|
24157
24274
|
...rest,
|
|
@@ -24178,7 +24295,7 @@ import * as React75 from "react";
|
|
|
24178
24295
|
import MuiCircularProgress from "@mui/material/CircularProgress";
|
|
24179
24296
|
import Typography3 from "@mui/material/Typography";
|
|
24180
24297
|
import Box4 from "@mui/material/Box";
|
|
24181
|
-
import { jsx as
|
|
24298
|
+
import { jsx as jsx133, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
24182
24299
|
var circularSizes = {
|
|
24183
24300
|
XS: "20px",
|
|
24184
24301
|
SM: "24px",
|
|
@@ -24217,7 +24334,7 @@ var CircularProgress = ({
|
|
|
24217
24334
|
}
|
|
24218
24335
|
},
|
|
24219
24336
|
children: [
|
|
24220
|
-
gradientColors && /* @__PURE__ */
|
|
24337
|
+
gradientColors && /* @__PURE__ */ jsx133("svg", { width: 0, height: 0, children: /* @__PURE__ */ jsx133("defs", { children: /* @__PURE__ */ jsxs67(
|
|
24221
24338
|
"linearGradient",
|
|
24222
24339
|
{
|
|
24223
24340
|
id: gradientName.current,
|
|
@@ -24226,14 +24343,14 @@ var CircularProgress = ({
|
|
|
24226
24343
|
x2: "0%",
|
|
24227
24344
|
y2: "100%",
|
|
24228
24345
|
children: [
|
|
24229
|
-
/* @__PURE__ */
|
|
24346
|
+
/* @__PURE__ */ jsx133(
|
|
24230
24347
|
"stop",
|
|
24231
24348
|
{
|
|
24232
24349
|
offset: "0%",
|
|
24233
24350
|
stopColor: gradientColors.startColor
|
|
24234
24351
|
}
|
|
24235
24352
|
),
|
|
24236
|
-
/* @__PURE__ */
|
|
24353
|
+
/* @__PURE__ */ jsx133(
|
|
24237
24354
|
"stop",
|
|
24238
24355
|
{
|
|
24239
24356
|
offset: "100%",
|
|
@@ -24243,7 +24360,7 @@ var CircularProgress = ({
|
|
|
24243
24360
|
]
|
|
24244
24361
|
}
|
|
24245
24362
|
) }) }),
|
|
24246
|
-
showCircularBackground && /* @__PURE__ */
|
|
24363
|
+
showCircularBackground && /* @__PURE__ */ jsx133(
|
|
24247
24364
|
Box4,
|
|
24248
24365
|
{
|
|
24249
24366
|
sx: {
|
|
@@ -24256,7 +24373,7 @@ var CircularProgress = ({
|
|
|
24256
24373
|
maxHeight: circularSizes[size]
|
|
24257
24374
|
}
|
|
24258
24375
|
},
|
|
24259
|
-
children: /* @__PURE__ */
|
|
24376
|
+
children: /* @__PURE__ */ jsx133(
|
|
24260
24377
|
MuiCircularProgress,
|
|
24261
24378
|
{
|
|
24262
24379
|
variant: "determinate",
|
|
@@ -24268,7 +24385,7 @@ var CircularProgress = ({
|
|
|
24268
24385
|
)
|
|
24269
24386
|
}
|
|
24270
24387
|
),
|
|
24271
|
-
/* @__PURE__ */
|
|
24388
|
+
/* @__PURE__ */ jsx133(
|
|
24272
24389
|
MuiCircularProgress,
|
|
24273
24390
|
{
|
|
24274
24391
|
variant,
|
|
@@ -24297,7 +24414,7 @@ var CircularProgress = ({
|
|
|
24297
24414
|
thickness
|
|
24298
24415
|
}
|
|
24299
24416
|
),
|
|
24300
|
-
variant !== "indeterminate" && /* @__PURE__ */
|
|
24417
|
+
variant !== "indeterminate" && /* @__PURE__ */ jsx133(
|
|
24301
24418
|
Box4,
|
|
24302
24419
|
{
|
|
24303
24420
|
sx: {
|
|
@@ -24312,7 +24429,7 @@ var CircularProgress = ({
|
|
|
24312
24429
|
height: circularSizes[size],
|
|
24313
24430
|
width: circularSizes[size]
|
|
24314
24431
|
},
|
|
24315
|
-
children: typeof label === "string" ? /* @__PURE__ */
|
|
24432
|
+
children: typeof label === "string" ? /* @__PURE__ */ jsx133(
|
|
24316
24433
|
Typography3,
|
|
24317
24434
|
{
|
|
24318
24435
|
variant: typographyVariant,
|
|
@@ -24332,7 +24449,7 @@ var CircularProgress_default = CircularProgress;
|
|
|
24332
24449
|
// src/components/progress/DonutProgress.tsx
|
|
24333
24450
|
import Box5 from "@mui/material/Box";
|
|
24334
24451
|
import { Stack as Stack11 } from "@mui/material";
|
|
24335
|
-
import { jsx as
|
|
24452
|
+
import { jsx as jsx134, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
24336
24453
|
var CIRCULAR_PROGRESS_PERCENTAGE = 85;
|
|
24337
24454
|
var variants2 = {
|
|
24338
24455
|
empty: {
|
|
@@ -24369,8 +24486,8 @@ var DonutProgress = ({
|
|
|
24369
24486
|
showPercentageSymbol
|
|
24370
24487
|
}) => {
|
|
24371
24488
|
const getPercentageWithSymbol = () => /* @__PURE__ */ jsxs68(Stack11, { direction: "row", alignItems: "center", position: "relative", children: [
|
|
24372
|
-
/* @__PURE__ */
|
|
24373
|
-
/* @__PURE__ */
|
|
24489
|
+
/* @__PURE__ */ jsx134(Typography_default, { variant: "h6", component: "div", color: grey800, children: label }),
|
|
24490
|
+
/* @__PURE__ */ jsx134(
|
|
24374
24491
|
Typography_default,
|
|
24375
24492
|
{
|
|
24376
24493
|
variant: "tooltip",
|
|
@@ -24389,7 +24506,7 @@ var DonutProgress = ({
|
|
|
24389
24506
|
width: "fit-content"
|
|
24390
24507
|
},
|
|
24391
24508
|
children: [
|
|
24392
|
-
/* @__PURE__ */
|
|
24509
|
+
/* @__PURE__ */ jsx134(
|
|
24393
24510
|
CircularProgress_default,
|
|
24394
24511
|
{
|
|
24395
24512
|
variant: "determinate",
|
|
@@ -24405,7 +24522,7 @@ var DonutProgress = ({
|
|
|
24405
24522
|
color: variants2[variant].emptyColor
|
|
24406
24523
|
}
|
|
24407
24524
|
),
|
|
24408
|
-
/* @__PURE__ */
|
|
24525
|
+
/* @__PURE__ */ jsx134(
|
|
24409
24526
|
Box5,
|
|
24410
24527
|
{
|
|
24411
24528
|
sx: {
|
|
@@ -24413,7 +24530,7 @@ var DonutProgress = ({
|
|
|
24413
24530
|
top: 0,
|
|
24414
24531
|
left: 0
|
|
24415
24532
|
},
|
|
24416
|
-
children: /* @__PURE__ */
|
|
24533
|
+
children: /* @__PURE__ */ jsx134(
|
|
24417
24534
|
CircularProgress_default,
|
|
24418
24535
|
{
|
|
24419
24536
|
variant: "determinate",
|
|
@@ -24428,7 +24545,7 @@ var DonutProgress = ({
|
|
|
24428
24545
|
)
|
|
24429
24546
|
}
|
|
24430
24547
|
),
|
|
24431
|
-
variant !== "empty" && labelChip && /* @__PURE__ */
|
|
24548
|
+
variant !== "empty" && labelChip && /* @__PURE__ */ jsx134(
|
|
24432
24549
|
Box5,
|
|
24433
24550
|
{
|
|
24434
24551
|
sx: {
|
|
@@ -24445,7 +24562,7 @@ var DonutProgress = ({
|
|
|
24445
24562
|
justifyContent: "center",
|
|
24446
24563
|
boxSizing: "border-box"
|
|
24447
24564
|
},
|
|
24448
|
-
children: /* @__PURE__ */
|
|
24565
|
+
children: /* @__PURE__ */ jsx134(
|
|
24449
24566
|
Typography_default,
|
|
24450
24567
|
{
|
|
24451
24568
|
variant: "tooltip",
|
|
@@ -24462,14 +24579,14 @@ var DonutProgress = ({
|
|
|
24462
24579
|
var DonutProgress_default = DonutProgress;
|
|
24463
24580
|
|
|
24464
24581
|
// src/components/loader/Loader.tsx
|
|
24465
|
-
import { jsx as
|
|
24582
|
+
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
24466
24583
|
var Loader = ({
|
|
24467
24584
|
isVisible,
|
|
24468
24585
|
zIndex = 1e4,
|
|
24469
24586
|
size,
|
|
24470
24587
|
hideProgress = false,
|
|
24471
24588
|
sx
|
|
24472
|
-
}) => /* @__PURE__ */
|
|
24589
|
+
}) => /* @__PURE__ */ jsx135(Fade, { in: isVisible, children: /* @__PURE__ */ jsx135(
|
|
24473
24590
|
Box_default2,
|
|
24474
24591
|
{
|
|
24475
24592
|
sx: {
|
|
@@ -24485,7 +24602,7 @@ var Loader = ({
|
|
|
24485
24602
|
backgroundColor: whiteOpacity32,
|
|
24486
24603
|
...sx
|
|
24487
24604
|
},
|
|
24488
|
-
children: !hideProgress && /* @__PURE__ */
|
|
24605
|
+
children: !hideProgress && /* @__PURE__ */ jsx135(CircularProgress_default, { size })
|
|
24489
24606
|
}
|
|
24490
24607
|
) });
|
|
24491
24608
|
var Loader_default = Loader;
|
|
@@ -24498,14 +24615,14 @@ import "katex/dist/katex.min.css";
|
|
|
24498
24615
|
|
|
24499
24616
|
// src/components/markdown/KatexRenderer.tsx
|
|
24500
24617
|
import katex from "katex";
|
|
24501
|
-
import { jsx as
|
|
24618
|
+
import { jsx as jsx136, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
24502
24619
|
var KatexRenderer = ({ children, block }) => {
|
|
24503
24620
|
try {
|
|
24504
24621
|
const html2 = katex.renderToString(children, {
|
|
24505
24622
|
throwOnError: false,
|
|
24506
24623
|
displayMode: block
|
|
24507
24624
|
});
|
|
24508
|
-
return /* @__PURE__ */
|
|
24625
|
+
return /* @__PURE__ */ jsx136("span", { dangerouslySetInnerHTML: { __html: html2 } });
|
|
24509
24626
|
} catch (err) {
|
|
24510
24627
|
return /* @__PURE__ */ jsxs69("pre", { style: { color: "red" }, children: [
|
|
24511
24628
|
"KaTeX error: $",
|
|
@@ -24516,7 +24633,7 @@ var KatexRenderer = ({ children, block }) => {
|
|
|
24516
24633
|
var KatexRenderer_default = KatexRenderer;
|
|
24517
24634
|
|
|
24518
24635
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
24519
|
-
import { jsx as
|
|
24636
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
24520
24637
|
var MarkdownContainer = styled8("div")(
|
|
24521
24638
|
({
|
|
24522
24639
|
color: color2,
|
|
@@ -24620,11 +24737,11 @@ var renderWithMath = (text) => {
|
|
|
24620
24737
|
const inline = match[2];
|
|
24621
24738
|
if (block !== void 0) {
|
|
24622
24739
|
parts.push(
|
|
24623
|
-
/* @__PURE__ */
|
|
24740
|
+
/* @__PURE__ */ jsx137(KatexRenderer_default, { block: true, children: block.trim() }, start)
|
|
24624
24741
|
);
|
|
24625
24742
|
} else if (inline !== void 0) {
|
|
24626
24743
|
parts.push(
|
|
24627
|
-
/* @__PURE__ */
|
|
24744
|
+
/* @__PURE__ */ jsx137(KatexRenderer_default, { children: inline.trim() }, start)
|
|
24628
24745
|
);
|
|
24629
24746
|
}
|
|
24630
24747
|
lastIndex = regex.lastIndex;
|
|
@@ -24654,11 +24771,11 @@ var CodeOrMath = ({ children, ...props }) => {
|
|
|
24654
24771
|
if (m) {
|
|
24655
24772
|
const expr = m[1] || m[2] || "";
|
|
24656
24773
|
const isBlock = Boolean(m[1]);
|
|
24657
|
-
return /* @__PURE__ */
|
|
24774
|
+
return /* @__PURE__ */ jsx137(KatexRenderer_default, { block: isBlock, children: expr.trim() });
|
|
24658
24775
|
}
|
|
24659
24776
|
const maybe = renderWithMath(s);
|
|
24660
24777
|
const onlyText = maybe.length === 1 && typeof maybe[0] === "string";
|
|
24661
|
-
return onlyText ? /* @__PURE__ */
|
|
24778
|
+
return onlyText ? /* @__PURE__ */ jsx137("code", { ...props, children }) : /* @__PURE__ */ jsx137("span", { children: maybe });
|
|
24662
24779
|
};
|
|
24663
24780
|
var escapeInlineUnderscores = (s) => s.replace(/(\S)_(\S)/g, "$1\\_$2");
|
|
24664
24781
|
var MarkdownRenderer = ({
|
|
@@ -24668,19 +24785,19 @@ var MarkdownRenderer = ({
|
|
|
24668
24785
|
}) => {
|
|
24669
24786
|
const protectedText = escapeInlineUnderscores(text || "");
|
|
24670
24787
|
const normalized = normalizeLatexDelimiters(protectedText);
|
|
24671
|
-
return /* @__PURE__ */
|
|
24788
|
+
return /* @__PURE__ */ jsx137(
|
|
24672
24789
|
MarkdownContainer,
|
|
24673
24790
|
{
|
|
24674
24791
|
className: `markdown-container ${className || ""}`,
|
|
24675
24792
|
...rest,
|
|
24676
|
-
children: /* @__PURE__ */
|
|
24793
|
+
children: /* @__PURE__ */ jsx137(
|
|
24677
24794
|
Markdown,
|
|
24678
24795
|
{
|
|
24679
24796
|
options: {
|
|
24680
24797
|
forceBlock: true,
|
|
24681
24798
|
overrides: {
|
|
24682
24799
|
p: {
|
|
24683
|
-
component: ({ children, ...props }) => /* @__PURE__ */
|
|
24800
|
+
component: ({ children, ...props }) => /* @__PURE__ */ jsx137("p", { ...props, children: renderChildrenWithMath(children) })
|
|
24684
24801
|
},
|
|
24685
24802
|
code: { component: CodeOrMath }
|
|
24686
24803
|
}
|
|
@@ -24695,7 +24812,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
24695
24812
|
|
|
24696
24813
|
// src/components/navbar/Navbar.tsx
|
|
24697
24814
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
24698
|
-
import { Fragment as
|
|
24815
|
+
import { Fragment as Fragment33, jsx as jsx138, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
24699
24816
|
var Navbar = ({
|
|
24700
24817
|
topContent,
|
|
24701
24818
|
bottomContent,
|
|
@@ -24703,7 +24820,7 @@ var Navbar = ({
|
|
|
24703
24820
|
drawerBottomContent,
|
|
24704
24821
|
onClose,
|
|
24705
24822
|
isDrawerOpen = false
|
|
24706
|
-
}) => /* @__PURE__ */ jsxs70(
|
|
24823
|
+
}) => /* @__PURE__ */ jsxs70(Fragment33, { children: [
|
|
24707
24824
|
/* @__PURE__ */ jsxs70(
|
|
24708
24825
|
Box_default2,
|
|
24709
24826
|
{
|
|
@@ -24719,8 +24836,8 @@ var Navbar = ({
|
|
|
24719
24836
|
},
|
|
24720
24837
|
className: "Slim-Vertical-Scroll",
|
|
24721
24838
|
children: [
|
|
24722
|
-
/* @__PURE__ */
|
|
24723
|
-
/* @__PURE__ */
|
|
24839
|
+
/* @__PURE__ */ jsx138(Box_default2, { children: topContent }),
|
|
24840
|
+
/* @__PURE__ */ jsx138(Box_default2, { children: bottomContent })
|
|
24724
24841
|
]
|
|
24725
24842
|
}
|
|
24726
24843
|
),
|
|
@@ -24747,8 +24864,8 @@ var Navbar = ({
|
|
|
24747
24864
|
},
|
|
24748
24865
|
onClose,
|
|
24749
24866
|
children: [
|
|
24750
|
-
/* @__PURE__ */
|
|
24751
|
-
/* @__PURE__ */
|
|
24867
|
+
/* @__PURE__ */ jsx138("div", { children: drawerTopContent }),
|
|
24868
|
+
/* @__PURE__ */ jsx138("div", { children: drawerBottomContent })
|
|
24752
24869
|
]
|
|
24753
24870
|
}
|
|
24754
24871
|
)
|
|
@@ -24758,7 +24875,7 @@ var Navbar_default = Navbar;
|
|
|
24758
24875
|
// src/components/navbar/NavbarButton.tsx
|
|
24759
24876
|
import * as React77 from "react";
|
|
24760
24877
|
import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
|
|
24761
|
-
import { jsx as
|
|
24878
|
+
import { jsx as jsx139, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
24762
24879
|
var NavbarButton = React77.forwardRef(
|
|
24763
24880
|
function NavbarButton2({
|
|
24764
24881
|
iconId,
|
|
@@ -24783,7 +24900,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24783
24900
|
position: "relative"
|
|
24784
24901
|
},
|
|
24785
24902
|
children: [
|
|
24786
|
-
/* @__PURE__ */
|
|
24903
|
+
/* @__PURE__ */ jsx139(
|
|
24787
24904
|
Box6,
|
|
24788
24905
|
{
|
|
24789
24906
|
sx: {
|
|
@@ -24799,7 +24916,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24799
24916
|
}
|
|
24800
24917
|
}
|
|
24801
24918
|
),
|
|
24802
|
-
/* @__PURE__ */
|
|
24919
|
+
/* @__PURE__ */ jsx139(
|
|
24803
24920
|
Box6,
|
|
24804
24921
|
{
|
|
24805
24922
|
sx: {
|
|
@@ -24832,7 +24949,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24832
24949
|
},
|
|
24833
24950
|
children: [
|
|
24834
24951
|
srcUrl ? getButtonContent(
|
|
24835
|
-
/* @__PURE__ */
|
|
24952
|
+
/* @__PURE__ */ jsx139(
|
|
24836
24953
|
Avatar_default,
|
|
24837
24954
|
{
|
|
24838
24955
|
className: "NavbarButton-icon",
|
|
@@ -24842,7 +24959,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24842
24959
|
}
|
|
24843
24960
|
)
|
|
24844
24961
|
) : getButtonContent(
|
|
24845
|
-
/* @__PURE__ */
|
|
24962
|
+
/* @__PURE__ */ jsx139(
|
|
24846
24963
|
Icon_default,
|
|
24847
24964
|
{
|
|
24848
24965
|
id: iconId,
|
|
@@ -24858,7 +24975,7 @@ var NavbarButton = React77.forwardRef(
|
|
|
24858
24975
|
}
|
|
24859
24976
|
)
|
|
24860
24977
|
),
|
|
24861
|
-
badgeIconProps && /* @__PURE__ */
|
|
24978
|
+
badgeIconProps && /* @__PURE__ */ jsx139(
|
|
24862
24979
|
Icon_default,
|
|
24863
24980
|
{
|
|
24864
24981
|
...badgeIconProps,
|
|
@@ -24880,8 +24997,8 @@ var NavbarButton = React77.forwardRef(
|
|
|
24880
24997
|
var NavbarButton_default = NavbarButton;
|
|
24881
24998
|
|
|
24882
24999
|
// src/components/navbar/NavbarHeader.tsx
|
|
24883
|
-
import { jsx as
|
|
24884
|
-
var NavbarHeader = ({ text }) => /* @__PURE__ */
|
|
25000
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
25001
|
+
var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx140(
|
|
24885
25002
|
Typography_default,
|
|
24886
25003
|
{
|
|
24887
25004
|
sx: {
|
|
@@ -24903,10 +25020,10 @@ var NavbarHeader_default = NavbarHeader;
|
|
|
24903
25020
|
// src/components/navbar/NavbarLogo.tsx
|
|
24904
25021
|
import * as React78 from "react";
|
|
24905
25022
|
import { ButtonBase as ButtonBase3 } from "@mui/material";
|
|
24906
|
-
import { jsx as
|
|
25023
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
24907
25024
|
var NavbarLogo = React78.forwardRef(
|
|
24908
25025
|
function NavbarButton3({ src, ...rest }, ref) {
|
|
24909
|
-
return /* @__PURE__ */
|
|
25026
|
+
return /* @__PURE__ */ jsx141(
|
|
24910
25027
|
ButtonBase3,
|
|
24911
25028
|
{
|
|
24912
25029
|
ref,
|
|
@@ -24917,7 +25034,7 @@ var NavbarLogo = React78.forwardRef(
|
|
|
24917
25034
|
borderBottom: `1px solid ${grey200}`,
|
|
24918
25035
|
boxSizing: "border-box"
|
|
24919
25036
|
},
|
|
24920
|
-
children: /* @__PURE__ */
|
|
25037
|
+
children: /* @__PURE__ */ jsx141("img", { src, width: "32px", height: "32px" })
|
|
24921
25038
|
}
|
|
24922
25039
|
);
|
|
24923
25040
|
}
|
|
@@ -24926,7 +25043,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
24926
25043
|
|
|
24927
25044
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
24928
25045
|
import * as React79 from "react";
|
|
24929
|
-
import { Fragment as
|
|
25046
|
+
import { Fragment as Fragment34, jsx as jsx142, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
24930
25047
|
var DonutFocusOverlay = ({
|
|
24931
25048
|
isVisible,
|
|
24932
25049
|
elementRef,
|
|
@@ -24967,8 +25084,8 @@ var DonutFocusOverlay = ({
|
|
|
24967
25084
|
const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
|
|
24968
25085
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
24969
25086
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
24970
|
-
return /* @__PURE__ */ jsxs72(
|
|
24971
|
-
/* @__PURE__ */
|
|
25087
|
+
return /* @__PURE__ */ jsxs72(Fragment34, { children: [
|
|
25088
|
+
/* @__PURE__ */ jsx142(
|
|
24972
25089
|
Box_default2,
|
|
24973
25090
|
{
|
|
24974
25091
|
sx: {
|
|
@@ -24985,7 +25102,7 @@ var DonutFocusOverlay = ({
|
|
|
24985
25102
|
}
|
|
24986
25103
|
}
|
|
24987
25104
|
),
|
|
24988
|
-
chipLabel && /* @__PURE__ */
|
|
25105
|
+
chipLabel && /* @__PURE__ */ jsx142(
|
|
24989
25106
|
Chip_default,
|
|
24990
25107
|
{
|
|
24991
25108
|
label: chipLabel,
|
|
@@ -25012,7 +25129,7 @@ var DonutFocusOverlay = ({
|
|
|
25012
25129
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
25013
25130
|
|
|
25014
25131
|
// src/components/pager/Pager.tsx
|
|
25015
|
-
import { Fragment as
|
|
25132
|
+
import { Fragment as Fragment35, jsx as jsx143, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
25016
25133
|
var Pager = ({
|
|
25017
25134
|
page,
|
|
25018
25135
|
pageSize,
|
|
@@ -25026,10 +25143,10 @@ var Pager = ({
|
|
|
25026
25143
|
const to = Math.min(current + pageSize, total);
|
|
25027
25144
|
const pages = Math.max(Math.ceil(total / pageSize), 1);
|
|
25028
25145
|
const options = [...Array(pages).keys()].map((i) => ({ value: i + 1 }));
|
|
25029
|
-
const Label = ({ children }) => /* @__PURE__ */
|
|
25146
|
+
const Label = ({ children }) => /* @__PURE__ */ jsx143(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
|
|
25030
25147
|
return /* @__PURE__ */ jsxs73(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
|
|
25031
|
-
/* @__PURE__ */
|
|
25032
|
-
/* @__PURE__ */
|
|
25148
|
+
/* @__PURE__ */ jsx143(Label, { children: t("PAGER.PAGE") }),
|
|
25149
|
+
/* @__PURE__ */ jsx143(
|
|
25033
25150
|
Select_default,
|
|
25034
25151
|
{
|
|
25035
25152
|
value: page,
|
|
@@ -25038,9 +25155,9 @@ var Pager = ({
|
|
|
25038
25155
|
sx: { minWidth: 78 }
|
|
25039
25156
|
}
|
|
25040
25157
|
),
|
|
25041
|
-
allowedPageSizes && /* @__PURE__ */ jsxs73(
|
|
25042
|
-
/* @__PURE__ */
|
|
25043
|
-
/* @__PURE__ */
|
|
25158
|
+
allowedPageSizes && /* @__PURE__ */ jsxs73(Fragment35, { children: [
|
|
25159
|
+
/* @__PURE__ */ jsx143(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
25160
|
+
/* @__PURE__ */ jsx143(
|
|
25044
25161
|
Select_default,
|
|
25045
25162
|
{
|
|
25046
25163
|
value: pageSize,
|
|
@@ -25063,7 +25180,7 @@ var Pager = ({
|
|
|
25063
25180
|
" ",
|
|
25064
25181
|
total
|
|
25065
25182
|
] }),
|
|
25066
|
-
/* @__PURE__ */
|
|
25183
|
+
/* @__PURE__ */ jsx143(
|
|
25067
25184
|
IconButton_default,
|
|
25068
25185
|
{
|
|
25069
25186
|
disabled: page <= 1,
|
|
@@ -25071,7 +25188,7 @@ var Pager = ({
|
|
|
25071
25188
|
onClick: () => onPageChange(page - 1, pageSize)
|
|
25072
25189
|
}
|
|
25073
25190
|
),
|
|
25074
|
-
/* @__PURE__ */
|
|
25191
|
+
/* @__PURE__ */ jsx143(
|
|
25075
25192
|
IconButton_default,
|
|
25076
25193
|
{
|
|
25077
25194
|
disabled: page > total / pageSize,
|
|
@@ -25086,7 +25203,7 @@ var Pager_default = Pager;
|
|
|
25086
25203
|
// src/components/scrollable/HorizontalScrollable.tsx
|
|
25087
25204
|
import { ButtonBase as ButtonBase4 } from "@mui/material";
|
|
25088
25205
|
import * as React80 from "react";
|
|
25089
|
-
import { jsx as
|
|
25206
|
+
import { jsx as jsx144, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
25090
25207
|
var HorizontalScrollable = ({
|
|
25091
25208
|
style: style3,
|
|
25092
25209
|
children,
|
|
@@ -25136,7 +25253,7 @@ var HorizontalScrollable = ({
|
|
|
25136
25253
|
current.scrollBy(stepDistance, 0);
|
|
25137
25254
|
};
|
|
25138
25255
|
return /* @__PURE__ */ jsxs74(Box_default2, { sx: { position: "relative", ...style3 }, children: [
|
|
25139
|
-
/* @__PURE__ */
|
|
25256
|
+
/* @__PURE__ */ jsx144(
|
|
25140
25257
|
ButtonBase4,
|
|
25141
25258
|
{
|
|
25142
25259
|
sx: {
|
|
@@ -25153,10 +25270,10 @@ var HorizontalScrollable = ({
|
|
|
25153
25270
|
...isLeftArrowHidden && { display: "none" }
|
|
25154
25271
|
},
|
|
25155
25272
|
onClick: () => leftScroll(),
|
|
25156
|
-
children: /* @__PURE__ */
|
|
25273
|
+
children: /* @__PURE__ */ jsx144(Icon_default, { id: "chevron-left" })
|
|
25157
25274
|
}
|
|
25158
25275
|
),
|
|
25159
|
-
/* @__PURE__ */
|
|
25276
|
+
/* @__PURE__ */ jsx144(
|
|
25160
25277
|
Box_default2,
|
|
25161
25278
|
{
|
|
25162
25279
|
ref: horizontalContainerRef,
|
|
@@ -25175,7 +25292,7 @@ var HorizontalScrollable = ({
|
|
|
25175
25292
|
children
|
|
25176
25293
|
}
|
|
25177
25294
|
),
|
|
25178
|
-
/* @__PURE__ */
|
|
25295
|
+
/* @__PURE__ */ jsx144(
|
|
25179
25296
|
ButtonBase4,
|
|
25180
25297
|
{
|
|
25181
25298
|
sx: {
|
|
@@ -25192,7 +25309,7 @@ var HorizontalScrollable = ({
|
|
|
25192
25309
|
...isRightArrowHidden && { display: "none" }
|
|
25193
25310
|
},
|
|
25194
25311
|
onClick: () => rightScroll(),
|
|
25195
|
-
children: /* @__PURE__ */
|
|
25312
|
+
children: /* @__PURE__ */ jsx144(Icon_default, { id: "chevron-right" })
|
|
25196
25313
|
}
|
|
25197
25314
|
)
|
|
25198
25315
|
] });
|
|
@@ -25201,7 +25318,7 @@ var HorizontalScrollable_default = HorizontalScrollable;
|
|
|
25201
25318
|
|
|
25202
25319
|
// src/components/scrollable/Carousel.tsx
|
|
25203
25320
|
import * as React81 from "react";
|
|
25204
|
-
import { jsx as
|
|
25321
|
+
import { jsx as jsx145, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
25205
25322
|
var buttonStyles = {
|
|
25206
25323
|
color: grey800,
|
|
25207
25324
|
position: "absolute",
|
|
@@ -25457,7 +25574,7 @@ function Carousel({
|
|
|
25457
25574
|
}
|
|
25458
25575
|
scrollHorizontal(scrollData, direction);
|
|
25459
25576
|
};
|
|
25460
|
-
return /* @__PURE__ */
|
|
25577
|
+
return /* @__PURE__ */ jsx145(Box_default2, { ref: rootRef, width: "100%", children: /* @__PURE__ */ jsxs75(
|
|
25461
25578
|
Box_default2,
|
|
25462
25579
|
{
|
|
25463
25580
|
sx: {
|
|
@@ -25469,7 +25586,7 @@ function Carousel({
|
|
|
25469
25586
|
}
|
|
25470
25587
|
},
|
|
25471
25588
|
children: [
|
|
25472
|
-
/* @__PURE__ */
|
|
25589
|
+
/* @__PURE__ */ jsx145(
|
|
25473
25590
|
IconButton_default,
|
|
25474
25591
|
{
|
|
25475
25592
|
iconId: "chevron-left",
|
|
@@ -25482,7 +25599,7 @@ function Carousel({
|
|
|
25482
25599
|
onClick: () => scrollToNext("left")
|
|
25483
25600
|
}
|
|
25484
25601
|
),
|
|
25485
|
-
/* @__PURE__ */
|
|
25602
|
+
/* @__PURE__ */ jsx145(
|
|
25486
25603
|
Box_default2,
|
|
25487
25604
|
{
|
|
25488
25605
|
ref: containerRef,
|
|
@@ -25495,7 +25612,7 @@ function Carousel({
|
|
|
25495
25612
|
"::-webkit-scrollbar": { display: "none" },
|
|
25496
25613
|
gap: `${gap2}px`
|
|
25497
25614
|
},
|
|
25498
|
-
children: items.map((item, index) => /* @__PURE__ */
|
|
25615
|
+
children: items.map((item, index) => /* @__PURE__ */ jsx145(
|
|
25499
25616
|
Box_default2,
|
|
25500
25617
|
{
|
|
25501
25618
|
sx: {
|
|
@@ -25510,7 +25627,7 @@ function Carousel({
|
|
|
25510
25627
|
))
|
|
25511
25628
|
}
|
|
25512
25629
|
),
|
|
25513
|
-
/* @__PURE__ */
|
|
25630
|
+
/* @__PURE__ */ jsx145(
|
|
25514
25631
|
IconButton_default,
|
|
25515
25632
|
{
|
|
25516
25633
|
iconId: "chevron-right",
|
|
@@ -25533,12 +25650,12 @@ var Carousel_default = Carousel;
|
|
|
25533
25650
|
import {
|
|
25534
25651
|
SnackbarProvider as NotistackSnackbarProvider
|
|
25535
25652
|
} from "notistack";
|
|
25536
|
-
import { jsx as
|
|
25653
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
25537
25654
|
var SnackbarProvider = ({
|
|
25538
25655
|
children,
|
|
25539
25656
|
maxSnack = 3,
|
|
25540
25657
|
domRoot
|
|
25541
|
-
}) => /* @__PURE__ */
|
|
25658
|
+
}) => /* @__PURE__ */ jsx146(
|
|
25542
25659
|
NotistackSnackbarProvider,
|
|
25543
25660
|
{
|
|
25544
25661
|
maxSnack,
|
|
@@ -25559,7 +25676,7 @@ import {
|
|
|
25559
25676
|
import * as React82 from "react";
|
|
25560
25677
|
import { SnackbarContent } from "notistack";
|
|
25561
25678
|
import { Typography as Typography4 } from "@mui/material";
|
|
25562
|
-
import { jsx as
|
|
25679
|
+
import { jsx as jsx147, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
25563
25680
|
var sizeStyles5 = {
|
|
25564
25681
|
M: {
|
|
25565
25682
|
width: "344px",
|
|
@@ -25602,7 +25719,7 @@ var Snackbar = React82.forwardRef(
|
|
|
25602
25719
|
const closeClickHandler = React82.useCallback(() => {
|
|
25603
25720
|
onCloseClick && onCloseClick(key);
|
|
25604
25721
|
}, [onCloseClick, key]);
|
|
25605
|
-
return /* @__PURE__ */
|
|
25722
|
+
return /* @__PURE__ */ jsx147(
|
|
25606
25723
|
SnackbarContent,
|
|
25607
25724
|
{
|
|
25608
25725
|
ref,
|
|
@@ -25627,7 +25744,7 @@ var Snackbar = React82.forwardRef(
|
|
|
25627
25744
|
spacing: 2,
|
|
25628
25745
|
sx: { width: "100%", alignItems: "center" },
|
|
25629
25746
|
children: [
|
|
25630
|
-
withIcon && /* @__PURE__ */
|
|
25747
|
+
withIcon && /* @__PURE__ */ jsx147(
|
|
25631
25748
|
Box_default2,
|
|
25632
25749
|
{
|
|
25633
25750
|
sx: {
|
|
@@ -25635,10 +25752,10 @@ var Snackbar = React82.forwardRef(
|
|
|
25635
25752
|
flexShrink: 0,
|
|
25636
25753
|
color: iconColors[severity]
|
|
25637
25754
|
},
|
|
25638
|
-
children: /* @__PURE__ */
|
|
25755
|
+
children: /* @__PURE__ */ jsx147(Icon_default, { id: severityIcons[severity] })
|
|
25639
25756
|
}
|
|
25640
25757
|
),
|
|
25641
|
-
/* @__PURE__ */
|
|
25758
|
+
/* @__PURE__ */ jsx147(
|
|
25642
25759
|
Typography4,
|
|
25643
25760
|
{
|
|
25644
25761
|
variant: "body2",
|
|
@@ -25646,7 +25763,7 @@ var Snackbar = React82.forwardRef(
|
|
|
25646
25763
|
children: message
|
|
25647
25764
|
}
|
|
25648
25765
|
),
|
|
25649
|
-
actionText && /* @__PURE__ */
|
|
25766
|
+
actionText && /* @__PURE__ */ jsx147(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx147(
|
|
25650
25767
|
Button_default,
|
|
25651
25768
|
{
|
|
25652
25769
|
sx: {
|
|
@@ -25661,7 +25778,7 @@ var Snackbar = React82.forwardRef(
|
|
|
25661
25778
|
onClick: actionClickHandler
|
|
25662
25779
|
}
|
|
25663
25780
|
) }),
|
|
25664
|
-
/* @__PURE__ */
|
|
25781
|
+
/* @__PURE__ */ jsx147(Box_default2, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx147(
|
|
25665
25782
|
IconButton_default,
|
|
25666
25783
|
{
|
|
25667
25784
|
iconId: "close",
|
|
@@ -25686,7 +25803,7 @@ var Snackbar_default = Snackbar;
|
|
|
25686
25803
|
|
|
25687
25804
|
// src/components/snackbar/enqueueSnackbar.tsx
|
|
25688
25805
|
import { closeSnackbar as closeSnackbar2 } from "notistack";
|
|
25689
|
-
import { jsx as
|
|
25806
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
25690
25807
|
var enqueueSnackbar = (message, options = {}) => {
|
|
25691
25808
|
const {
|
|
25692
25809
|
persist,
|
|
@@ -25702,7 +25819,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
25702
25819
|
autoHideDuration: autoHideDurationMs ?? 1e4,
|
|
25703
25820
|
persist: persist ?? false,
|
|
25704
25821
|
content(key, message2) {
|
|
25705
|
-
return /* @__PURE__ */
|
|
25822
|
+
return /* @__PURE__ */ jsx148(
|
|
25706
25823
|
Snackbar_default,
|
|
25707
25824
|
{
|
|
25708
25825
|
identifierKey: key,
|
|
@@ -25719,19 +25836,18 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
25719
25836
|
|
|
25720
25837
|
// src/components/tab/TabButton.tsx
|
|
25721
25838
|
import MuiTab from "@mui/material/Tab";
|
|
25722
|
-
import { jsx as
|
|
25839
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
25723
25840
|
var TabButton = ({
|
|
25724
25841
|
children,
|
|
25725
25842
|
disabled = false,
|
|
25726
|
-
textAlign = "
|
|
25843
|
+
textAlign = "center",
|
|
25727
25844
|
marginRight = "24px",
|
|
25728
25845
|
dataTestId,
|
|
25729
|
-
disableUppercase = false,
|
|
25730
25846
|
...rest
|
|
25731
|
-
}) => /* @__PURE__ */
|
|
25847
|
+
}) => /* @__PURE__ */ jsx149(
|
|
25732
25848
|
MuiTab,
|
|
25733
25849
|
{
|
|
25734
|
-
label: /* @__PURE__ */
|
|
25850
|
+
label: /* @__PURE__ */ jsx149(
|
|
25735
25851
|
"div",
|
|
25736
25852
|
{
|
|
25737
25853
|
style: {
|
|
@@ -25740,10 +25856,8 @@ var TabButton = ({
|
|
|
25740
25856
|
alignItems: textAlign === "left" ? "start" : "center",
|
|
25741
25857
|
width: textAlign === "center" ? "100%" : void 0,
|
|
25742
25858
|
marginRight: "24px",
|
|
25743
|
-
|
|
25744
|
-
|
|
25745
|
-
...variants.body1
|
|
25746
|
-
} : variants.caption
|
|
25859
|
+
textTransform: "none",
|
|
25860
|
+
...variants["body1-semibold"]
|
|
25747
25861
|
},
|
|
25748
25862
|
children
|
|
25749
25863
|
}
|
|
@@ -25751,9 +25865,15 @@ var TabButton = ({
|
|
|
25751
25865
|
sx: {
|
|
25752
25866
|
minHeight: "36px",
|
|
25753
25867
|
alignItems: "start",
|
|
25754
|
-
justifyContent: "
|
|
25868
|
+
justifyContent: "center",
|
|
25755
25869
|
padding: "10px 0",
|
|
25756
|
-
marginRight
|
|
25870
|
+
marginRight,
|
|
25871
|
+
borderRadius: "8px",
|
|
25872
|
+
transition: "background 0.2s",
|
|
25873
|
+
color: grey700,
|
|
25874
|
+
"&:not(.Mui-selected):hover": {
|
|
25875
|
+
backgroundColor: grey100
|
|
25876
|
+
}
|
|
25757
25877
|
},
|
|
25758
25878
|
disabled,
|
|
25759
25879
|
"data-testid": dataTestId,
|
|
@@ -25769,7 +25889,7 @@ import MuiTabs from "@mui/material/Tabs";
|
|
|
25769
25889
|
// src/components/layout/SwipeableViews.tsx
|
|
25770
25890
|
import * as React83 from "react";
|
|
25771
25891
|
import { useEffect as useEffect22, useRef as useRef23, useState as useState32 } from "react";
|
|
25772
|
-
import { jsx as
|
|
25892
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
25773
25893
|
var styles = {
|
|
25774
25894
|
container: {
|
|
25775
25895
|
maxHeight: "100%",
|
|
@@ -25806,6 +25926,7 @@ function SwipeableViews({
|
|
|
25806
25926
|
const scrollTimeout = useRef23();
|
|
25807
25927
|
const scrollingMethod = useRef23("none");
|
|
25808
25928
|
const [previousIndex, setPreviousIndex] = useState32(index);
|
|
25929
|
+
const hideScrollAnimation = useRef23(true);
|
|
25809
25930
|
useEffect22(() => {
|
|
25810
25931
|
if (containerRef.current) {
|
|
25811
25932
|
if (scrollingMethod.current === "manual") {
|
|
@@ -25835,14 +25956,15 @@ function SwipeableViews({
|
|
|
25835
25956
|
};
|
|
25836
25957
|
container.scrollTo({
|
|
25837
25958
|
left: scrollPosition,
|
|
25838
|
-
behavior: "smooth"
|
|
25959
|
+
behavior: !hideScrollAnimation.current ? "smooth" : "instant"
|
|
25839
25960
|
});
|
|
25961
|
+
hideScrollAnimation.current = false;
|
|
25840
25962
|
animationFrame = requestAnimationFrame(checkScrollCompletion);
|
|
25841
25963
|
return () => cancelAnimationFrame(animationFrame);
|
|
25842
25964
|
}
|
|
25843
25965
|
}, [index]);
|
|
25844
25966
|
const hasShowTab = (childIndex) => childIndex === index || childIndex === previousIndex;
|
|
25845
|
-
return /* @__PURE__ */
|
|
25967
|
+
return /* @__PURE__ */ jsx150(
|
|
25846
25968
|
"div",
|
|
25847
25969
|
{
|
|
25848
25970
|
...rootProps,
|
|
@@ -25870,12 +25992,15 @@ function SwipeableViews({
|
|
|
25870
25992
|
if (React83.isValidElement(child)) {
|
|
25871
25993
|
mountedChild = !!child.props.keepMounted;
|
|
25872
25994
|
}
|
|
25873
|
-
return /* @__PURE__ */
|
|
25995
|
+
return /* @__PURE__ */ jsx150(
|
|
25874
25996
|
"div",
|
|
25875
25997
|
{
|
|
25876
25998
|
style: Object.assign(
|
|
25877
25999
|
{
|
|
25878
|
-
...!hasShowTab(childIndex) && mountedChild && {
|
|
26000
|
+
...!hasShowTab(childIndex) && mountedChild && {
|
|
26001
|
+
visibility: "hidden",
|
|
26002
|
+
pointerEvents: "none"
|
|
26003
|
+
}
|
|
25879
26004
|
},
|
|
25880
26005
|
styles.slide,
|
|
25881
26006
|
slideStyle
|
|
@@ -25892,7 +26017,7 @@ function SwipeableViews({
|
|
|
25892
26017
|
}
|
|
25893
26018
|
|
|
25894
26019
|
// src/components/tab/Tabs.tsx
|
|
25895
|
-
import { jsx as
|
|
26020
|
+
import { jsx as jsx151, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
25896
26021
|
var Tabs = ({
|
|
25897
26022
|
tabButtons,
|
|
25898
26023
|
children,
|
|
@@ -25902,9 +26027,84 @@ var Tabs = ({
|
|
|
25902
26027
|
fullHeight = false,
|
|
25903
26028
|
contained = false,
|
|
25904
26029
|
scrollbarGutter,
|
|
25905
|
-
disableContentScroll = false
|
|
26030
|
+
disableContentScroll = false,
|
|
26031
|
+
hideScrollButtons = false,
|
|
26032
|
+
hideLineTabs = false
|
|
25906
26033
|
}) => {
|
|
26034
|
+
const tabsRef = React84.useRef(null);
|
|
25907
26035
|
const [value, setValue] = React84.useState(0);
|
|
26036
|
+
const measureTextWidthRange = (child) => {
|
|
26037
|
+
const walker = document.createTreeWalker(child, NodeFilter.SHOW_TEXT, {
|
|
26038
|
+
acceptNode: (node) => node.textContent?.trim() ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT
|
|
26039
|
+
});
|
|
26040
|
+
const textNode = walker.nextNode();
|
|
26041
|
+
if (!textNode) {
|
|
26042
|
+
return Math.round(child.getBoundingClientRect().width);
|
|
26043
|
+
}
|
|
26044
|
+
const range = document.createRange();
|
|
26045
|
+
range.selectNodeContents(textNode);
|
|
26046
|
+
const rect = range.getBoundingClientRect();
|
|
26047
|
+
return Math.round(rect.width);
|
|
26048
|
+
};
|
|
26049
|
+
const waitForSmoothScrollEnd = React84.useCallback(
|
|
26050
|
+
(container, onEnd) => {
|
|
26051
|
+
let prev = container.scrollLeft;
|
|
26052
|
+
let idleFrames = 0;
|
|
26053
|
+
const check = () => {
|
|
26054
|
+
const current = container.scrollLeft;
|
|
26055
|
+
const isMoving = current !== prev;
|
|
26056
|
+
prev = current;
|
|
26057
|
+
if (isMoving) {
|
|
26058
|
+
idleFrames = 0;
|
|
26059
|
+
requestAnimationFrame(check);
|
|
26060
|
+
return;
|
|
26061
|
+
}
|
|
26062
|
+
if (idleFrames < 5) {
|
|
26063
|
+
idleFrames++;
|
|
26064
|
+
requestAnimationFrame(check);
|
|
26065
|
+
return;
|
|
26066
|
+
}
|
|
26067
|
+
onEnd();
|
|
26068
|
+
};
|
|
26069
|
+
requestAnimationFrame(check);
|
|
26070
|
+
},
|
|
26071
|
+
[]
|
|
26072
|
+
);
|
|
26073
|
+
const calculateIndicatorTabWidth = React84.useCallback((index) => {
|
|
26074
|
+
if (!tabsRef.current) {
|
|
26075
|
+
return null;
|
|
26076
|
+
}
|
|
26077
|
+
const tabsContainer = tabsRef.current.querySelector(
|
|
26078
|
+
".MuiTabs-list"
|
|
26079
|
+
);
|
|
26080
|
+
const indicator = tabsRef.current.querySelector(
|
|
26081
|
+
".MuiTabs-indicator"
|
|
26082
|
+
);
|
|
26083
|
+
const child = Array.from(tabsContainer.children)[index];
|
|
26084
|
+
const textWidth = measureTextWidthRange(child);
|
|
26085
|
+
const childRect = child.getBoundingClientRect();
|
|
26086
|
+
const listRect = tabsContainer.getBoundingClientRect();
|
|
26087
|
+
const left = childRect.left + (childRect.width - textWidth) / 2 - listRect.left;
|
|
26088
|
+
indicator.style.display = "block";
|
|
26089
|
+
indicator.style.width = `${textWidth}px`;
|
|
26090
|
+
indicator.style.left = `${left}px`;
|
|
26091
|
+
}, []);
|
|
26092
|
+
React84.useEffect(() => {
|
|
26093
|
+
if (!tabsRef.current) {
|
|
26094
|
+
return;
|
|
26095
|
+
}
|
|
26096
|
+
const tabsScroller = tabsRef.current.querySelector(
|
|
26097
|
+
".MuiTabs-scroller"
|
|
26098
|
+
);
|
|
26099
|
+
waitForSmoothScrollEnd(tabsScroller, () => {
|
|
26100
|
+
calculateIndicatorTabWidth(currentTabIndex ?? value);
|
|
26101
|
+
});
|
|
26102
|
+
}, [
|
|
26103
|
+
calculateIndicatorTabWidth,
|
|
26104
|
+
currentTabIndex,
|
|
26105
|
+
value,
|
|
26106
|
+
waitForSmoothScrollEnd
|
|
26107
|
+
]);
|
|
25908
26108
|
const handleChangeIndex = (index) => {
|
|
25909
26109
|
onChangeTab?.(index);
|
|
25910
26110
|
setValue(index);
|
|
@@ -25913,7 +26113,7 @@ var Tabs = ({
|
|
|
25913
26113
|
top: 0
|
|
25914
26114
|
} : {
|
|
25915
26115
|
bottom: 0,
|
|
25916
|
-
borderRadius: "8px
|
|
26116
|
+
borderRadius: "8px"
|
|
25917
26117
|
};
|
|
25918
26118
|
return /* @__PURE__ */ jsxs77(
|
|
25919
26119
|
Box_default2,
|
|
@@ -25929,33 +26129,40 @@ var Tabs = ({
|
|
|
25929
26129
|
}
|
|
25930
26130
|
},
|
|
25931
26131
|
children: [
|
|
25932
|
-
/* @__PURE__ */
|
|
26132
|
+
/* @__PURE__ */ jsx151(
|
|
25933
26133
|
MuiTabs,
|
|
25934
26134
|
{
|
|
26135
|
+
ref: tabsRef,
|
|
25935
26136
|
value: currentTabIndex ?? value,
|
|
25936
26137
|
onChange: (_event, index) => {
|
|
25937
26138
|
handleChangeIndex(index);
|
|
25938
26139
|
},
|
|
25939
26140
|
variant,
|
|
25940
|
-
scrollButtons:
|
|
26141
|
+
scrollButtons: !hideScrollButtons,
|
|
25941
26142
|
allowScrollButtonsMobile: true,
|
|
25942
|
-
|
|
25943
|
-
|
|
25944
|
-
|
|
25945
|
-
|
|
26143
|
+
slotProps: {
|
|
26144
|
+
indicator: {
|
|
26145
|
+
sx: {
|
|
26146
|
+
...highlightedPositionSx,
|
|
26147
|
+
display: "none"
|
|
26148
|
+
}
|
|
26149
|
+
},
|
|
26150
|
+
scrollButtons: {
|
|
26151
|
+
sx: {
|
|
26152
|
+
"&.Mui-disabled": {
|
|
26153
|
+
display: contained ? "none" : void 0
|
|
26154
|
+
}
|
|
25946
26155
|
}
|
|
25947
26156
|
}
|
|
25948
26157
|
},
|
|
25949
|
-
TabIndicatorProps: {
|
|
25950
|
-
sx: highlightedPositionSx
|
|
25951
|
-
},
|
|
25952
26158
|
sx: {
|
|
25953
|
-
borderBottom: contained ? `1px solid ${grey200}` : void 0
|
|
26159
|
+
borderBottom: contained && !hideLineTabs ? `1px solid ${grey200}` : void 0,
|
|
26160
|
+
borderTop: !contained && !hideLineTabs ? `1px solid ${grey200}` : void 0
|
|
25954
26161
|
},
|
|
25955
26162
|
children: tabButtons
|
|
25956
26163
|
}
|
|
25957
26164
|
),
|
|
25958
|
-
/* @__PURE__ */
|
|
26165
|
+
/* @__PURE__ */ jsx151(
|
|
25959
26166
|
Box_default2,
|
|
25960
26167
|
{
|
|
25961
26168
|
sx: {
|
|
@@ -25964,7 +26171,7 @@ var Tabs = ({
|
|
|
25964
26171
|
height: "100%"
|
|
25965
26172
|
}
|
|
25966
26173
|
},
|
|
25967
|
-
children: /* @__PURE__ */
|
|
26174
|
+
children: /* @__PURE__ */ jsx151(
|
|
25968
26175
|
SwipeableViews,
|
|
25969
26176
|
{
|
|
25970
26177
|
index: currentTabIndex ?? value,
|
|
@@ -25993,8 +26200,8 @@ var Tabs = ({
|
|
|
25993
26200
|
var Tabs_default = Tabs;
|
|
25994
26201
|
|
|
25995
26202
|
// src/components/tab/TabContent.tsx
|
|
25996
|
-
import { jsx as
|
|
25997
|
-
var TabContent = ({ children }) => /* @__PURE__ */
|
|
26203
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
26204
|
+
var TabContent = ({ children }) => /* @__PURE__ */ jsx152(
|
|
25998
26205
|
Box_default2,
|
|
25999
26206
|
{
|
|
26000
26207
|
sx: {
|
|
@@ -26011,8 +26218,8 @@ import {
|
|
|
26011
26218
|
TableRow as MuiTableRow,
|
|
26012
26219
|
TableCell as MuiTableCell
|
|
26013
26220
|
} from "@mui/material";
|
|
26014
|
-
import { jsx as
|
|
26015
|
-
var TableDivider = () => /* @__PURE__ */
|
|
26221
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
26222
|
+
var TableDivider = () => /* @__PURE__ */ jsx153(MuiTableRow, { children: /* @__PURE__ */ jsx153(
|
|
26016
26223
|
MuiTableCell,
|
|
26017
26224
|
{
|
|
26018
26225
|
colSpan: 1e3,
|
|
@@ -26025,8 +26232,8 @@ var TableDivider_default = TableDivider;
|
|
|
26025
26232
|
import {
|
|
26026
26233
|
TableSortLabel as MuiTableSortLabel
|
|
26027
26234
|
} from "@mui/material";
|
|
26028
|
-
import { jsx as
|
|
26029
|
-
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */
|
|
26235
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
26236
|
+
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx154(MuiTableSortLabel, { ...rest, children });
|
|
26030
26237
|
var TableSortLabel_default = TableSortLabel;
|
|
26031
26238
|
|
|
26032
26239
|
// src/components/table/Table.tsx
|
|
@@ -26034,21 +26241,21 @@ import {
|
|
|
26034
26241
|
TableContainer,
|
|
26035
26242
|
Table as MuiTable
|
|
26036
26243
|
} from "@mui/material";
|
|
26037
|
-
import { jsx as
|
|
26038
|
-
var Table = ({ children, sx, className }) => /* @__PURE__ */
|
|
26244
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
26245
|
+
var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx155(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx155(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
|
|
26039
26246
|
var Table_default = Table;
|
|
26040
26247
|
|
|
26041
26248
|
// src/components/table/TableBody.tsx
|
|
26042
26249
|
import { TableBody as MuiTableBody } from "@mui/material";
|
|
26043
|
-
import { jsx as
|
|
26044
|
-
var TableBody = ({ children }) => /* @__PURE__ */
|
|
26250
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
26251
|
+
var TableBody = ({ children }) => /* @__PURE__ */ jsx156(MuiTableBody, { children });
|
|
26045
26252
|
var TableBody_default = TableBody;
|
|
26046
26253
|
|
|
26047
26254
|
// src/components/table/TableCell.tsx
|
|
26048
26255
|
import {
|
|
26049
26256
|
TableCell as MuiTableCell2
|
|
26050
26257
|
} from "@mui/material";
|
|
26051
|
-
import { jsx as
|
|
26258
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
26052
26259
|
var TableCell = ({
|
|
26053
26260
|
children,
|
|
26054
26261
|
size = "M",
|
|
@@ -26059,7 +26266,7 @@ var TableCell = ({
|
|
|
26059
26266
|
onClick,
|
|
26060
26267
|
noBorder = false,
|
|
26061
26268
|
...rest
|
|
26062
|
-
}) => /* @__PURE__ */
|
|
26269
|
+
}) => /* @__PURE__ */ jsx157(
|
|
26063
26270
|
MuiTableCell2,
|
|
26064
26271
|
{
|
|
26065
26272
|
...rest,
|
|
@@ -26084,7 +26291,7 @@ var TableCell_default = TableCell;
|
|
|
26084
26291
|
|
|
26085
26292
|
// src/components/table/TableCellCopy.tsx
|
|
26086
26293
|
import * as React85 from "react";
|
|
26087
|
-
import { jsx as
|
|
26294
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
26088
26295
|
var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
26089
26296
|
const { t } = useTranslation();
|
|
26090
26297
|
const [isCopied, setIsCopied] = React85.useState(false);
|
|
@@ -26102,7 +26309,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
26102
26309
|
const getIconId = () => !isCopied ? "content-copy" : "check";
|
|
26103
26310
|
const iconHiddenClass = "icon-hidden";
|
|
26104
26311
|
const iconCopiedClass = "icon-copied";
|
|
26105
|
-
return /* @__PURE__ */
|
|
26312
|
+
return /* @__PURE__ */ jsx158(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx158(
|
|
26106
26313
|
Stack_default,
|
|
26107
26314
|
{
|
|
26108
26315
|
direction: "row",
|
|
@@ -26111,7 +26318,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
26111
26318
|
onMouseEnter: () => setShowIcon(true),
|
|
26112
26319
|
onMouseLeave: () => setShowIcon(false),
|
|
26113
26320
|
onClick: manageButtonClicked,
|
|
26114
|
-
children: /* @__PURE__ */
|
|
26321
|
+
children: /* @__PURE__ */ jsx158(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx158(
|
|
26115
26322
|
Button_default,
|
|
26116
26323
|
{
|
|
26117
26324
|
className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
|
|
@@ -26141,21 +26348,21 @@ var TableCellCopy_default = TableCellCopy;
|
|
|
26141
26348
|
|
|
26142
26349
|
// src/components/table/TableHead.tsx
|
|
26143
26350
|
import { TableHead as MuiTableHead } from "@mui/material";
|
|
26144
|
-
import { jsx as
|
|
26145
|
-
var TableHead = ({ children }) => /* @__PURE__ */
|
|
26351
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
26352
|
+
var TableHead = ({ children }) => /* @__PURE__ */ jsx159(MuiTableHead, { children });
|
|
26146
26353
|
var TableHead_default = TableHead;
|
|
26147
26354
|
|
|
26148
26355
|
// src/components/table/TableRow.tsx
|
|
26149
26356
|
import {
|
|
26150
26357
|
TableRow as MuiTableRow2
|
|
26151
26358
|
} from "@mui/material";
|
|
26152
|
-
import { jsx as
|
|
26359
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
26153
26360
|
var TableRow = ({
|
|
26154
26361
|
children,
|
|
26155
26362
|
isFollowedByNestedTable = false,
|
|
26156
26363
|
fadeInLeftAnimation = false,
|
|
26157
26364
|
sx
|
|
26158
|
-
}) => /* @__PURE__ */
|
|
26365
|
+
}) => /* @__PURE__ */ jsx160(
|
|
26159
26366
|
MuiTableRow2,
|
|
26160
26367
|
{
|
|
26161
26368
|
className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
|
|
@@ -26167,14 +26374,14 @@ var TableRow_default = TableRow;
|
|
|
26167
26374
|
|
|
26168
26375
|
// src/components/table/NestedTable.tsx
|
|
26169
26376
|
import { Collapse as Collapse7 } from "@mui/material";
|
|
26170
|
-
import { jsx as
|
|
26377
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
26171
26378
|
var NestedTable = ({
|
|
26172
26379
|
colSpan,
|
|
26173
26380
|
children,
|
|
26174
26381
|
className = "",
|
|
26175
26382
|
sx,
|
|
26176
26383
|
isVisible = true
|
|
26177
|
-
}) => /* @__PURE__ */
|
|
26384
|
+
}) => /* @__PURE__ */ jsx161(TableRow_default, { children: /* @__PURE__ */ jsx161(
|
|
26178
26385
|
TableCell_default,
|
|
26179
26386
|
{
|
|
26180
26387
|
colSpan,
|
|
@@ -26183,14 +26390,14 @@ var NestedTable = ({
|
|
|
26183
26390
|
height: "auto",
|
|
26184
26391
|
...!isVisible && { borderBottom: "none" }
|
|
26185
26392
|
},
|
|
26186
|
-
children: /* @__PURE__ */
|
|
26393
|
+
children: /* @__PURE__ */ jsx161(Collapse7, { in: isVisible, children: /* @__PURE__ */ jsx161(Box_default2, { sx: { padding: "16px", backgroundColor: grey100 }, children: /* @__PURE__ */ jsx161(Paper_default, { children: /* @__PURE__ */ jsx161(Table_default, { sx, className: `Nested-Table ${className}`, children }) }) }) })
|
|
26187
26394
|
}
|
|
26188
26395
|
) });
|
|
26189
26396
|
var NestedTable_default = NestedTable;
|
|
26190
26397
|
|
|
26191
26398
|
// src/components/toolbar/ToolbarBreadcrumb.tsx
|
|
26192
|
-
import { jsx as
|
|
26193
|
-
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */
|
|
26399
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
26400
|
+
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx162(
|
|
26194
26401
|
Stack_default,
|
|
26195
26402
|
{
|
|
26196
26403
|
direction: "row",
|
|
@@ -26200,7 +26407,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx161(
|
|
|
26200
26407
|
(previous, current, index) => [
|
|
26201
26408
|
...previous,
|
|
26202
26409
|
...index > 0 ? [
|
|
26203
|
-
/* @__PURE__ */
|
|
26410
|
+
/* @__PURE__ */ jsx162(
|
|
26204
26411
|
Typography_default,
|
|
26205
26412
|
{
|
|
26206
26413
|
color: grey500,
|
|
@@ -26224,9 +26431,9 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
26224
26431
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
26225
26432
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
26226
26433
|
import * as React86 from "react";
|
|
26227
|
-
import { jsx as
|
|
26434
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
26228
26435
|
var ToolbarBreadcrumbButton = React86.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
26229
|
-
return /* @__PURE__ */
|
|
26436
|
+
return /* @__PURE__ */ jsx163(
|
|
26230
26437
|
ButtonBase5,
|
|
26231
26438
|
{
|
|
26232
26439
|
className: `Cn-ToolbarBreadcrumbButton ${className}`,
|
|
@@ -26245,14 +26452,14 @@ var ToolbarBreadcrumbButton = React86.forwardRef(function ToolbarBreadcrumbButto
|
|
|
26245
26452
|
}
|
|
26246
26453
|
},
|
|
26247
26454
|
...rest,
|
|
26248
|
-
children: /* @__PURE__ */
|
|
26455
|
+
children: /* @__PURE__ */ jsx163(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
|
|
26249
26456
|
}
|
|
26250
26457
|
);
|
|
26251
26458
|
});
|
|
26252
26459
|
var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
|
|
26253
26460
|
|
|
26254
26461
|
// src/components/toolbar/Toolbar.tsx
|
|
26255
|
-
import { jsx as
|
|
26462
|
+
import { jsx as jsx164, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
26256
26463
|
var Toolbar = ({
|
|
26257
26464
|
children,
|
|
26258
26465
|
rightActions,
|
|
@@ -26293,7 +26500,7 @@ var Toolbar = ({
|
|
|
26293
26500
|
width: "100%"
|
|
26294
26501
|
},
|
|
26295
26502
|
children: [
|
|
26296
|
-
leftActions && /* @__PURE__ */
|
|
26503
|
+
leftActions && /* @__PURE__ */ jsx164(
|
|
26297
26504
|
Box_default2,
|
|
26298
26505
|
{
|
|
26299
26506
|
className: `Cn-Toolbar-left`,
|
|
@@ -26303,7 +26510,7 @@ var Toolbar = ({
|
|
|
26303
26510
|
children: leftActions
|
|
26304
26511
|
}
|
|
26305
26512
|
),
|
|
26306
|
-
/* @__PURE__ */
|
|
26513
|
+
/* @__PURE__ */ jsx164(
|
|
26307
26514
|
Box_default2,
|
|
26308
26515
|
{
|
|
26309
26516
|
className: `Cn-Toolbar-children`,
|
|
@@ -26318,7 +26525,7 @@ var Toolbar = ({
|
|
|
26318
26525
|
]
|
|
26319
26526
|
}
|
|
26320
26527
|
),
|
|
26321
|
-
rightActions && /* @__PURE__ */
|
|
26528
|
+
rightActions && /* @__PURE__ */ jsx164(
|
|
26322
26529
|
Box_default2,
|
|
26323
26530
|
{
|
|
26324
26531
|
className: `Cn-Toolbar-right`,
|
|
@@ -26339,7 +26546,7 @@ var Toolbar_default = Toolbar;
|
|
|
26339
26546
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
26340
26547
|
import * as React87 from "react";
|
|
26341
26548
|
import { useState as useState35 } from "react";
|
|
26342
|
-
import { jsx as
|
|
26549
|
+
import { jsx as jsx165, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
26343
26550
|
var ToolbarTitle = React87.forwardRef(function ToolbarTitle2({
|
|
26344
26551
|
title,
|
|
26345
26552
|
align = "left",
|
|
@@ -26349,7 +26556,7 @@ var ToolbarTitle = React87.forwardRef(function ToolbarTitle2({
|
|
|
26349
26556
|
}, ref) {
|
|
26350
26557
|
const textElementRef = React87.useRef(null);
|
|
26351
26558
|
const [showHoverActions, setShowHoverActions] = useState35(false);
|
|
26352
|
-
return /* @__PURE__ */
|
|
26559
|
+
return /* @__PURE__ */ jsx165(Box_default2, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx165(
|
|
26353
26560
|
TextEllipsisTooltip_default,
|
|
26354
26561
|
{
|
|
26355
26562
|
title: title ?? "\xA0",
|
|
@@ -26372,7 +26579,7 @@ var ToolbarTitle = React87.forwardRef(function ToolbarTitle2({
|
|
|
26372
26579
|
},
|
|
26373
26580
|
children: [
|
|
26374
26581
|
title || "\xA0",
|
|
26375
|
-
hoverActions && showHoverActions && /* @__PURE__ */
|
|
26582
|
+
hoverActions && showHoverActions && /* @__PURE__ */ jsx165(
|
|
26376
26583
|
Box_default2,
|
|
26377
26584
|
{
|
|
26378
26585
|
sx: {
|
|
@@ -26401,13 +26608,13 @@ var Slide_default = Slide;
|
|
|
26401
26608
|
|
|
26402
26609
|
// src/components/widget/WidgetLegendItem.tsx
|
|
26403
26610
|
import { ButtonBase as ButtonBase6 } from "@mui/material";
|
|
26404
|
-
import { jsx as
|
|
26611
|
+
import { jsx as jsx166, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
26405
26612
|
var WidgetLegendItem = ({
|
|
26406
26613
|
groupLabel,
|
|
26407
26614
|
legendDirection = "column",
|
|
26408
26615
|
items = [],
|
|
26409
26616
|
onClick
|
|
26410
|
-
}) => /* @__PURE__ */
|
|
26617
|
+
}) => /* @__PURE__ */ jsx166(
|
|
26411
26618
|
ButtonBase6,
|
|
26412
26619
|
{
|
|
26413
26620
|
tabIndex: onClick ? 0 : -1,
|
|
@@ -26433,7 +26640,7 @@ var WidgetLegendItem = ({
|
|
|
26433
26640
|
color: grey800
|
|
26434
26641
|
},
|
|
26435
26642
|
children: [
|
|
26436
|
-
groupLabel && /* @__PURE__ */
|
|
26643
|
+
groupLabel && /* @__PURE__ */ jsx166(
|
|
26437
26644
|
Typography_default,
|
|
26438
26645
|
{
|
|
26439
26646
|
variant: "overline",
|
|
@@ -26465,7 +26672,7 @@ var WidgetLegendItem = ({
|
|
|
26465
26672
|
paddingRight: legendDirection === "row" ? "12px" : "inherit"
|
|
26466
26673
|
},
|
|
26467
26674
|
children: [
|
|
26468
|
-
iconColor && /* @__PURE__ */
|
|
26675
|
+
iconColor && /* @__PURE__ */ jsx166(
|
|
26469
26676
|
Icon_default,
|
|
26470
26677
|
{
|
|
26471
26678
|
id: iconId,
|
|
@@ -26476,7 +26683,7 @@ var WidgetLegendItem = ({
|
|
|
26476
26683
|
size: iconSize
|
|
26477
26684
|
}
|
|
26478
26685
|
),
|
|
26479
|
-
label && /* @__PURE__ */
|
|
26686
|
+
label && /* @__PURE__ */ jsx166(
|
|
26480
26687
|
Typography_default,
|
|
26481
26688
|
{
|
|
26482
26689
|
variant: "caption",
|
|
@@ -26485,7 +26692,7 @@ var WidgetLegendItem = ({
|
|
|
26485
26692
|
children: label
|
|
26486
26693
|
}
|
|
26487
26694
|
),
|
|
26488
|
-
value && /* @__PURE__ */
|
|
26695
|
+
value && /* @__PURE__ */ jsx166(
|
|
26489
26696
|
Typography_default,
|
|
26490
26697
|
{
|
|
26491
26698
|
sx: style3,
|
|
@@ -26494,7 +26701,7 @@ var WidgetLegendItem = ({
|
|
|
26494
26701
|
children: value
|
|
26495
26702
|
}
|
|
26496
26703
|
),
|
|
26497
|
-
incrementLabelValue && /* @__PURE__ */
|
|
26704
|
+
incrementLabelValue && /* @__PURE__ */ jsx166(
|
|
26498
26705
|
IncrementLabel_default,
|
|
26499
26706
|
{
|
|
26500
26707
|
label: incrementLabelValue,
|
|
@@ -26520,8 +26727,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
|
|
|
26520
26727
|
|
|
26521
26728
|
// src/components/widget/Widget.tsx
|
|
26522
26729
|
import MuiCard2 from "@mui/material/Card";
|
|
26523
|
-
import { jsx as
|
|
26524
|
-
var Widget = ({ children }) => /* @__PURE__ */
|
|
26730
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
26731
|
+
var Widget = ({ children }) => /* @__PURE__ */ jsx167(
|
|
26525
26732
|
MuiCard2,
|
|
26526
26733
|
{
|
|
26527
26734
|
variant: "elevation",
|
|
@@ -26545,8 +26752,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx166(
|
|
|
26545
26752
|
var Widget_default = Widget;
|
|
26546
26753
|
|
|
26547
26754
|
// src/components/widget/WidgetActions.tsx
|
|
26548
|
-
import { jsx as
|
|
26549
|
-
var WidgetActions = ({ children }) => /* @__PURE__ */
|
|
26755
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
26756
|
+
var WidgetActions = ({ children }) => /* @__PURE__ */ jsx168(
|
|
26550
26757
|
Box_default2,
|
|
26551
26758
|
{
|
|
26552
26759
|
sx: {
|
|
@@ -26560,8 +26767,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx167(
|
|
|
26560
26767
|
var WidgetActions_default = WidgetActions;
|
|
26561
26768
|
|
|
26562
26769
|
// src/components/widget/WidgetTitle.tsx
|
|
26563
|
-
import { jsx as
|
|
26564
|
-
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */
|
|
26770
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
26771
|
+
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx169(
|
|
26565
26772
|
Box_default2,
|
|
26566
26773
|
{
|
|
26567
26774
|
sx: {
|
|
@@ -26571,7 +26778,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
26571
26778
|
maxWidth: "100%",
|
|
26572
26779
|
...sx
|
|
26573
26780
|
},
|
|
26574
|
-
children: /* @__PURE__ */
|
|
26781
|
+
children: /* @__PURE__ */ jsx169(
|
|
26575
26782
|
Typography_default,
|
|
26576
26783
|
{
|
|
26577
26784
|
variant: "subtitle2",
|
|
@@ -26585,12 +26792,12 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
26585
26792
|
}
|
|
26586
26793
|
)
|
|
26587
26794
|
}
|
|
26588
|
-
) : /* @__PURE__ */
|
|
26795
|
+
) : /* @__PURE__ */ jsx169("span", {});
|
|
26589
26796
|
var WidgetTitle_default = WidgetTitle;
|
|
26590
26797
|
|
|
26591
26798
|
// src/components/window/MinimizableWindow.tsx
|
|
26592
26799
|
import * as React88 from "react";
|
|
26593
|
-
import { Fragment as
|
|
26800
|
+
import { Fragment as Fragment36, jsx as jsx170, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
26594
26801
|
var sizes6 = {
|
|
26595
26802
|
M: 400,
|
|
26596
26803
|
L: 500,
|
|
@@ -26704,8 +26911,8 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26704
26911
|
}
|
|
26705
26912
|
}, 750);
|
|
26706
26913
|
};
|
|
26707
|
-
return /* @__PURE__ */ jsxs81(
|
|
26708
|
-
isDraggingState && /* @__PURE__ */
|
|
26914
|
+
return /* @__PURE__ */ jsxs81(Fragment36, { children: [
|
|
26915
|
+
isDraggingState && /* @__PURE__ */ jsx170(
|
|
26709
26916
|
Box_default2,
|
|
26710
26917
|
{
|
|
26711
26918
|
sx: {
|
|
@@ -26721,7 +26928,7 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26721
26928
|
onMouseMove: (ev) => handleMouseMove(ev)
|
|
26722
26929
|
}
|
|
26723
26930
|
),
|
|
26724
|
-
/* @__PURE__ */
|
|
26931
|
+
/* @__PURE__ */ jsx170(
|
|
26725
26932
|
Box_default2,
|
|
26726
26933
|
{
|
|
26727
26934
|
ref: overlayRef,
|
|
@@ -26763,19 +26970,19 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26763
26970
|
onMouseDown: handleMouseDown,
|
|
26764
26971
|
minHeight: "44px",
|
|
26765
26972
|
children: [
|
|
26766
|
-
/* @__PURE__ */
|
|
26973
|
+
/* @__PURE__ */ jsx170(
|
|
26767
26974
|
Stack_default,
|
|
26768
26975
|
{
|
|
26769
26976
|
direction: "row",
|
|
26770
26977
|
alignItems: "center",
|
|
26771
26978
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26772
|
-
children: showBackButton && (!backButton ? /* @__PURE__ */
|
|
26979
|
+
children: showBackButton && (!backButton ? /* @__PURE__ */ jsx170(
|
|
26773
26980
|
Tooltip_default,
|
|
26774
26981
|
{
|
|
26775
26982
|
title: t("MINIMIZABLE_WINDOW.GO_BACK"),
|
|
26776
26983
|
zIndex: 999999,
|
|
26777
26984
|
placement: "top",
|
|
26778
|
-
children: /* @__PURE__ */
|
|
26985
|
+
children: /* @__PURE__ */ jsx170(
|
|
26779
26986
|
IconButton_default,
|
|
26780
26987
|
{
|
|
26781
26988
|
size: iconSizes4,
|
|
@@ -26788,7 +26995,7 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26788
26995
|
) : backButton)
|
|
26789
26996
|
}
|
|
26790
26997
|
),
|
|
26791
|
-
/* @__PURE__ */
|
|
26998
|
+
/* @__PURE__ */ jsx170(
|
|
26792
26999
|
Box_default2,
|
|
26793
27000
|
{
|
|
26794
27001
|
sx: {
|
|
@@ -26796,7 +27003,7 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26796
27003
|
left: "50%",
|
|
26797
27004
|
transform: "translateX(-50%)"
|
|
26798
27005
|
},
|
|
26799
|
-
children: typeof title === "string" ? /* @__PURE__ */
|
|
27006
|
+
children: typeof title === "string" ? /* @__PURE__ */ jsx170(Typography_default, { children: title }) : title
|
|
26800
27007
|
}
|
|
26801
27008
|
),
|
|
26802
27009
|
/* @__PURE__ */ jsxs81(
|
|
@@ -26806,13 +27013,13 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26806
27013
|
alignItems: "center",
|
|
26807
27014
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26808
27015
|
children: [
|
|
26809
|
-
/* @__PURE__ */
|
|
27016
|
+
/* @__PURE__ */ jsx170(Box_default2, { children: /* @__PURE__ */ jsx170(
|
|
26810
27017
|
Tooltip_default,
|
|
26811
27018
|
{
|
|
26812
27019
|
title: t("MINIMIZABLE_WINDOW.MINIMIZE"),
|
|
26813
27020
|
zIndex: 999999,
|
|
26814
27021
|
placement: "top",
|
|
26815
|
-
children: /* @__PURE__ */
|
|
27022
|
+
children: /* @__PURE__ */ jsx170(
|
|
26816
27023
|
IconButton_default,
|
|
26817
27024
|
{
|
|
26818
27025
|
size: iconSizes4,
|
|
@@ -26828,13 +27035,13 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26828
27035
|
)
|
|
26829
27036
|
}
|
|
26830
27037
|
) }),
|
|
26831
|
-
closeable && /* @__PURE__ */
|
|
27038
|
+
closeable && /* @__PURE__ */ jsx170(Box_default2, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx170(
|
|
26832
27039
|
Tooltip_default,
|
|
26833
27040
|
{
|
|
26834
27041
|
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
26835
27042
|
zIndex: 999999,
|
|
26836
27043
|
placement: "top",
|
|
26837
|
-
children: /* @__PURE__ */
|
|
27044
|
+
children: /* @__PURE__ */ jsx170(
|
|
26838
27045
|
IconButton_default,
|
|
26839
27046
|
{
|
|
26840
27047
|
size: iconSizes4,
|
|
@@ -26851,7 +27058,7 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26851
27058
|
]
|
|
26852
27059
|
}
|
|
26853
27060
|
),
|
|
26854
|
-
/* @__PURE__ */
|
|
27061
|
+
/* @__PURE__ */ jsx170(
|
|
26855
27062
|
Stack_default,
|
|
26856
27063
|
{
|
|
26857
27064
|
sx: {
|
|
@@ -26870,29 +27077,33 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
|
|
|
26870
27077
|
var MinimizableWindow_default = MinimizableWindow;
|
|
26871
27078
|
|
|
26872
27079
|
// src/hooks/useFormatters.ts
|
|
26873
|
-
import { useCallback as
|
|
27080
|
+
import { useCallback as useCallback21, useContext as useContext16 } from "react";
|
|
26874
27081
|
var useFormatters = () => {
|
|
26875
27082
|
const { locale, currency, timezone } = useContext16(IntlContext);
|
|
26876
27083
|
return {
|
|
26877
|
-
formatCompactNumber:
|
|
27084
|
+
formatCompactNumber: useCallback21(
|
|
26878
27085
|
(value) => formatCompactNumber(value, locale),
|
|
26879
27086
|
[locale]
|
|
26880
27087
|
),
|
|
26881
|
-
formatNumber:
|
|
27088
|
+
formatNumber: useCallback21(
|
|
26882
27089
|
(value, fractionSize) => formatNumber(value, locale, fractionSize),
|
|
26883
27090
|
[locale]
|
|
26884
27091
|
),
|
|
26885
|
-
formatPercentage:
|
|
27092
|
+
formatPercentage: useCallback21(
|
|
26886
27093
|
(value, fractionSize) => formatPercentage(value, locale, fractionSize),
|
|
26887
27094
|
[locale]
|
|
26888
27095
|
),
|
|
26889
|
-
formatCurrency:
|
|
27096
|
+
formatCurrency: useCallback21(
|
|
26890
27097
|
(value, notation) => formatCurrency(value, locale, currency, notation),
|
|
26891
27098
|
[currency, locale]
|
|
26892
27099
|
),
|
|
26893
|
-
formatDate:
|
|
27100
|
+
formatDate: useCallback21(
|
|
26894
27101
|
(date, format2) => formatDate(date, locale, timezone, format2),
|
|
26895
27102
|
[locale, timezone]
|
|
27103
|
+
),
|
|
27104
|
+
formatPhone: useCallback21(
|
|
27105
|
+
(phone, format2) => formatPhone(phone, format2),
|
|
27106
|
+
[]
|
|
26896
27107
|
)
|
|
26897
27108
|
};
|
|
26898
27109
|
};
|
|
@@ -27001,6 +27212,7 @@ export {
|
|
|
27001
27212
|
Paper_default as Paper,
|
|
27002
27213
|
PercentageFormatter_default as PercentageFormatter,
|
|
27003
27214
|
PhoneField_default as PhoneField,
|
|
27215
|
+
PhoneFormatter_default as PhoneFormatter,
|
|
27004
27216
|
Popover_default as Popover,
|
|
27005
27217
|
PopoverActions_default as PopoverActions,
|
|
27006
27218
|
Radio_default as Radio,
|
|
@@ -27072,6 +27284,7 @@ export {
|
|
|
27072
27284
|
formatDate,
|
|
27073
27285
|
formatNumber,
|
|
27074
27286
|
formatPercentage,
|
|
27287
|
+
formatPhone,
|
|
27075
27288
|
getComparisonInterval,
|
|
27076
27289
|
getCountryCode,
|
|
27077
27290
|
getDateInputFormatForLocale,
|