@connectif/ui-components 1.0.9 → 2.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/dist/components/card/EnhancedCardRow.d.ts +1 -0
- package/dist/components/chart/BarChart.d.ts +2 -2
- package/dist/components/chart/CategorizedChartProps.d.ts +2 -1
- package/dist/components/chart/FunnelChart.d.ts +2 -2
- package/dist/components/info/InfoBox.d.ts +1 -0
- package/dist/components/input/TimeField.d.ts +2 -3
- package/dist/components/layout/Grid.d.ts +7 -2
- package/dist/components/layout/SwipeableViews.d.ts +8 -0
- package/dist/components/tooltip/Tooltip.d.ts +45 -1
- package/dist/components/typography/Typography.d.ts +1 -1
- package/dist/index.js +1232 -673
- package/dist/theme/Theme.d.ts +5 -1
- package/dist/theme/Typography.d.ts +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ var require_react_is_development = __commonJS({
|
|
|
54
54
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
55
55
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
56
56
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
57
|
-
function
|
|
57
|
+
function isValidElementType2(type) {
|
|
58
58
|
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
59
59
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
60
60
|
}
|
|
@@ -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 Fragment34 = 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 = Fragment34;
|
|
160
160
|
exports.Lazy = Lazy;
|
|
161
161
|
exports.Memo = Memo2;
|
|
162
162
|
exports.Portal = Portal;
|
|
@@ -176,7 +176,7 @@ var require_react_is_development = __commonJS({
|
|
|
176
176
|
exports.isProfiler = isProfiler;
|
|
177
177
|
exports.isStrictMode = isStrictMode;
|
|
178
178
|
exports.isSuspense = isSuspense;
|
|
179
|
-
exports.isValidElementType =
|
|
179
|
+
exports.isValidElementType = isValidElementType2;
|
|
180
180
|
exports.typeOf = typeOf;
|
|
181
181
|
})();
|
|
182
182
|
}
|
|
@@ -373,7 +373,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
373
373
|
function emptyFunctionThatReturnsNull() {
|
|
374
374
|
return null;
|
|
375
375
|
}
|
|
376
|
-
module.exports = function(
|
|
376
|
+
module.exports = function(isValidElement4, throwOnDirectAccess) {
|
|
377
377
|
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
378
378
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
379
379
|
function getIteratorFn(maybeIterable) {
|
|
@@ -501,7 +501,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
501
501
|
function createElementTypeChecker() {
|
|
502
502
|
function validate(props, propName, componentName, location, propFullName) {
|
|
503
503
|
var propValue = props[propName];
|
|
504
|
-
if (!
|
|
504
|
+
if (!isValidElement4(propValue)) {
|
|
505
505
|
var propType = getPropType(propValue);
|
|
506
506
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
507
507
|
}
|
|
@@ -689,7 +689,7 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
689
689
|
if (Array.isArray(propValue)) {
|
|
690
690
|
return propValue.every(isNode);
|
|
691
691
|
}
|
|
692
|
-
if (propValue === null ||
|
|
692
|
+
if (propValue === null || isValidElement4(propValue)) {
|
|
693
693
|
return true;
|
|
694
694
|
}
|
|
695
695
|
var iteratorFn = getIteratorFn(propValue);
|
|
@@ -5080,29 +5080,301 @@ import {
|
|
|
5080
5080
|
Typography as MuiTypography
|
|
5081
5081
|
} from "@mui/material";
|
|
5082
5082
|
|
|
5083
|
-
// node_modules/@mui/styled-engine/index.js
|
|
5083
|
+
// node_modules/@mui/styled-engine/esm/index.js
|
|
5084
5084
|
import emStyled from "@emotion/styled";
|
|
5085
|
+
|
|
5086
|
+
// node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
5087
|
+
function murmur2(str) {
|
|
5088
|
+
var h = 0;
|
|
5089
|
+
var k, i = 0, len = str.length;
|
|
5090
|
+
for (; len >= 4; ++i, len -= 4) {
|
|
5091
|
+
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
|
|
5092
|
+
k = /* Math.imul(k, m): */
|
|
5093
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
|
|
5094
|
+
k ^= /* k >>> r: */
|
|
5095
|
+
k >>> 24;
|
|
5096
|
+
h = /* Math.imul(k, m): */
|
|
5097
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
5098
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
5099
|
+
}
|
|
5100
|
+
switch (len) {
|
|
5101
|
+
case 3:
|
|
5102
|
+
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
5103
|
+
case 2:
|
|
5104
|
+
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
5105
|
+
case 1:
|
|
5106
|
+
h ^= str.charCodeAt(i) & 255;
|
|
5107
|
+
h = /* Math.imul(h, m): */
|
|
5108
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
5109
|
+
}
|
|
5110
|
+
h ^= h >>> 13;
|
|
5111
|
+
h = /* Math.imul(h, m): */
|
|
5112
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
5113
|
+
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
// node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
5117
|
+
var unitlessKeys = {
|
|
5118
|
+
animationIterationCount: 1,
|
|
5119
|
+
aspectRatio: 1,
|
|
5120
|
+
borderImageOutset: 1,
|
|
5121
|
+
borderImageSlice: 1,
|
|
5122
|
+
borderImageWidth: 1,
|
|
5123
|
+
boxFlex: 1,
|
|
5124
|
+
boxFlexGroup: 1,
|
|
5125
|
+
boxOrdinalGroup: 1,
|
|
5126
|
+
columnCount: 1,
|
|
5127
|
+
columns: 1,
|
|
5128
|
+
flex: 1,
|
|
5129
|
+
flexGrow: 1,
|
|
5130
|
+
flexPositive: 1,
|
|
5131
|
+
flexShrink: 1,
|
|
5132
|
+
flexNegative: 1,
|
|
5133
|
+
flexOrder: 1,
|
|
5134
|
+
gridRow: 1,
|
|
5135
|
+
gridRowEnd: 1,
|
|
5136
|
+
gridRowSpan: 1,
|
|
5137
|
+
gridRowStart: 1,
|
|
5138
|
+
gridColumn: 1,
|
|
5139
|
+
gridColumnEnd: 1,
|
|
5140
|
+
gridColumnSpan: 1,
|
|
5141
|
+
gridColumnStart: 1,
|
|
5142
|
+
msGridRow: 1,
|
|
5143
|
+
msGridRowSpan: 1,
|
|
5144
|
+
msGridColumn: 1,
|
|
5145
|
+
msGridColumnSpan: 1,
|
|
5146
|
+
fontWeight: 1,
|
|
5147
|
+
lineHeight: 1,
|
|
5148
|
+
opacity: 1,
|
|
5149
|
+
order: 1,
|
|
5150
|
+
orphans: 1,
|
|
5151
|
+
scale: 1,
|
|
5152
|
+
tabSize: 1,
|
|
5153
|
+
widows: 1,
|
|
5154
|
+
zIndex: 1,
|
|
5155
|
+
zoom: 1,
|
|
5156
|
+
WebkitLineClamp: 1,
|
|
5157
|
+
// SVG-related properties
|
|
5158
|
+
fillOpacity: 1,
|
|
5159
|
+
floodOpacity: 1,
|
|
5160
|
+
stopOpacity: 1,
|
|
5161
|
+
strokeDasharray: 1,
|
|
5162
|
+
strokeDashoffset: 1,
|
|
5163
|
+
strokeMiterlimit: 1,
|
|
5164
|
+
strokeOpacity: 1,
|
|
5165
|
+
strokeWidth: 1
|
|
5166
|
+
};
|
|
5167
|
+
|
|
5168
|
+
// node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
5169
|
+
function memoize(fn) {
|
|
5170
|
+
var cache = /* @__PURE__ */ Object.create(null);
|
|
5171
|
+
return function(arg) {
|
|
5172
|
+
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
5173
|
+
return cache[arg];
|
|
5174
|
+
};
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
// node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
|
5178
|
+
var isDevelopment = false;
|
|
5179
|
+
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
5180
|
+
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
5181
|
+
var isCustomProperty = function isCustomProperty2(property) {
|
|
5182
|
+
return property.charCodeAt(1) === 45;
|
|
5183
|
+
};
|
|
5184
|
+
var isProcessableValue = function isProcessableValue2(value) {
|
|
5185
|
+
return value != null && typeof value !== "boolean";
|
|
5186
|
+
};
|
|
5187
|
+
var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
|
|
5188
|
+
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
|
5189
|
+
});
|
|
5190
|
+
var processStyleValue = function processStyleValue2(key, value) {
|
|
5191
|
+
switch (key) {
|
|
5192
|
+
case "animation":
|
|
5193
|
+
case "animationName": {
|
|
5194
|
+
if (typeof value === "string") {
|
|
5195
|
+
return value.replace(animationRegex, function(match, p1, p2) {
|
|
5196
|
+
cursor = {
|
|
5197
|
+
name: p1,
|
|
5198
|
+
styles: p2,
|
|
5199
|
+
next: cursor
|
|
5200
|
+
};
|
|
5201
|
+
return p1;
|
|
5202
|
+
});
|
|
5203
|
+
}
|
|
5204
|
+
}
|
|
5205
|
+
}
|
|
5206
|
+
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
|
|
5207
|
+
return value + "px";
|
|
5208
|
+
}
|
|
5209
|
+
return value;
|
|
5210
|
+
};
|
|
5211
|
+
var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
5212
|
+
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
5213
|
+
if (interpolation == null) {
|
|
5214
|
+
return "";
|
|
5215
|
+
}
|
|
5216
|
+
var componentSelector = interpolation;
|
|
5217
|
+
if (componentSelector.__emotion_styles !== void 0) {
|
|
5218
|
+
return componentSelector;
|
|
5219
|
+
}
|
|
5220
|
+
switch (typeof interpolation) {
|
|
5221
|
+
case "boolean": {
|
|
5222
|
+
return "";
|
|
5223
|
+
}
|
|
5224
|
+
case "object": {
|
|
5225
|
+
var keyframes2 = interpolation;
|
|
5226
|
+
if (keyframes2.anim === 1) {
|
|
5227
|
+
cursor = {
|
|
5228
|
+
name: keyframes2.name,
|
|
5229
|
+
styles: keyframes2.styles,
|
|
5230
|
+
next: cursor
|
|
5231
|
+
};
|
|
5232
|
+
return keyframes2.name;
|
|
5233
|
+
}
|
|
5234
|
+
var serializedStyles = interpolation;
|
|
5235
|
+
if (serializedStyles.styles !== void 0) {
|
|
5236
|
+
var next = serializedStyles.next;
|
|
5237
|
+
if (next !== void 0) {
|
|
5238
|
+
while (next !== void 0) {
|
|
5239
|
+
cursor = {
|
|
5240
|
+
name: next.name,
|
|
5241
|
+
styles: next.styles,
|
|
5242
|
+
next: cursor
|
|
5243
|
+
};
|
|
5244
|
+
next = next.next;
|
|
5245
|
+
}
|
|
5246
|
+
}
|
|
5247
|
+
var styles3 = serializedStyles.styles + ";";
|
|
5248
|
+
return styles3;
|
|
5249
|
+
}
|
|
5250
|
+
return createStringFromObject(mergedProps, registered, interpolation);
|
|
5251
|
+
}
|
|
5252
|
+
case "function": {
|
|
5253
|
+
if (mergedProps !== void 0) {
|
|
5254
|
+
var previousCursor = cursor;
|
|
5255
|
+
var result = interpolation(mergedProps);
|
|
5256
|
+
cursor = previousCursor;
|
|
5257
|
+
return handleInterpolation(mergedProps, registered, result);
|
|
5258
|
+
}
|
|
5259
|
+
break;
|
|
5260
|
+
}
|
|
5261
|
+
}
|
|
5262
|
+
var asString = interpolation;
|
|
5263
|
+
if (registered == null) {
|
|
5264
|
+
return asString;
|
|
5265
|
+
}
|
|
5266
|
+
var cached = registered[asString];
|
|
5267
|
+
return cached !== void 0 ? cached : asString;
|
|
5268
|
+
}
|
|
5269
|
+
function createStringFromObject(mergedProps, registered, obj) {
|
|
5270
|
+
var string = "";
|
|
5271
|
+
if (Array.isArray(obj)) {
|
|
5272
|
+
for (var i = 0; i < obj.length; i++) {
|
|
5273
|
+
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
5274
|
+
}
|
|
5275
|
+
} else {
|
|
5276
|
+
for (var key in obj) {
|
|
5277
|
+
var value = obj[key];
|
|
5278
|
+
if (typeof value !== "object") {
|
|
5279
|
+
var asString = value;
|
|
5280
|
+
if (registered != null && registered[asString] !== void 0) {
|
|
5281
|
+
string += key + "{" + registered[asString] + "}";
|
|
5282
|
+
} else if (isProcessableValue(asString)) {
|
|
5283
|
+
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
5284
|
+
}
|
|
5285
|
+
} else {
|
|
5286
|
+
if (key === "NO_COMPONENT_SELECTOR" && isDevelopment) {
|
|
5287
|
+
throw new Error(noComponentSelectorMessage);
|
|
5288
|
+
}
|
|
5289
|
+
if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
|
|
5290
|
+
for (var _i = 0; _i < value.length; _i++) {
|
|
5291
|
+
if (isProcessableValue(value[_i])) {
|
|
5292
|
+
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
5293
|
+
}
|
|
5294
|
+
}
|
|
5295
|
+
} else {
|
|
5296
|
+
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
5297
|
+
switch (key) {
|
|
5298
|
+
case "animation":
|
|
5299
|
+
case "animationName": {
|
|
5300
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
5301
|
+
break;
|
|
5302
|
+
}
|
|
5303
|
+
default: {
|
|
5304
|
+
string += key + "{" + interpolated + "}";
|
|
5305
|
+
}
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
}
|
|
5309
|
+
}
|
|
5310
|
+
}
|
|
5311
|
+
return string;
|
|
5312
|
+
}
|
|
5313
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
|
|
5314
|
+
var cursor;
|
|
5315
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
5316
|
+
if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
|
|
5317
|
+
return args[0];
|
|
5318
|
+
}
|
|
5319
|
+
var stringMode = true;
|
|
5320
|
+
var styles3 = "";
|
|
5321
|
+
cursor = void 0;
|
|
5322
|
+
var strings = args[0];
|
|
5323
|
+
if (strings == null || strings.raw === void 0) {
|
|
5324
|
+
stringMode = false;
|
|
5325
|
+
styles3 += handleInterpolation(mergedProps, registered, strings);
|
|
5326
|
+
} else {
|
|
5327
|
+
var asTemplateStringsArr = strings;
|
|
5328
|
+
styles3 += asTemplateStringsArr[0];
|
|
5329
|
+
}
|
|
5330
|
+
for (var i = 1; i < args.length; i++) {
|
|
5331
|
+
styles3 += handleInterpolation(mergedProps, registered, args[i]);
|
|
5332
|
+
if (stringMode) {
|
|
5333
|
+
var templateStringsArr = strings;
|
|
5334
|
+
styles3 += templateStringsArr[i];
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5337
|
+
labelPattern.lastIndex = 0;
|
|
5338
|
+
var identifierName = "";
|
|
5339
|
+
var match;
|
|
5340
|
+
while ((match = labelPattern.exec(styles3)) !== null) {
|
|
5341
|
+
identifierName += "-" + match[1];
|
|
5342
|
+
}
|
|
5343
|
+
var name = murmur2(styles3) + identifierName;
|
|
5344
|
+
return {
|
|
5345
|
+
name,
|
|
5346
|
+
styles: styles3,
|
|
5347
|
+
next: cursor
|
|
5348
|
+
};
|
|
5349
|
+
}
|
|
5350
|
+
|
|
5351
|
+
// node_modules/@mui/styled-engine/esm/index.js
|
|
5085
5352
|
import { ThemeContext, keyframes, css } from "@emotion/react";
|
|
5086
5353
|
function styled2(tag, options) {
|
|
5087
5354
|
const stylesFactory = emStyled(tag, options);
|
|
5088
5355
|
if (true) {
|
|
5089
|
-
return (...
|
|
5356
|
+
return (...styles3) => {
|
|
5090
5357
|
const component = typeof tag === "string" ? `"${tag}"` : "component";
|
|
5091
|
-
if (
|
|
5358
|
+
if (styles3.length === 0) {
|
|
5092
5359
|
console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
|
|
5093
|
-
} else if (
|
|
5360
|
+
} else if (styles3.some((style3) => style3 === void 0)) {
|
|
5094
5361
|
console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
|
|
5095
5362
|
}
|
|
5096
|
-
return stylesFactory(...
|
|
5363
|
+
return stylesFactory(...styles3);
|
|
5097
5364
|
};
|
|
5098
5365
|
}
|
|
5099
5366
|
return stylesFactory;
|
|
5100
5367
|
}
|
|
5101
|
-
|
|
5368
|
+
function internal_mutateStyles(tag, processor) {
|
|
5102
5369
|
if (Array.isArray(tag.__emotion_styles)) {
|
|
5103
5370
|
tag.__emotion_styles = processor(tag.__emotion_styles);
|
|
5104
5371
|
}
|
|
5105
|
-
}
|
|
5372
|
+
}
|
|
5373
|
+
var wrapper = [];
|
|
5374
|
+
function internal_serializeStyles(styles3) {
|
|
5375
|
+
wrapper[0] = styles3;
|
|
5376
|
+
return serializeStyles(wrapper);
|
|
5377
|
+
}
|
|
5106
5378
|
|
|
5107
5379
|
// src/components/typography/Typography.tsx
|
|
5108
5380
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
@@ -5155,7 +5427,7 @@ var Typography = React4.forwardRef(function Typography2({
|
|
|
5155
5427
|
var Typography_default = Typography;
|
|
5156
5428
|
|
|
5157
5429
|
// src/components/tooltip/Tooltip.tsx
|
|
5158
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
5430
|
+
import { Fragment, jsx as jsx6 } from "react/jsx-runtime";
|
|
5159
5431
|
var getTooltipVariantStyles = (placement) => ({
|
|
5160
5432
|
white: {
|
|
5161
5433
|
tooltip: {
|
|
@@ -5209,7 +5481,7 @@ var getTooltipVariantStyles = (placement) => ({
|
|
|
5209
5481
|
}
|
|
5210
5482
|
}
|
|
5211
5483
|
});
|
|
5212
|
-
var Tooltip = ({
|
|
5484
|
+
var Tooltip = React5.forwardRef(function Tooltip2({
|
|
5213
5485
|
children,
|
|
5214
5486
|
title,
|
|
5215
5487
|
placement = "bottom",
|
|
@@ -5222,7 +5494,7 @@ var Tooltip = ({
|
|
|
5222
5494
|
popperClass,
|
|
5223
5495
|
zIndex,
|
|
5224
5496
|
...rest
|
|
5225
|
-
})
|
|
5497
|
+
}, ref) {
|
|
5226
5498
|
React5.useEffect(() => {
|
|
5227
5499
|
const handleMutations = (mutationsList) => {
|
|
5228
5500
|
for (const mutation of mutationsList) {
|
|
@@ -5259,9 +5531,10 @@ var Tooltip = ({
|
|
|
5259
5531
|
observer.disconnect();
|
|
5260
5532
|
};
|
|
5261
5533
|
}, [placement, variant]);
|
|
5262
|
-
return !title ? children : /* @__PURE__ */ jsx6(
|
|
5534
|
+
return !title ? /* @__PURE__ */ jsx6(Fragment, { children }) : /* @__PURE__ */ jsx6(
|
|
5263
5535
|
MuiTooltip,
|
|
5264
5536
|
{
|
|
5537
|
+
ref,
|
|
5265
5538
|
arrow: enableArrow,
|
|
5266
5539
|
componentsProps: variant !== "default" ? getTooltipVariantStyles(placement)[variant] : void 0,
|
|
5267
5540
|
title: typeof title === "string" ? /* @__PURE__ */ jsx6(Typography_default, { color: "inherit", variant: textVariant, children: title }) : title,
|
|
@@ -5281,10 +5554,10 @@ var Tooltip = ({
|
|
|
5281
5554
|
...popperClass && { className: popperClass }
|
|
5282
5555
|
},
|
|
5283
5556
|
...rest,
|
|
5284
|
-
children: allowDisabled ? /* @__PURE__ */ jsx6("span", { children }) : children
|
|
5557
|
+
children: allowDisabled ? /* @__PURE__ */ jsx6("span", { children: React5.isValidElement(children) ? children : null }) : children
|
|
5285
5558
|
}
|
|
5286
5559
|
);
|
|
5287
|
-
};
|
|
5560
|
+
});
|
|
5288
5561
|
var Tooltip_default = Tooltip;
|
|
5289
5562
|
|
|
5290
5563
|
// src/utils/ResizeObserverUtils.ts
|
|
@@ -5371,7 +5644,7 @@ var ListItemText = ({
|
|
|
5371
5644
|
var ListItemText_default = ListItemText;
|
|
5372
5645
|
|
|
5373
5646
|
// src/components/list/BaseListItem.tsx
|
|
5374
|
-
import { Fragment, jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
5647
|
+
import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
5375
5648
|
var BaseListItem = ({
|
|
5376
5649
|
baseSx,
|
|
5377
5650
|
color: color2 = "default",
|
|
@@ -5430,7 +5703,7 @@ var BaseListItem = ({
|
|
|
5430
5703
|
width: "100%",
|
|
5431
5704
|
overflow: "auto"
|
|
5432
5705
|
},
|
|
5433
|
-
children: children ? children : /* @__PURE__ */ jsxs2(
|
|
5706
|
+
children: children ? children : /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
5434
5707
|
/* @__PURE__ */ jsx9(
|
|
5435
5708
|
ListItemText_default,
|
|
5436
5709
|
{
|
|
@@ -6195,7 +6468,18 @@ import {
|
|
|
6195
6468
|
default as MuiGrid
|
|
6196
6469
|
} from "@mui/material/Grid";
|
|
6197
6470
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
6198
|
-
var Grid = (
|
|
6471
|
+
var Grid = ({ xs, md, lg, xl, ...rest }) => /* @__PURE__ */ jsx24(
|
|
6472
|
+
MuiGrid,
|
|
6473
|
+
{
|
|
6474
|
+
size: {
|
|
6475
|
+
xs,
|
|
6476
|
+
md,
|
|
6477
|
+
lg,
|
|
6478
|
+
xl
|
|
6479
|
+
},
|
|
6480
|
+
...rest
|
|
6481
|
+
}
|
|
6482
|
+
);
|
|
6199
6483
|
var Grid_default = Grid;
|
|
6200
6484
|
|
|
6201
6485
|
// src/components/layout/SidePanel.tsx
|
|
@@ -6291,7 +6575,7 @@ import {
|
|
|
6291
6575
|
} from "@mui/material";
|
|
6292
6576
|
|
|
6293
6577
|
// src/components/typography/TextMarker.tsx
|
|
6294
|
-
import { Fragment as
|
|
6578
|
+
import { Fragment as Fragment3, jsx as jsx28 } from "react/jsx-runtime";
|
|
6295
6579
|
var TextMarker = ({
|
|
6296
6580
|
backgroundColor: backgroundColor2 = primaryOpacity32,
|
|
6297
6581
|
searchText,
|
|
@@ -6301,7 +6585,7 @@ var TextMarker = ({
|
|
|
6301
6585
|
children
|
|
6302
6586
|
}) => {
|
|
6303
6587
|
if (typeof children !== "string" || !searchText || !children) {
|
|
6304
|
-
return /* @__PURE__ */ jsx28(
|
|
6588
|
+
return /* @__PURE__ */ jsx28(Fragment3, { children });
|
|
6305
6589
|
}
|
|
6306
6590
|
let tokens;
|
|
6307
6591
|
if (multiSearchCharSeparator) {
|
|
@@ -6311,7 +6595,7 @@ var TextMarker = ({
|
|
|
6311
6595
|
}
|
|
6312
6596
|
tokens = tokens.map((s) => s.trim()).filter((s) => !!s);
|
|
6313
6597
|
if (tokens.length === 0) {
|
|
6314
|
-
return /* @__PURE__ */ jsx28(
|
|
6598
|
+
return /* @__PURE__ */ jsx28(Fragment3, { children });
|
|
6315
6599
|
}
|
|
6316
6600
|
const getMatches = (token) => Array.from(
|
|
6317
6601
|
children.matchAll(
|
|
@@ -6329,7 +6613,7 @@ var TextMarker = ({
|
|
|
6329
6613
|
tokenIndex++;
|
|
6330
6614
|
}
|
|
6331
6615
|
if (matches.length === 0) {
|
|
6332
|
-
return /* @__PURE__ */ jsx28(
|
|
6616
|
+
return /* @__PURE__ */ jsx28(Fragment3, { children });
|
|
6333
6617
|
}
|
|
6334
6618
|
const result = [children.substring(0, matches[0].index)];
|
|
6335
6619
|
matches.forEach((match, index) => {
|
|
@@ -6350,7 +6634,7 @@ var TextMarker = ({
|
|
|
6350
6634
|
);
|
|
6351
6635
|
}
|
|
6352
6636
|
});
|
|
6353
|
-
return /* @__PURE__ */ jsx28(
|
|
6637
|
+
return /* @__PURE__ */ jsx28(Fragment3, { children: result });
|
|
6354
6638
|
};
|
|
6355
6639
|
function escapeRegExp(source) {
|
|
6356
6640
|
return source.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -6478,7 +6762,9 @@ var Stepper = React13.forwardRef(function Stepper2({ activeStep, orientation = "
|
|
|
6478
6762
|
/* @__PURE__ */ jsx29(
|
|
6479
6763
|
MuiStepLabel,
|
|
6480
6764
|
{
|
|
6481
|
-
|
|
6765
|
+
slots: {
|
|
6766
|
+
stepIcon: CustomStepIcon
|
|
6767
|
+
},
|
|
6482
6768
|
sx: {
|
|
6483
6769
|
padding: "4px 0px"
|
|
6484
6770
|
},
|
|
@@ -6506,29 +6792,8 @@ __export(Animations_exports, {
|
|
|
6506
6792
|
littleBeating: () => littleBeating
|
|
6507
6793
|
});
|
|
6508
6794
|
|
|
6509
|
-
// node_modules/@babel/runtime/helpers/esm/extends.js
|
|
6510
|
-
function _extends() {
|
|
6511
|
-
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
6512
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
6513
|
-
var t = arguments[e];
|
|
6514
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
6515
|
-
}
|
|
6516
|
-
return n;
|
|
6517
|
-
}, _extends.apply(null, arguments);
|
|
6518
|
-
}
|
|
6519
|
-
|
|
6520
|
-
// node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
6521
|
-
function _objectWithoutPropertiesLoose(r2, e) {
|
|
6522
|
-
if (null == r2) return {};
|
|
6523
|
-
var t = {};
|
|
6524
|
-
for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
|
|
6525
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
6526
|
-
t[n] = r2[n];
|
|
6527
|
-
}
|
|
6528
|
-
return t;
|
|
6529
|
-
}
|
|
6530
|
-
|
|
6531
6795
|
// node_modules/@mui/utils/esm/deepmerge/deepmerge.js
|
|
6796
|
+
var import_react_is = __toESM(require_react_is2(), 1);
|
|
6532
6797
|
import * as React14 from "react";
|
|
6533
6798
|
function isPlainObject(item) {
|
|
6534
6799
|
if (typeof item !== "object" || item === null) {
|
|
@@ -6538,7 +6803,7 @@ function isPlainObject(item) {
|
|
|
6538
6803
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
|
|
6539
6804
|
}
|
|
6540
6805
|
function deepClone(source) {
|
|
6541
|
-
if (/* @__PURE__ */ React14.isValidElement(source) || !isPlainObject(source)) {
|
|
6806
|
+
if (/* @__PURE__ */ React14.isValidElement(source) || (0, import_react_is.isValidElementType)(source) || !isPlainObject(source)) {
|
|
6542
6807
|
return source;
|
|
6543
6808
|
}
|
|
6544
6809
|
const output = {};
|
|
@@ -6550,10 +6815,12 @@ function deepClone(source) {
|
|
|
6550
6815
|
function deepmerge(target, source, options = {
|
|
6551
6816
|
clone: true
|
|
6552
6817
|
}) {
|
|
6553
|
-
const output = options.clone ?
|
|
6818
|
+
const output = options.clone ? {
|
|
6819
|
+
...target
|
|
6820
|
+
} : target;
|
|
6554
6821
|
if (isPlainObject(target) && isPlainObject(source)) {
|
|
6555
6822
|
Object.keys(source).forEach((key) => {
|
|
6556
|
-
if (/* @__PURE__ */ React14.isValidElement(source[key])) {
|
|
6823
|
+
if (/* @__PURE__ */ React14.isValidElement(source[key]) || (0, import_react_is.isValidElementType)(source[key])) {
|
|
6557
6824
|
output[key] = source[key];
|
|
6558
6825
|
} else if (isPlainObject(source[key]) && // Avoid prototype pollution
|
|
6559
6826
|
Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
|
|
@@ -6568,8 +6835,7 @@ function deepmerge(target, source, options = {
|
|
|
6568
6835
|
return output;
|
|
6569
6836
|
}
|
|
6570
6837
|
|
|
6571
|
-
// node_modules/@mui/system/esm/
|
|
6572
|
-
var _excluded = ["values", "unit", "step"];
|
|
6838
|
+
// node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js
|
|
6573
6839
|
var sortBreakpointsValues = (values2) => {
|
|
6574
6840
|
const breakpointsAsArray = Object.keys(values2).map((key) => ({
|
|
6575
6841
|
key,
|
|
@@ -6577,9 +6843,10 @@ var sortBreakpointsValues = (values2) => {
|
|
|
6577
6843
|
})) || [];
|
|
6578
6844
|
breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
|
|
6579
6845
|
return breakpointsAsArray.reduce((acc, obj) => {
|
|
6580
|
-
return
|
|
6846
|
+
return {
|
|
6847
|
+
...acc,
|
|
6581
6848
|
[obj.key]: obj.val
|
|
6582
|
-
}
|
|
6849
|
+
};
|
|
6583
6850
|
}, {});
|
|
6584
6851
|
};
|
|
6585
6852
|
function createBreakpoints(breakpoints2) {
|
|
@@ -6599,8 +6866,9 @@ function createBreakpoints(breakpoints2) {
|
|
|
6599
6866
|
// large screen
|
|
6600
6867
|
},
|
|
6601
6868
|
unit = "px",
|
|
6602
|
-
step = 5
|
|
6603
|
-
|
|
6869
|
+
step = 5,
|
|
6870
|
+
...other
|
|
6871
|
+
} = breakpoints2;
|
|
6604
6872
|
const sortedValues = sortBreakpointsValues(values2);
|
|
6605
6873
|
const keys = Object.keys(sortedValues);
|
|
6606
6874
|
function up(key) {
|
|
@@ -6631,7 +6899,7 @@ function createBreakpoints(breakpoints2) {
|
|
|
6631
6899
|
}
|
|
6632
6900
|
return between(key, keys[keys.indexOf(key) + 1]).replace("@media", "@media not all and");
|
|
6633
6901
|
}
|
|
6634
|
-
return
|
|
6902
|
+
return {
|
|
6635
6903
|
keys,
|
|
6636
6904
|
values: sortedValues,
|
|
6637
6905
|
up,
|
|
@@ -6639,8 +6907,73 @@ function createBreakpoints(breakpoints2) {
|
|
|
6639
6907
|
between,
|
|
6640
6908
|
only,
|
|
6641
6909
|
not,
|
|
6642
|
-
unit
|
|
6643
|
-
|
|
6910
|
+
unit,
|
|
6911
|
+
...other
|
|
6912
|
+
};
|
|
6913
|
+
}
|
|
6914
|
+
|
|
6915
|
+
// node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js
|
|
6916
|
+
function sortContainerQueries(theme2, css2) {
|
|
6917
|
+
if (!theme2.containerQueries) {
|
|
6918
|
+
return css2;
|
|
6919
|
+
}
|
|
6920
|
+
const sorted = Object.keys(css2).filter((key) => key.startsWith("@container")).sort((a, b) => {
|
|
6921
|
+
const regex = /min-width:\s*([0-9.]+)/;
|
|
6922
|
+
return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
|
|
6923
|
+
});
|
|
6924
|
+
if (!sorted.length) {
|
|
6925
|
+
return css2;
|
|
6926
|
+
}
|
|
6927
|
+
return sorted.reduce((acc, key) => {
|
|
6928
|
+
const value = css2[key];
|
|
6929
|
+
delete acc[key];
|
|
6930
|
+
acc[key] = value;
|
|
6931
|
+
return acc;
|
|
6932
|
+
}, {
|
|
6933
|
+
...css2
|
|
6934
|
+
});
|
|
6935
|
+
}
|
|
6936
|
+
function isCqShorthand(breakpointKeys, value) {
|
|
6937
|
+
return value === "@" || value.startsWith("@") && (breakpointKeys.some((key) => value.startsWith(`@${key}`)) || !!value.match(/^@\d/));
|
|
6938
|
+
}
|
|
6939
|
+
function getContainerQuery(theme2, shorthand) {
|
|
6940
|
+
const matches = shorthand.match(/^@([^/]+)?\/?(.+)?$/);
|
|
6941
|
+
if (!matches) {
|
|
6942
|
+
if (true) {
|
|
6943
|
+
throw new Error(true ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
6944
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage(18, `(${shorthand})`));
|
|
6945
|
+
}
|
|
6946
|
+
return null;
|
|
6947
|
+
}
|
|
6948
|
+
const [, containerQuery, containerName] = matches;
|
|
6949
|
+
const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;
|
|
6950
|
+
return theme2.containerQueries(containerName).up(value);
|
|
6951
|
+
}
|
|
6952
|
+
function cssContainerQueries(themeInput) {
|
|
6953
|
+
const toContainerQuery = (mediaQuery, name) => mediaQuery.replace("@media", name ? `@container ${name}` : "@container");
|
|
6954
|
+
function attachCq(node2, name) {
|
|
6955
|
+
node2.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);
|
|
6956
|
+
node2.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);
|
|
6957
|
+
node2.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);
|
|
6958
|
+
node2.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);
|
|
6959
|
+
node2.not = (...args) => {
|
|
6960
|
+
const result = toContainerQuery(themeInput.breakpoints.not(...args), name);
|
|
6961
|
+
if (result.includes("not all and")) {
|
|
6962
|
+
return result.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or");
|
|
6963
|
+
}
|
|
6964
|
+
return result;
|
|
6965
|
+
};
|
|
6966
|
+
}
|
|
6967
|
+
const node = {};
|
|
6968
|
+
const containerQueries = (name) => {
|
|
6969
|
+
attachCq(node, name);
|
|
6970
|
+
return node;
|
|
6971
|
+
};
|
|
6972
|
+
attachCq(containerQueries);
|
|
6973
|
+
return {
|
|
6974
|
+
...themeInput,
|
|
6975
|
+
containerQueries
|
|
6976
|
+
};
|
|
6644
6977
|
}
|
|
6645
6978
|
|
|
6646
6979
|
// node_modules/@mui/system/esm/createTheme/shape.js
|
|
@@ -6649,12 +6982,12 @@ var shape = {
|
|
|
6649
6982
|
};
|
|
6650
6983
|
var shape_default = shape;
|
|
6651
6984
|
|
|
6652
|
-
// node_modules/@mui/system/esm/responsivePropType.js
|
|
6653
|
-
var import_prop_types = __toESM(require_prop_types());
|
|
6985
|
+
// node_modules/@mui/system/esm/responsivePropType/responsivePropType.js
|
|
6986
|
+
var import_prop_types = __toESM(require_prop_types(), 1);
|
|
6654
6987
|
var responsivePropType = true ? import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string, import_prop_types.default.object, import_prop_types.default.array]) : {};
|
|
6655
6988
|
var responsivePropType_default = responsivePropType;
|
|
6656
6989
|
|
|
6657
|
-
// node_modules/@mui/system/esm/merge.js
|
|
6990
|
+
// node_modules/@mui/system/esm/merge/merge.js
|
|
6658
6991
|
function merge(acc, item) {
|
|
6659
6992
|
if (!item) {
|
|
6660
6993
|
return acc;
|
|
@@ -6666,7 +6999,7 @@ function merge(acc, item) {
|
|
|
6666
6999
|
}
|
|
6667
7000
|
var merge_default = merge;
|
|
6668
7001
|
|
|
6669
|
-
// node_modules/@mui/system/esm/breakpoints.js
|
|
7002
|
+
// node_modules/@mui/system/esm/breakpoints/breakpoints.js
|
|
6670
7003
|
var values = {
|
|
6671
7004
|
xs: 0,
|
|
6672
7005
|
// phone
|
|
@@ -6685,6 +7018,17 @@ var defaultBreakpoints = {
|
|
|
6685
7018
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
6686
7019
|
up: (key) => `@media (min-width:${values[key]}px)`
|
|
6687
7020
|
};
|
|
7021
|
+
var defaultContainerQueries = {
|
|
7022
|
+
containerQueries: (containerName) => ({
|
|
7023
|
+
up: (key) => {
|
|
7024
|
+
let result = typeof key === "number" ? key : values[key] || key;
|
|
7025
|
+
if (typeof result === "number") {
|
|
7026
|
+
result = `${result}px`;
|
|
7027
|
+
}
|
|
7028
|
+
return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;
|
|
7029
|
+
}
|
|
7030
|
+
})
|
|
7031
|
+
};
|
|
6688
7032
|
function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
6689
7033
|
const theme2 = props.theme || {};
|
|
6690
7034
|
if (Array.isArray(propValue)) {
|
|
@@ -6697,7 +7041,12 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
6697
7041
|
if (typeof propValue === "object") {
|
|
6698
7042
|
const themeBreakpoints = theme2.breakpoints || defaultBreakpoints;
|
|
6699
7043
|
return Object.keys(propValue).reduce((acc, breakpoint) => {
|
|
6700
|
-
if (
|
|
7044
|
+
if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {
|
|
7045
|
+
const containerKey = getContainerQuery(theme2.containerQueries ? theme2 : defaultContainerQueries, breakpoint);
|
|
7046
|
+
if (containerKey) {
|
|
7047
|
+
acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
|
|
7048
|
+
}
|
|
7049
|
+
} else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) {
|
|
6701
7050
|
const mediaKey = themeBreakpoints.up(breakpoint);
|
|
6702
7051
|
acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
|
|
6703
7052
|
} else {
|
|
@@ -6711,8 +7060,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
6711
7060
|
return output;
|
|
6712
7061
|
}
|
|
6713
7062
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
6714
|
-
|
|
6715
|
-
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
|
|
7063
|
+
const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {
|
|
6716
7064
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
6717
7065
|
acc[breakpointStyleKey] = {};
|
|
6718
7066
|
return acc;
|
|
@@ -6733,12 +7081,12 @@ function removeUnusedBreakpoints(breakpointKeys, style3) {
|
|
|
6733
7081
|
// node_modules/@mui/utils/esm/capitalize/capitalize.js
|
|
6734
7082
|
function capitalize(string) {
|
|
6735
7083
|
if (typeof string !== "string") {
|
|
6736
|
-
throw new Error(true ?
|
|
7084
|
+
throw new Error(true ? "MUI: `capitalize(string)` expects a string argument." : formatMuiErrorMessage(7));
|
|
6737
7085
|
}
|
|
6738
7086
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
6739
7087
|
}
|
|
6740
7088
|
|
|
6741
|
-
// node_modules/@mui/system/esm/style.js
|
|
7089
|
+
// node_modules/@mui/system/esm/style/style.js
|
|
6742
7090
|
function getPath(obj, path, checkVars = true) {
|
|
6743
7091
|
if (!path || typeof path !== "string") {
|
|
6744
7092
|
return null;
|
|
@@ -6806,8 +7154,8 @@ function style(options) {
|
|
|
6806
7154
|
}
|
|
6807
7155
|
var style_default = style;
|
|
6808
7156
|
|
|
6809
|
-
// node_modules/@mui/system/esm/memoize.js
|
|
6810
|
-
function
|
|
7157
|
+
// node_modules/@mui/system/esm/memoize/memoize.js
|
|
7158
|
+
function memoize2(fn) {
|
|
6811
7159
|
const cache = {};
|
|
6812
7160
|
return (arg) => {
|
|
6813
7161
|
if (cache[arg] === void 0) {
|
|
@@ -6817,7 +7165,7 @@ function memoize(fn) {
|
|
|
6817
7165
|
};
|
|
6818
7166
|
}
|
|
6819
7167
|
|
|
6820
|
-
// node_modules/@mui/system/esm/spacing.js
|
|
7168
|
+
// node_modules/@mui/system/esm/spacing/spacing.js
|
|
6821
7169
|
var properties = {
|
|
6822
7170
|
m: "margin",
|
|
6823
7171
|
p: "padding"
|
|
@@ -6836,7 +7184,7 @@ var aliases = {
|
|
|
6836
7184
|
paddingX: "px",
|
|
6837
7185
|
paddingY: "py"
|
|
6838
7186
|
};
|
|
6839
|
-
var getCssProperties =
|
|
7187
|
+
var getCssProperties = memoize2((prop) => {
|
|
6840
7188
|
if (prop.length > 2) {
|
|
6841
7189
|
if (aliases[prop]) {
|
|
6842
7190
|
prop = aliases[prop];
|
|
@@ -6853,26 +7201,35 @@ var marginKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop"
|
|
|
6853
7201
|
var paddingKeys = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"];
|
|
6854
7202
|
var spacingKeys = [...marginKeys, ...paddingKeys];
|
|
6855
7203
|
function createUnaryUnit(theme2, themeKey, defaultValue, propName) {
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
return abs;
|
|
7204
|
+
const themeSpacing = getPath(theme2, themeKey, true) ?? defaultValue;
|
|
7205
|
+
if (typeof themeSpacing === "number" || typeof themeSpacing === "string") {
|
|
7206
|
+
return (val) => {
|
|
7207
|
+
if (typeof val === "string") {
|
|
7208
|
+
return val;
|
|
6862
7209
|
}
|
|
6863
7210
|
if (true) {
|
|
6864
|
-
if (typeof
|
|
6865
|
-
console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${
|
|
7211
|
+
if (typeof val !== "number") {
|
|
7212
|
+
console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);
|
|
7213
|
+
}
|
|
7214
|
+
}
|
|
7215
|
+
if (typeof themeSpacing === "string") {
|
|
7216
|
+
if (themeSpacing.startsWith("var(") && val === 0) {
|
|
7217
|
+
return 0;
|
|
7218
|
+
}
|
|
7219
|
+
if (themeSpacing.startsWith("var(") && val === 1) {
|
|
7220
|
+
return themeSpacing;
|
|
6866
7221
|
}
|
|
7222
|
+
return `calc(${val} * ${themeSpacing})`;
|
|
6867
7223
|
}
|
|
6868
|
-
return themeSpacing *
|
|
7224
|
+
return themeSpacing * val;
|
|
6869
7225
|
};
|
|
6870
7226
|
}
|
|
6871
7227
|
if (Array.isArray(themeSpacing)) {
|
|
6872
|
-
return (
|
|
6873
|
-
if (typeof
|
|
6874
|
-
return
|
|
7228
|
+
return (val) => {
|
|
7229
|
+
if (typeof val === "string") {
|
|
7230
|
+
return val;
|
|
6875
7231
|
}
|
|
7232
|
+
const abs = Math.abs(val);
|
|
6876
7233
|
if (true) {
|
|
6877
7234
|
if (!Number.isInteger(abs)) {
|
|
6878
7235
|
console.error([`MUI: The \`theme.${themeKey}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${themeKey}\` as a number.`].join("\n"));
|
|
@@ -6880,7 +7237,17 @@ function createUnaryUnit(theme2, themeKey, defaultValue, propName) {
|
|
|
6880
7237
|
console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join("\n"));
|
|
6881
7238
|
}
|
|
6882
7239
|
}
|
|
6883
|
-
|
|
7240
|
+
const transformed = themeSpacing[abs];
|
|
7241
|
+
if (val >= 0) {
|
|
7242
|
+
return transformed;
|
|
7243
|
+
}
|
|
7244
|
+
if (typeof transformed === "number") {
|
|
7245
|
+
return -transformed;
|
|
7246
|
+
}
|
|
7247
|
+
if (typeof transformed === "string" && transformed.startsWith("var(")) {
|
|
7248
|
+
return `calc(-1 * ${transformed})`;
|
|
7249
|
+
}
|
|
7250
|
+
return `-${transformed}`;
|
|
6884
7251
|
};
|
|
6885
7252
|
}
|
|
6886
7253
|
if (typeof themeSpacing === "function") {
|
|
@@ -6898,15 +7265,7 @@ function getValue(transformer, propValue) {
|
|
|
6898
7265
|
if (typeof propValue === "string" || propValue == null) {
|
|
6899
7266
|
return propValue;
|
|
6900
7267
|
}
|
|
6901
|
-
|
|
6902
|
-
const transformed = transformer(abs);
|
|
6903
|
-
if (propValue >= 0) {
|
|
6904
|
-
return transformed;
|
|
6905
|
-
}
|
|
6906
|
-
if (typeof transformed === "number") {
|
|
6907
|
-
return -transformed;
|
|
6908
|
-
}
|
|
6909
|
-
return `-${transformed}`;
|
|
7268
|
+
return transformer(propValue);
|
|
6910
7269
|
}
|
|
6911
7270
|
function getStyleFromPropValue(cssProperties, transformer) {
|
|
6912
7271
|
return (propValue) => cssProperties.reduce((acc, cssProperty) => {
|
|
@@ -6915,7 +7274,7 @@ function getStyleFromPropValue(cssProperties, transformer) {
|
|
|
6915
7274
|
}, {});
|
|
6916
7275
|
}
|
|
6917
7276
|
function resolveCssProperty(props, keys, prop, transformer) {
|
|
6918
|
-
if (keys.
|
|
7277
|
+
if (!keys.includes(prop)) {
|
|
6919
7278
|
return null;
|
|
6920
7279
|
}
|
|
6921
7280
|
const cssProperties = getCssProperties(prop);
|
|
@@ -6953,13 +7312,12 @@ spacing.propTypes = true ? spacingKeys.reduce((obj, key) => {
|
|
|
6953
7312
|
spacing.filterProps = spacingKeys;
|
|
6954
7313
|
|
|
6955
7314
|
// node_modules/@mui/system/esm/createTheme/createSpacing.js
|
|
6956
|
-
function createSpacing(spacingInput = 8
|
|
7315
|
+
function createSpacing(spacingInput = 8, transform = createUnarySpacing({
|
|
7316
|
+
spacing: spacingInput
|
|
7317
|
+
})) {
|
|
6957
7318
|
if (spacingInput.mui) {
|
|
6958
7319
|
return spacingInput;
|
|
6959
7320
|
}
|
|
6960
|
-
const transform = createUnarySpacing({
|
|
6961
|
-
spacing: spacingInput
|
|
6962
|
-
});
|
|
6963
7321
|
const spacing2 = (...argsInput) => {
|
|
6964
7322
|
if (true) {
|
|
6965
7323
|
if (!(argsInput.length <= 4)) {
|
|
@@ -6976,9 +7334,9 @@ function createSpacing(spacingInput = 8) {
|
|
|
6976
7334
|
return spacing2;
|
|
6977
7335
|
}
|
|
6978
7336
|
|
|
6979
|
-
// node_modules/@mui/system/esm/compose.js
|
|
6980
|
-
function compose(...
|
|
6981
|
-
const handlers =
|
|
7337
|
+
// node_modules/@mui/system/esm/compose/compose.js
|
|
7338
|
+
function compose(...styles3) {
|
|
7339
|
+
const handlers = styles3.reduce((acc, style3) => {
|
|
6982
7340
|
style3.filterProps.forEach((prop) => {
|
|
6983
7341
|
acc[prop] = style3;
|
|
6984
7342
|
});
|
|
@@ -6992,13 +7350,13 @@ function compose(...styles2) {
|
|
|
6992
7350
|
return acc;
|
|
6993
7351
|
}, {});
|
|
6994
7352
|
};
|
|
6995
|
-
fn.propTypes = true ?
|
|
6996
|
-
fn.filterProps =
|
|
7353
|
+
fn.propTypes = true ? styles3.reduce((acc, style3) => Object.assign(acc, style3.propTypes), {}) : {};
|
|
7354
|
+
fn.filterProps = styles3.reduce((acc, style3) => acc.concat(style3.filterProps), []);
|
|
6997
7355
|
return fn;
|
|
6998
7356
|
}
|
|
6999
7357
|
var compose_default = compose;
|
|
7000
7358
|
|
|
7001
|
-
// node_modules/@mui/system/esm/borders.js
|
|
7359
|
+
// node_modules/@mui/system/esm/borders/borders.js
|
|
7002
7360
|
function borderTransform(value) {
|
|
7003
7361
|
if (typeof value !== "number") {
|
|
7004
7362
|
return value;
|
|
@@ -7040,7 +7398,7 @@ borderRadius.propTypes = true ? {
|
|
|
7040
7398
|
borderRadius.filterProps = ["borderRadius"];
|
|
7041
7399
|
var borders = compose_default(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
|
|
7042
7400
|
|
|
7043
|
-
// node_modules/@mui/system/esm/cssGrid.js
|
|
7401
|
+
// node_modules/@mui/system/esm/cssGrid/cssGrid.js
|
|
7044
7402
|
var gap = (props) => {
|
|
7045
7403
|
if (props.gap !== void 0 && props.gap !== null) {
|
|
7046
7404
|
const transformer = createUnaryUnit(props.theme, "spacing", 8, "gap");
|
|
@@ -7112,7 +7470,7 @@ var gridArea = style_default({
|
|
|
7112
7470
|
});
|
|
7113
7471
|
var grid = compose_default(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
|
|
7114
7472
|
|
|
7115
|
-
// node_modules/@mui/system/esm/palette.js
|
|
7473
|
+
// node_modules/@mui/system/esm/palette/palette.js
|
|
7116
7474
|
function paletteTransform(value, userValue) {
|
|
7117
7475
|
if (userValue === "grey") {
|
|
7118
7476
|
return userValue;
|
|
@@ -7137,7 +7495,7 @@ var backgroundColor = style_default({
|
|
|
7137
7495
|
});
|
|
7138
7496
|
var palette = compose_default(color, bgcolor, backgroundColor);
|
|
7139
7497
|
|
|
7140
|
-
// node_modules/@mui/system/esm/sizing.js
|
|
7498
|
+
// node_modules/@mui/system/esm/sizing/sizing.js
|
|
7141
7499
|
function sizingTransform(value) {
|
|
7142
7500
|
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
7143
7501
|
}
|
|
@@ -7148,14 +7506,13 @@ var width = style_default({
|
|
|
7148
7506
|
var maxWidth = (props) => {
|
|
7149
7507
|
if (props.maxWidth !== void 0 && props.maxWidth !== null) {
|
|
7150
7508
|
const styleFromPropValue = (propValue) => {
|
|
7151
|
-
|
|
7152
|
-
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
|
|
7509
|
+
const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values[propValue];
|
|
7153
7510
|
if (!breakpoint) {
|
|
7154
7511
|
return {
|
|
7155
7512
|
maxWidth: sizingTransform(propValue)
|
|
7156
7513
|
};
|
|
7157
7514
|
}
|
|
7158
|
-
if (
|
|
7515
|
+
if (props.theme?.breakpoints?.unit !== "px") {
|
|
7159
7516
|
return {
|
|
7160
7517
|
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
7161
7518
|
};
|
|
@@ -7465,6 +7822,9 @@ var defaultSxConfig = {
|
|
|
7465
7822
|
},
|
|
7466
7823
|
boxSizing: {},
|
|
7467
7824
|
// typography
|
|
7825
|
+
font: {
|
|
7826
|
+
themeKey: "font"
|
|
7827
|
+
},
|
|
7468
7828
|
fontFamily: {
|
|
7469
7829
|
themeKey: "typography"
|
|
7470
7830
|
},
|
|
@@ -7542,15 +7902,15 @@ function unstable_createStyleFunctionSx() {
|
|
|
7542
7902
|
return handleBreakpoints(props, val, styleFromPropValue);
|
|
7543
7903
|
}
|
|
7544
7904
|
function styleFunctionSx2(props) {
|
|
7545
|
-
var _theme$unstable_sxCon;
|
|
7546
7905
|
const {
|
|
7547
7906
|
sx,
|
|
7548
|
-
theme: theme2 = {}
|
|
7907
|
+
theme: theme2 = {},
|
|
7908
|
+
nested
|
|
7549
7909
|
} = props || {};
|
|
7550
7910
|
if (!sx) {
|
|
7551
7911
|
return null;
|
|
7552
7912
|
}
|
|
7553
|
-
const config =
|
|
7913
|
+
const config = theme2.unstable_sxConfig ?? defaultSxConfig_default;
|
|
7554
7914
|
function traverse(sxInput) {
|
|
7555
7915
|
let sxObject = sxInput;
|
|
7556
7916
|
if (typeof sxInput === "function") {
|
|
@@ -7579,7 +7939,8 @@ function unstable_createStyleFunctionSx() {
|
|
|
7579
7939
|
if (objectsHaveSameKeys(breakpointsValues, value)) {
|
|
7580
7940
|
css2[styleKey] = styleFunctionSx2({
|
|
7581
7941
|
sx: value,
|
|
7582
|
-
theme: theme2
|
|
7942
|
+
theme: theme2,
|
|
7943
|
+
nested: true
|
|
7583
7944
|
});
|
|
7584
7945
|
} else {
|
|
7585
7946
|
css2 = merge_default(css2, breakpointsValues);
|
|
@@ -7590,7 +7951,12 @@ function unstable_createStyleFunctionSx() {
|
|
|
7590
7951
|
}
|
|
7591
7952
|
}
|
|
7592
7953
|
});
|
|
7593
|
-
|
|
7954
|
+
if (!nested && theme2.modularCssLayers) {
|
|
7955
|
+
return {
|
|
7956
|
+
"@layer sx": sortContainerQueries(theme2, removeUnusedBreakpoints(breakpointsKeys, css2))
|
|
7957
|
+
};
|
|
7958
|
+
}
|
|
7959
|
+
return sortContainerQueries(theme2, removeUnusedBreakpoints(breakpointsKeys, css2));
|
|
7594
7960
|
}
|
|
7595
7961
|
return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
|
|
7596
7962
|
}
|
|
@@ -7601,29 +7967,38 @@ styleFunctionSx.filterProps = ["sx"];
|
|
|
7601
7967
|
var styleFunctionSx_default = styleFunctionSx;
|
|
7602
7968
|
|
|
7603
7969
|
// node_modules/@mui/system/esm/createTheme/applyStyles.js
|
|
7604
|
-
function applyStyles(key,
|
|
7970
|
+
function applyStyles(key, styles3) {
|
|
7605
7971
|
const theme2 = this;
|
|
7606
|
-
if (theme2.vars
|
|
7607
|
-
|
|
7972
|
+
if (theme2.vars) {
|
|
7973
|
+
if (!theme2.colorSchemes?.[key] || typeof theme2.getColorSchemeSelector !== "function") {
|
|
7974
|
+
return {};
|
|
7975
|
+
}
|
|
7976
|
+
let selector = theme2.getColorSchemeSelector(key);
|
|
7977
|
+
if (selector === "&") {
|
|
7978
|
+
return styles3;
|
|
7979
|
+
}
|
|
7980
|
+
if (selector.includes("data-") || selector.includes(".")) {
|
|
7981
|
+
selector = `*:where(${selector.replace(/\s*&$/, "")}) &`;
|
|
7982
|
+
}
|
|
7608
7983
|
return {
|
|
7609
|
-
[selector]:
|
|
7984
|
+
[selector]: styles3
|
|
7610
7985
|
};
|
|
7611
7986
|
}
|
|
7612
7987
|
if (theme2.palette.mode === key) {
|
|
7613
|
-
return
|
|
7988
|
+
return styles3;
|
|
7614
7989
|
}
|
|
7615
7990
|
return {};
|
|
7616
7991
|
}
|
|
7617
7992
|
|
|
7618
7993
|
// node_modules/@mui/system/esm/createTheme/createTheme.js
|
|
7619
|
-
var _excluded2 = ["breakpoints", "palette", "spacing", "shape"];
|
|
7620
7994
|
function createTheme(options = {}, ...args) {
|
|
7621
7995
|
const {
|
|
7622
7996
|
breakpoints: breakpointsInput = {},
|
|
7623
7997
|
palette: paletteInput = {},
|
|
7624
7998
|
spacing: spacingInput,
|
|
7625
|
-
shape: shapeInput = {}
|
|
7626
|
-
|
|
7999
|
+
shape: shapeInput = {},
|
|
8000
|
+
...other
|
|
8001
|
+
} = options;
|
|
7627
8002
|
const breakpoints2 = createBreakpoints(breakpointsInput);
|
|
7628
8003
|
const spacing2 = createSpacing(spacingInput);
|
|
7629
8004
|
let muiTheme = deepmerge({
|
|
@@ -7631,15 +8006,23 @@ function createTheme(options = {}, ...args) {
|
|
|
7631
8006
|
direction: "ltr",
|
|
7632
8007
|
components: {},
|
|
7633
8008
|
// Inject component definitions.
|
|
7634
|
-
palette:
|
|
7635
|
-
mode: "light"
|
|
7636
|
-
|
|
8009
|
+
palette: {
|
|
8010
|
+
mode: "light",
|
|
8011
|
+
...paletteInput
|
|
8012
|
+
},
|
|
7637
8013
|
spacing: spacing2,
|
|
7638
|
-
shape:
|
|
8014
|
+
shape: {
|
|
8015
|
+
...shape_default,
|
|
8016
|
+
...shapeInput
|
|
8017
|
+
}
|
|
7639
8018
|
}, other);
|
|
8019
|
+
muiTheme = cssContainerQueries(muiTheme);
|
|
7640
8020
|
muiTheme.applyStyles = applyStyles;
|
|
7641
8021
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
7642
|
-
muiTheme.unstable_sxConfig =
|
|
8022
|
+
muiTheme.unstable_sxConfig = {
|
|
8023
|
+
...defaultSxConfig_default,
|
|
8024
|
+
...other?.unstable_sxConfig
|
|
8025
|
+
};
|
|
7643
8026
|
muiTheme.unstable_sx = function sx(props) {
|
|
7644
8027
|
return styleFunctionSx_default({
|
|
7645
8028
|
sx: props,
|
|
@@ -7650,7 +8033,7 @@ function createTheme(options = {}, ...args) {
|
|
|
7650
8033
|
}
|
|
7651
8034
|
var createTheme_default = createTheme;
|
|
7652
8035
|
|
|
7653
|
-
// node_modules/@mui/system/esm/useThemeWithoutDefault.js
|
|
8036
|
+
// node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js
|
|
7654
8037
|
import * as React15 from "react";
|
|
7655
8038
|
function isObjectEmpty(obj) {
|
|
7656
8039
|
return Object.keys(obj).length === 0;
|
|
@@ -7661,7 +8044,7 @@ function useTheme(defaultTheme = null) {
|
|
|
7661
8044
|
}
|
|
7662
8045
|
var useThemeWithoutDefault_default = useTheme;
|
|
7663
8046
|
|
|
7664
|
-
// node_modules/@mui/system/esm/useTheme.js
|
|
8047
|
+
// node_modules/@mui/system/esm/useTheme/useTheme.js
|
|
7665
8048
|
var systemDefaultTheme = createTheme_default();
|
|
7666
8049
|
function useTheme2(defaultTheme = systemDefaultTheme) {
|
|
7667
8050
|
return useThemeWithoutDefault_default(defaultTheme);
|
|
@@ -7669,14 +8052,12 @@ function useTheme2(defaultTheme = systemDefaultTheme) {
|
|
|
7669
8052
|
var useTheme_default = useTheme2;
|
|
7670
8053
|
|
|
7671
8054
|
// node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js
|
|
7672
|
-
var _excluded3 = ["sx"];
|
|
7673
8055
|
var splitProps = (props) => {
|
|
7674
|
-
var _props$theme$unstable, _props$theme;
|
|
7675
8056
|
const result = {
|
|
7676
8057
|
systemProps: {},
|
|
7677
8058
|
otherProps: {}
|
|
7678
8059
|
};
|
|
7679
|
-
const config =
|
|
8060
|
+
const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig_default;
|
|
7680
8061
|
Object.keys(props).forEach((prop) => {
|
|
7681
8062
|
if (config[prop]) {
|
|
7682
8063
|
result.systemProps[prop] = props[prop];
|
|
@@ -7688,8 +8069,9 @@ var splitProps = (props) => {
|
|
|
7688
8069
|
};
|
|
7689
8070
|
function extendSxProp(props) {
|
|
7690
8071
|
const {
|
|
7691
|
-
sx: inSx
|
|
7692
|
-
|
|
8072
|
+
sx: inSx,
|
|
8073
|
+
...other
|
|
8074
|
+
} = props;
|
|
7693
8075
|
const {
|
|
7694
8076
|
systemProps,
|
|
7695
8077
|
otherProps
|
|
@@ -7703,18 +8085,25 @@ function extendSxProp(props) {
|
|
|
7703
8085
|
if (!isPlainObject(result)) {
|
|
7704
8086
|
return systemProps;
|
|
7705
8087
|
}
|
|
7706
|
-
return
|
|
8088
|
+
return {
|
|
8089
|
+
...systemProps,
|
|
8090
|
+
...result
|
|
8091
|
+
};
|
|
7707
8092
|
};
|
|
7708
8093
|
} else {
|
|
7709
|
-
finalSx =
|
|
8094
|
+
finalSx = {
|
|
8095
|
+
...systemProps,
|
|
8096
|
+
...inSx
|
|
8097
|
+
};
|
|
7710
8098
|
}
|
|
7711
|
-
return
|
|
8099
|
+
return {
|
|
8100
|
+
...otherProps,
|
|
7712
8101
|
sx: finalSx
|
|
7713
|
-
}
|
|
8102
|
+
};
|
|
7714
8103
|
}
|
|
7715
8104
|
|
|
7716
8105
|
// node_modules/@mui/system/esm/Box/Box.js
|
|
7717
|
-
var import_prop_types2 = __toESM(require_prop_types());
|
|
8106
|
+
var import_prop_types2 = __toESM(require_prop_types(), 1);
|
|
7718
8107
|
|
|
7719
8108
|
// node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js
|
|
7720
8109
|
var defaultGenerator = (componentName) => componentName;
|
|
@@ -7735,10 +8124,10 @@ var createClassNameGenerator = () => {
|
|
|
7735
8124
|
var ClassNameGenerator = createClassNameGenerator();
|
|
7736
8125
|
var ClassNameGenerator_default = ClassNameGenerator;
|
|
7737
8126
|
|
|
7738
|
-
// node_modules/@mui/system/esm/createBox.js
|
|
8127
|
+
// node_modules/@mui/system/esm/createBox/createBox.js
|
|
7739
8128
|
import * as React16 from "react";
|
|
7740
8129
|
|
|
7741
|
-
// node_modules
|
|
8130
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
7742
8131
|
function r(e) {
|
|
7743
8132
|
var t, f, n = "";
|
|
7744
8133
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -7754,9 +8143,8 @@ function clsx() {
|
|
|
7754
8143
|
}
|
|
7755
8144
|
var clsx_default = clsx;
|
|
7756
8145
|
|
|
7757
|
-
// node_modules/@mui/system/esm/createBox.js
|
|
8146
|
+
// node_modules/@mui/system/esm/createBox/createBox.js
|
|
7758
8147
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7759
|
-
var _excluded4 = ["className", "component"];
|
|
7760
8148
|
function createBox(options = {}) {
|
|
7761
8149
|
const {
|
|
7762
8150
|
themeId,
|
|
@@ -7769,16 +8157,18 @@ function createBox(options = {}) {
|
|
|
7769
8157
|
})(styleFunctionSx_default);
|
|
7770
8158
|
const Box7 = /* @__PURE__ */ React16.forwardRef(function Box8(inProps, ref) {
|
|
7771
8159
|
const theme2 = useTheme_default(defaultTheme);
|
|
7772
|
-
const
|
|
8160
|
+
const {
|
|
7773
8161
|
className,
|
|
7774
|
-
component = "div"
|
|
7775
|
-
|
|
7776
|
-
|
|
8162
|
+
component = "div",
|
|
8163
|
+
...other
|
|
8164
|
+
} = extendSxProp(inProps);
|
|
8165
|
+
return /* @__PURE__ */ _jsx(BoxRoot, {
|
|
7777
8166
|
as: component,
|
|
7778
8167
|
ref,
|
|
7779
8168
|
className: clsx_default(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
|
7780
|
-
theme: themeId ? theme2[themeId] || theme2 : theme2
|
|
7781
|
-
|
|
8169
|
+
theme: themeId ? theme2[themeId] || theme2 : theme2,
|
|
8170
|
+
...other
|
|
8171
|
+
});
|
|
7782
8172
|
});
|
|
7783
8173
|
return Box7;
|
|
7784
8174
|
}
|
|
@@ -7843,15 +8233,9 @@ true ? Box2.propTypes = {
|
|
|
7843
8233
|
var Box_default2 = Box2;
|
|
7844
8234
|
|
|
7845
8235
|
// node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js
|
|
7846
|
-
var
|
|
7847
|
-
var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
7848
|
-
function getFunctionName(fn) {
|
|
7849
|
-
const match = `${fn}`.match(fnNameMatchRegex);
|
|
7850
|
-
const name = match && match[1];
|
|
7851
|
-
return name || "";
|
|
7852
|
-
}
|
|
8236
|
+
var import_react_is2 = __toESM(require_react_is2(), 1);
|
|
7853
8237
|
function getFunctionComponentName(Component, fallback = "") {
|
|
7854
|
-
return Component.displayName || Component.name ||
|
|
8238
|
+
return Component.displayName || Component.name || fallback;
|
|
7855
8239
|
}
|
|
7856
8240
|
function getWrappedName(outerType, innerType, wrapperName) {
|
|
7857
8241
|
const functionName = getFunctionComponentName(innerType);
|
|
@@ -7869,9 +8253,9 @@ function getDisplayName(Component) {
|
|
|
7869
8253
|
}
|
|
7870
8254
|
if (typeof Component === "object") {
|
|
7871
8255
|
switch (Component.$$typeof) {
|
|
7872
|
-
case
|
|
8256
|
+
case import_react_is2.ForwardRef:
|
|
7873
8257
|
return getWrappedName(Component, Component.render, "ForwardRef");
|
|
7874
|
-
case
|
|
8258
|
+
case import_react_is2.Memo:
|
|
7875
8259
|
return getWrappedName(Component, Component.type, "memo");
|
|
7876
8260
|
default:
|
|
7877
8261
|
return void 0;
|
|
@@ -7880,84 +8264,105 @@ function getDisplayName(Component) {
|
|
|
7880
8264
|
return void 0;
|
|
7881
8265
|
}
|
|
7882
8266
|
|
|
7883
|
-
// node_modules/@mui/system/esm/
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
8267
|
+
// node_modules/@mui/system/esm/preprocessStyles.js
|
|
8268
|
+
function preprocessStyles(input) {
|
|
8269
|
+
const {
|
|
8270
|
+
variants: variants3,
|
|
8271
|
+
...style3
|
|
8272
|
+
} = input;
|
|
8273
|
+
const result = {
|
|
8274
|
+
variants: variants3,
|
|
8275
|
+
style: internal_serializeStyles(style3),
|
|
8276
|
+
isProcessed: true
|
|
8277
|
+
};
|
|
8278
|
+
if (result.style === style3) {
|
|
8279
|
+
return result;
|
|
8280
|
+
}
|
|
8281
|
+
if (variants3) {
|
|
8282
|
+
variants3.forEach((variant) => {
|
|
8283
|
+
if (typeof variant.style !== "function") {
|
|
8284
|
+
variant.style = internal_serializeStyles(variant.style);
|
|
8285
|
+
}
|
|
8286
|
+
});
|
|
8287
|
+
}
|
|
8288
|
+
return result;
|
|
7895
8289
|
}
|
|
8290
|
+
|
|
8291
|
+
// node_modules/@mui/system/esm/createStyled/createStyled.js
|
|
8292
|
+
var systemDefaultTheme2 = createTheme_default();
|
|
7896
8293
|
function shouldForwardProp(prop) {
|
|
7897
8294
|
return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
|
|
7898
8295
|
}
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
return string;
|
|
8296
|
+
function shallowLayer(serialized, layerName) {
|
|
8297
|
+
if (layerName && serialized && typeof serialized === "object" && serialized.styles && !serialized.styles.startsWith("@layer")) {
|
|
8298
|
+
serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;
|
|
7903
8299
|
}
|
|
7904
|
-
return
|
|
7905
|
-
};
|
|
7906
|
-
function resolveTheme({
|
|
7907
|
-
defaultTheme,
|
|
7908
|
-
theme: theme2,
|
|
7909
|
-
themeId
|
|
7910
|
-
}) {
|
|
7911
|
-
return isEmpty(theme2) ? defaultTheme : theme2[themeId] || theme2;
|
|
8300
|
+
return serialized;
|
|
7912
8301
|
}
|
|
7913
8302
|
function defaultOverridesResolver(slot) {
|
|
7914
8303
|
if (!slot) {
|
|
7915
8304
|
return null;
|
|
7916
8305
|
}
|
|
7917
|
-
return (
|
|
8306
|
+
return (_props, styles3) => styles3[slot];
|
|
7918
8307
|
}
|
|
7919
|
-
function
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
const
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
if (Array.isArray(resolvedStylesArg)) {
|
|
7927
|
-
return resolvedStylesArg.flatMap((resolvedStyle) => processStyleArg(resolvedStyle, _extends({
|
|
7928
|
-
ownerState
|
|
7929
|
-
}, props)));
|
|
8308
|
+
function attachTheme(props, themeId, defaultTheme) {
|
|
8309
|
+
props.theme = isObjectEmpty2(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;
|
|
8310
|
+
}
|
|
8311
|
+
function processStyle(props, style3, layerName) {
|
|
8312
|
+
const resolvedStyle = typeof style3 === "function" ? style3(props) : style3;
|
|
8313
|
+
if (Array.isArray(resolvedStyle)) {
|
|
8314
|
+
return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle, layerName));
|
|
7930
8315
|
}
|
|
7931
|
-
if (
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
8316
|
+
if (Array.isArray(resolvedStyle?.variants)) {
|
|
8317
|
+
let rootStyle;
|
|
8318
|
+
if (resolvedStyle.isProcessed) {
|
|
8319
|
+
rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;
|
|
8320
|
+
} else {
|
|
8321
|
+
const {
|
|
8322
|
+
variants: variants3,
|
|
8323
|
+
...otherStyles
|
|
8324
|
+
} = resolvedStyle;
|
|
8325
|
+
rootStyle = layerName ? shallowLayer(internal_serializeStyles(otherStyles), layerName) : otherStyles;
|
|
8326
|
+
}
|
|
8327
|
+
return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);
|
|
8328
|
+
}
|
|
8329
|
+
if (resolvedStyle?.isProcessed) {
|
|
8330
|
+
return layerName ? shallowLayer(internal_serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;
|
|
8331
|
+
}
|
|
8332
|
+
return layerName ? shallowLayer(internal_serializeStyles(resolvedStyle), layerName) : resolvedStyle;
|
|
8333
|
+
}
|
|
8334
|
+
function processStyleVariants(props, variants3, results = [], layerName = void 0) {
|
|
8335
|
+
let mergedState;
|
|
8336
|
+
variantLoop: for (let i = 0; i < variants3.length; i += 1) {
|
|
8337
|
+
const variant = variants3[i];
|
|
8338
|
+
if (typeof variant.props === "function") {
|
|
8339
|
+
mergedState ??= {
|
|
8340
|
+
...props,
|
|
8341
|
+
...props.ownerState,
|
|
8342
|
+
ownerState: props.ownerState
|
|
8343
|
+
};
|
|
8344
|
+
if (!variant.props(mergedState)) {
|
|
8345
|
+
continue;
|
|
7948
8346
|
}
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
8347
|
+
} else {
|
|
8348
|
+
for (const key in variant.props) {
|
|
8349
|
+
if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
|
|
8350
|
+
continue variantLoop;
|
|
7952
8351
|
}
|
|
7953
|
-
result.push(typeof variant.style === "function" ? variant.style(_extends({
|
|
7954
|
-
ownerState
|
|
7955
|
-
}, props, ownerState)) : variant.style);
|
|
7956
8352
|
}
|
|
7957
|
-
}
|
|
7958
|
-
|
|
8353
|
+
}
|
|
8354
|
+
if (typeof variant.style === "function") {
|
|
8355
|
+
mergedState ??= {
|
|
8356
|
+
...props,
|
|
8357
|
+
...props.ownerState,
|
|
8358
|
+
ownerState: props.ownerState
|
|
8359
|
+
};
|
|
8360
|
+
results.push(layerName ? shallowLayer(internal_serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));
|
|
8361
|
+
} else {
|
|
8362
|
+
results.push(layerName ? shallowLayer(internal_serializeStyles(variant.style), layerName) : variant.style);
|
|
8363
|
+
}
|
|
7959
8364
|
}
|
|
7960
|
-
return
|
|
8365
|
+
return results;
|
|
7961
8366
|
}
|
|
7962
8367
|
function createStyled(input = {}) {
|
|
7963
8368
|
const {
|
|
@@ -7966,17 +8371,11 @@ function createStyled(input = {}) {
|
|
|
7966
8371
|
rootShouldForwardProp = shouldForwardProp,
|
|
7967
8372
|
slotShouldForwardProp = shouldForwardProp
|
|
7968
8373
|
} = input;
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
}))
|
|
7975
|
-
}));
|
|
7976
|
-
};
|
|
7977
|
-
systemSx.__mui_systemSx = true;
|
|
7978
|
-
return (tag, inputOptions = {}) => {
|
|
7979
|
-
internal_processStyles(tag, (styles2) => styles2.filter((style3) => !(style3 != null && style3.__mui_systemSx)));
|
|
8374
|
+
function styleAttachTheme(props) {
|
|
8375
|
+
attachTheme(props, themeId, defaultTheme);
|
|
8376
|
+
}
|
|
8377
|
+
const styled9 = (tag, inputOptions = {}) => {
|
|
8378
|
+
internal_mutateStyles(tag, (styles3) => styles3.filter((style3) => style3 !== styleFunctionSx_default));
|
|
7980
8379
|
const {
|
|
7981
8380
|
name: componentName,
|
|
7982
8381
|
slot: componentSlot,
|
|
@@ -7984,20 +8383,16 @@ function createStyled(input = {}) {
|
|
|
7984
8383
|
skipSx: inputSkipSx,
|
|
7985
8384
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
7986
8385
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
7987
|
-
overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
|
|
7988
|
-
|
|
8386
|
+
overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),
|
|
8387
|
+
...options
|
|
8388
|
+
} = inputOptions;
|
|
8389
|
+
const layerName = componentName && componentName.startsWith("Mui") || !!componentSlot ? "components" : "custom";
|
|
7989
8390
|
const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : (
|
|
7990
8391
|
// TODO v6: remove `Root` in the next major release
|
|
7991
8392
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
7992
8393
|
componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false
|
|
7993
8394
|
);
|
|
7994
8395
|
const skipSx = inputSkipSx || false;
|
|
7995
|
-
let label;
|
|
7996
|
-
if (true) {
|
|
7997
|
-
if (componentName) {
|
|
7998
|
-
label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
|
|
7999
|
-
}
|
|
8000
|
-
}
|
|
8001
8396
|
let shouldForwardPropOption = shouldForwardProp;
|
|
8002
8397
|
if (componentSlot === "Root" || componentSlot === "root") {
|
|
8003
8398
|
shouldForwardPropOption = rootShouldForwardProp;
|
|
@@ -8006,82 +8401,82 @@ function createStyled(input = {}) {
|
|
|
8006
8401
|
} else if (isStringTag(tag)) {
|
|
8007
8402
|
shouldForwardPropOption = void 0;
|
|
8008
8403
|
}
|
|
8009
|
-
const defaultStyledResolver = styled2(tag,
|
|
8404
|
+
const defaultStyledResolver = styled2(tag, {
|
|
8010
8405
|
shouldForwardProp: shouldForwardPropOption,
|
|
8011
|
-
label
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
theme: props.theme,
|
|
8018
|
-
defaultTheme,
|
|
8019
|
-
themeId
|
|
8020
|
-
})
|
|
8021
|
-
}));
|
|
8406
|
+
label: generateStyledLabel(componentName, componentSlot),
|
|
8407
|
+
...options
|
|
8408
|
+
});
|
|
8409
|
+
const transformStyle = (style3) => {
|
|
8410
|
+
if (style3.__emotion_real === style3) {
|
|
8411
|
+
return style3;
|
|
8022
8412
|
}
|
|
8023
|
-
|
|
8413
|
+
if (typeof style3 === "function") {
|
|
8414
|
+
return function styleFunctionProcessor(props) {
|
|
8415
|
+
return processStyle(props, style3, props.theme.modularCssLayers ? layerName : void 0);
|
|
8416
|
+
};
|
|
8417
|
+
}
|
|
8418
|
+
if (isPlainObject(style3)) {
|
|
8419
|
+
const serialized = preprocessStyles(style3);
|
|
8420
|
+
return function styleObjectProcessor(props) {
|
|
8421
|
+
if (!serialized.variants) {
|
|
8422
|
+
return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;
|
|
8423
|
+
}
|
|
8424
|
+
return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : void 0);
|
|
8425
|
+
};
|
|
8426
|
+
}
|
|
8427
|
+
return style3;
|
|
8024
8428
|
};
|
|
8025
|
-
const muiStyledResolver = (
|
|
8026
|
-
|
|
8027
|
-
const
|
|
8429
|
+
const muiStyledResolver = (...expressionsInput) => {
|
|
8430
|
+
const expressionsHead = [];
|
|
8431
|
+
const expressionsBody = expressionsInput.map(transformStyle);
|
|
8432
|
+
const expressionsTail = [];
|
|
8433
|
+
expressionsHead.push(styleAttachTheme);
|
|
8028
8434
|
if (componentName && overridesResolver) {
|
|
8029
|
-
|
|
8030
|
-
const theme2 =
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
}));
|
|
8034
|
-
if (!theme2.components || !theme2.components[componentName] || !theme2.components[componentName].styleOverrides) {
|
|
8435
|
+
expressionsTail.push(function styleThemeOverrides(props) {
|
|
8436
|
+
const theme2 = props.theme;
|
|
8437
|
+
const styleOverrides = theme2.components?.[componentName]?.styleOverrides;
|
|
8438
|
+
if (!styleOverrides) {
|
|
8035
8439
|
return null;
|
|
8036
8440
|
}
|
|
8037
|
-
const styleOverrides = theme2.components[componentName].styleOverrides;
|
|
8038
8441
|
const resolvedStyleOverrides = {};
|
|
8039
|
-
|
|
8040
|
-
resolvedStyleOverrides[slotKey] =
|
|
8041
|
-
|
|
8042
|
-
}));
|
|
8043
|
-
});
|
|
8442
|
+
for (const slotKey in styleOverrides) {
|
|
8443
|
+
resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? "theme" : void 0);
|
|
8444
|
+
}
|
|
8044
8445
|
return overridesResolver(props, resolvedStyleOverrides);
|
|
8045
8446
|
});
|
|
8046
8447
|
}
|
|
8047
8448
|
if (componentName && !skipVariantsResolver) {
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
const
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
}
|
|
8054
|
-
|
|
8055
|
-
return processStyleArg({
|
|
8056
|
-
variants: themeVariants
|
|
8057
|
-
}, _extends({}, props, {
|
|
8058
|
-
theme: theme2
|
|
8059
|
-
}));
|
|
8449
|
+
expressionsTail.push(function styleThemeVariants(props) {
|
|
8450
|
+
const theme2 = props.theme;
|
|
8451
|
+
const themeVariants = theme2?.components?.[componentName]?.variants;
|
|
8452
|
+
if (!themeVariants) {
|
|
8453
|
+
return null;
|
|
8454
|
+
}
|
|
8455
|
+
return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? "theme" : void 0);
|
|
8060
8456
|
});
|
|
8061
8457
|
}
|
|
8062
8458
|
if (!skipSx) {
|
|
8063
|
-
|
|
8064
|
-
}
|
|
8065
|
-
const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;
|
|
8066
|
-
if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {
|
|
8067
|
-
const placeholders = new Array(numOfCustomFnsApplied).fill("");
|
|
8068
|
-
transformedStyleArg = [...styleArg, ...placeholders];
|
|
8069
|
-
transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
|
|
8459
|
+
expressionsTail.push(styleFunctionSx_default);
|
|
8070
8460
|
}
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8461
|
+
if (Array.isArray(expressionsBody[0])) {
|
|
8462
|
+
const inputStrings = expressionsBody.shift();
|
|
8463
|
+
const placeholdersHead = new Array(expressionsHead.length).fill("");
|
|
8464
|
+
const placeholdersTail = new Array(expressionsTail.length).fill("");
|
|
8465
|
+
let outputStrings;
|
|
8466
|
+
{
|
|
8467
|
+
outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];
|
|
8468
|
+
outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];
|
|
8079
8469
|
}
|
|
8080
|
-
|
|
8470
|
+
expressionsHead.unshift(outputStrings);
|
|
8081
8471
|
}
|
|
8472
|
+
const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];
|
|
8473
|
+
const Component = defaultStyledResolver(...expressions);
|
|
8082
8474
|
if (tag.muiName) {
|
|
8083
8475
|
Component.muiName = tag.muiName;
|
|
8084
8476
|
}
|
|
8477
|
+
if (true) {
|
|
8478
|
+
Component.displayName = generateDisplayName(componentName, componentSlot, tag);
|
|
8479
|
+
}
|
|
8085
8480
|
return Component;
|
|
8086
8481
|
};
|
|
8087
8482
|
if (defaultStyledResolver.withConfig) {
|
|
@@ -8089,9 +8484,43 @@ function createStyled(input = {}) {
|
|
|
8089
8484
|
}
|
|
8090
8485
|
return muiStyledResolver;
|
|
8091
8486
|
};
|
|
8487
|
+
return styled9;
|
|
8488
|
+
}
|
|
8489
|
+
function generateDisplayName(componentName, componentSlot, tag) {
|
|
8490
|
+
if (componentName) {
|
|
8491
|
+
return `${componentName}${capitalize(componentSlot || "")}`;
|
|
8492
|
+
}
|
|
8493
|
+
return `Styled(${getDisplayName(tag)})`;
|
|
8494
|
+
}
|
|
8495
|
+
function generateStyledLabel(componentName, componentSlot) {
|
|
8496
|
+
let label;
|
|
8497
|
+
if (true) {
|
|
8498
|
+
if (componentName) {
|
|
8499
|
+
label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8502
|
+
return label;
|
|
8503
|
+
}
|
|
8504
|
+
function isObjectEmpty2(object) {
|
|
8505
|
+
for (const _ in object) {
|
|
8506
|
+
return false;
|
|
8507
|
+
}
|
|
8508
|
+
return true;
|
|
8509
|
+
}
|
|
8510
|
+
function isStringTag(tag) {
|
|
8511
|
+
return typeof tag === "string" && // 96 is one less than the char code
|
|
8512
|
+
// for "a" so this is checking that
|
|
8513
|
+
// it's a lowercase character
|
|
8514
|
+
tag.charCodeAt(0) > 96;
|
|
8515
|
+
}
|
|
8516
|
+
function lowercaseFirstLetter(string) {
|
|
8517
|
+
if (!string) {
|
|
8518
|
+
return string;
|
|
8519
|
+
}
|
|
8520
|
+
return string.charAt(0).toLowerCase() + string.slice(1);
|
|
8092
8521
|
}
|
|
8093
8522
|
|
|
8094
|
-
// node_modules/@mui/system/esm/styled.js
|
|
8523
|
+
// node_modules/@mui/system/esm/styled/styled.js
|
|
8095
8524
|
var styled3 = createStyled();
|
|
8096
8525
|
var styled_default = styled3;
|
|
8097
8526
|
|
|
@@ -8492,6 +8921,7 @@ var typography = {
|
|
|
8492
8921
|
fontSize: 16,
|
|
8493
8922
|
allVariants: {
|
|
8494
8923
|
color: gunMetal,
|
|
8924
|
+
cursor: "inherit",
|
|
8495
8925
|
fontFamily: families.primary,
|
|
8496
8926
|
fontSize: sizes3.md
|
|
8497
8927
|
},
|
|
@@ -8926,17 +9356,8 @@ var theme = createTheme2({
|
|
|
8926
9356
|
});
|
|
8927
9357
|
|
|
8928
9358
|
// src/components/tooltip/TooltipMenu.tsx
|
|
8929
|
-
import { Tooltip as
|
|
8930
|
-
import { styled as styled4 } from "@mui/material/styles";
|
|
9359
|
+
import { Tooltip as Tooltip3, tooltipClasses } from "@mui/material";
|
|
8931
9360
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
8932
|
-
var UnstyledTooltip = styled4(({ className, ...props }) => /* @__PURE__ */ jsx30(Tooltip2, { ...props, classes: { popper: className } }))(() => ({
|
|
8933
|
-
[`& .${tooltipClasses.tooltip}`]: {
|
|
8934
|
-
margin: "0 !important",
|
|
8935
|
-
padding: 0,
|
|
8936
|
-
border: "none",
|
|
8937
|
-
background: "transparent"
|
|
8938
|
-
}
|
|
8939
|
-
}));
|
|
8940
9361
|
var TooltipMenu = ({
|
|
8941
9362
|
children,
|
|
8942
9363
|
placement = "top-start",
|
|
@@ -8945,15 +9366,22 @@ var TooltipMenu = ({
|
|
|
8945
9366
|
offsetTop = 0,
|
|
8946
9367
|
offsetLeft = 0
|
|
8947
9368
|
}) => /* @__PURE__ */ jsx30(
|
|
8948
|
-
|
|
9369
|
+
Tooltip3,
|
|
8949
9370
|
{
|
|
8950
|
-
|
|
9371
|
+
slotProps: {
|
|
8951
9372
|
popper: {
|
|
8952
9373
|
sx: {
|
|
8953
|
-
zIndex: 1200
|
|
9374
|
+
zIndex: 1200,
|
|
8954
9375
|
// Make lower z-index of Popper component of this
|
|
8955
9376
|
// tooltip so it is shown under any inner Menu-like component (like a MenuIconButton
|
|
8956
9377
|
// or a MenuButton) which usually have z-index 1300
|
|
9378
|
+
pointerEvents: "auto",
|
|
9379
|
+
[`& .${tooltipClasses.tooltip}`]: {
|
|
9380
|
+
margin: "0 !important",
|
|
9381
|
+
padding: 0,
|
|
9382
|
+
border: "none",
|
|
9383
|
+
background: "transparent"
|
|
9384
|
+
}
|
|
8957
9385
|
},
|
|
8958
9386
|
modifiers: [
|
|
8959
9387
|
{
|
|
@@ -9094,7 +9522,7 @@ var AvatarCard_default = AvatarCard;
|
|
|
9094
9522
|
// src/components/button/MenuIconButton.tsx
|
|
9095
9523
|
import * as React19 from "react";
|
|
9096
9524
|
import MuiMenu from "@mui/material/Menu";
|
|
9097
|
-
import { Fragment as
|
|
9525
|
+
import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9098
9526
|
var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
9099
9527
|
children,
|
|
9100
9528
|
isOpen: managedIsOpen,
|
|
@@ -9139,7 +9567,7 @@ var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
|
9139
9567
|
setAnchorEl(element);
|
|
9140
9568
|
};
|
|
9141
9569
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
9142
|
-
return /* @__PURE__ */ jsxs13(
|
|
9570
|
+
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
9143
9571
|
/* @__PURE__ */ jsx33(
|
|
9144
9572
|
IconButton_default,
|
|
9145
9573
|
{
|
|
@@ -9870,7 +10298,7 @@ var ButtonWithActions_default = ButtonWithActions;
|
|
|
9870
10298
|
// src/components/button/MenuButton.tsx
|
|
9871
10299
|
import * as React24 from "react";
|
|
9872
10300
|
import MuiMenu3 from "@mui/material/Menu";
|
|
9873
|
-
import { Fragment as
|
|
10301
|
+
import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
9874
10302
|
var MenuButton = React24.forwardRef(function MenuButton2({
|
|
9875
10303
|
children,
|
|
9876
10304
|
isOpen: managedIsOpen,
|
|
@@ -9915,7 +10343,7 @@ var MenuButton = React24.forwardRef(function MenuButton2({
|
|
|
9915
10343
|
setAnchorEl(element);
|
|
9916
10344
|
};
|
|
9917
10345
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
9918
|
-
return /* @__PURE__ */ jsxs18(
|
|
10346
|
+
return /* @__PURE__ */ jsxs18(Fragment5, { children: [
|
|
9919
10347
|
/* @__PURE__ */ jsx42(
|
|
9920
10348
|
Button_default,
|
|
9921
10349
|
{
|
|
@@ -10257,7 +10685,7 @@ var EnhancedCardTitle = ({
|
|
|
10257
10685
|
text,
|
|
10258
10686
|
justify = "center",
|
|
10259
10687
|
forceHeight = false,
|
|
10260
|
-
cursor = "default",
|
|
10688
|
+
cursor: cursor2 = "default",
|
|
10261
10689
|
variant = "body2",
|
|
10262
10690
|
size = "M",
|
|
10263
10691
|
dataTest
|
|
@@ -10281,7 +10709,7 @@ var EnhancedCardTitle = ({
|
|
|
10281
10709
|
sx: {
|
|
10282
10710
|
textAlign: justify,
|
|
10283
10711
|
userSelect: "none",
|
|
10284
|
-
cursor
|
|
10712
|
+
cursor: cursor2
|
|
10285
10713
|
},
|
|
10286
10714
|
text,
|
|
10287
10715
|
color: grey900,
|
|
@@ -10301,7 +10729,7 @@ import { jsx as jsx50 } from "react/jsx-runtime";
|
|
|
10301
10729
|
var EnhancedCardSubtitle = ({
|
|
10302
10730
|
text,
|
|
10303
10731
|
justify = "center",
|
|
10304
|
-
cursor = "default",
|
|
10732
|
+
cursor: cursor2 = "default",
|
|
10305
10733
|
variant = "body2",
|
|
10306
10734
|
dataTest
|
|
10307
10735
|
}) => /* @__PURE__ */ jsx50(
|
|
@@ -10320,7 +10748,7 @@ var EnhancedCardSubtitle = ({
|
|
|
10320
10748
|
sx: {
|
|
10321
10749
|
textAlign: justify,
|
|
10322
10750
|
userSelect: "none",
|
|
10323
|
-
cursor
|
|
10751
|
+
cursor: cursor2
|
|
10324
10752
|
},
|
|
10325
10753
|
text,
|
|
10326
10754
|
color: grey600,
|
|
@@ -10814,7 +11242,7 @@ import * as React30 from "react";
|
|
|
10814
11242
|
// src/components/chip/MenuChip.tsx
|
|
10815
11243
|
import * as React29 from "react";
|
|
10816
11244
|
import MuiMenu4 from "@mui/material/Menu";
|
|
10817
|
-
import { Fragment as
|
|
11245
|
+
import { Fragment as Fragment6, jsx as jsx60, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
10818
11246
|
var MenuChip = React29.forwardRef(function MenuChip2({
|
|
10819
11247
|
children,
|
|
10820
11248
|
isOpen: managedIsOpen,
|
|
@@ -10856,7 +11284,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
|
|
|
10856
11284
|
setAnchorEl(element);
|
|
10857
11285
|
};
|
|
10858
11286
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
10859
|
-
return /* @__PURE__ */ jsxs23(
|
|
11287
|
+
return /* @__PURE__ */ jsxs23(Fragment6, { children: [
|
|
10860
11288
|
/* @__PURE__ */ jsx60(
|
|
10861
11289
|
Chip_default,
|
|
10862
11290
|
{
|
|
@@ -10902,7 +11330,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
|
|
|
10902
11330
|
var MenuChip_default = MenuChip;
|
|
10903
11331
|
|
|
10904
11332
|
// src/components/card/EnhancedCard.tsx
|
|
10905
|
-
import { Fragment as
|
|
11333
|
+
import { Fragment as Fragment7, jsx as jsx61, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
10906
11334
|
var cardWidthBySize = {
|
|
10907
11335
|
S: 110,
|
|
10908
11336
|
M: 110,
|
|
@@ -10985,7 +11413,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
10985
11413
|
rightIconId,
|
|
10986
11414
|
dataTest,
|
|
10987
11415
|
disableHover = false,
|
|
10988
|
-
cursor,
|
|
11416
|
+
cursor: cursor2,
|
|
10989
11417
|
actionProps,
|
|
10990
11418
|
showActionOnHover = false,
|
|
10991
11419
|
badgeProps,
|
|
@@ -11012,7 +11440,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11012
11440
|
const cardStyle = {
|
|
11013
11441
|
...getCardStyles(size),
|
|
11014
11442
|
...disableHover ? {} : hoverCardStyle,
|
|
11015
|
-
cursor,
|
|
11443
|
+
cursor: cursor2,
|
|
11016
11444
|
...selected && {
|
|
11017
11445
|
boxShadow: "0 0 0 3px",
|
|
11018
11446
|
color: primary600
|
|
@@ -11036,7 +11464,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11036
11464
|
{
|
|
11037
11465
|
size,
|
|
11038
11466
|
dataTest,
|
|
11039
|
-
cursor,
|
|
11467
|
+
cursor: cursor2,
|
|
11040
11468
|
...getChildProps()
|
|
11041
11469
|
}
|
|
11042
11470
|
);
|
|
@@ -11057,12 +11485,12 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11057
11485
|
titleProps: {
|
|
11058
11486
|
size,
|
|
11059
11487
|
dataTest,
|
|
11060
|
-
cursor
|
|
11488
|
+
cursor: cursor2
|
|
11061
11489
|
},
|
|
11062
11490
|
subtitleProps: {
|
|
11063
11491
|
size,
|
|
11064
11492
|
dataTest,
|
|
11065
|
-
cursor
|
|
11493
|
+
cursor: cursor2
|
|
11066
11494
|
},
|
|
11067
11495
|
...getChildProps()
|
|
11068
11496
|
}
|
|
@@ -11233,7 +11661,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11233
11661
|
backgroundColor: primary200
|
|
11234
11662
|
}
|
|
11235
11663
|
} : {
|
|
11236
|
-
cursor
|
|
11664
|
+
cursor: cursor2
|
|
11237
11665
|
}
|
|
11238
11666
|
},
|
|
11239
11667
|
size: "S",
|
|
@@ -11247,7 +11675,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11247
11675
|
)
|
|
11248
11676
|
}
|
|
11249
11677
|
),
|
|
11250
|
-
isHovered && hoverComponent && /* @__PURE__ */ jsxs24(
|
|
11678
|
+
isHovered && hoverComponent && /* @__PURE__ */ jsxs24(Fragment7, { children: [
|
|
11251
11679
|
/* @__PURE__ */ jsx61(
|
|
11252
11680
|
Box_default,
|
|
11253
11681
|
{
|
|
@@ -11566,7 +11994,7 @@ var BarChart2 = ({
|
|
|
11566
11994
|
}),
|
|
11567
11995
|
onClick
|
|
11568
11996
|
}) => {
|
|
11569
|
-
const
|
|
11997
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
11570
11998
|
const silent = onClick ? false : true;
|
|
11571
11999
|
const isComparison = series.some(
|
|
11572
12000
|
(s) => s.data.some((d) => d.comparisonValue !== void 0)
|
|
@@ -11733,7 +12161,7 @@ var BarChart2 = ({
|
|
|
11733
12161
|
...isComparison ? [
|
|
11734
12162
|
{
|
|
11735
12163
|
...defaultBarSeriesOptions,
|
|
11736
|
-
cursor,
|
|
12164
|
+
cursor: cursor2,
|
|
11737
12165
|
silent,
|
|
11738
12166
|
showBackground: showBackgroundColorBar ?? false,
|
|
11739
12167
|
stack: `${serieIndex}`,
|
|
@@ -11765,7 +12193,7 @@ var BarChart2 = ({
|
|
|
11765
12193
|
] : [],
|
|
11766
12194
|
{
|
|
11767
12195
|
...defaultBarSeriesOptions,
|
|
11768
|
-
cursor,
|
|
12196
|
+
cursor: cursor2,
|
|
11769
12197
|
silent,
|
|
11770
12198
|
showBackground: showBackgroundColorBar ?? true,
|
|
11771
12199
|
stack: `${serieIndex}`,
|
|
@@ -11823,9 +12251,9 @@ var BarChart_default = BarChart2;
|
|
|
11823
12251
|
|
|
11824
12252
|
// src/components/chart/LineChart.tsx
|
|
11825
12253
|
import * as React31 from "react";
|
|
12254
|
+
import { createRoot } from "react-dom/client";
|
|
11826
12255
|
import ReactEChartsCore2 from "echarts-for-react/lib/core";
|
|
11827
12256
|
import * as echarts3 from "echarts/core";
|
|
11828
|
-
import { renderToString as renderToString3 } from "react-dom/server";
|
|
11829
12257
|
import { ThemeProvider, useTheme as useTheme3 } from "@mui/material/styles";
|
|
11830
12258
|
import { jsx as jsx67, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11831
12259
|
var LineChart2 = ({
|
|
@@ -11845,7 +12273,7 @@ var LineChart2 = ({
|
|
|
11845
12273
|
yAxisPosition = "right"
|
|
11846
12274
|
}) => {
|
|
11847
12275
|
const theme2 = useTheme3();
|
|
11848
|
-
const
|
|
12276
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
11849
12277
|
const silent = onClick ? false : true;
|
|
11850
12278
|
const isComparing = series.some(
|
|
11851
12279
|
(s) => s.data.some((d) => "comparisonValue" in d)
|
|
@@ -11934,6 +12362,10 @@ var LineChart2 = ({
|
|
|
11934
12362
|
) : /* @__PURE__ */ jsx67("span", {})
|
|
11935
12363
|
] }, serie.name);
|
|
11936
12364
|
};
|
|
12365
|
+
const tooltipReact = React31.useMemo(() => {
|
|
12366
|
+
const domElement = document.createElement("div");
|
|
12367
|
+
return { root: createRoot(domElement), domElement };
|
|
12368
|
+
}, []);
|
|
11937
12369
|
const tooltipFormatter = (datas) => {
|
|
11938
12370
|
const { axisValueLabel, dataIndex } = datas[0];
|
|
11939
12371
|
const { tooltipCategoryLabel, value } = series[0].data[dataIndex];
|
|
@@ -11942,58 +12374,58 @@ var LineChart2 = ({
|
|
|
11942
12374
|
}
|
|
11943
12375
|
const categoryLabel = tooltipCategoryLabel ?? axisValueLabel;
|
|
11944
12376
|
const hasGroup = groups.some((group) => group !== "");
|
|
11945
|
-
|
|
11946
|
-
|
|
11947
|
-
|
|
11948
|
-
{
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
{
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
marginBottom: "8px"
|
|
11963
|
-
}
|
|
11964
|
-
}
|
|
11965
|
-
),
|
|
11966
|
-
group !== "" && /* @__PURE__ */ jsx67(
|
|
11967
|
-
Typography_default,
|
|
11968
|
-
{
|
|
11969
|
-
variant: "body2-semibold",
|
|
11970
|
-
color: grey800,
|
|
11971
|
-
sx: { marginBottom: "8px" },
|
|
11972
|
-
children: group
|
|
11973
|
-
}
|
|
11974
|
-
),
|
|
11975
|
-
/* @__PURE__ */ jsx67(
|
|
11976
|
-
Typography_default,
|
|
11977
|
-
{
|
|
11978
|
-
variant: "caption",
|
|
11979
|
-
color: grey600,
|
|
11980
|
-
sx: {
|
|
11981
|
-
marginBottom: "8px"
|
|
11982
|
-
},
|
|
11983
|
-
children: categoryLabel
|
|
12377
|
+
const tooltip = /* @__PURE__ */ jsx67(ThemeProvider, { theme: theme2, children: /* @__PURE__ */ jsx67(
|
|
12378
|
+
Box_default,
|
|
12379
|
+
{
|
|
12380
|
+
sx: {
|
|
12381
|
+
display: "grid",
|
|
12382
|
+
gridTemplateColumns: hasGroup ? "auto auto" : "auto",
|
|
12383
|
+
alignItems: "center",
|
|
12384
|
+
gap: "0 16px"
|
|
12385
|
+
},
|
|
12386
|
+
children: groups.map((group, index) => /* @__PURE__ */ jsxs26(React31.Fragment, { children: [
|
|
12387
|
+
index > 0 && /* @__PURE__ */ jsx67(
|
|
12388
|
+
Divider_default,
|
|
12389
|
+
{
|
|
12390
|
+
sx: {
|
|
12391
|
+
gridColumn: "1 / span 2",
|
|
12392
|
+
marginTop: "8px",
|
|
12393
|
+
marginBottom: "8px"
|
|
11984
12394
|
}
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
12395
|
+
}
|
|
12396
|
+
),
|
|
12397
|
+
group !== "" && /* @__PURE__ */ jsx67(
|
|
12398
|
+
Typography_default,
|
|
12399
|
+
{
|
|
12400
|
+
variant: "body2-semibold",
|
|
12401
|
+
color: grey800,
|
|
12402
|
+
sx: { marginBottom: "8px" },
|
|
12403
|
+
children: group
|
|
12404
|
+
}
|
|
12405
|
+
),
|
|
12406
|
+
/* @__PURE__ */ jsx67(
|
|
12407
|
+
Typography_default,
|
|
12408
|
+
{
|
|
12409
|
+
variant: "caption",
|
|
12410
|
+
color: grey600,
|
|
12411
|
+
sx: {
|
|
12412
|
+
marginBottom: "8px"
|
|
12413
|
+
},
|
|
12414
|
+
children: categoryLabel
|
|
12415
|
+
}
|
|
12416
|
+
),
|
|
12417
|
+
datas.filter(
|
|
12418
|
+
(d) => isComparing && d.seriesIndex % 2 !== 0 ? false : (series[d.seriesIndex / (isComparing ? 2 : 1)].tooltipGroupTitle ?? "") === group
|
|
12419
|
+
).map((d) => {
|
|
12420
|
+
const serie = series[d.seriesIndex / (isComparing ? 2 : 1)];
|
|
12421
|
+
const data = serie.data[d.dataIndex];
|
|
12422
|
+
return tooltipEntryFormatter(serie, data);
|
|
12423
|
+
})
|
|
12424
|
+
] }, index))
|
|
12425
|
+
}
|
|
12426
|
+
) });
|
|
12427
|
+
tooltipReact.root.render(tooltip);
|
|
12428
|
+
return tooltipReact.domElement;
|
|
11997
12429
|
};
|
|
11998
12430
|
const options = {
|
|
11999
12431
|
tooltip: {
|
|
@@ -12071,7 +12503,7 @@ var LineChart2 = ({
|
|
|
12071
12503
|
type: "line",
|
|
12072
12504
|
name,
|
|
12073
12505
|
yAxisIndex,
|
|
12074
|
-
cursor,
|
|
12506
|
+
cursor: cursor2,
|
|
12075
12507
|
silent,
|
|
12076
12508
|
data: data.map((data2) => data2.value),
|
|
12077
12509
|
color: color2,
|
|
@@ -12124,7 +12556,7 @@ var LineChart2 = ({
|
|
|
12124
12556
|
type: "line",
|
|
12125
12557
|
name,
|
|
12126
12558
|
yAxisIndex,
|
|
12127
|
-
cursor,
|
|
12559
|
+
cursor: cursor2,
|
|
12128
12560
|
silent,
|
|
12129
12561
|
data: data.map(
|
|
12130
12562
|
(data2) => data2.comparisonValue
|
|
@@ -12490,7 +12922,7 @@ var DonutChartLegendItem_default = DonutChartLegendItem;
|
|
|
12490
12922
|
|
|
12491
12923
|
// src/components/chart/DonutChart.tsx
|
|
12492
12924
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
12493
|
-
import { Fragment as
|
|
12925
|
+
import { Fragment as Fragment10, jsx as jsx73, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
12494
12926
|
var DonutChart = ({
|
|
12495
12927
|
style: style3,
|
|
12496
12928
|
isLoading,
|
|
@@ -12503,7 +12935,7 @@ var DonutChart = ({
|
|
|
12503
12935
|
const mainMetricMargin = 10;
|
|
12504
12936
|
const comparisonMetricMargin = 0;
|
|
12505
12937
|
let currentRadius = 100;
|
|
12506
|
-
const
|
|
12938
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
12507
12939
|
const isComparison = (series[0]?.data ?? []).some(
|
|
12508
12940
|
(d) => d.comparisonLabel || d.comparisonValue
|
|
12509
12941
|
);
|
|
@@ -12533,7 +12965,7 @@ var DonutChart = ({
|
|
|
12533
12965
|
);
|
|
12534
12966
|
previous.push({
|
|
12535
12967
|
type: "pie",
|
|
12536
|
-
cursor,
|
|
12968
|
+
cursor: cursor2,
|
|
12537
12969
|
emptyCircleStyle: {
|
|
12538
12970
|
color: alpha4(grey200, 0.5)
|
|
12539
12971
|
},
|
|
@@ -12564,7 +12996,7 @@ var DonutChart = ({
|
|
|
12564
12996
|
currentRadius -= comparisonMetricMargin;
|
|
12565
12997
|
previous.push({
|
|
12566
12998
|
type: "pie",
|
|
12567
|
-
cursor,
|
|
12999
|
+
cursor: cursor2,
|
|
12568
13000
|
emptyCircleStyle: {
|
|
12569
13001
|
color: alpha4(grey200, 0.5)
|
|
12570
13002
|
},
|
|
@@ -12650,7 +13082,7 @@ var DonutChart = ({
|
|
|
12650
13082
|
flexDirection: "column",
|
|
12651
13083
|
...style3
|
|
12652
13084
|
},
|
|
12653
|
-
children: isLoading ? /* @__PURE__ */ jsx73(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs30(
|
|
13085
|
+
children: isLoading ? /* @__PURE__ */ jsx73(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs30(Fragment10, { children: [
|
|
12654
13086
|
/* @__PURE__ */ jsxs30(Box_default, { sx: { flexGrow: 1, position: "relative" }, children: [
|
|
12655
13087
|
title,
|
|
12656
13088
|
/* @__PURE__ */ jsx73(
|
|
@@ -12730,7 +13162,7 @@ var FunnelChart = ({
|
|
|
12730
13162
|
}),
|
|
12731
13163
|
onClick
|
|
12732
13164
|
}) => {
|
|
12733
|
-
const
|
|
13165
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
12734
13166
|
const silent = onClick ? false : true;
|
|
12735
13167
|
const isComparison = series.some(
|
|
12736
13168
|
(s) => s.data.some((d) => d.comparisonValue !== void 0)
|
|
@@ -12767,7 +13199,7 @@ var FunnelChart = ({
|
|
|
12767
13199
|
};
|
|
12768
13200
|
const defaultBarSeriesOptions = {
|
|
12769
13201
|
type: "bar",
|
|
12770
|
-
cursor,
|
|
13202
|
+
cursor: cursor2,
|
|
12771
13203
|
silent,
|
|
12772
13204
|
barGap: 0,
|
|
12773
13205
|
backgroundStyle: {
|
|
@@ -15034,7 +15466,7 @@ var useTranslation = () => {
|
|
|
15034
15466
|
import {
|
|
15035
15467
|
Dialog as MuiDialog
|
|
15036
15468
|
} from "@mui/material";
|
|
15037
|
-
import { Fragment as
|
|
15469
|
+
import { Fragment as Fragment12, jsx as jsx81, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
15038
15470
|
var sizes5 = {
|
|
15039
15471
|
S: "480px",
|
|
15040
15472
|
M: "640px",
|
|
@@ -15056,7 +15488,7 @@ var Dialog = ({
|
|
|
15056
15488
|
onClose,
|
|
15057
15489
|
...rest
|
|
15058
15490
|
}) => {
|
|
15059
|
-
const getDialogContent = () => /* @__PURE__ */ jsxs36(
|
|
15491
|
+
const getDialogContent = () => /* @__PURE__ */ jsxs36(Fragment12, { children: [
|
|
15060
15492
|
/* @__PURE__ */ jsxs36(
|
|
15061
15493
|
Stack_default,
|
|
15062
15494
|
{
|
|
@@ -17029,23 +17461,23 @@ function isValidPhoneNumber(phone) {
|
|
|
17029
17461
|
}
|
|
17030
17462
|
|
|
17031
17463
|
// src/components/formatter/CompactNumberFormatter.tsx
|
|
17032
|
-
import { Fragment as
|
|
17464
|
+
import { Fragment as Fragment13, jsx as jsx85 } from "react/jsx-runtime";
|
|
17033
17465
|
var CompactNumberFormatter = ({ value }) => {
|
|
17034
17466
|
const { locale } = React37.useContext(IntlContext);
|
|
17035
|
-
return /* @__PURE__ */ jsx85(
|
|
17467
|
+
return /* @__PURE__ */ jsx85(Fragment13, { children: formatCompactNumber(value, locale) });
|
|
17036
17468
|
};
|
|
17037
17469
|
var CompactNumberFormatter_default = CompactNumberFormatter;
|
|
17038
17470
|
|
|
17039
17471
|
// src/components/formatter/CurrencyFormatter.tsx
|
|
17040
17472
|
import * as React38 from "react";
|
|
17041
|
-
import { Fragment as
|
|
17473
|
+
import { Fragment as Fragment14, jsx as jsx86 } from "react/jsx-runtime";
|
|
17042
17474
|
var CurrencyFormatter = ({
|
|
17043
17475
|
value,
|
|
17044
17476
|
notation,
|
|
17045
17477
|
currency
|
|
17046
17478
|
}) => {
|
|
17047
17479
|
const { locale, currency: contextCurrency } = React38.useContext(IntlContext);
|
|
17048
|
-
return /* @__PURE__ */ jsx86(
|
|
17480
|
+
return /* @__PURE__ */ jsx86(Fragment14, { children: formatCurrency(
|
|
17049
17481
|
value,
|
|
17050
17482
|
locale,
|
|
17051
17483
|
currency ?? contextCurrency,
|
|
@@ -17056,31 +17488,31 @@ var CurrencyFormatter_default = CurrencyFormatter;
|
|
|
17056
17488
|
|
|
17057
17489
|
// src/components/formatter/NumberFormatter.tsx
|
|
17058
17490
|
import * as React39 from "react";
|
|
17059
|
-
import { Fragment as
|
|
17491
|
+
import { Fragment as Fragment15, jsx as jsx87 } from "react/jsx-runtime";
|
|
17060
17492
|
var NumberFormatter = ({ value, fractionSize }) => {
|
|
17061
17493
|
const { locale } = React39.useContext(IntlContext);
|
|
17062
|
-
return /* @__PURE__ */ jsx87(
|
|
17494
|
+
return /* @__PURE__ */ jsx87(Fragment15, { children: formatNumber(value, locale, fractionSize) });
|
|
17063
17495
|
};
|
|
17064
17496
|
var NumberFormatter_default = NumberFormatter;
|
|
17065
17497
|
|
|
17066
17498
|
// src/components/formatter/PercentageFormatter.tsx
|
|
17067
17499
|
import * as React40 from "react";
|
|
17068
|
-
import { Fragment as
|
|
17500
|
+
import { Fragment as Fragment16, jsx as jsx88 } from "react/jsx-runtime";
|
|
17069
17501
|
var PercentageFormatter = ({
|
|
17070
17502
|
value,
|
|
17071
17503
|
fractionSize
|
|
17072
17504
|
}) => {
|
|
17073
17505
|
const { locale } = React40.useContext(IntlContext);
|
|
17074
|
-
return /* @__PURE__ */ jsx88(
|
|
17506
|
+
return /* @__PURE__ */ jsx88(Fragment16, { children: formatPercentage(value, locale, fractionSize) });
|
|
17075
17507
|
};
|
|
17076
17508
|
var PercentageFormatter_default = PercentageFormatter;
|
|
17077
17509
|
|
|
17078
17510
|
// src/components/formatter/DateFormatter.tsx
|
|
17079
17511
|
import * as React41 from "react";
|
|
17080
|
-
import { Fragment as
|
|
17512
|
+
import { Fragment as Fragment17, jsx as jsx89 } from "react/jsx-runtime";
|
|
17081
17513
|
var DateFormatter = ({ date, format: format2 }) => {
|
|
17082
17514
|
const { locale, timezone } = React41.useContext(IntlContext);
|
|
17083
|
-
return /* @__PURE__ */ jsx89(
|
|
17515
|
+
return /* @__PURE__ */ jsx89(Fragment17, { children: formatDate(date, locale, timezone, format2) });
|
|
17084
17516
|
};
|
|
17085
17517
|
var DateFormatter_default = DateFormatter;
|
|
17086
17518
|
|
|
@@ -17834,20 +18266,23 @@ import { useEffect as useEffect10, useState as useState15 } from "react";
|
|
|
17834
18266
|
|
|
17835
18267
|
// src/components/input/TextField.tsx
|
|
17836
18268
|
import * as React49 from "react";
|
|
17837
|
-
import { styled as
|
|
18269
|
+
import { styled as styled6 } from "@mui/material";
|
|
17838
18270
|
|
|
17839
18271
|
// src/components/input/InputLabel.tsx
|
|
17840
18272
|
import * as React47 from "react";
|
|
17841
|
-
import { styled as
|
|
18273
|
+
import { styled as styled4 } from "@mui/material";
|
|
17842
18274
|
import { jsx as jsx96, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
17843
18275
|
var severityColors = {
|
|
17844
18276
|
info: grey900,
|
|
17845
18277
|
error: errorMain
|
|
17846
18278
|
};
|
|
17847
|
-
var StyledLabel =
|
|
18279
|
+
var StyledLabel = styled4("label", {
|
|
17848
18280
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
17849
18281
|
})(
|
|
17850
|
-
({
|
|
18282
|
+
({
|
|
18283
|
+
severity,
|
|
18284
|
+
theme: theme2
|
|
18285
|
+
}) => theme2.unstable_sx({
|
|
17851
18286
|
display: "block",
|
|
17852
18287
|
padding: "4px 0",
|
|
17853
18288
|
...variants["caption"],
|
|
@@ -17885,17 +18320,20 @@ var InputLabel = React47.forwardRef(
|
|
|
17885
18320
|
var InputLabel_default = InputLabel;
|
|
17886
18321
|
|
|
17887
18322
|
// src/components/input/InputHelperText.tsx
|
|
17888
|
-
import { styled as
|
|
18323
|
+
import { styled as styled5 } from "@mui/material";
|
|
17889
18324
|
import * as React48 from "react";
|
|
17890
18325
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
17891
18326
|
var severityColors2 = {
|
|
17892
18327
|
info: grey800,
|
|
17893
18328
|
error: errorMain
|
|
17894
18329
|
};
|
|
17895
|
-
var StyledDiv =
|
|
18330
|
+
var StyledDiv = styled5("div", {
|
|
17896
18331
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
17897
18332
|
})(
|
|
17898
|
-
({
|
|
18333
|
+
({
|
|
18334
|
+
severity,
|
|
18335
|
+
theme: theme2
|
|
18336
|
+
}) => theme2.unstable_sx({
|
|
17899
18337
|
padding: "4px 8px",
|
|
17900
18338
|
...variants["caption"],
|
|
17901
18339
|
color: severityColors2[severity]
|
|
@@ -17909,7 +18347,7 @@ var InputHelperText = React48.forwardRef(
|
|
|
17909
18347
|
var InputHelperText_default = InputHelperText;
|
|
17910
18348
|
|
|
17911
18349
|
// src/components/input/TextField.tsx
|
|
17912
|
-
import { Fragment as
|
|
18350
|
+
import { Fragment as Fragment18, jsx as jsx98, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
17913
18351
|
var commonInputStylesOptions = {
|
|
17914
18352
|
shouldForwardProp: (prop) => prop !== "variant"
|
|
17915
18353
|
};
|
|
@@ -17932,13 +18370,13 @@ function getCommonInputStyles({ disabled }) {
|
|
|
17932
18370
|
}
|
|
17933
18371
|
};
|
|
17934
18372
|
}
|
|
17935
|
-
var StyledInput =
|
|
18373
|
+
var StyledInput = styled6(
|
|
17936
18374
|
"input",
|
|
17937
18375
|
commonInputStylesOptions
|
|
17938
18376
|
)(
|
|
17939
18377
|
(props) => props.theme.unstable_sx(getCommonInputStyles(props))
|
|
17940
18378
|
);
|
|
17941
|
-
var StyledTextarea =
|
|
18379
|
+
var StyledTextarea = styled6(
|
|
17942
18380
|
"textarea",
|
|
17943
18381
|
commonInputStylesOptions
|
|
17944
18382
|
)(
|
|
@@ -18159,7 +18597,7 @@ var TextField = React49.forwardRef(function TextField2({
|
|
|
18159
18597
|
]
|
|
18160
18598
|
}
|
|
18161
18599
|
);
|
|
18162
|
-
return /* @__PURE__ */ jsxs42(
|
|
18600
|
+
return /* @__PURE__ */ jsxs42(Fragment18, { children: [
|
|
18163
18601
|
label && /* @__PURE__ */ jsx98(
|
|
18164
18602
|
InputLabel_default,
|
|
18165
18603
|
{
|
|
@@ -19587,7 +20025,7 @@ var DateIntervalPicker_default = DateIntervalPicker;
|
|
|
19587
20025
|
// src/components/input/SelectPopoverItem.tsx
|
|
19588
20026
|
import { Grid as Grid2, Stack as Stack7 } from "@mui/material";
|
|
19589
20027
|
import { lighten as lighten3 } from "@mui/material";
|
|
19590
|
-
import { Fragment as
|
|
20028
|
+
import { Fragment as Fragment19, jsx as jsx110, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
19591
20029
|
var bgColorLightCoefficient2 = 0.9;
|
|
19592
20030
|
var SelectPopoverItem = ({
|
|
19593
20031
|
id,
|
|
@@ -19601,112 +20039,121 @@ var SelectPopoverItem = ({
|
|
|
19601
20039
|
tooltip,
|
|
19602
20040
|
isLoadingSubtitle2,
|
|
19603
20041
|
onClick
|
|
19604
|
-
}) => /* @__PURE__ */ jsx110(Tooltip_default, { title: tooltip || "", children: /* @__PURE__ */ jsx110(
|
|
19605
|
-
|
|
20042
|
+
}) => /* @__PURE__ */ jsx110(Tooltip_default, { title: tooltip || "", children: /* @__PURE__ */ jsx110(
|
|
20043
|
+
Grid2,
|
|
19606
20044
|
{
|
|
19607
|
-
|
|
19608
|
-
|
|
19609
|
-
border: `1px solid ${color2 ? color2 : Colors_exports.grey200}`,
|
|
19610
|
-
padding: "8px 8px 8px 4px",
|
|
19611
|
-
boxSizing: "border-box",
|
|
19612
|
-
borderRadius: "8px",
|
|
19613
|
-
boxShadow: shadows[1],
|
|
19614
|
-
backgroundColor: color2 ? lighten3(color2, bgColorLightCoefficient2) : Colors_exports.white,
|
|
19615
|
-
height: "75px",
|
|
19616
|
-
lineHeight: "20px",
|
|
19617
|
-
cursor: disabled ? "default" : "pointer",
|
|
19618
|
-
userSelect: "none"
|
|
20045
|
+
size: {
|
|
20046
|
+
xs: 6
|
|
19619
20047
|
},
|
|
19620
|
-
|
|
19621
|
-
|
|
19622
|
-
|
|
19623
|
-
|
|
19624
|
-
{
|
|
19625
|
-
|
|
19626
|
-
|
|
19627
|
-
|
|
19628
|
-
|
|
19629
|
-
|
|
19630
|
-
|
|
19631
|
-
|
|
19632
|
-
|
|
19633
|
-
|
|
19634
|
-
|
|
19635
|
-
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
|
|
19640
|
-
|
|
19641
|
-
|
|
19642
|
-
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
|
|
19649
|
-
|
|
19650
|
-
|
|
19651
|
-
|
|
19652
|
-
|
|
19653
|
-
|
|
20048
|
+
children: /* @__PURE__ */ jsxs50(
|
|
20049
|
+
Stack7,
|
|
20050
|
+
{
|
|
20051
|
+
direction: "row",
|
|
20052
|
+
sx: {
|
|
20053
|
+
border: `1px solid ${color2 ? color2 : Colors_exports.grey200}`,
|
|
20054
|
+
padding: "8px 8px 8px 4px",
|
|
20055
|
+
boxSizing: "border-box",
|
|
20056
|
+
borderRadius: "8px",
|
|
20057
|
+
boxShadow: shadows[1],
|
|
20058
|
+
backgroundColor: color2 ? lighten3(color2, bgColorLightCoefficient2) : Colors_exports.white,
|
|
20059
|
+
height: "75px",
|
|
20060
|
+
lineHeight: "20px",
|
|
20061
|
+
cursor: disabled ? "default" : "pointer",
|
|
20062
|
+
userSelect: "none"
|
|
20063
|
+
},
|
|
20064
|
+
onClick: () => !disabled && typeof onClick === "function" && onClick(),
|
|
20065
|
+
children: [
|
|
20066
|
+
/* @__PURE__ */ jsxs50(
|
|
20067
|
+
Box_default,
|
|
20068
|
+
{
|
|
20069
|
+
sx: {
|
|
20070
|
+
paddingLeft: "16px",
|
|
20071
|
+
minWidth: "0",
|
|
20072
|
+
flexGrow: "2",
|
|
20073
|
+
boxSizing: "border-box"
|
|
20074
|
+
},
|
|
20075
|
+
children: [
|
|
20076
|
+
/* @__PURE__ */ jsx110(
|
|
20077
|
+
TextEllipsis_default,
|
|
20078
|
+
{
|
|
20079
|
+
color: Colors_exports.grey800,
|
|
20080
|
+
sx: {
|
|
20081
|
+
maxHeight: "20px",
|
|
20082
|
+
cursor: disabled ? "default" : "pointer"
|
|
20083
|
+
},
|
|
20084
|
+
typographyVariant: "body1",
|
|
20085
|
+
text: /* @__PURE__ */ jsxs50(Fragment19, { children: [
|
|
20086
|
+
iconId && /* @__PURE__ */ jsx110(
|
|
20087
|
+
Icon_default,
|
|
20088
|
+
{
|
|
20089
|
+
id: iconId,
|
|
20090
|
+
sx: {
|
|
20091
|
+
color: Colors_exports.grey500,
|
|
20092
|
+
marginRight: "2px",
|
|
20093
|
+
width: "18px",
|
|
20094
|
+
height: "18px",
|
|
20095
|
+
verticalAlign: "bottom",
|
|
20096
|
+
marginLeft: "-4px"
|
|
20097
|
+
}
|
|
20098
|
+
}
|
|
20099
|
+
),
|
|
20100
|
+
name
|
|
20101
|
+
] })
|
|
20102
|
+
}
|
|
20103
|
+
),
|
|
20104
|
+
subtitle1 && /* @__PURE__ */ jsx110(
|
|
20105
|
+
Typography_default,
|
|
20106
|
+
{
|
|
20107
|
+
variant: "body2",
|
|
20108
|
+
component: "p",
|
|
20109
|
+
noWrap: true,
|
|
20110
|
+
color: Colors_exports.grey600,
|
|
20111
|
+
children: subtitle1
|
|
20112
|
+
}
|
|
20113
|
+
),
|
|
20114
|
+
isLoadingSubtitle2 && /* @__PURE__ */ jsx110(
|
|
20115
|
+
Skeleton_default,
|
|
20116
|
+
{
|
|
20117
|
+
variant: "text",
|
|
20118
|
+
width: 200,
|
|
20119
|
+
height: 20,
|
|
20120
|
+
sx: {
|
|
20121
|
+
borderRadius: "8px",
|
|
20122
|
+
backgroundColor: Colors_exports.grey100
|
|
19654
20123
|
}
|
|
19655
|
-
|
|
19656
|
-
|
|
19657
|
-
|
|
19658
|
-
|
|
19659
|
-
|
|
19660
|
-
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
19667
|
-
|
|
19668
|
-
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
height: 20,
|
|
19676
|
-
sx: {
|
|
19677
|
-
borderRadius: "8px",
|
|
19678
|
-
backgroundColor: Colors_exports.grey100
|
|
19679
|
-
}
|
|
19680
|
-
}
|
|
19681
|
-
),
|
|
19682
|
-
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */ jsx110(
|
|
19683
|
-
Typography_default,
|
|
19684
|
-
{
|
|
19685
|
-
variant: "body2",
|
|
19686
|
-
component: "p",
|
|
19687
|
-
noWrap: true,
|
|
20124
|
+
}
|
|
20125
|
+
),
|
|
20126
|
+
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */ jsx110(
|
|
20127
|
+
Typography_default,
|
|
20128
|
+
{
|
|
20129
|
+
variant: "body2",
|
|
20130
|
+
component: "p",
|
|
20131
|
+
noWrap: true,
|
|
20132
|
+
color: Colors_exports.grey600,
|
|
20133
|
+
children: subtitle2
|
|
20134
|
+
}
|
|
20135
|
+
)
|
|
20136
|
+
]
|
|
20137
|
+
}
|
|
20138
|
+
),
|
|
20139
|
+
chipText && /* @__PURE__ */ jsx110(Box_default, { sx: { minWidth: "72px", flexShrink: 0 }, children: /* @__PURE__ */ jsx110(
|
|
20140
|
+
Chip_default,
|
|
20141
|
+
{
|
|
20142
|
+
label: chipText,
|
|
20143
|
+
sx: {
|
|
19688
20144
|
color: Colors_exports.grey600,
|
|
19689
|
-
|
|
20145
|
+
borderRadius: `50px`,
|
|
20146
|
+
backgroundColor: Colors_exports.grey100,
|
|
20147
|
+
height: "16px"
|
|
19690
20148
|
}
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
sx: {
|
|
19700
|
-
color: Colors_exports.grey600,
|
|
19701
|
-
borderRadius: `50px`,
|
|
19702
|
-
backgroundColor: Colors_exports.grey100,
|
|
19703
|
-
height: "16px"
|
|
19704
|
-
}
|
|
19705
|
-
}
|
|
19706
|
-
) })
|
|
19707
|
-
]
|
|
19708
|
-
}
|
|
19709
|
-
) }, id) });
|
|
20149
|
+
}
|
|
20150
|
+
) })
|
|
20151
|
+
]
|
|
20152
|
+
}
|
|
20153
|
+
)
|
|
20154
|
+
},
|
|
20155
|
+
id
|
|
20156
|
+
) });
|
|
19710
20157
|
var SelectPopoverItem_default = SelectPopoverItem;
|
|
19711
20158
|
|
|
19712
20159
|
// src/components/input/TimezoneSelector.tsx
|
|
@@ -19715,13 +20162,13 @@ import * as moment2 from "moment-timezone";
|
|
|
19715
20162
|
|
|
19716
20163
|
// src/components/input/Select.tsx
|
|
19717
20164
|
import * as React56 from "react";
|
|
19718
|
-
import { styled as
|
|
20165
|
+
import { styled as styled7 } from "@mui/material/styles";
|
|
19719
20166
|
import MuiSelect from "@mui/material/Select";
|
|
19720
20167
|
import InputBase from "@mui/material/InputBase";
|
|
19721
20168
|
import { FixedSizeList as FixedSizeList2 } from "react-window";
|
|
19722
20169
|
import AutoSizer4 from "react-virtualized-auto-sizer";
|
|
19723
20170
|
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
19724
|
-
var BootstrapInput =
|
|
20171
|
+
var BootstrapInput = styled7(InputBase)(() => ({
|
|
19725
20172
|
boxShadow: shadows[0],
|
|
19726
20173
|
borderRadius: "16px",
|
|
19727
20174
|
borderWidth: "1px",
|
|
@@ -20166,7 +20613,7 @@ import * as React59 from "react";
|
|
|
20166
20613
|
import GradientColorPicker, {
|
|
20167
20614
|
useColorPicker
|
|
20168
20615
|
} from "react-best-gradient-color-picker";
|
|
20169
|
-
import { Fragment as
|
|
20616
|
+
import { Fragment as Fragment20, jsx as jsx114, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
20170
20617
|
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+))?\)$/;
|
|
20171
20618
|
var isValidColor = (color2) => colorRegex.test(color2);
|
|
20172
20619
|
var colorPickerDefaultColors = [
|
|
@@ -20259,7 +20706,7 @@ var ColorPicker = React59.forwardRef(function ColorPickerWrapper({
|
|
|
20259
20706
|
handleColorChange(internalPickerValue);
|
|
20260
20707
|
}
|
|
20261
20708
|
}, [value, internalPickerValue, onChange, isValidPickerChange, valueToHex]);
|
|
20262
|
-
return /* @__PURE__ */ jsxs51(
|
|
20709
|
+
return /* @__PURE__ */ jsxs51(Fragment20, { children: [
|
|
20263
20710
|
/* @__PURE__ */ jsx114(
|
|
20264
20711
|
TextField_default,
|
|
20265
20712
|
{
|
|
@@ -20401,7 +20848,7 @@ var UploadClickableArea_default = UploadClickableArea;
|
|
|
20401
20848
|
// src/components/input/CategorizedPicker.tsx
|
|
20402
20849
|
import React60 from "react";
|
|
20403
20850
|
import { Grid as Grid3, Popover as Popover2, Select as Select3, Stack as Stack8 } from "@mui/material";
|
|
20404
|
-
import { Fragment as
|
|
20851
|
+
import { Fragment as Fragment21, jsx as jsx116, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
20405
20852
|
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */ jsx116(
|
|
20406
20853
|
Icon_default,
|
|
20407
20854
|
{
|
|
@@ -20497,7 +20944,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20497
20944
|
setSelectedCategory(filteredSelectedCategory);
|
|
20498
20945
|
}
|
|
20499
20946
|
}, [filteredCategories, selectedCategory]);
|
|
20500
|
-
return /* @__PURE__ */ jsxs53(
|
|
20947
|
+
return /* @__PURE__ */ jsxs53(Fragment21, { children: [
|
|
20501
20948
|
/* @__PURE__ */ jsx116(
|
|
20502
20949
|
Select3,
|
|
20503
20950
|
{
|
|
@@ -20558,8 +21005,9 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20558
21005
|
/* @__PURE__ */ jsx116(
|
|
20559
21006
|
Grid3,
|
|
20560
21007
|
{
|
|
20561
|
-
|
|
20562
|
-
|
|
21008
|
+
size: {
|
|
21009
|
+
xs: 12
|
|
21010
|
+
},
|
|
20563
21011
|
padding: "8px",
|
|
20564
21012
|
borderBottom: `1px solid ${grey200}`,
|
|
20565
21013
|
children: /* @__PURE__ */ jsx116(
|
|
@@ -20578,8 +21026,9 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20578
21026
|
/* @__PURE__ */ jsx116(
|
|
20579
21027
|
Grid3,
|
|
20580
21028
|
{
|
|
20581
|
-
|
|
20582
|
-
|
|
21029
|
+
size: {
|
|
21030
|
+
xs: 4
|
|
21031
|
+
},
|
|
20583
21032
|
sx: { borderRight: `1px solid ${grey200}` },
|
|
20584
21033
|
height: "316px",
|
|
20585
21034
|
className: "Slim-Vertical-Scroll",
|
|
@@ -20622,8 +21071,9 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20622
21071
|
/* @__PURE__ */ jsx116(
|
|
20623
21072
|
Grid3,
|
|
20624
21073
|
{
|
|
20625
|
-
|
|
20626
|
-
|
|
21074
|
+
size: {
|
|
21075
|
+
xs: 8
|
|
21076
|
+
},
|
|
20627
21077
|
height: "316px",
|
|
20628
21078
|
className: "Slim-Vertical-Scroll",
|
|
20629
21079
|
children: /* @__PURE__ */ jsx116(Stack8, { children: /* @__PURE__ */ jsx116(Stack8, { children: !selectedCategory ? /* @__PURE__ */ jsx116(Stack8, { padding: "12px", alignItems: "center", children: /* @__PURE__ */ jsx116(
|
|
@@ -21000,7 +21450,7 @@ var arraysEqual = (a, b) => {
|
|
|
21000
21450
|
var SelectPopover_default = SelectPopover;
|
|
21001
21451
|
|
|
21002
21452
|
// src/components/input/ItemSelector.tsx
|
|
21003
|
-
import { Fragment as
|
|
21453
|
+
import { Fragment as Fragment22, jsx as jsx118, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
21004
21454
|
var ItemSelector = function ItemSelector2({
|
|
21005
21455
|
items,
|
|
21006
21456
|
selectedItems,
|
|
@@ -21084,7 +21534,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21084
21534
|
const selectedItem = selectedItems[0]?.id;
|
|
21085
21535
|
return selectedItem ? [selectedItem] : "";
|
|
21086
21536
|
};
|
|
21087
|
-
return /* @__PURE__ */ jsxs55(
|
|
21537
|
+
return /* @__PURE__ */ jsxs55(Fragment22, { children: [
|
|
21088
21538
|
/* @__PURE__ */ jsx118(
|
|
21089
21539
|
Select_default,
|
|
21090
21540
|
{
|
|
@@ -21101,7 +21551,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21101
21551
|
renderValue: (value) => {
|
|
21102
21552
|
let component;
|
|
21103
21553
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
21104
|
-
component = /* @__PURE__ */ jsxs55(
|
|
21554
|
+
component = /* @__PURE__ */ jsxs55(Fragment22, { children: [
|
|
21105
21555
|
/* @__PURE__ */ jsx118(
|
|
21106
21556
|
Stack_default,
|
|
21107
21557
|
{
|
|
@@ -21121,7 +21571,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21121
21571
|
)
|
|
21122
21572
|
] });
|
|
21123
21573
|
} else {
|
|
21124
|
-
component = /* @__PURE__ */ jsxs55(
|
|
21574
|
+
component = /* @__PURE__ */ jsxs55(Fragment22, { children: [
|
|
21125
21575
|
/* @__PURE__ */ jsxs55(
|
|
21126
21576
|
Stack_default,
|
|
21127
21577
|
{
|
|
@@ -21145,7 +21595,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21145
21595
|
}
|
|
21146
21596
|
},
|
|
21147
21597
|
id
|
|
21148
|
-
) : /* @__PURE__ */ jsx118(
|
|
21598
|
+
) : /* @__PURE__ */ jsx118(Fragment22, {});
|
|
21149
21599
|
}),
|
|
21150
21600
|
value.length - limitItemChips > 0 ? /* @__PURE__ */ jsx118(
|
|
21151
21601
|
Tooltip_default,
|
|
@@ -21175,7 +21625,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21175
21625
|
item
|
|
21176
21626
|
},
|
|
21177
21627
|
id
|
|
21178
|
-
) : /* @__PURE__ */ jsx118(
|
|
21628
|
+
) : /* @__PURE__ */ jsx118(Fragment22, {});
|
|
21179
21629
|
})
|
|
21180
21630
|
}
|
|
21181
21631
|
),
|
|
@@ -21303,7 +21753,7 @@ var map = {
|
|
|
21303
21753
|
var toDiacriticInsensitiveString = (input) => Array.from(input).map((char) => map[char] ? `[${map[char]}]` : char).join("");
|
|
21304
21754
|
|
|
21305
21755
|
// src/components/input/Autocomplete.tsx
|
|
21306
|
-
import { Fragment as
|
|
21756
|
+
import { Fragment as Fragment23, jsx as jsx119, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
21307
21757
|
var AUTOCOMPLETE_ITEM_HEIGHT = 44;
|
|
21308
21758
|
var Autocomplete = function Autocomplete2({
|
|
21309
21759
|
variant = "default",
|
|
@@ -21520,7 +21970,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
21520
21970
|
option.id
|
|
21521
21971
|
);
|
|
21522
21972
|
};
|
|
21523
|
-
return /* @__PURE__ */ jsxs56(
|
|
21973
|
+
return /* @__PURE__ */ jsxs56(Fragment23, { children: [
|
|
21524
21974
|
/* @__PURE__ */ jsx119(
|
|
21525
21975
|
DebouncedTextField_default,
|
|
21526
21976
|
{
|
|
@@ -21910,7 +22360,7 @@ var CodeEditor_default = React64.forwardRef(CodeEditor);
|
|
|
21910
22360
|
|
|
21911
22361
|
// src/components/input/CodeEditorPopup.tsx
|
|
21912
22362
|
import format from "html-format";
|
|
21913
|
-
import { Fragment as
|
|
22363
|
+
import { Fragment as Fragment24, jsx as jsx121, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
21914
22364
|
var FORMAT_CHARACTERS_LINE = 120;
|
|
21915
22365
|
var FORMAT_NUMBER_SPACES_INDENTATION = 2;
|
|
21916
22366
|
var CodeEditorPopup = ({
|
|
@@ -21953,7 +22403,7 @@ var CodeEditorPopup = ({
|
|
|
21953
22403
|
" ".repeat(FORMAT_NUMBER_SPACES_INDENTATION),
|
|
21954
22404
|
FORMAT_CHARACTERS_LINE
|
|
21955
22405
|
);
|
|
21956
|
-
return /* @__PURE__ */ jsxs57(
|
|
22406
|
+
return /* @__PURE__ */ jsxs57(Fragment24, { children: [
|
|
21957
22407
|
readonly && /* @__PURE__ */ jsx121(
|
|
21958
22408
|
Dialog_default,
|
|
21959
22409
|
{
|
|
@@ -22119,7 +22569,7 @@ var CodeEditorPopup = ({
|
|
|
22119
22569
|
var CodeEditorPopup_default = CodeEditorPopup;
|
|
22120
22570
|
|
|
22121
22571
|
// src/components/input/TextEditor.tsx
|
|
22122
|
-
import { Fragment as
|
|
22572
|
+
import { Fragment as Fragment25, jsx as jsx122, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
22123
22573
|
var DEFAULT_TOOLBAR_INSERT_MENU_ITEMS = [
|
|
22124
22574
|
"link",
|
|
22125
22575
|
"image",
|
|
@@ -22411,7 +22861,7 @@ var TextEditor = function TextEditor2({
|
|
|
22411
22861
|
};
|
|
22412
22862
|
}
|
|
22413
22863
|
};
|
|
22414
|
-
return /* @__PURE__ */ jsxs58(
|
|
22864
|
+
return /* @__PURE__ */ jsxs58(Fragment25, { children: [
|
|
22415
22865
|
/* @__PURE__ */ jsx122(
|
|
22416
22866
|
Editor,
|
|
22417
22867
|
{
|
|
@@ -22468,20 +22918,18 @@ var TextEditor_default = TextEditor;
|
|
|
22468
22918
|
|
|
22469
22919
|
// src/components/input/TimeField.tsx
|
|
22470
22920
|
import * as React67 from "react";
|
|
22471
|
-
import {
|
|
22472
|
-
TimeField as MuiTimeField
|
|
22473
|
-
} from "@mui/x-date-pickers";
|
|
22921
|
+
import { TimeField as MuiTimeField } from "@mui/x-date-pickers";
|
|
22474
22922
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
22475
22923
|
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
|
|
22476
22924
|
import { tz as tz6 } from "moment-timezone";
|
|
22477
22925
|
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
22478
22926
|
var ExtendedTextField = ({
|
|
22479
|
-
inputProps
|
|
22927
|
+
inputProps,
|
|
22480
22928
|
ownerState,
|
|
22481
22929
|
InputProps,
|
|
22482
22930
|
error,
|
|
22483
22931
|
...rest
|
|
22484
|
-
}) => /* @__PURE__ */ jsx123(TextField_default, {
|
|
22932
|
+
}) => /* @__PURE__ */ jsx123(TextField_default, { ...inputProps, ...rest });
|
|
22485
22933
|
var TimeField = function TimeField2({
|
|
22486
22934
|
onChange,
|
|
22487
22935
|
value,
|
|
@@ -22521,7 +22969,8 @@ var TimeField = function TimeField2({
|
|
|
22521
22969
|
},
|
|
22522
22970
|
slotProps: {
|
|
22523
22971
|
textField: rest
|
|
22524
|
-
}
|
|
22972
|
+
},
|
|
22973
|
+
enableAccessibleFieldDOMStructure: false
|
|
22525
22974
|
}
|
|
22526
22975
|
) });
|
|
22527
22976
|
};
|
|
@@ -22529,7 +22978,7 @@ var TimeField_default = TimeField;
|
|
|
22529
22978
|
|
|
22530
22979
|
// src/components/input/PhoneField.tsx
|
|
22531
22980
|
import * as React68 from "react";
|
|
22532
|
-
import { Fragment as
|
|
22981
|
+
import { Fragment as Fragment26, jsx as jsx124, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
22533
22982
|
var maxPhoneLengthWithPrefix = 16;
|
|
22534
22983
|
var PhoneField = React68.forwardRef(function PhoneField2({
|
|
22535
22984
|
value,
|
|
@@ -22614,7 +23063,7 @@ var PhoneField = React68.forwardRef(function PhoneField2({
|
|
|
22614
23063
|
groupElements: true,
|
|
22615
23064
|
...rest,
|
|
22616
23065
|
className: `Cn-PhoneField ${className}`,
|
|
22617
|
-
startAdornment: /* @__PURE__ */ jsxs59(
|
|
23066
|
+
startAdornment: /* @__PURE__ */ jsxs59(Fragment26, { children: [
|
|
22618
23067
|
rest.startAdornment,
|
|
22619
23068
|
select
|
|
22620
23069
|
] }),
|
|
@@ -23048,7 +23497,7 @@ var DatePickerPopover = ({
|
|
|
23048
23497
|
var DatePickerPopover_default = DatePickerPopover;
|
|
23049
23498
|
|
|
23050
23499
|
// src/components/input/DatePicker.tsx
|
|
23051
|
-
import { Fragment as
|
|
23500
|
+
import { Fragment as Fragment27, jsx as jsx128, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
23052
23501
|
var DatePicker = React71.forwardRef(
|
|
23053
23502
|
function DatePicker2({ value, onChange, onBlur, onKeyDown, minDate, maxDate, ...rest }, ref) {
|
|
23054
23503
|
const { locale, timezone } = React71.useContext(IntlContext);
|
|
@@ -23124,7 +23573,7 @@ var DatePicker = React71.forwardRef(
|
|
|
23124
23573
|
const text = value && !isNaN(value.getTime()) ? tz8(value, timezone).format(dateInputFormat) : "";
|
|
23125
23574
|
setTextValue(text);
|
|
23126
23575
|
}, [dateInputFormat, timezone, value]);
|
|
23127
|
-
return /* @__PURE__ */ jsxs62(
|
|
23576
|
+
return /* @__PURE__ */ jsxs62(Fragment27, { children: [
|
|
23128
23577
|
/* @__PURE__ */ jsx128(
|
|
23129
23578
|
TextField_default,
|
|
23130
23579
|
{
|
|
@@ -23167,7 +23616,7 @@ var DatePicker_default = DatePicker;
|
|
|
23167
23616
|
// src/components/input/Checkbox.tsx
|
|
23168
23617
|
import MuiCheckbox from "@mui/material/Checkbox";
|
|
23169
23618
|
import { FormControlLabel, FormGroup } from "@mui/material";
|
|
23170
|
-
import { Fragment as
|
|
23619
|
+
import { Fragment as Fragment28, jsx as jsx129, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
23171
23620
|
var MaterialCheckbox = ({
|
|
23172
23621
|
checked,
|
|
23173
23622
|
disabled,
|
|
@@ -23200,7 +23649,7 @@ var Checkbox = ({
|
|
|
23200
23649
|
inputClass,
|
|
23201
23650
|
onChange,
|
|
23202
23651
|
tabIndex
|
|
23203
|
-
}) => /* @__PURE__ */ jsxs63(
|
|
23652
|
+
}) => /* @__PURE__ */ jsxs63(Fragment28, { children: [
|
|
23204
23653
|
!label && /* @__PURE__ */ jsx129(
|
|
23205
23654
|
MaterialCheckbox,
|
|
23206
23655
|
{
|
|
@@ -23242,7 +23691,7 @@ var Checkbox_default = Checkbox;
|
|
|
23242
23691
|
import * as React72 from "react";
|
|
23243
23692
|
import MuiRadio from "@mui/material/Radio";
|
|
23244
23693
|
import { FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
23245
|
-
import { Fragment as
|
|
23694
|
+
import { Fragment as Fragment29, jsx as jsx130, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
23246
23695
|
var Radio = React72.forwardRef(function Radio2({
|
|
23247
23696
|
label,
|
|
23248
23697
|
labelPlacement = "end",
|
|
@@ -23279,7 +23728,7 @@ var Radio = React72.forwardRef(function Radio2({
|
|
|
23279
23728
|
size: size === "S" ? "small" : "medium"
|
|
23280
23729
|
}
|
|
23281
23730
|
);
|
|
23282
|
-
return /* @__PURE__ */ jsxs64(
|
|
23731
|
+
return /* @__PURE__ */ jsxs64(Fragment29, { children: [
|
|
23283
23732
|
!label && radio,
|
|
23284
23733
|
label && /* @__PURE__ */ jsx130(
|
|
23285
23734
|
FormControlLabel2,
|
|
@@ -23729,9 +24178,9 @@ var Loader_default = Loader;
|
|
|
23729
24178
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
23730
24179
|
import ReactMarkdown from "react-markdown";
|
|
23731
24180
|
import remarkGfm from "remark-gfm";
|
|
23732
|
-
import { styled as
|
|
24181
|
+
import { styled as styled8 } from "@mui/material/styles";
|
|
23733
24182
|
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
23734
|
-
var MarkdownContainer =
|
|
24183
|
+
var MarkdownContainer = styled8("div")(
|
|
23735
24184
|
({ color: color2, backgroundColor: backgroundColor2 = "transparent", variant }) => ({
|
|
23736
24185
|
color: color2,
|
|
23737
24186
|
backgroundColor: backgroundColor2,
|
|
@@ -23799,7 +24248,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
23799
24248
|
|
|
23800
24249
|
// src/components/navbar/Navbar.tsx
|
|
23801
24250
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
23802
|
-
import { Fragment as
|
|
24251
|
+
import { Fragment as Fragment30, jsx as jsx137, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
23803
24252
|
var Navbar = ({
|
|
23804
24253
|
topContent,
|
|
23805
24254
|
bottomContent,
|
|
@@ -23807,7 +24256,7 @@ var Navbar = ({
|
|
|
23807
24256
|
drawerBottomContent,
|
|
23808
24257
|
onClose,
|
|
23809
24258
|
isDrawerOpen = false
|
|
23810
|
-
}) => /* @__PURE__ */ jsxs68(
|
|
24259
|
+
}) => /* @__PURE__ */ jsxs68(Fragment30, { children: [
|
|
23811
24260
|
/* @__PURE__ */ jsxs68(
|
|
23812
24261
|
Box_default,
|
|
23813
24262
|
{
|
|
@@ -24030,7 +24479,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
24030
24479
|
|
|
24031
24480
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
24032
24481
|
import * as React77 from "react";
|
|
24033
|
-
import { Fragment as
|
|
24482
|
+
import { Fragment as Fragment31, jsx as jsx141, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
24034
24483
|
var DonutFocusOverlay = ({
|
|
24035
24484
|
isVisible,
|
|
24036
24485
|
elementRef,
|
|
@@ -24071,7 +24520,7 @@ var DonutFocusOverlay = ({
|
|
|
24071
24520
|
const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
|
|
24072
24521
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
24073
24522
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
24074
|
-
return /* @__PURE__ */ jsxs70(
|
|
24523
|
+
return /* @__PURE__ */ jsxs70(Fragment31, { children: [
|
|
24075
24524
|
/* @__PURE__ */ jsx141(
|
|
24076
24525
|
Box_default,
|
|
24077
24526
|
{
|
|
@@ -24116,7 +24565,7 @@ var DonutFocusOverlay = ({
|
|
|
24116
24565
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
24117
24566
|
|
|
24118
24567
|
// src/components/pager/Pager.tsx
|
|
24119
|
-
import { Fragment as
|
|
24568
|
+
import { Fragment as Fragment32, jsx as jsx142, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
24120
24569
|
var Pager = ({
|
|
24121
24570
|
page,
|
|
24122
24571
|
pageSize,
|
|
@@ -24142,7 +24591,7 @@ var Pager = ({
|
|
|
24142
24591
|
sx: { minWidth: 78 }
|
|
24143
24592
|
}
|
|
24144
24593
|
),
|
|
24145
|
-
allowedPageSizes && /* @__PURE__ */ jsxs71(
|
|
24594
|
+
allowedPageSizes && /* @__PURE__ */ jsxs71(Fragment32, { children: [
|
|
24146
24595
|
/* @__PURE__ */ jsx142(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
24147
24596
|
/* @__PURE__ */ jsx142(
|
|
24148
24597
|
Select_default,
|
|
@@ -24537,10 +24986,120 @@ var TabButton = ({
|
|
|
24537
24986
|
var TabButton_default = TabButton;
|
|
24538
24987
|
|
|
24539
24988
|
// src/components/tab/Tabs.tsx
|
|
24540
|
-
import * as
|
|
24989
|
+
import * as React81 from "react";
|
|
24541
24990
|
import MuiTabs from "@mui/material/Tabs";
|
|
24542
|
-
|
|
24543
|
-
|
|
24991
|
+
|
|
24992
|
+
// src/components/layout/SwipeableViews.tsx
|
|
24993
|
+
import * as React80 from "react";
|
|
24994
|
+
import { useEffect as useEffect21, useRef as useRef22, useState as useState31 } from "react";
|
|
24995
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
24996
|
+
var styles = {
|
|
24997
|
+
container: {
|
|
24998
|
+
maxHeight: "100%",
|
|
24999
|
+
display: "flex",
|
|
25000
|
+
scrollSnapType: "x mandatory",
|
|
25001
|
+
overflowX: "scroll",
|
|
25002
|
+
scrollBehavior: "smooth",
|
|
25003
|
+
msOverflowStyle: "none",
|
|
25004
|
+
scrollbarWidth: "none",
|
|
25005
|
+
"&::WebkitScrollbar": {
|
|
25006
|
+
/* Chrome, Safari and Opera */
|
|
25007
|
+
display: "none"
|
|
25008
|
+
}
|
|
25009
|
+
},
|
|
25010
|
+
slide: {
|
|
25011
|
+
boxSizing: "border-box",
|
|
25012
|
+
width: "100%",
|
|
25013
|
+
flexShrink: 0,
|
|
25014
|
+
scrollSnapAlign: "center",
|
|
25015
|
+
scrollSnapStop: "always"
|
|
25016
|
+
}
|
|
25017
|
+
};
|
|
25018
|
+
function SwipeableViews({
|
|
25019
|
+
className = "",
|
|
25020
|
+
index,
|
|
25021
|
+
style: style3,
|
|
25022
|
+
slideStyle,
|
|
25023
|
+
onChangeIndex,
|
|
25024
|
+
children,
|
|
25025
|
+
...rootProps
|
|
25026
|
+
}) {
|
|
25027
|
+
const containerRef = useRef22(null);
|
|
25028
|
+
const scrollTimeout = useRef22();
|
|
25029
|
+
const scrollingMethod = useRef22("none");
|
|
25030
|
+
const [previousIndex, setPreviousIndex] = useState31(index);
|
|
25031
|
+
useEffect21(() => {
|
|
25032
|
+
if (containerRef.current) {
|
|
25033
|
+
if (scrollingMethod.current === "manual") {
|
|
25034
|
+
scrollingMethod.current = "none";
|
|
25035
|
+
return;
|
|
25036
|
+
}
|
|
25037
|
+
scrollingMethod.current = "auto";
|
|
25038
|
+
const children2 = containerRef.current.children;
|
|
25039
|
+
let scrollPosition = 0;
|
|
25040
|
+
for (let i = 0; i < index; i++) {
|
|
25041
|
+
scrollPosition += children2[i].getBoundingClientRect().width;
|
|
25042
|
+
}
|
|
25043
|
+
if (scrollTimeout.current) {
|
|
25044
|
+
clearTimeout(scrollTimeout.current);
|
|
25045
|
+
}
|
|
25046
|
+
const container = containerRef.current;
|
|
25047
|
+
let animationFrame;
|
|
25048
|
+
const checkScrollCompletion = () => {
|
|
25049
|
+
if (Math.abs(container.scrollLeft - scrollPosition) < 1) {
|
|
25050
|
+
setPreviousIndex(index);
|
|
25051
|
+
cancelAnimationFrame(animationFrame);
|
|
25052
|
+
} else {
|
|
25053
|
+
animationFrame = requestAnimationFrame(
|
|
25054
|
+
checkScrollCompletion
|
|
25055
|
+
);
|
|
25056
|
+
}
|
|
25057
|
+
};
|
|
25058
|
+
container.scrollTo({
|
|
25059
|
+
left: scrollPosition,
|
|
25060
|
+
behavior: "smooth"
|
|
25061
|
+
});
|
|
25062
|
+
animationFrame = requestAnimationFrame(checkScrollCompletion);
|
|
25063
|
+
return () => cancelAnimationFrame(animationFrame);
|
|
25064
|
+
}
|
|
25065
|
+
}, [index]);
|
|
25066
|
+
return /* @__PURE__ */ jsx148(
|
|
25067
|
+
"div",
|
|
25068
|
+
{
|
|
25069
|
+
...rootProps,
|
|
25070
|
+
ref: containerRef,
|
|
25071
|
+
style: Object.assign({}, styles.container, style3),
|
|
25072
|
+
className,
|
|
25073
|
+
onScroll: ({ currentTarget }) => {
|
|
25074
|
+
if (scrollTimeout.current) {
|
|
25075
|
+
clearTimeout(scrollTimeout.current);
|
|
25076
|
+
}
|
|
25077
|
+
scrollTimeout.current = window.setTimeout(() => {
|
|
25078
|
+
if (scrollingMethod.current === "auto") {
|
|
25079
|
+
scrollingMethod.current = "none";
|
|
25080
|
+
return;
|
|
25081
|
+
}
|
|
25082
|
+
scrollingMethod.current = "manual";
|
|
25083
|
+
const pageWidth = currentTarget.scrollWidth / currentTarget.children.length;
|
|
25084
|
+
onChangeIndex(
|
|
25085
|
+
Math.round(currentTarget.scrollLeft / pageWidth)
|
|
25086
|
+
);
|
|
25087
|
+
}, 100);
|
|
25088
|
+
},
|
|
25089
|
+
children: React80.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx148(
|
|
25090
|
+
"div",
|
|
25091
|
+
{
|
|
25092
|
+
className: "Slim-Vertical-Scroll",
|
|
25093
|
+
style: Object.assign({}, styles.slide, slideStyle),
|
|
25094
|
+
children: childIndex === index || childIndex === previousIndex ? child : null
|
|
25095
|
+
}
|
|
25096
|
+
))
|
|
25097
|
+
}
|
|
25098
|
+
);
|
|
25099
|
+
}
|
|
25100
|
+
|
|
25101
|
+
// src/components/tab/Tabs.tsx
|
|
25102
|
+
import { jsx as jsx149, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
24544
25103
|
var Tabs = ({
|
|
24545
25104
|
tabButtons,
|
|
24546
25105
|
children,
|
|
@@ -24551,7 +25110,7 @@ var Tabs = ({
|
|
|
24551
25110
|
contained = false,
|
|
24552
25111
|
scrollbarGutter
|
|
24553
25112
|
}) => {
|
|
24554
|
-
const [value, setValue] =
|
|
25113
|
+
const [value, setValue] = React81.useState(0);
|
|
24555
25114
|
const handleChangeIndex = (index) => {
|
|
24556
25115
|
onChangeTab?.(index);
|
|
24557
25116
|
setValue(index);
|
|
@@ -24576,7 +25135,7 @@ var Tabs = ({
|
|
|
24576
25135
|
}
|
|
24577
25136
|
},
|
|
24578
25137
|
children: [
|
|
24579
|
-
/* @__PURE__ */
|
|
25138
|
+
/* @__PURE__ */ jsx149(
|
|
24580
25139
|
MuiTabs,
|
|
24581
25140
|
{
|
|
24582
25141
|
value: currentTabIndex ?? value,
|
|
@@ -24602,7 +25161,7 @@ var Tabs = ({
|
|
|
24602
25161
|
children: tabButtons
|
|
24603
25162
|
}
|
|
24604
25163
|
),
|
|
24605
|
-
/* @__PURE__ */
|
|
25164
|
+
/* @__PURE__ */ jsx149(
|
|
24606
25165
|
Box_default,
|
|
24607
25166
|
{
|
|
24608
25167
|
sx: {
|
|
@@ -24611,7 +25170,7 @@ var Tabs = ({
|
|
|
24611
25170
|
height: "100%"
|
|
24612
25171
|
}
|
|
24613
25172
|
},
|
|
24614
|
-
children: /* @__PURE__ */
|
|
25173
|
+
children: /* @__PURE__ */ jsx149(
|
|
24615
25174
|
SwipeableViews,
|
|
24616
25175
|
{
|
|
24617
25176
|
index: currentTabIndex ?? value,
|
|
@@ -24621,21 +25180,12 @@ var Tabs = ({
|
|
|
24621
25180
|
height: "100%"
|
|
24622
25181
|
}
|
|
24623
25182
|
},
|
|
24624
|
-
containerStyle: {
|
|
24625
|
-
transition: "transform 0.35s cubic-bezier(0.15, 0.3, 0.25, 1) 0s",
|
|
24626
|
-
// NOTE: This will be a workaround for the issue with the SwipeableViews blurring
|
|
24627
|
-
willChange: "unset",
|
|
24628
|
-
...fullHeight && {
|
|
24629
|
-
height: "100%"
|
|
24630
|
-
}
|
|
24631
|
-
},
|
|
24632
25183
|
slideStyle: {
|
|
24633
25184
|
...fullHeight && {
|
|
24634
25185
|
height: "100%"
|
|
24635
25186
|
},
|
|
24636
25187
|
scrollbarGutter
|
|
24637
25188
|
},
|
|
24638
|
-
slideClassName: "Slim-Vertical-Scroll",
|
|
24639
25189
|
children
|
|
24640
25190
|
}
|
|
24641
25191
|
)
|
|
@@ -24648,8 +25198,8 @@ var Tabs = ({
|
|
|
24648
25198
|
var Tabs_default = Tabs;
|
|
24649
25199
|
|
|
24650
25200
|
// src/components/tab/TabContent.tsx
|
|
24651
|
-
import { jsx as
|
|
24652
|
-
var TabContent = ({ children }) => /* @__PURE__ */
|
|
25201
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
25202
|
+
var TabContent = ({ children }) => /* @__PURE__ */ jsx150(
|
|
24653
25203
|
Box_default,
|
|
24654
25204
|
{
|
|
24655
25205
|
sx: {
|
|
@@ -24666,8 +25216,8 @@ import {
|
|
|
24666
25216
|
TableRow as MuiTableRow,
|
|
24667
25217
|
TableCell as MuiTableCell
|
|
24668
25218
|
} from "@mui/material";
|
|
24669
|
-
import { jsx as
|
|
24670
|
-
var TableDivider = () => /* @__PURE__ */
|
|
25219
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
25220
|
+
var TableDivider = () => /* @__PURE__ */ jsx151(MuiTableRow, { children: /* @__PURE__ */ jsx151(
|
|
24671
25221
|
MuiTableCell,
|
|
24672
25222
|
{
|
|
24673
25223
|
colSpan: 1e3,
|
|
@@ -24680,8 +25230,8 @@ var TableDivider_default = TableDivider;
|
|
|
24680
25230
|
import {
|
|
24681
25231
|
TableSortLabel as MuiTableSortLabel
|
|
24682
25232
|
} from "@mui/material";
|
|
24683
|
-
import { jsx as
|
|
24684
|
-
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */
|
|
25233
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
25234
|
+
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx152(MuiTableSortLabel, { ...rest, children });
|
|
24685
25235
|
var TableSortLabel_default = TableSortLabel;
|
|
24686
25236
|
|
|
24687
25237
|
// src/components/table/Table.tsx
|
|
@@ -24689,21 +25239,21 @@ import {
|
|
|
24689
25239
|
TableContainer,
|
|
24690
25240
|
Table as MuiTable
|
|
24691
25241
|
} from "@mui/material";
|
|
24692
|
-
import { jsx as
|
|
24693
|
-
var Table = ({ children, sx, className }) => /* @__PURE__ */
|
|
25242
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
25243
|
+
var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx153(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx153(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
|
|
24694
25244
|
var Table_default = Table;
|
|
24695
25245
|
|
|
24696
25246
|
// src/components/table/TableBody.tsx
|
|
24697
25247
|
import { TableBody as MuiTableBody } from "@mui/material";
|
|
24698
|
-
import { jsx as
|
|
24699
|
-
var TableBody = ({ children }) => /* @__PURE__ */
|
|
25248
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
25249
|
+
var TableBody = ({ children }) => /* @__PURE__ */ jsx154(MuiTableBody, { children });
|
|
24700
25250
|
var TableBody_default = TableBody;
|
|
24701
25251
|
|
|
24702
25252
|
// src/components/table/TableCell.tsx
|
|
24703
25253
|
import {
|
|
24704
25254
|
TableCell as MuiTableCell2
|
|
24705
25255
|
} from "@mui/material";
|
|
24706
|
-
import { jsx as
|
|
25256
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
24707
25257
|
var TableCell = ({
|
|
24708
25258
|
children,
|
|
24709
25259
|
size = "M",
|
|
@@ -24714,7 +25264,7 @@ var TableCell = ({
|
|
|
24714
25264
|
onClick,
|
|
24715
25265
|
noBorder = false,
|
|
24716
25266
|
...rest
|
|
24717
|
-
}) => /* @__PURE__ */
|
|
25267
|
+
}) => /* @__PURE__ */ jsx155(
|
|
24718
25268
|
MuiTableCell2,
|
|
24719
25269
|
{
|
|
24720
25270
|
...rest,
|
|
@@ -24738,12 +25288,12 @@ var TableCell = ({
|
|
|
24738
25288
|
var TableCell_default = TableCell;
|
|
24739
25289
|
|
|
24740
25290
|
// src/components/table/TableCellCopy.tsx
|
|
24741
|
-
import * as
|
|
24742
|
-
import { jsx as
|
|
25291
|
+
import * as React82 from "react";
|
|
25292
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
24743
25293
|
var TableCellCopy = ({ text, ...rest }) => {
|
|
24744
25294
|
const { t } = useTranslation();
|
|
24745
|
-
const [isCopied, setIsCopied] =
|
|
24746
|
-
const [showIcon, setShowIcon] =
|
|
25295
|
+
const [isCopied, setIsCopied] = React82.useState(false);
|
|
25296
|
+
const [showIcon, setShowIcon] = React82.useState(false);
|
|
24747
25297
|
const manageButtonClicked = () => {
|
|
24748
25298
|
void navigator.clipboard.writeText(text);
|
|
24749
25299
|
if (isCopied) {
|
|
@@ -24757,7 +25307,7 @@ var TableCellCopy = ({ text, ...rest }) => {
|
|
|
24757
25307
|
const getIconId = () => !isCopied ? "content-copy" : "check";
|
|
24758
25308
|
const iconHiddenClass = "icon-hidden";
|
|
24759
25309
|
const iconCopiedClass = "icon-copied";
|
|
24760
|
-
return /* @__PURE__ */
|
|
25310
|
+
return /* @__PURE__ */ jsx156(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx156(
|
|
24761
25311
|
Stack_default,
|
|
24762
25312
|
{
|
|
24763
25313
|
direction: "row",
|
|
@@ -24766,7 +25316,7 @@ var TableCellCopy = ({ text, ...rest }) => {
|
|
|
24766
25316
|
onMouseEnter: () => setShowIcon(true),
|
|
24767
25317
|
onMouseLeave: () => setShowIcon(false),
|
|
24768
25318
|
onClick: manageButtonClicked,
|
|
24769
|
-
children: /* @__PURE__ */
|
|
25319
|
+
children: /* @__PURE__ */ jsx156(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx156(
|
|
24770
25320
|
Button_default,
|
|
24771
25321
|
{
|
|
24772
25322
|
className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
|
|
@@ -24796,21 +25346,21 @@ var TableCellCopy_default = TableCellCopy;
|
|
|
24796
25346
|
|
|
24797
25347
|
// src/components/table/TableHead.tsx
|
|
24798
25348
|
import { TableHead as MuiTableHead } from "@mui/material";
|
|
24799
|
-
import { jsx as
|
|
24800
|
-
var TableHead = ({ children }) => /* @__PURE__ */
|
|
25349
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
25350
|
+
var TableHead = ({ children }) => /* @__PURE__ */ jsx157(MuiTableHead, { children });
|
|
24801
25351
|
var TableHead_default = TableHead;
|
|
24802
25352
|
|
|
24803
25353
|
// src/components/table/TableRow.tsx
|
|
24804
25354
|
import {
|
|
24805
25355
|
TableRow as MuiTableRow2
|
|
24806
25356
|
} from "@mui/material";
|
|
24807
|
-
import { jsx as
|
|
25357
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
24808
25358
|
var TableRow = ({
|
|
24809
25359
|
children,
|
|
24810
25360
|
isFollowedByNestedTable = false,
|
|
24811
25361
|
fadeInLeftAnimation = false,
|
|
24812
25362
|
sx
|
|
24813
|
-
}) => /* @__PURE__ */
|
|
25363
|
+
}) => /* @__PURE__ */ jsx158(
|
|
24814
25364
|
MuiTableRow2,
|
|
24815
25365
|
{
|
|
24816
25366
|
className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
|
|
@@ -24822,14 +25372,14 @@ var TableRow_default = TableRow;
|
|
|
24822
25372
|
|
|
24823
25373
|
// src/components/table/NestedTable.tsx
|
|
24824
25374
|
import { Collapse as Collapse7 } from "@mui/material";
|
|
24825
|
-
import { jsx as
|
|
25375
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
24826
25376
|
var NestedTable = ({
|
|
24827
25377
|
colSpan,
|
|
24828
25378
|
children,
|
|
24829
25379
|
className = "",
|
|
24830
25380
|
sx,
|
|
24831
25381
|
isVisible = true
|
|
24832
|
-
}) => /* @__PURE__ */
|
|
25382
|
+
}) => /* @__PURE__ */ jsx159(TableRow_default, { children: /* @__PURE__ */ jsx159(
|
|
24833
25383
|
TableCell_default,
|
|
24834
25384
|
{
|
|
24835
25385
|
colSpan,
|
|
@@ -24838,14 +25388,14 @@ var NestedTable = ({
|
|
|
24838
25388
|
height: "auto",
|
|
24839
25389
|
...!isVisible && { borderBottom: "none" }
|
|
24840
25390
|
},
|
|
24841
|
-
children: /* @__PURE__ */
|
|
25391
|
+
children: /* @__PURE__ */ jsx159(Collapse7, { in: isVisible, children: /* @__PURE__ */ jsx159(Box_default, { sx: { padding: "16px", backgroundColor: grey100 }, children: /* @__PURE__ */ jsx159(Paper_default, { children: /* @__PURE__ */ jsx159(Table_default, { sx, className: `Nested-Table ${className}`, children }) }) }) })
|
|
24842
25392
|
}
|
|
24843
25393
|
) });
|
|
24844
25394
|
var NestedTable_default = NestedTable;
|
|
24845
25395
|
|
|
24846
25396
|
// src/components/toolbar/ToolbarBreadcrumb.tsx
|
|
24847
|
-
import { jsx as
|
|
24848
|
-
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */
|
|
25397
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
25398
|
+
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx160(
|
|
24849
25399
|
Stack_default,
|
|
24850
25400
|
{
|
|
24851
25401
|
direction: "row",
|
|
@@ -24855,7 +25405,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx159(
|
|
|
24855
25405
|
(previous, current, index) => [
|
|
24856
25406
|
...previous,
|
|
24857
25407
|
...index > 0 ? [
|
|
24858
|
-
/* @__PURE__ */
|
|
25408
|
+
/* @__PURE__ */ jsx160(
|
|
24859
25409
|
Typography_default,
|
|
24860
25410
|
{
|
|
24861
25411
|
color: grey500,
|
|
@@ -24878,10 +25428,10 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
24878
25428
|
|
|
24879
25429
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
24880
25430
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
24881
|
-
import * as
|
|
24882
|
-
import { jsx as
|
|
24883
|
-
var ToolbarBreadcrumbButton =
|
|
24884
|
-
return /* @__PURE__ */
|
|
25431
|
+
import * as React83 from "react";
|
|
25432
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
25433
|
+
var ToolbarBreadcrumbButton = React83.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
25434
|
+
return /* @__PURE__ */ jsx161(
|
|
24885
25435
|
ButtonBase5,
|
|
24886
25436
|
{
|
|
24887
25437
|
className: `Cn-ToolbarBreadcrumbButton ${className}`,
|
|
@@ -24900,14 +25450,14 @@ var ToolbarBreadcrumbButton = React82.forwardRef(function ToolbarBreadcrumbButto
|
|
|
24900
25450
|
}
|
|
24901
25451
|
},
|
|
24902
25452
|
...rest,
|
|
24903
|
-
children: /* @__PURE__ */
|
|
25453
|
+
children: /* @__PURE__ */ jsx161(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
|
|
24904
25454
|
}
|
|
24905
25455
|
);
|
|
24906
25456
|
});
|
|
24907
25457
|
var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
|
|
24908
25458
|
|
|
24909
25459
|
// src/components/toolbar/Toolbar.tsx
|
|
24910
|
-
import { jsx as
|
|
25460
|
+
import { jsx as jsx162, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
24911
25461
|
var Toolbar = ({
|
|
24912
25462
|
children,
|
|
24913
25463
|
rightActions,
|
|
@@ -24948,7 +25498,7 @@ var Toolbar = ({
|
|
|
24948
25498
|
width: "100%"
|
|
24949
25499
|
},
|
|
24950
25500
|
children: [
|
|
24951
|
-
leftActions && /* @__PURE__ */
|
|
25501
|
+
leftActions && /* @__PURE__ */ jsx162(
|
|
24952
25502
|
Box_default,
|
|
24953
25503
|
{
|
|
24954
25504
|
className: `Cn-Toolbar-left`,
|
|
@@ -24958,7 +25508,7 @@ var Toolbar = ({
|
|
|
24958
25508
|
children: leftActions
|
|
24959
25509
|
}
|
|
24960
25510
|
),
|
|
24961
|
-
/* @__PURE__ */
|
|
25511
|
+
/* @__PURE__ */ jsx162(
|
|
24962
25512
|
Box_default,
|
|
24963
25513
|
{
|
|
24964
25514
|
className: `Cn-Toolbar-children`,
|
|
@@ -24973,7 +25523,7 @@ var Toolbar = ({
|
|
|
24973
25523
|
]
|
|
24974
25524
|
}
|
|
24975
25525
|
),
|
|
24976
|
-
rightActions && /* @__PURE__ */
|
|
25526
|
+
rightActions && /* @__PURE__ */ jsx162(
|
|
24977
25527
|
Box_default,
|
|
24978
25528
|
{
|
|
24979
25529
|
className: `Cn-Toolbar-right`,
|
|
@@ -24992,19 +25542,19 @@ var Toolbar = ({
|
|
|
24992
25542
|
var Toolbar_default = Toolbar;
|
|
24993
25543
|
|
|
24994
25544
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
24995
|
-
import * as
|
|
24996
|
-
import { useState as
|
|
24997
|
-
import { jsx as
|
|
24998
|
-
var ToolbarTitle =
|
|
25545
|
+
import * as React84 from "react";
|
|
25546
|
+
import { useState as useState34 } from "react";
|
|
25547
|
+
import { jsx as jsx163, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
25548
|
+
var ToolbarTitle = React84.forwardRef(function ToolbarTitle2({
|
|
24999
25549
|
title,
|
|
25000
25550
|
align = "left",
|
|
25001
25551
|
className,
|
|
25002
25552
|
hoverActions,
|
|
25003
25553
|
color: color2 = grey900
|
|
25004
25554
|
}, ref) {
|
|
25005
|
-
const textElementRef =
|
|
25006
|
-
const [showHoverActions, setShowHoverActions] =
|
|
25007
|
-
return /* @__PURE__ */
|
|
25555
|
+
const textElementRef = React84.useRef(null);
|
|
25556
|
+
const [showHoverActions, setShowHoverActions] = useState34(false);
|
|
25557
|
+
return /* @__PURE__ */ jsx163(Box_default, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx163(
|
|
25008
25558
|
TextEllipsisTooltip_default,
|
|
25009
25559
|
{
|
|
25010
25560
|
title: title ?? "\xA0",
|
|
@@ -25027,7 +25577,7 @@ var ToolbarTitle = React83.forwardRef(function ToolbarTitle2({
|
|
|
25027
25577
|
},
|
|
25028
25578
|
children: [
|
|
25029
25579
|
title || "\xA0",
|
|
25030
|
-
hoverActions && showHoverActions && /* @__PURE__ */
|
|
25580
|
+
hoverActions && showHoverActions && /* @__PURE__ */ jsx163(
|
|
25031
25581
|
Box_default,
|
|
25032
25582
|
{
|
|
25033
25583
|
sx: {
|
|
@@ -25056,13 +25606,13 @@ var Slide_default = Slide;
|
|
|
25056
25606
|
|
|
25057
25607
|
// src/components/widget/WidgetLegendItem.tsx
|
|
25058
25608
|
import { ButtonBase as ButtonBase6 } from "@mui/material";
|
|
25059
|
-
import { jsx as
|
|
25609
|
+
import { jsx as jsx164, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
25060
25610
|
var WidgetLegendItem = ({
|
|
25061
25611
|
groupLabel,
|
|
25062
25612
|
legendDirection = "column",
|
|
25063
25613
|
items = [],
|
|
25064
25614
|
onClick
|
|
25065
|
-
}) => /* @__PURE__ */
|
|
25615
|
+
}) => /* @__PURE__ */ jsx164(
|
|
25066
25616
|
ButtonBase6,
|
|
25067
25617
|
{
|
|
25068
25618
|
tabIndex: onClick ? 0 : -1,
|
|
@@ -25088,7 +25638,7 @@ var WidgetLegendItem = ({
|
|
|
25088
25638
|
color: grey800
|
|
25089
25639
|
},
|
|
25090
25640
|
children: [
|
|
25091
|
-
groupLabel && /* @__PURE__ */
|
|
25641
|
+
groupLabel && /* @__PURE__ */ jsx164(
|
|
25092
25642
|
Typography_default,
|
|
25093
25643
|
{
|
|
25094
25644
|
variant: "overline",
|
|
@@ -25120,7 +25670,7 @@ var WidgetLegendItem = ({
|
|
|
25120
25670
|
paddingRight: legendDirection === "row" ? "12px" : "inherit"
|
|
25121
25671
|
},
|
|
25122
25672
|
children: [
|
|
25123
|
-
iconColor && /* @__PURE__ */
|
|
25673
|
+
iconColor && /* @__PURE__ */ jsx164(
|
|
25124
25674
|
Icon_default,
|
|
25125
25675
|
{
|
|
25126
25676
|
id: iconId,
|
|
@@ -25131,7 +25681,7 @@ var WidgetLegendItem = ({
|
|
|
25131
25681
|
size: iconSize
|
|
25132
25682
|
}
|
|
25133
25683
|
),
|
|
25134
|
-
label && /* @__PURE__ */
|
|
25684
|
+
label && /* @__PURE__ */ jsx164(
|
|
25135
25685
|
Typography_default,
|
|
25136
25686
|
{
|
|
25137
25687
|
variant: "caption",
|
|
@@ -25140,7 +25690,7 @@ var WidgetLegendItem = ({
|
|
|
25140
25690
|
children: label
|
|
25141
25691
|
}
|
|
25142
25692
|
),
|
|
25143
|
-
value && /* @__PURE__ */
|
|
25693
|
+
value && /* @__PURE__ */ jsx164(
|
|
25144
25694
|
Typography_default,
|
|
25145
25695
|
{
|
|
25146
25696
|
sx: style3,
|
|
@@ -25149,7 +25699,7 @@ var WidgetLegendItem = ({
|
|
|
25149
25699
|
children: value
|
|
25150
25700
|
}
|
|
25151
25701
|
),
|
|
25152
|
-
incrementLabelValue && /* @__PURE__ */
|
|
25702
|
+
incrementLabelValue && /* @__PURE__ */ jsx164(
|
|
25153
25703
|
IncrementLabel_default,
|
|
25154
25704
|
{
|
|
25155
25705
|
label: incrementLabelValue,
|
|
@@ -25175,8 +25725,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
|
|
|
25175
25725
|
|
|
25176
25726
|
// src/components/widget/Widget.tsx
|
|
25177
25727
|
import MuiCard2 from "@mui/material/Card";
|
|
25178
|
-
import { jsx as
|
|
25179
|
-
var Widget = ({ children }) => /* @__PURE__ */
|
|
25728
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
25729
|
+
var Widget = ({ children }) => /* @__PURE__ */ jsx165(
|
|
25180
25730
|
MuiCard2,
|
|
25181
25731
|
{
|
|
25182
25732
|
variant: "elevation",
|
|
@@ -25200,8 +25750,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx164(
|
|
|
25200
25750
|
var Widget_default = Widget;
|
|
25201
25751
|
|
|
25202
25752
|
// src/components/widget/WidgetActions.tsx
|
|
25203
|
-
import { jsx as
|
|
25204
|
-
var WidgetActions = ({ children }) => /* @__PURE__ */
|
|
25753
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
25754
|
+
var WidgetActions = ({ children }) => /* @__PURE__ */ jsx166(
|
|
25205
25755
|
Box_default,
|
|
25206
25756
|
{
|
|
25207
25757
|
sx: {
|
|
@@ -25215,8 +25765,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx165(
|
|
|
25215
25765
|
var WidgetActions_default = WidgetActions;
|
|
25216
25766
|
|
|
25217
25767
|
// src/components/widget/WidgetTitle.tsx
|
|
25218
|
-
import { jsx as
|
|
25219
|
-
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */
|
|
25768
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
25769
|
+
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx167(
|
|
25220
25770
|
Box_default,
|
|
25221
25771
|
{
|
|
25222
25772
|
sx: {
|
|
@@ -25226,7 +25776,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
25226
25776
|
maxWidth: "100%",
|
|
25227
25777
|
...sx
|
|
25228
25778
|
},
|
|
25229
|
-
children: /* @__PURE__ */
|
|
25779
|
+
children: /* @__PURE__ */ jsx167(
|
|
25230
25780
|
Typography_default,
|
|
25231
25781
|
{
|
|
25232
25782
|
variant: "subtitle2",
|
|
@@ -25240,18 +25790,18 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
25240
25790
|
}
|
|
25241
25791
|
)
|
|
25242
25792
|
}
|
|
25243
|
-
) : /* @__PURE__ */
|
|
25793
|
+
) : /* @__PURE__ */ jsx167("span", {});
|
|
25244
25794
|
var WidgetTitle_default = WidgetTitle;
|
|
25245
25795
|
|
|
25246
25796
|
// src/components/window/MinimizableWindow.tsx
|
|
25247
|
-
import * as
|
|
25248
|
-
import { Fragment as
|
|
25797
|
+
import * as React85 from "react";
|
|
25798
|
+
import { Fragment as Fragment33, jsx as jsx168, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
25249
25799
|
var sizes6 = {
|
|
25250
25800
|
M: 400,
|
|
25251
25801
|
L: 500,
|
|
25252
25802
|
XL: 600
|
|
25253
25803
|
};
|
|
25254
|
-
var
|
|
25804
|
+
var styles2 = {
|
|
25255
25805
|
backgroundColor: dark900,
|
|
25256
25806
|
color: "white",
|
|
25257
25807
|
borderRadius: "16px",
|
|
@@ -25270,7 +25820,7 @@ var iconButtonsStyles = {
|
|
|
25270
25820
|
backgroundColor: "rgba(255, 255, 255, 0.2)"
|
|
25271
25821
|
}
|
|
25272
25822
|
};
|
|
25273
|
-
var MinimizableWindow =
|
|
25823
|
+
var MinimizableWindow = React85.forwardRef(function MinimizableWindow2({
|
|
25274
25824
|
children,
|
|
25275
25825
|
title,
|
|
25276
25826
|
size = "M",
|
|
@@ -25285,17 +25835,17 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25285
25835
|
onBack
|
|
25286
25836
|
}, ref) {
|
|
25287
25837
|
const { t } = useTranslation();
|
|
25288
|
-
const overlayRef =
|
|
25289
|
-
const windowRef =
|
|
25290
|
-
const headerRef =
|
|
25291
|
-
const [isDraggingState, setIsDraggingState] =
|
|
25292
|
-
const diffRef =
|
|
25293
|
-
|
|
25838
|
+
const overlayRef = React85.useRef(null);
|
|
25839
|
+
const windowRef = React85.useRef(null);
|
|
25840
|
+
const headerRef = React85.useRef(null);
|
|
25841
|
+
const [isDraggingState, setIsDraggingState] = React85.useState(false);
|
|
25842
|
+
const diffRef = React85.useRef({ x: 0, y: 0 });
|
|
25843
|
+
React85.useImperativeHandle(ref, () => ({
|
|
25294
25844
|
window: windowRef.current,
|
|
25295
25845
|
header: headerRef.current,
|
|
25296
25846
|
overlay: overlayRef.current
|
|
25297
25847
|
}));
|
|
25298
|
-
|
|
25848
|
+
React85.useEffect(() => {
|
|
25299
25849
|
if (open) {
|
|
25300
25850
|
overlayRef.current?.style.removeProperty("transform");
|
|
25301
25851
|
overlayRef.current?.style.removeProperty("opacity");
|
|
@@ -25357,8 +25907,8 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25357
25907
|
}
|
|
25358
25908
|
}, 750);
|
|
25359
25909
|
};
|
|
25360
|
-
return /* @__PURE__ */ jsxs78(
|
|
25361
|
-
isDraggingState && /* @__PURE__ */
|
|
25910
|
+
return /* @__PURE__ */ jsxs78(Fragment33, { children: [
|
|
25911
|
+
isDraggingState && /* @__PURE__ */ jsx168(
|
|
25362
25912
|
Box_default,
|
|
25363
25913
|
{
|
|
25364
25914
|
sx: {
|
|
@@ -25374,7 +25924,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25374
25924
|
onMouseMove: (ev) => handleMouseMove(ev)
|
|
25375
25925
|
}
|
|
25376
25926
|
),
|
|
25377
|
-
/* @__PURE__ */
|
|
25927
|
+
/* @__PURE__ */ jsx168(
|
|
25378
25928
|
Box_default,
|
|
25379
25929
|
{
|
|
25380
25930
|
ref: overlayRef,
|
|
@@ -25395,7 +25945,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25395
25945
|
Stack_default,
|
|
25396
25946
|
{
|
|
25397
25947
|
sx: {
|
|
25398
|
-
...
|
|
25948
|
+
...styles2,
|
|
25399
25949
|
...sx
|
|
25400
25950
|
},
|
|
25401
25951
|
ref: windowRef,
|
|
@@ -25416,19 +25966,19 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25416
25966
|
onMouseDown: handleMouseDown,
|
|
25417
25967
|
minHeight: "44px",
|
|
25418
25968
|
children: [
|
|
25419
|
-
/* @__PURE__ */
|
|
25969
|
+
/* @__PURE__ */ jsx168(
|
|
25420
25970
|
Stack_default,
|
|
25421
25971
|
{
|
|
25422
25972
|
direction: "row",
|
|
25423
25973
|
alignItems: "center",
|
|
25424
25974
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
25425
|
-
children: showBackButton && /* @__PURE__ */
|
|
25975
|
+
children: showBackButton && /* @__PURE__ */ jsx168(
|
|
25426
25976
|
Tooltip_default,
|
|
25427
25977
|
{
|
|
25428
25978
|
title: t("MINIMIZABLE_WINDOW.GO_BACK"),
|
|
25429
25979
|
zIndex: 999999,
|
|
25430
25980
|
placement: "top",
|
|
25431
|
-
children: /* @__PURE__ */
|
|
25981
|
+
children: /* @__PURE__ */ jsx168(
|
|
25432
25982
|
IconButton_default,
|
|
25433
25983
|
{
|
|
25434
25984
|
size: "S",
|
|
@@ -25441,7 +25991,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25441
25991
|
)
|
|
25442
25992
|
}
|
|
25443
25993
|
),
|
|
25444
|
-
/* @__PURE__ */
|
|
25994
|
+
/* @__PURE__ */ jsx168(
|
|
25445
25995
|
Box_default,
|
|
25446
25996
|
{
|
|
25447
25997
|
sx: {
|
|
@@ -25449,7 +25999,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25449
25999
|
left: "50%",
|
|
25450
26000
|
transform: "translateX(-50%)"
|
|
25451
26001
|
},
|
|
25452
|
-
children: typeof title === "string" ? /* @__PURE__ */
|
|
26002
|
+
children: typeof title === "string" ? /* @__PURE__ */ jsx168(Typography_default, { children: title }) : title
|
|
25453
26003
|
}
|
|
25454
26004
|
),
|
|
25455
26005
|
/* @__PURE__ */ jsxs78(
|
|
@@ -25459,13 +26009,13 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25459
26009
|
alignItems: "center",
|
|
25460
26010
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
25461
26011
|
children: [
|
|
25462
|
-
/* @__PURE__ */
|
|
26012
|
+
/* @__PURE__ */ jsx168(Box_default, { children: /* @__PURE__ */ jsx168(
|
|
25463
26013
|
Tooltip_default,
|
|
25464
26014
|
{
|
|
25465
26015
|
title: t("MINIMIZABLE_WINDOW.MINIMIZE"),
|
|
25466
26016
|
zIndex: 999999,
|
|
25467
26017
|
placement: "top",
|
|
25468
|
-
children: /* @__PURE__ */
|
|
26018
|
+
children: /* @__PURE__ */ jsx168(
|
|
25469
26019
|
IconButton_default,
|
|
25470
26020
|
{
|
|
25471
26021
|
size: "S",
|
|
@@ -25481,13 +26031,13 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25481
26031
|
)
|
|
25482
26032
|
}
|
|
25483
26033
|
) }),
|
|
25484
|
-
closeable && /* @__PURE__ */
|
|
26034
|
+
closeable && /* @__PURE__ */ jsx168(Box_default, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx168(
|
|
25485
26035
|
Tooltip_default,
|
|
25486
26036
|
{
|
|
25487
26037
|
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
25488
26038
|
zIndex: 999999,
|
|
25489
26039
|
placement: "top",
|
|
25490
|
-
children: /* @__PURE__ */
|
|
26040
|
+
children: /* @__PURE__ */ jsx168(
|
|
25491
26041
|
IconButton_default,
|
|
25492
26042
|
{
|
|
25493
26043
|
size: "S",
|
|
@@ -25504,7 +26054,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25504
26054
|
]
|
|
25505
26055
|
}
|
|
25506
26056
|
),
|
|
25507
|
-
/* @__PURE__ */
|
|
26057
|
+
/* @__PURE__ */ jsx168(
|
|
25508
26058
|
Stack_default,
|
|
25509
26059
|
{
|
|
25510
26060
|
sx: {
|
|
@@ -25770,9 +26320,18 @@ react-is/cjs/react-is.development.js:
|
|
|
25770
26320
|
* LICENSE file in the root directory of this source tree.
|
|
25771
26321
|
*)
|
|
25772
26322
|
|
|
25773
|
-
@mui/styled-engine/index.js:
|
|
26323
|
+
@mui/styled-engine/esm/index.js:
|
|
26324
|
+
(**
|
|
26325
|
+
* @mui/styled-engine v7.2.0
|
|
26326
|
+
*
|
|
26327
|
+
* @license MIT
|
|
26328
|
+
* This source code is licensed under the MIT license found in the
|
|
26329
|
+
* LICENSE file in the root directory of this source tree.
|
|
26330
|
+
*)
|
|
26331
|
+
|
|
26332
|
+
@mui/system/esm/index.js:
|
|
25774
26333
|
(**
|
|
25775
|
-
* @mui/
|
|
26334
|
+
* @mui/system v7.2.0
|
|
25776
26335
|
*
|
|
25777
26336
|
* @license MIT
|
|
25778
26337
|
* This source code is licensed under the MIT license found in the
|