@connectif/ui-components 1.0.8 → 2.0.0
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 +1175 -621
- 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 Box8 = /* @__PURE__ */ React16.forwardRef(function Box9(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 Box8;
|
|
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
|
-
|
|
8459
|
+
expressionsTail.push(styleFunctionSx_default);
|
|
8064
8460
|
}
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
const
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
let displayName;
|
|
8074
|
-
if (componentName) {
|
|
8075
|
-
displayName = `${componentName}${capitalize(componentSlot || "")}`;
|
|
8076
|
-
}
|
|
8077
|
-
if (displayName === void 0) {
|
|
8078
|
-
displayName = `Styled(${getDisplayName(tag)})`;
|
|
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
|
|
|
@@ -8926,17 +9355,8 @@ var theme = createTheme2({
|
|
|
8926
9355
|
});
|
|
8927
9356
|
|
|
8928
9357
|
// src/components/tooltip/TooltipMenu.tsx
|
|
8929
|
-
import { Tooltip as
|
|
8930
|
-
import { styled as styled4 } from "@mui/material/styles";
|
|
9358
|
+
import { Tooltip as Tooltip3, tooltipClasses } from "@mui/material";
|
|
8931
9359
|
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
9360
|
var TooltipMenu = ({
|
|
8941
9361
|
children,
|
|
8942
9362
|
placement = "top-start",
|
|
@@ -8945,15 +9365,22 @@ var TooltipMenu = ({
|
|
|
8945
9365
|
offsetTop = 0,
|
|
8946
9366
|
offsetLeft = 0
|
|
8947
9367
|
}) => /* @__PURE__ */ jsx30(
|
|
8948
|
-
|
|
9368
|
+
Tooltip3,
|
|
8949
9369
|
{
|
|
8950
|
-
|
|
9370
|
+
slotProps: {
|
|
8951
9371
|
popper: {
|
|
8952
9372
|
sx: {
|
|
8953
|
-
zIndex: 1200
|
|
9373
|
+
zIndex: 1200,
|
|
8954
9374
|
// Make lower z-index of Popper component of this
|
|
8955
9375
|
// tooltip so it is shown under any inner Menu-like component (like a MenuIconButton
|
|
8956
9376
|
// or a MenuButton) which usually have z-index 1300
|
|
9377
|
+
pointerEvents: "auto",
|
|
9378
|
+
[`& .${tooltipClasses.tooltip}`]: {
|
|
9379
|
+
margin: "0 !important",
|
|
9380
|
+
padding: 0,
|
|
9381
|
+
border: "none",
|
|
9382
|
+
background: "transparent"
|
|
9383
|
+
}
|
|
8957
9384
|
},
|
|
8958
9385
|
modifiers: [
|
|
8959
9386
|
{
|
|
@@ -9094,7 +9521,7 @@ var AvatarCard_default = AvatarCard;
|
|
|
9094
9521
|
// src/components/button/MenuIconButton.tsx
|
|
9095
9522
|
import * as React19 from "react";
|
|
9096
9523
|
import MuiMenu from "@mui/material/Menu";
|
|
9097
|
-
import { Fragment as
|
|
9524
|
+
import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9098
9525
|
var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
9099
9526
|
children,
|
|
9100
9527
|
isOpen: managedIsOpen,
|
|
@@ -9139,7 +9566,7 @@ var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
|
9139
9566
|
setAnchorEl(element);
|
|
9140
9567
|
};
|
|
9141
9568
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
9142
|
-
return /* @__PURE__ */ jsxs13(
|
|
9569
|
+
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
9143
9570
|
/* @__PURE__ */ jsx33(
|
|
9144
9571
|
IconButton_default,
|
|
9145
9572
|
{
|
|
@@ -9870,7 +10297,7 @@ var ButtonWithActions_default = ButtonWithActions;
|
|
|
9870
10297
|
// src/components/button/MenuButton.tsx
|
|
9871
10298
|
import * as React24 from "react";
|
|
9872
10299
|
import MuiMenu3 from "@mui/material/Menu";
|
|
9873
|
-
import { Fragment as
|
|
10300
|
+
import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
9874
10301
|
var MenuButton = React24.forwardRef(function MenuButton2({
|
|
9875
10302
|
children,
|
|
9876
10303
|
isOpen: managedIsOpen,
|
|
@@ -9915,7 +10342,7 @@ var MenuButton = React24.forwardRef(function MenuButton2({
|
|
|
9915
10342
|
setAnchorEl(element);
|
|
9916
10343
|
};
|
|
9917
10344
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
9918
|
-
return /* @__PURE__ */ jsxs18(
|
|
10345
|
+
return /* @__PURE__ */ jsxs18(Fragment5, { children: [
|
|
9919
10346
|
/* @__PURE__ */ jsx42(
|
|
9920
10347
|
Button_default,
|
|
9921
10348
|
{
|
|
@@ -10257,7 +10684,7 @@ var EnhancedCardTitle = ({
|
|
|
10257
10684
|
text,
|
|
10258
10685
|
justify = "center",
|
|
10259
10686
|
forceHeight = false,
|
|
10260
|
-
cursor = "default",
|
|
10687
|
+
cursor: cursor2 = "default",
|
|
10261
10688
|
variant = "body2",
|
|
10262
10689
|
size = "M",
|
|
10263
10690
|
dataTest
|
|
@@ -10281,7 +10708,7 @@ var EnhancedCardTitle = ({
|
|
|
10281
10708
|
sx: {
|
|
10282
10709
|
textAlign: justify,
|
|
10283
10710
|
userSelect: "none",
|
|
10284
|
-
cursor
|
|
10711
|
+
cursor: cursor2
|
|
10285
10712
|
},
|
|
10286
10713
|
text,
|
|
10287
10714
|
color: grey900,
|
|
@@ -10301,7 +10728,7 @@ import { jsx as jsx50 } from "react/jsx-runtime";
|
|
|
10301
10728
|
var EnhancedCardSubtitle = ({
|
|
10302
10729
|
text,
|
|
10303
10730
|
justify = "center",
|
|
10304
|
-
cursor = "default",
|
|
10731
|
+
cursor: cursor2 = "default",
|
|
10305
10732
|
variant = "body2",
|
|
10306
10733
|
dataTest
|
|
10307
10734
|
}) => /* @__PURE__ */ jsx50(
|
|
@@ -10320,7 +10747,7 @@ var EnhancedCardSubtitle = ({
|
|
|
10320
10747
|
sx: {
|
|
10321
10748
|
textAlign: justify,
|
|
10322
10749
|
userSelect: "none",
|
|
10323
|
-
cursor
|
|
10750
|
+
cursor: cursor2
|
|
10324
10751
|
},
|
|
10325
10752
|
text,
|
|
10326
10753
|
color: grey600,
|
|
@@ -10814,7 +11241,7 @@ import * as React30 from "react";
|
|
|
10814
11241
|
// src/components/chip/MenuChip.tsx
|
|
10815
11242
|
import * as React29 from "react";
|
|
10816
11243
|
import MuiMenu4 from "@mui/material/Menu";
|
|
10817
|
-
import { Fragment as
|
|
11244
|
+
import { Fragment as Fragment6, jsx as jsx60, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
10818
11245
|
var MenuChip = React29.forwardRef(function MenuChip2({
|
|
10819
11246
|
children,
|
|
10820
11247
|
isOpen: managedIsOpen,
|
|
@@ -10856,7 +11283,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
|
|
|
10856
11283
|
setAnchorEl(element);
|
|
10857
11284
|
};
|
|
10858
11285
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
10859
|
-
return /* @__PURE__ */ jsxs23(
|
|
11286
|
+
return /* @__PURE__ */ jsxs23(Fragment6, { children: [
|
|
10860
11287
|
/* @__PURE__ */ jsx60(
|
|
10861
11288
|
Chip_default,
|
|
10862
11289
|
{
|
|
@@ -10902,7 +11329,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
|
|
|
10902
11329
|
var MenuChip_default = MenuChip;
|
|
10903
11330
|
|
|
10904
11331
|
// src/components/card/EnhancedCard.tsx
|
|
10905
|
-
import { Fragment as
|
|
11332
|
+
import { Fragment as Fragment7, jsx as jsx61, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
10906
11333
|
var cardWidthBySize = {
|
|
10907
11334
|
S: 110,
|
|
10908
11335
|
M: 110,
|
|
@@ -10985,7 +11412,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
10985
11412
|
rightIconId,
|
|
10986
11413
|
dataTest,
|
|
10987
11414
|
disableHover = false,
|
|
10988
|
-
cursor,
|
|
11415
|
+
cursor: cursor2,
|
|
10989
11416
|
actionProps,
|
|
10990
11417
|
showActionOnHover = false,
|
|
10991
11418
|
badgeProps,
|
|
@@ -11012,7 +11439,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11012
11439
|
const cardStyle = {
|
|
11013
11440
|
...getCardStyles(size),
|
|
11014
11441
|
...disableHover ? {} : hoverCardStyle,
|
|
11015
|
-
cursor,
|
|
11442
|
+
cursor: cursor2,
|
|
11016
11443
|
...selected && {
|
|
11017
11444
|
boxShadow: "0 0 0 3px",
|
|
11018
11445
|
color: primary600
|
|
@@ -11036,7 +11463,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11036
11463
|
{
|
|
11037
11464
|
size,
|
|
11038
11465
|
dataTest,
|
|
11039
|
-
cursor,
|
|
11466
|
+
cursor: cursor2,
|
|
11040
11467
|
...getChildProps()
|
|
11041
11468
|
}
|
|
11042
11469
|
);
|
|
@@ -11057,12 +11484,12 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11057
11484
|
titleProps: {
|
|
11058
11485
|
size,
|
|
11059
11486
|
dataTest,
|
|
11060
|
-
cursor
|
|
11487
|
+
cursor: cursor2
|
|
11061
11488
|
},
|
|
11062
11489
|
subtitleProps: {
|
|
11063
11490
|
size,
|
|
11064
11491
|
dataTest,
|
|
11065
|
-
cursor
|
|
11492
|
+
cursor: cursor2
|
|
11066
11493
|
},
|
|
11067
11494
|
...getChildProps()
|
|
11068
11495
|
}
|
|
@@ -11233,7 +11660,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11233
11660
|
backgroundColor: primary200
|
|
11234
11661
|
}
|
|
11235
11662
|
} : {
|
|
11236
|
-
cursor
|
|
11663
|
+
cursor: cursor2
|
|
11237
11664
|
}
|
|
11238
11665
|
},
|
|
11239
11666
|
size: "S",
|
|
@@ -11247,7 +11674,7 @@ var EnhancedCard = React30.forwardRef(
|
|
|
11247
11674
|
)
|
|
11248
11675
|
}
|
|
11249
11676
|
),
|
|
11250
|
-
isHovered && hoverComponent && /* @__PURE__ */ jsxs24(
|
|
11677
|
+
isHovered && hoverComponent && /* @__PURE__ */ jsxs24(Fragment7, { children: [
|
|
11251
11678
|
/* @__PURE__ */ jsx61(
|
|
11252
11679
|
Box_default,
|
|
11253
11680
|
{
|
|
@@ -11563,7 +11990,7 @@ var BarChart2 = ({
|
|
|
11563
11990
|
}),
|
|
11564
11991
|
onClick
|
|
11565
11992
|
}) => {
|
|
11566
|
-
const
|
|
11993
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
11567
11994
|
const silent = onClick ? false : true;
|
|
11568
11995
|
const isComparison = series.some(
|
|
11569
11996
|
(s) => s.data.some((d) => d.comparisonValue !== void 0)
|
|
@@ -11729,7 +12156,7 @@ var BarChart2 = ({
|
|
|
11729
12156
|
...isComparison ? [
|
|
11730
12157
|
{
|
|
11731
12158
|
...defaultBarSeriesOptions,
|
|
11732
|
-
cursor,
|
|
12159
|
+
cursor: cursor2,
|
|
11733
12160
|
silent,
|
|
11734
12161
|
showBackground: false,
|
|
11735
12162
|
stack: `${serieIndex}`,
|
|
@@ -11761,7 +12188,7 @@ var BarChart2 = ({
|
|
|
11761
12188
|
] : [],
|
|
11762
12189
|
{
|
|
11763
12190
|
...defaultBarSeriesOptions,
|
|
11764
|
-
cursor,
|
|
12191
|
+
cursor: cursor2,
|
|
11765
12192
|
silent,
|
|
11766
12193
|
showBackground: true,
|
|
11767
12194
|
stack: `${serieIndex}`,
|
|
@@ -11841,7 +12268,7 @@ var LineChart2 = ({
|
|
|
11841
12268
|
yAxisPosition = "right"
|
|
11842
12269
|
}) => {
|
|
11843
12270
|
const theme2 = useTheme3();
|
|
11844
|
-
const
|
|
12271
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
11845
12272
|
const silent = onClick ? false : true;
|
|
11846
12273
|
const isComparing = series.some(
|
|
11847
12274
|
(s) => s.data.some((d) => "comparisonValue" in d)
|
|
@@ -12061,7 +12488,7 @@ var LineChart2 = ({
|
|
|
12061
12488
|
type: "line",
|
|
12062
12489
|
name,
|
|
12063
12490
|
yAxisIndex,
|
|
12064
|
-
cursor,
|
|
12491
|
+
cursor: cursor2,
|
|
12065
12492
|
silent,
|
|
12066
12493
|
data: data.map((data2) => data2.value),
|
|
12067
12494
|
color: color2,
|
|
@@ -12090,7 +12517,7 @@ var LineChart2 = ({
|
|
|
12090
12517
|
type: "line",
|
|
12091
12518
|
name,
|
|
12092
12519
|
yAxisIndex,
|
|
12093
|
-
cursor,
|
|
12520
|
+
cursor: cursor2,
|
|
12094
12521
|
silent,
|
|
12095
12522
|
data: data.map(
|
|
12096
12523
|
(data2) => data2.comparisonValue
|
|
@@ -12456,7 +12883,7 @@ var DonutChartLegendItem_default = DonutChartLegendItem;
|
|
|
12456
12883
|
|
|
12457
12884
|
// src/components/chart/DonutChart.tsx
|
|
12458
12885
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
12459
|
-
import { Fragment as
|
|
12886
|
+
import { Fragment as Fragment10, jsx as jsx73, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
12460
12887
|
var DonutChart = ({
|
|
12461
12888
|
style: style3,
|
|
12462
12889
|
isLoading,
|
|
@@ -12469,7 +12896,7 @@ var DonutChart = ({
|
|
|
12469
12896
|
const mainMetricMargin = 10;
|
|
12470
12897
|
const comparisonMetricMargin = 0;
|
|
12471
12898
|
let currentRadius = 100;
|
|
12472
|
-
const
|
|
12899
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
12473
12900
|
const isComparison = (series[0]?.data ?? []).some(
|
|
12474
12901
|
(d) => d.comparisonLabel || d.comparisonValue
|
|
12475
12902
|
);
|
|
@@ -12499,7 +12926,7 @@ var DonutChart = ({
|
|
|
12499
12926
|
);
|
|
12500
12927
|
previous.push({
|
|
12501
12928
|
type: "pie",
|
|
12502
|
-
cursor,
|
|
12929
|
+
cursor: cursor2,
|
|
12503
12930
|
emptyCircleStyle: {
|
|
12504
12931
|
color: alpha4(grey200, 0.5)
|
|
12505
12932
|
},
|
|
@@ -12530,7 +12957,7 @@ var DonutChart = ({
|
|
|
12530
12957
|
currentRadius -= comparisonMetricMargin;
|
|
12531
12958
|
previous.push({
|
|
12532
12959
|
type: "pie",
|
|
12533
|
-
cursor,
|
|
12960
|
+
cursor: cursor2,
|
|
12534
12961
|
emptyCircleStyle: {
|
|
12535
12962
|
color: alpha4(grey200, 0.5)
|
|
12536
12963
|
},
|
|
@@ -12616,7 +13043,7 @@ var DonutChart = ({
|
|
|
12616
13043
|
flexDirection: "column",
|
|
12617
13044
|
...style3
|
|
12618
13045
|
},
|
|
12619
|
-
children: isLoading ? /* @__PURE__ */ jsx73(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs30(
|
|
13046
|
+
children: isLoading ? /* @__PURE__ */ jsx73(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs30(Fragment10, { children: [
|
|
12620
13047
|
/* @__PURE__ */ jsxs30(Box_default, { sx: { flexGrow: 1, position: "relative" }, children: [
|
|
12621
13048
|
title,
|
|
12622
13049
|
/* @__PURE__ */ jsx73(
|
|
@@ -12696,7 +13123,7 @@ var FunnelChart = ({
|
|
|
12696
13123
|
}),
|
|
12697
13124
|
onClick
|
|
12698
13125
|
}) => {
|
|
12699
|
-
const
|
|
13126
|
+
const cursor2 = onClick ? "pointer" : "default";
|
|
12700
13127
|
const silent = onClick ? false : true;
|
|
12701
13128
|
const isComparison = series.some(
|
|
12702
13129
|
(s) => s.data.some((d) => d.comparisonValue !== void 0)
|
|
@@ -12733,7 +13160,7 @@ var FunnelChart = ({
|
|
|
12733
13160
|
};
|
|
12734
13161
|
const defaultBarSeriesOptions = {
|
|
12735
13162
|
type: "bar",
|
|
12736
|
-
cursor,
|
|
13163
|
+
cursor: cursor2,
|
|
12737
13164
|
silent,
|
|
12738
13165
|
barGap: 0,
|
|
12739
13166
|
backgroundStyle: {
|
|
@@ -14955,7 +15382,7 @@ var useTranslation = () => {
|
|
|
14955
15382
|
import {
|
|
14956
15383
|
Dialog as MuiDialog
|
|
14957
15384
|
} from "@mui/material";
|
|
14958
|
-
import { Fragment as
|
|
15385
|
+
import { Fragment as Fragment12, jsx as jsx81, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14959
15386
|
var sizes5 = {
|
|
14960
15387
|
S: "480px",
|
|
14961
15388
|
M: "640px",
|
|
@@ -14977,7 +15404,7 @@ var Dialog = ({
|
|
|
14977
15404
|
onClose,
|
|
14978
15405
|
...rest
|
|
14979
15406
|
}) => {
|
|
14980
|
-
const getDialogContent = () => /* @__PURE__ */ jsxs36(
|
|
15407
|
+
const getDialogContent = () => /* @__PURE__ */ jsxs36(Fragment12, { children: [
|
|
14981
15408
|
/* @__PURE__ */ jsxs36(
|
|
14982
15409
|
Stack_default,
|
|
14983
15410
|
{
|
|
@@ -16950,23 +17377,23 @@ function isValidPhoneNumber(phone) {
|
|
|
16950
17377
|
}
|
|
16951
17378
|
|
|
16952
17379
|
// src/components/formatter/CompactNumberFormatter.tsx
|
|
16953
|
-
import { Fragment as
|
|
17380
|
+
import { Fragment as Fragment13, jsx as jsx85 } from "react/jsx-runtime";
|
|
16954
17381
|
var CompactNumberFormatter = ({ value }) => {
|
|
16955
17382
|
const { locale } = React37.useContext(IntlContext);
|
|
16956
|
-
return /* @__PURE__ */ jsx85(
|
|
17383
|
+
return /* @__PURE__ */ jsx85(Fragment13, { children: formatCompactNumber(value, locale) });
|
|
16957
17384
|
};
|
|
16958
17385
|
var CompactNumberFormatter_default = CompactNumberFormatter;
|
|
16959
17386
|
|
|
16960
17387
|
// src/components/formatter/CurrencyFormatter.tsx
|
|
16961
17388
|
import * as React38 from "react";
|
|
16962
|
-
import { Fragment as
|
|
17389
|
+
import { Fragment as Fragment14, jsx as jsx86 } from "react/jsx-runtime";
|
|
16963
17390
|
var CurrencyFormatter = ({
|
|
16964
17391
|
value,
|
|
16965
17392
|
notation,
|
|
16966
17393
|
currency
|
|
16967
17394
|
}) => {
|
|
16968
17395
|
const { locale, currency: contextCurrency } = React38.useContext(IntlContext);
|
|
16969
|
-
return /* @__PURE__ */ jsx86(
|
|
17396
|
+
return /* @__PURE__ */ jsx86(Fragment14, { children: formatCurrency(
|
|
16970
17397
|
value,
|
|
16971
17398
|
locale,
|
|
16972
17399
|
currency ?? contextCurrency,
|
|
@@ -16977,31 +17404,31 @@ var CurrencyFormatter_default = CurrencyFormatter;
|
|
|
16977
17404
|
|
|
16978
17405
|
// src/components/formatter/NumberFormatter.tsx
|
|
16979
17406
|
import * as React39 from "react";
|
|
16980
|
-
import { Fragment as
|
|
17407
|
+
import { Fragment as Fragment15, jsx as jsx87 } from "react/jsx-runtime";
|
|
16981
17408
|
var NumberFormatter = ({ value, fractionSize }) => {
|
|
16982
17409
|
const { locale } = React39.useContext(IntlContext);
|
|
16983
|
-
return /* @__PURE__ */ jsx87(
|
|
17410
|
+
return /* @__PURE__ */ jsx87(Fragment15, { children: formatNumber(value, locale, fractionSize) });
|
|
16984
17411
|
};
|
|
16985
17412
|
var NumberFormatter_default = NumberFormatter;
|
|
16986
17413
|
|
|
16987
17414
|
// src/components/formatter/PercentageFormatter.tsx
|
|
16988
17415
|
import * as React40 from "react";
|
|
16989
|
-
import { Fragment as
|
|
17416
|
+
import { Fragment as Fragment16, jsx as jsx88 } from "react/jsx-runtime";
|
|
16990
17417
|
var PercentageFormatter = ({
|
|
16991
17418
|
value,
|
|
16992
17419
|
fractionSize
|
|
16993
17420
|
}) => {
|
|
16994
17421
|
const { locale } = React40.useContext(IntlContext);
|
|
16995
|
-
return /* @__PURE__ */ jsx88(
|
|
17422
|
+
return /* @__PURE__ */ jsx88(Fragment16, { children: formatPercentage(value, locale, fractionSize) });
|
|
16996
17423
|
};
|
|
16997
17424
|
var PercentageFormatter_default = PercentageFormatter;
|
|
16998
17425
|
|
|
16999
17426
|
// src/components/formatter/DateFormatter.tsx
|
|
17000
17427
|
import * as React41 from "react";
|
|
17001
|
-
import { Fragment as
|
|
17428
|
+
import { Fragment as Fragment17, jsx as jsx89 } from "react/jsx-runtime";
|
|
17002
17429
|
var DateFormatter = ({ date, format: format2 }) => {
|
|
17003
17430
|
const { locale, timezone } = React41.useContext(IntlContext);
|
|
17004
|
-
return /* @__PURE__ */ jsx89(
|
|
17431
|
+
return /* @__PURE__ */ jsx89(Fragment17, { children: formatDate(date, locale, timezone, format2) });
|
|
17005
17432
|
};
|
|
17006
17433
|
var DateFormatter_default = DateFormatter;
|
|
17007
17434
|
|
|
@@ -17755,20 +18182,23 @@ import { useEffect as useEffect10, useState as useState15 } from "react";
|
|
|
17755
18182
|
|
|
17756
18183
|
// src/components/input/TextField.tsx
|
|
17757
18184
|
import * as React49 from "react";
|
|
17758
|
-
import { styled as
|
|
18185
|
+
import { styled as styled6 } from "@mui/material";
|
|
17759
18186
|
|
|
17760
18187
|
// src/components/input/InputLabel.tsx
|
|
17761
18188
|
import * as React47 from "react";
|
|
17762
|
-
import { styled as
|
|
18189
|
+
import { styled as styled4 } from "@mui/material";
|
|
17763
18190
|
import { jsx as jsx96, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
17764
18191
|
var severityColors = {
|
|
17765
18192
|
info: grey900,
|
|
17766
18193
|
error: errorMain
|
|
17767
18194
|
};
|
|
17768
|
-
var StyledLabel =
|
|
18195
|
+
var StyledLabel = styled4("label", {
|
|
17769
18196
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
17770
18197
|
})(
|
|
17771
|
-
({
|
|
18198
|
+
({
|
|
18199
|
+
severity,
|
|
18200
|
+
theme: theme2
|
|
18201
|
+
}) => theme2.unstable_sx({
|
|
17772
18202
|
display: "block",
|
|
17773
18203
|
padding: "4px 0",
|
|
17774
18204
|
...variants["caption"],
|
|
@@ -17806,17 +18236,20 @@ var InputLabel = React47.forwardRef(
|
|
|
17806
18236
|
var InputLabel_default = InputLabel;
|
|
17807
18237
|
|
|
17808
18238
|
// src/components/input/InputHelperText.tsx
|
|
17809
|
-
import { styled as
|
|
18239
|
+
import { styled as styled5 } from "@mui/material";
|
|
17810
18240
|
import * as React48 from "react";
|
|
17811
18241
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
17812
18242
|
var severityColors2 = {
|
|
17813
18243
|
info: grey800,
|
|
17814
18244
|
error: errorMain
|
|
17815
18245
|
};
|
|
17816
|
-
var StyledDiv =
|
|
18246
|
+
var StyledDiv = styled5("div", {
|
|
17817
18247
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
17818
18248
|
})(
|
|
17819
|
-
({
|
|
18249
|
+
({
|
|
18250
|
+
severity,
|
|
18251
|
+
theme: theme2
|
|
18252
|
+
}) => theme2.unstable_sx({
|
|
17820
18253
|
padding: "4px 8px",
|
|
17821
18254
|
...variants["caption"],
|
|
17822
18255
|
color: severityColors2[severity]
|
|
@@ -17830,7 +18263,7 @@ var InputHelperText = React48.forwardRef(
|
|
|
17830
18263
|
var InputHelperText_default = InputHelperText;
|
|
17831
18264
|
|
|
17832
18265
|
// src/components/input/TextField.tsx
|
|
17833
|
-
import { Fragment as
|
|
18266
|
+
import { Fragment as Fragment18, jsx as jsx98, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
17834
18267
|
var commonInputStylesOptions = {
|
|
17835
18268
|
shouldForwardProp: (prop) => prop !== "variant"
|
|
17836
18269
|
};
|
|
@@ -17853,13 +18286,13 @@ function getCommonInputStyles({ disabled }) {
|
|
|
17853
18286
|
}
|
|
17854
18287
|
};
|
|
17855
18288
|
}
|
|
17856
|
-
var StyledInput =
|
|
18289
|
+
var StyledInput = styled6(
|
|
17857
18290
|
"input",
|
|
17858
18291
|
commonInputStylesOptions
|
|
17859
18292
|
)(
|
|
17860
18293
|
(props) => props.theme.unstable_sx(getCommonInputStyles(props))
|
|
17861
18294
|
);
|
|
17862
|
-
var StyledTextarea =
|
|
18295
|
+
var StyledTextarea = styled6(
|
|
17863
18296
|
"textarea",
|
|
17864
18297
|
commonInputStylesOptions
|
|
17865
18298
|
)(
|
|
@@ -18080,7 +18513,7 @@ var TextField = React49.forwardRef(function TextField2({
|
|
|
18080
18513
|
]
|
|
18081
18514
|
}
|
|
18082
18515
|
);
|
|
18083
|
-
return /* @__PURE__ */ jsxs42(
|
|
18516
|
+
return /* @__PURE__ */ jsxs42(Fragment18, { children: [
|
|
18084
18517
|
label && /* @__PURE__ */ jsx98(
|
|
18085
18518
|
InputLabel_default,
|
|
18086
18519
|
{
|
|
@@ -19508,7 +19941,7 @@ var DateIntervalPicker_default = DateIntervalPicker;
|
|
|
19508
19941
|
// src/components/input/SelectPopoverItem.tsx
|
|
19509
19942
|
import { Grid as Grid2, Stack as Stack7 } from "@mui/material";
|
|
19510
19943
|
import { lighten as lighten3 } from "@mui/material";
|
|
19511
|
-
import { Fragment as
|
|
19944
|
+
import { Fragment as Fragment19, jsx as jsx110, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
19512
19945
|
var bgColorLightCoefficient2 = 0.9;
|
|
19513
19946
|
var SelectPopoverItem = ({
|
|
19514
19947
|
id,
|
|
@@ -19522,112 +19955,121 @@ var SelectPopoverItem = ({
|
|
|
19522
19955
|
tooltip,
|
|
19523
19956
|
isLoadingSubtitle2,
|
|
19524
19957
|
onClick
|
|
19525
|
-
}) => /* @__PURE__ */ jsx110(Tooltip_default, { title: tooltip || "", children: /* @__PURE__ */ jsx110(
|
|
19526
|
-
|
|
19958
|
+
}) => /* @__PURE__ */ jsx110(Tooltip_default, { title: tooltip || "", children: /* @__PURE__ */ jsx110(
|
|
19959
|
+
Grid2,
|
|
19527
19960
|
{
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
border: `1px solid ${color2 ? color2 : Colors_exports.grey200}`,
|
|
19531
|
-
padding: "8px 8px 8px 4px",
|
|
19532
|
-
boxSizing: "border-box",
|
|
19533
|
-
borderRadius: "8px",
|
|
19534
|
-
boxShadow: shadows[1],
|
|
19535
|
-
backgroundColor: color2 ? lighten3(color2, bgColorLightCoefficient2) : Colors_exports.white,
|
|
19536
|
-
height: "75px",
|
|
19537
|
-
lineHeight: "20px",
|
|
19538
|
-
cursor: disabled ? "default" : "pointer",
|
|
19539
|
-
userSelect: "none"
|
|
19961
|
+
size: {
|
|
19962
|
+
xs: 6
|
|
19540
19963
|
},
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
{
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
|
|
19964
|
+
children: /* @__PURE__ */ jsxs50(
|
|
19965
|
+
Stack7,
|
|
19966
|
+
{
|
|
19967
|
+
direction: "row",
|
|
19968
|
+
sx: {
|
|
19969
|
+
border: `1px solid ${color2 ? color2 : Colors_exports.grey200}`,
|
|
19970
|
+
padding: "8px 8px 8px 4px",
|
|
19971
|
+
boxSizing: "border-box",
|
|
19972
|
+
borderRadius: "8px",
|
|
19973
|
+
boxShadow: shadows[1],
|
|
19974
|
+
backgroundColor: color2 ? lighten3(color2, bgColorLightCoefficient2) : Colors_exports.white,
|
|
19975
|
+
height: "75px",
|
|
19976
|
+
lineHeight: "20px",
|
|
19977
|
+
cursor: disabled ? "default" : "pointer",
|
|
19978
|
+
userSelect: "none"
|
|
19979
|
+
},
|
|
19980
|
+
onClick: () => !disabled && typeof onClick === "function" && onClick(),
|
|
19981
|
+
children: [
|
|
19982
|
+
/* @__PURE__ */ jsxs50(
|
|
19983
|
+
Box_default,
|
|
19984
|
+
{
|
|
19985
|
+
sx: {
|
|
19986
|
+
paddingLeft: "16px",
|
|
19987
|
+
minWidth: "0",
|
|
19988
|
+
flexGrow: "2",
|
|
19989
|
+
boxSizing: "border-box"
|
|
19990
|
+
},
|
|
19991
|
+
children: [
|
|
19992
|
+
/* @__PURE__ */ jsx110(
|
|
19993
|
+
TextEllipsis_default,
|
|
19994
|
+
{
|
|
19995
|
+
color: Colors_exports.grey800,
|
|
19996
|
+
sx: {
|
|
19997
|
+
maxHeight: "20px",
|
|
19998
|
+
cursor: disabled ? "default" : "pointer"
|
|
19999
|
+
},
|
|
20000
|
+
typographyVariant: "body1",
|
|
20001
|
+
text: /* @__PURE__ */ jsxs50(Fragment19, { children: [
|
|
20002
|
+
iconId && /* @__PURE__ */ jsx110(
|
|
20003
|
+
Icon_default,
|
|
20004
|
+
{
|
|
20005
|
+
id: iconId,
|
|
20006
|
+
sx: {
|
|
20007
|
+
color: Colors_exports.grey500,
|
|
20008
|
+
marginRight: "2px",
|
|
20009
|
+
width: "18px",
|
|
20010
|
+
height: "18px",
|
|
20011
|
+
verticalAlign: "bottom",
|
|
20012
|
+
marginLeft: "-4px"
|
|
20013
|
+
}
|
|
20014
|
+
}
|
|
20015
|
+
),
|
|
20016
|
+
name
|
|
20017
|
+
] })
|
|
20018
|
+
}
|
|
20019
|
+
),
|
|
20020
|
+
subtitle1 && /* @__PURE__ */ jsx110(
|
|
20021
|
+
Typography_default,
|
|
20022
|
+
{
|
|
20023
|
+
variant: "body2",
|
|
20024
|
+
component: "p",
|
|
20025
|
+
noWrap: true,
|
|
20026
|
+
color: Colors_exports.grey600,
|
|
20027
|
+
children: subtitle1
|
|
20028
|
+
}
|
|
20029
|
+
),
|
|
20030
|
+
isLoadingSubtitle2 && /* @__PURE__ */ jsx110(
|
|
20031
|
+
Skeleton_default,
|
|
20032
|
+
{
|
|
20033
|
+
variant: "text",
|
|
20034
|
+
width: 200,
|
|
20035
|
+
height: 20,
|
|
20036
|
+
sx: {
|
|
20037
|
+
borderRadius: "8px",
|
|
20038
|
+
backgroundColor: Colors_exports.grey100
|
|
19575
20039
|
}
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
|
|
19594
|
-
|
|
19595
|
-
|
|
19596
|
-
height: 20,
|
|
19597
|
-
sx: {
|
|
19598
|
-
borderRadius: "8px",
|
|
19599
|
-
backgroundColor: Colors_exports.grey100
|
|
19600
|
-
}
|
|
19601
|
-
}
|
|
19602
|
-
),
|
|
19603
|
-
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */ jsx110(
|
|
19604
|
-
Typography_default,
|
|
19605
|
-
{
|
|
19606
|
-
variant: "body2",
|
|
19607
|
-
component: "p",
|
|
19608
|
-
noWrap: true,
|
|
20040
|
+
}
|
|
20041
|
+
),
|
|
20042
|
+
subtitle2 && !isLoadingSubtitle2 && /* @__PURE__ */ jsx110(
|
|
20043
|
+
Typography_default,
|
|
20044
|
+
{
|
|
20045
|
+
variant: "body2",
|
|
20046
|
+
component: "p",
|
|
20047
|
+
noWrap: true,
|
|
20048
|
+
color: Colors_exports.grey600,
|
|
20049
|
+
children: subtitle2
|
|
20050
|
+
}
|
|
20051
|
+
)
|
|
20052
|
+
]
|
|
20053
|
+
}
|
|
20054
|
+
),
|
|
20055
|
+
chipText && /* @__PURE__ */ jsx110(Box_default, { sx: { minWidth: "72px", flexShrink: 0 }, children: /* @__PURE__ */ jsx110(
|
|
20056
|
+
Chip_default,
|
|
20057
|
+
{
|
|
20058
|
+
label: chipText,
|
|
20059
|
+
sx: {
|
|
19609
20060
|
color: Colors_exports.grey600,
|
|
19610
|
-
|
|
20061
|
+
borderRadius: `50px`,
|
|
20062
|
+
backgroundColor: Colors_exports.grey100,
|
|
20063
|
+
height: "16px"
|
|
19611
20064
|
}
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19615
|
-
|
|
19616
|
-
|
|
19617
|
-
|
|
19618
|
-
|
|
19619
|
-
|
|
19620
|
-
sx: {
|
|
19621
|
-
color: Colors_exports.grey600,
|
|
19622
|
-
borderRadius: `50px`,
|
|
19623
|
-
backgroundColor: Colors_exports.grey100,
|
|
19624
|
-
height: "16px"
|
|
19625
|
-
}
|
|
19626
|
-
}
|
|
19627
|
-
) })
|
|
19628
|
-
]
|
|
19629
|
-
}
|
|
19630
|
-
) }, id) });
|
|
20065
|
+
}
|
|
20066
|
+
) })
|
|
20067
|
+
]
|
|
20068
|
+
}
|
|
20069
|
+
)
|
|
20070
|
+
},
|
|
20071
|
+
id
|
|
20072
|
+
) });
|
|
19631
20073
|
var SelectPopoverItem_default = SelectPopoverItem;
|
|
19632
20074
|
|
|
19633
20075
|
// src/components/input/TimezoneSelector.tsx
|
|
@@ -19636,13 +20078,13 @@ import * as moment2 from "moment-timezone";
|
|
|
19636
20078
|
|
|
19637
20079
|
// src/components/input/Select.tsx
|
|
19638
20080
|
import * as React56 from "react";
|
|
19639
|
-
import { styled as
|
|
20081
|
+
import { styled as styled7 } from "@mui/material/styles";
|
|
19640
20082
|
import MuiSelect from "@mui/material/Select";
|
|
19641
20083
|
import InputBase from "@mui/material/InputBase";
|
|
19642
20084
|
import { FixedSizeList as FixedSizeList2 } from "react-window";
|
|
19643
20085
|
import AutoSizer4 from "react-virtualized-auto-sizer";
|
|
19644
20086
|
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
19645
|
-
var BootstrapInput =
|
|
20087
|
+
var BootstrapInput = styled7(InputBase)(() => ({
|
|
19646
20088
|
boxShadow: shadows[0],
|
|
19647
20089
|
borderRadius: "16px",
|
|
19648
20090
|
borderWidth: "1px",
|
|
@@ -20087,7 +20529,7 @@ import * as React59 from "react";
|
|
|
20087
20529
|
import GradientColorPicker, {
|
|
20088
20530
|
useColorPicker
|
|
20089
20531
|
} from "react-best-gradient-color-picker";
|
|
20090
|
-
import { Fragment as
|
|
20532
|
+
import { Fragment as Fragment20, jsx as jsx114, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
20091
20533
|
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+))?\)$/;
|
|
20092
20534
|
var isValidColor = (color2) => colorRegex.test(color2);
|
|
20093
20535
|
var colorPickerDefaultColors = [
|
|
@@ -20180,7 +20622,7 @@ var ColorPicker = React59.forwardRef(function ColorPickerWrapper({
|
|
|
20180
20622
|
handleColorChange(internalPickerValue);
|
|
20181
20623
|
}
|
|
20182
20624
|
}, [value, internalPickerValue, onChange, isValidPickerChange, valueToHex]);
|
|
20183
|
-
return /* @__PURE__ */ jsxs51(
|
|
20625
|
+
return /* @__PURE__ */ jsxs51(Fragment20, { children: [
|
|
20184
20626
|
/* @__PURE__ */ jsx114(
|
|
20185
20627
|
TextField_default,
|
|
20186
20628
|
{
|
|
@@ -20322,7 +20764,7 @@ var UploadClickableArea_default = UploadClickableArea;
|
|
|
20322
20764
|
// src/components/input/CategorizedPicker.tsx
|
|
20323
20765
|
import React60 from "react";
|
|
20324
20766
|
import { Grid as Grid3, Popover as Popover2, Select as Select3, Stack as Stack8 } from "@mui/material";
|
|
20325
|
-
import { Fragment as
|
|
20767
|
+
import { Fragment as Fragment21, jsx as jsx116, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
20326
20768
|
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */ jsx116(
|
|
20327
20769
|
Icon_default,
|
|
20328
20770
|
{
|
|
@@ -20418,7 +20860,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20418
20860
|
setSelectedCategory(filteredSelectedCategory);
|
|
20419
20861
|
}
|
|
20420
20862
|
}, [filteredCategories, selectedCategory]);
|
|
20421
|
-
return /* @__PURE__ */ jsxs53(
|
|
20863
|
+
return /* @__PURE__ */ jsxs53(Fragment21, { children: [
|
|
20422
20864
|
/* @__PURE__ */ jsx116(
|
|
20423
20865
|
Select3,
|
|
20424
20866
|
{
|
|
@@ -20479,8 +20921,9 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20479
20921
|
/* @__PURE__ */ jsx116(
|
|
20480
20922
|
Grid3,
|
|
20481
20923
|
{
|
|
20482
|
-
|
|
20483
|
-
|
|
20924
|
+
size: {
|
|
20925
|
+
xs: 12
|
|
20926
|
+
},
|
|
20484
20927
|
padding: "8px",
|
|
20485
20928
|
borderBottom: `1px solid ${grey200}`,
|
|
20486
20929
|
children: /* @__PURE__ */ jsx116(
|
|
@@ -20499,8 +20942,9 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20499
20942
|
/* @__PURE__ */ jsx116(
|
|
20500
20943
|
Grid3,
|
|
20501
20944
|
{
|
|
20502
|
-
|
|
20503
|
-
|
|
20945
|
+
size: {
|
|
20946
|
+
xs: 4
|
|
20947
|
+
},
|
|
20504
20948
|
sx: { borderRight: `1px solid ${grey200}` },
|
|
20505
20949
|
height: "316px",
|
|
20506
20950
|
className: "Slim-Vertical-Scroll",
|
|
@@ -20543,8 +20987,9 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
20543
20987
|
/* @__PURE__ */ jsx116(
|
|
20544
20988
|
Grid3,
|
|
20545
20989
|
{
|
|
20546
|
-
|
|
20547
|
-
|
|
20990
|
+
size: {
|
|
20991
|
+
xs: 8
|
|
20992
|
+
},
|
|
20548
20993
|
height: "316px",
|
|
20549
20994
|
className: "Slim-Vertical-Scroll",
|
|
20550
20995
|
children: /* @__PURE__ */ jsx116(Stack8, { children: /* @__PURE__ */ jsx116(Stack8, { children: !selectedCategory ? /* @__PURE__ */ jsx116(Stack8, { padding: "12px", alignItems: "center", children: /* @__PURE__ */ jsx116(
|
|
@@ -20921,7 +21366,7 @@ var arraysEqual = (a, b) => {
|
|
|
20921
21366
|
var SelectPopover_default = SelectPopover;
|
|
20922
21367
|
|
|
20923
21368
|
// src/components/input/ItemSelector.tsx
|
|
20924
|
-
import { Fragment as
|
|
21369
|
+
import { Fragment as Fragment22, jsx as jsx118, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
20925
21370
|
var ItemSelector = function ItemSelector2({
|
|
20926
21371
|
items,
|
|
20927
21372
|
selectedItems,
|
|
@@ -21005,7 +21450,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21005
21450
|
const selectedItem = selectedItems[0]?.id;
|
|
21006
21451
|
return selectedItem ? [selectedItem] : "";
|
|
21007
21452
|
};
|
|
21008
|
-
return /* @__PURE__ */ jsxs55(
|
|
21453
|
+
return /* @__PURE__ */ jsxs55(Fragment22, { children: [
|
|
21009
21454
|
/* @__PURE__ */ jsx118(
|
|
21010
21455
|
Select_default,
|
|
21011
21456
|
{
|
|
@@ -21022,7 +21467,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21022
21467
|
renderValue: (value) => {
|
|
21023
21468
|
let component;
|
|
21024
21469
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
21025
|
-
component = /* @__PURE__ */ jsxs55(
|
|
21470
|
+
component = /* @__PURE__ */ jsxs55(Fragment22, { children: [
|
|
21026
21471
|
/* @__PURE__ */ jsx118(
|
|
21027
21472
|
Stack_default,
|
|
21028
21473
|
{
|
|
@@ -21042,7 +21487,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21042
21487
|
)
|
|
21043
21488
|
] });
|
|
21044
21489
|
} else {
|
|
21045
|
-
component = /* @__PURE__ */ jsxs55(
|
|
21490
|
+
component = /* @__PURE__ */ jsxs55(Fragment22, { children: [
|
|
21046
21491
|
/* @__PURE__ */ jsxs55(
|
|
21047
21492
|
Stack_default,
|
|
21048
21493
|
{
|
|
@@ -21066,7 +21511,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21066
21511
|
}
|
|
21067
21512
|
},
|
|
21068
21513
|
id
|
|
21069
|
-
) : /* @__PURE__ */ jsx118(
|
|
21514
|
+
) : /* @__PURE__ */ jsx118(Fragment22, {});
|
|
21070
21515
|
}),
|
|
21071
21516
|
value.length - limitItemChips > 0 ? /* @__PURE__ */ jsx118(
|
|
21072
21517
|
Tooltip_default,
|
|
@@ -21096,7 +21541,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
21096
21541
|
item
|
|
21097
21542
|
},
|
|
21098
21543
|
id
|
|
21099
|
-
) : /* @__PURE__ */ jsx118(
|
|
21544
|
+
) : /* @__PURE__ */ jsx118(Fragment22, {});
|
|
21100
21545
|
})
|
|
21101
21546
|
}
|
|
21102
21547
|
),
|
|
@@ -21224,7 +21669,7 @@ var map = {
|
|
|
21224
21669
|
var toDiacriticInsensitiveString = (input) => Array.from(input).map((char) => map[char] ? `[${map[char]}]` : char).join("");
|
|
21225
21670
|
|
|
21226
21671
|
// src/components/input/Autocomplete.tsx
|
|
21227
|
-
import { Fragment as
|
|
21672
|
+
import { Fragment as Fragment23, jsx as jsx119, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
21228
21673
|
var AUTOCOMPLETE_ITEM_HEIGHT = 44;
|
|
21229
21674
|
var Autocomplete = function Autocomplete2({
|
|
21230
21675
|
variant = "default",
|
|
@@ -21441,7 +21886,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
21441
21886
|
option.id
|
|
21442
21887
|
);
|
|
21443
21888
|
};
|
|
21444
|
-
return /* @__PURE__ */ jsxs56(
|
|
21889
|
+
return /* @__PURE__ */ jsxs56(Fragment23, { children: [
|
|
21445
21890
|
/* @__PURE__ */ jsx119(
|
|
21446
21891
|
DebouncedTextField_default,
|
|
21447
21892
|
{
|
|
@@ -21831,7 +22276,7 @@ var CodeEditor_default = React64.forwardRef(CodeEditor);
|
|
|
21831
22276
|
|
|
21832
22277
|
// src/components/input/CodeEditorPopup.tsx
|
|
21833
22278
|
import format from "html-format";
|
|
21834
|
-
import { Fragment as
|
|
22279
|
+
import { Fragment as Fragment24, jsx as jsx121, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
21835
22280
|
var FORMAT_CHARACTERS_LINE = 120;
|
|
21836
22281
|
var FORMAT_NUMBER_SPACES_INDENTATION = 2;
|
|
21837
22282
|
var CodeEditorPopup = ({
|
|
@@ -21874,7 +22319,7 @@ var CodeEditorPopup = ({
|
|
|
21874
22319
|
" ".repeat(FORMAT_NUMBER_SPACES_INDENTATION),
|
|
21875
22320
|
FORMAT_CHARACTERS_LINE
|
|
21876
22321
|
);
|
|
21877
|
-
return /* @__PURE__ */ jsxs57(
|
|
22322
|
+
return /* @__PURE__ */ jsxs57(Fragment24, { children: [
|
|
21878
22323
|
readonly && /* @__PURE__ */ jsx121(
|
|
21879
22324
|
Dialog_default,
|
|
21880
22325
|
{
|
|
@@ -22040,7 +22485,7 @@ var CodeEditorPopup = ({
|
|
|
22040
22485
|
var CodeEditorPopup_default = CodeEditorPopup;
|
|
22041
22486
|
|
|
22042
22487
|
// src/components/input/TextEditor.tsx
|
|
22043
|
-
import { Fragment as
|
|
22488
|
+
import { Fragment as Fragment25, jsx as jsx122, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
22044
22489
|
var DEFAULT_TOOLBAR_INSERT_MENU_ITEMS = [
|
|
22045
22490
|
"link",
|
|
22046
22491
|
"image",
|
|
@@ -22332,7 +22777,7 @@ var TextEditor = function TextEditor2({
|
|
|
22332
22777
|
};
|
|
22333
22778
|
}
|
|
22334
22779
|
};
|
|
22335
|
-
return /* @__PURE__ */ jsxs58(
|
|
22780
|
+
return /* @__PURE__ */ jsxs58(Fragment25, { children: [
|
|
22336
22781
|
/* @__PURE__ */ jsx122(
|
|
22337
22782
|
Editor,
|
|
22338
22783
|
{
|
|
@@ -22389,20 +22834,18 @@ var TextEditor_default = TextEditor;
|
|
|
22389
22834
|
|
|
22390
22835
|
// src/components/input/TimeField.tsx
|
|
22391
22836
|
import * as React67 from "react";
|
|
22392
|
-
import {
|
|
22393
|
-
TimeField as MuiTimeField
|
|
22394
|
-
} from "@mui/x-date-pickers";
|
|
22837
|
+
import { TimeField as MuiTimeField } from "@mui/x-date-pickers";
|
|
22395
22838
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
22396
22839
|
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
|
|
22397
22840
|
import { tz as tz6 } from "moment-timezone";
|
|
22398
22841
|
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
22399
22842
|
var ExtendedTextField = ({
|
|
22400
|
-
inputProps
|
|
22843
|
+
inputProps,
|
|
22401
22844
|
ownerState,
|
|
22402
22845
|
InputProps,
|
|
22403
22846
|
error,
|
|
22404
22847
|
...rest
|
|
22405
|
-
}) => /* @__PURE__ */ jsx123(TextField_default, {
|
|
22848
|
+
}) => /* @__PURE__ */ jsx123(TextField_default, { ...inputProps, ...rest });
|
|
22406
22849
|
var TimeField = function TimeField2({
|
|
22407
22850
|
onChange,
|
|
22408
22851
|
value,
|
|
@@ -22442,7 +22885,8 @@ var TimeField = function TimeField2({
|
|
|
22442
22885
|
},
|
|
22443
22886
|
slotProps: {
|
|
22444
22887
|
textField: rest
|
|
22445
|
-
}
|
|
22888
|
+
},
|
|
22889
|
+
enableAccessibleFieldDOMStructure: false
|
|
22446
22890
|
}
|
|
22447
22891
|
) });
|
|
22448
22892
|
};
|
|
@@ -22450,7 +22894,7 @@ var TimeField_default = TimeField;
|
|
|
22450
22894
|
|
|
22451
22895
|
// src/components/input/PhoneField.tsx
|
|
22452
22896
|
import * as React68 from "react";
|
|
22453
|
-
import { Fragment as
|
|
22897
|
+
import { Fragment as Fragment26, jsx as jsx124, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
22454
22898
|
var maxPhoneLengthWithPrefix = 16;
|
|
22455
22899
|
var PhoneField = React68.forwardRef(function PhoneField2({
|
|
22456
22900
|
value,
|
|
@@ -22535,7 +22979,7 @@ var PhoneField = React68.forwardRef(function PhoneField2({
|
|
|
22535
22979
|
groupElements: true,
|
|
22536
22980
|
...rest,
|
|
22537
22981
|
className: `Cn-PhoneField ${className}`,
|
|
22538
|
-
startAdornment: /* @__PURE__ */ jsxs59(
|
|
22982
|
+
startAdornment: /* @__PURE__ */ jsxs59(Fragment26, { children: [
|
|
22539
22983
|
rest.startAdornment,
|
|
22540
22984
|
select
|
|
22541
22985
|
] }),
|
|
@@ -22969,7 +23413,7 @@ var DatePickerPopover = ({
|
|
|
22969
23413
|
var DatePickerPopover_default = DatePickerPopover;
|
|
22970
23414
|
|
|
22971
23415
|
// src/components/input/DatePicker.tsx
|
|
22972
|
-
import { Fragment as
|
|
23416
|
+
import { Fragment as Fragment27, jsx as jsx128, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
22973
23417
|
var DatePicker = React71.forwardRef(
|
|
22974
23418
|
function DatePicker2({ value, onChange, onBlur, onKeyDown, minDate, maxDate, ...rest }, ref) {
|
|
22975
23419
|
const { locale, timezone } = React71.useContext(IntlContext);
|
|
@@ -23045,7 +23489,7 @@ var DatePicker = React71.forwardRef(
|
|
|
23045
23489
|
const text = value && !isNaN(value.getTime()) ? tz8(value, timezone).format(dateInputFormat) : "";
|
|
23046
23490
|
setTextValue(text);
|
|
23047
23491
|
}, [dateInputFormat, timezone, value]);
|
|
23048
|
-
return /* @__PURE__ */ jsxs62(
|
|
23492
|
+
return /* @__PURE__ */ jsxs62(Fragment27, { children: [
|
|
23049
23493
|
/* @__PURE__ */ jsx128(
|
|
23050
23494
|
TextField_default,
|
|
23051
23495
|
{
|
|
@@ -23088,7 +23532,7 @@ var DatePicker_default = DatePicker;
|
|
|
23088
23532
|
// src/components/input/Checkbox.tsx
|
|
23089
23533
|
import MuiCheckbox from "@mui/material/Checkbox";
|
|
23090
23534
|
import { FormControlLabel, FormGroup } from "@mui/material";
|
|
23091
|
-
import { Fragment as
|
|
23535
|
+
import { Fragment as Fragment28, jsx as jsx129, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
23092
23536
|
var MaterialCheckbox = ({
|
|
23093
23537
|
checked,
|
|
23094
23538
|
disabled,
|
|
@@ -23121,7 +23565,7 @@ var Checkbox = ({
|
|
|
23121
23565
|
inputClass,
|
|
23122
23566
|
onChange,
|
|
23123
23567
|
tabIndex
|
|
23124
|
-
}) => /* @__PURE__ */ jsxs63(
|
|
23568
|
+
}) => /* @__PURE__ */ jsxs63(Fragment28, { children: [
|
|
23125
23569
|
!label && /* @__PURE__ */ jsx129(
|
|
23126
23570
|
MaterialCheckbox,
|
|
23127
23571
|
{
|
|
@@ -23163,7 +23607,7 @@ var Checkbox_default = Checkbox;
|
|
|
23163
23607
|
import * as React72 from "react";
|
|
23164
23608
|
import MuiRadio from "@mui/material/Radio";
|
|
23165
23609
|
import { FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
23166
|
-
import { Fragment as
|
|
23610
|
+
import { Fragment as Fragment29, jsx as jsx130, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
23167
23611
|
var Radio = React72.forwardRef(function Radio2({
|
|
23168
23612
|
label,
|
|
23169
23613
|
labelPlacement = "end",
|
|
@@ -23200,7 +23644,7 @@ var Radio = React72.forwardRef(function Radio2({
|
|
|
23200
23644
|
size: size === "S" ? "small" : "medium"
|
|
23201
23645
|
}
|
|
23202
23646
|
);
|
|
23203
|
-
return /* @__PURE__ */ jsxs64(
|
|
23647
|
+
return /* @__PURE__ */ jsxs64(Fragment29, { children: [
|
|
23204
23648
|
!label && radio,
|
|
23205
23649
|
label && /* @__PURE__ */ jsx130(
|
|
23206
23650
|
FormControlLabel2,
|
|
@@ -23650,9 +24094,9 @@ var Loader_default = Loader;
|
|
|
23650
24094
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
23651
24095
|
import ReactMarkdown from "react-markdown";
|
|
23652
24096
|
import remarkGfm from "remark-gfm";
|
|
23653
|
-
import { styled as
|
|
24097
|
+
import { styled as styled8 } from "@mui/material/styles";
|
|
23654
24098
|
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
23655
|
-
var MarkdownContainer =
|
|
24099
|
+
var MarkdownContainer = styled8("div")(
|
|
23656
24100
|
({ color: color2, backgroundColor: backgroundColor2 = "transparent", variant }) => ({
|
|
23657
24101
|
color: color2,
|
|
23658
24102
|
backgroundColor: backgroundColor2,
|
|
@@ -23719,7 +24163,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
23719
24163
|
|
|
23720
24164
|
// src/components/navbar/Navbar.tsx
|
|
23721
24165
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
23722
|
-
import { Fragment as
|
|
24166
|
+
import { Fragment as Fragment30, jsx as jsx137, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
23723
24167
|
var Navbar = ({
|
|
23724
24168
|
topContent,
|
|
23725
24169
|
bottomContent,
|
|
@@ -23727,7 +24171,7 @@ var Navbar = ({
|
|
|
23727
24171
|
drawerBottomContent,
|
|
23728
24172
|
onClose,
|
|
23729
24173
|
isDrawerOpen = false
|
|
23730
|
-
}) => /* @__PURE__ */ jsxs68(
|
|
24174
|
+
}) => /* @__PURE__ */ jsxs68(Fragment30, { children: [
|
|
23731
24175
|
/* @__PURE__ */ jsxs68(
|
|
23732
24176
|
Box_default,
|
|
23733
24177
|
{
|
|
@@ -23950,7 +24394,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
23950
24394
|
|
|
23951
24395
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
23952
24396
|
import * as React77 from "react";
|
|
23953
|
-
import { Fragment as
|
|
24397
|
+
import { Fragment as Fragment31, jsx as jsx141, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
23954
24398
|
var DonutFocusOverlay = ({
|
|
23955
24399
|
isVisible,
|
|
23956
24400
|
elementRef,
|
|
@@ -23991,7 +24435,7 @@ var DonutFocusOverlay = ({
|
|
|
23991
24435
|
const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
|
|
23992
24436
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
23993
24437
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
23994
|
-
return /* @__PURE__ */ jsxs70(
|
|
24438
|
+
return /* @__PURE__ */ jsxs70(Fragment31, { children: [
|
|
23995
24439
|
/* @__PURE__ */ jsx141(
|
|
23996
24440
|
Box_default,
|
|
23997
24441
|
{
|
|
@@ -24036,7 +24480,7 @@ var DonutFocusOverlay = ({
|
|
|
24036
24480
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
24037
24481
|
|
|
24038
24482
|
// src/components/pager/Pager.tsx
|
|
24039
|
-
import { Fragment as
|
|
24483
|
+
import { Fragment as Fragment32, jsx as jsx142, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
24040
24484
|
var Pager = ({
|
|
24041
24485
|
page,
|
|
24042
24486
|
pageSize,
|
|
@@ -24062,7 +24506,7 @@ var Pager = ({
|
|
|
24062
24506
|
sx: { minWidth: 78 }
|
|
24063
24507
|
}
|
|
24064
24508
|
),
|
|
24065
|
-
allowedPageSizes && /* @__PURE__ */ jsxs71(
|
|
24509
|
+
allowedPageSizes && /* @__PURE__ */ jsxs71(Fragment32, { children: [
|
|
24066
24510
|
/* @__PURE__ */ jsx142(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
24067
24511
|
/* @__PURE__ */ jsx142(
|
|
24068
24512
|
Select_default,
|
|
@@ -24457,10 +24901,120 @@ var TabButton = ({
|
|
|
24457
24901
|
var TabButton_default = TabButton;
|
|
24458
24902
|
|
|
24459
24903
|
// src/components/tab/Tabs.tsx
|
|
24460
|
-
import * as
|
|
24904
|
+
import * as React81 from "react";
|
|
24461
24905
|
import MuiTabs from "@mui/material/Tabs";
|
|
24462
|
-
|
|
24463
|
-
|
|
24906
|
+
|
|
24907
|
+
// src/components/layout/SwipeableViews.tsx
|
|
24908
|
+
import * as React80 from "react";
|
|
24909
|
+
import { useEffect as useEffect21, useRef as useRef21, useState as useState31 } from "react";
|
|
24910
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
24911
|
+
var styles = {
|
|
24912
|
+
container: {
|
|
24913
|
+
maxHeight: "100%",
|
|
24914
|
+
display: "flex",
|
|
24915
|
+
scrollSnapType: "x mandatory",
|
|
24916
|
+
overflowX: "scroll",
|
|
24917
|
+
scrollBehavior: "smooth",
|
|
24918
|
+
msOverflowStyle: "none",
|
|
24919
|
+
scrollbarWidth: "none",
|
|
24920
|
+
"&::WebkitScrollbar": {
|
|
24921
|
+
/* Chrome, Safari and Opera */
|
|
24922
|
+
display: "none"
|
|
24923
|
+
}
|
|
24924
|
+
},
|
|
24925
|
+
slide: {
|
|
24926
|
+
boxSizing: "border-box",
|
|
24927
|
+
width: "100%",
|
|
24928
|
+
flexShrink: 0,
|
|
24929
|
+
scrollSnapAlign: "center",
|
|
24930
|
+
scrollSnapStop: "always"
|
|
24931
|
+
}
|
|
24932
|
+
};
|
|
24933
|
+
function SwipeableViews({
|
|
24934
|
+
className = "",
|
|
24935
|
+
index,
|
|
24936
|
+
style: style3,
|
|
24937
|
+
slideStyle,
|
|
24938
|
+
onChangeIndex,
|
|
24939
|
+
children,
|
|
24940
|
+
...rootProps
|
|
24941
|
+
}) {
|
|
24942
|
+
const containerRef = useRef21(null);
|
|
24943
|
+
const scrollTimeout = useRef21();
|
|
24944
|
+
const scrollingMethod = useRef21("none");
|
|
24945
|
+
const [previousIndex, setPreviousIndex] = useState31(index);
|
|
24946
|
+
useEffect21(() => {
|
|
24947
|
+
if (containerRef.current) {
|
|
24948
|
+
if (scrollingMethod.current === "manual") {
|
|
24949
|
+
scrollingMethod.current = "none";
|
|
24950
|
+
return;
|
|
24951
|
+
}
|
|
24952
|
+
scrollingMethod.current = "auto";
|
|
24953
|
+
const children2 = containerRef.current.children;
|
|
24954
|
+
let scrollPosition = 0;
|
|
24955
|
+
for (let i = 0; i < index; i++) {
|
|
24956
|
+
scrollPosition += children2[i].getBoundingClientRect().width;
|
|
24957
|
+
}
|
|
24958
|
+
if (scrollTimeout.current) {
|
|
24959
|
+
clearTimeout(scrollTimeout.current);
|
|
24960
|
+
}
|
|
24961
|
+
const container = containerRef.current;
|
|
24962
|
+
let animationFrame;
|
|
24963
|
+
const checkScrollCompletion = () => {
|
|
24964
|
+
if (Math.abs(container.scrollLeft - scrollPosition) < 1) {
|
|
24965
|
+
setPreviousIndex(index);
|
|
24966
|
+
cancelAnimationFrame(animationFrame);
|
|
24967
|
+
} else {
|
|
24968
|
+
animationFrame = requestAnimationFrame(
|
|
24969
|
+
checkScrollCompletion
|
|
24970
|
+
);
|
|
24971
|
+
}
|
|
24972
|
+
};
|
|
24973
|
+
container.scrollTo({
|
|
24974
|
+
left: scrollPosition,
|
|
24975
|
+
behavior: "smooth"
|
|
24976
|
+
});
|
|
24977
|
+
animationFrame = requestAnimationFrame(checkScrollCompletion);
|
|
24978
|
+
return () => cancelAnimationFrame(animationFrame);
|
|
24979
|
+
}
|
|
24980
|
+
}, [index]);
|
|
24981
|
+
return /* @__PURE__ */ jsx148(
|
|
24982
|
+
"div",
|
|
24983
|
+
{
|
|
24984
|
+
...rootProps,
|
|
24985
|
+
ref: containerRef,
|
|
24986
|
+
style: Object.assign({}, styles.container, style3),
|
|
24987
|
+
className,
|
|
24988
|
+
onScroll: ({ currentTarget }) => {
|
|
24989
|
+
if (scrollTimeout.current) {
|
|
24990
|
+
clearTimeout(scrollTimeout.current);
|
|
24991
|
+
}
|
|
24992
|
+
scrollTimeout.current = window.setTimeout(() => {
|
|
24993
|
+
if (scrollingMethod.current === "auto") {
|
|
24994
|
+
scrollingMethod.current = "none";
|
|
24995
|
+
return;
|
|
24996
|
+
}
|
|
24997
|
+
scrollingMethod.current = "manual";
|
|
24998
|
+
const pageWidth = currentTarget.scrollWidth / currentTarget.children.length;
|
|
24999
|
+
onChangeIndex(
|
|
25000
|
+
Math.round(currentTarget.scrollLeft / pageWidth)
|
|
25001
|
+
);
|
|
25002
|
+
}, 100);
|
|
25003
|
+
},
|
|
25004
|
+
children: React80.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx148(
|
|
25005
|
+
"div",
|
|
25006
|
+
{
|
|
25007
|
+
className: "Slim-Vertical-Scroll",
|
|
25008
|
+
style: Object.assign({}, styles.slide, slideStyle),
|
|
25009
|
+
children: childIndex === index || childIndex === previousIndex ? child : null
|
|
25010
|
+
}
|
|
25011
|
+
))
|
|
25012
|
+
}
|
|
25013
|
+
);
|
|
25014
|
+
}
|
|
25015
|
+
|
|
25016
|
+
// src/components/tab/Tabs.tsx
|
|
25017
|
+
import { jsx as jsx149, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
24464
25018
|
var Tabs = ({
|
|
24465
25019
|
tabButtons,
|
|
24466
25020
|
children,
|
|
@@ -24471,7 +25025,7 @@ var Tabs = ({
|
|
|
24471
25025
|
contained = false,
|
|
24472
25026
|
scrollbarGutter
|
|
24473
25027
|
}) => {
|
|
24474
|
-
const [value, setValue] =
|
|
25028
|
+
const [value, setValue] = React81.useState(0);
|
|
24475
25029
|
const handleChangeIndex = (index) => {
|
|
24476
25030
|
onChangeTab?.(index);
|
|
24477
25031
|
setValue(index);
|
|
@@ -24496,7 +25050,7 @@ var Tabs = ({
|
|
|
24496
25050
|
}
|
|
24497
25051
|
},
|
|
24498
25052
|
children: [
|
|
24499
|
-
/* @__PURE__ */
|
|
25053
|
+
/* @__PURE__ */ jsx149(
|
|
24500
25054
|
MuiTabs,
|
|
24501
25055
|
{
|
|
24502
25056
|
value: currentTabIndex ?? value,
|
|
@@ -24522,7 +25076,7 @@ var Tabs = ({
|
|
|
24522
25076
|
children: tabButtons
|
|
24523
25077
|
}
|
|
24524
25078
|
),
|
|
24525
|
-
/* @__PURE__ */
|
|
25079
|
+
/* @__PURE__ */ jsx149(
|
|
24526
25080
|
Box_default,
|
|
24527
25081
|
{
|
|
24528
25082
|
sx: {
|
|
@@ -24531,7 +25085,7 @@ var Tabs = ({
|
|
|
24531
25085
|
height: "100%"
|
|
24532
25086
|
}
|
|
24533
25087
|
},
|
|
24534
|
-
children: /* @__PURE__ */
|
|
25088
|
+
children: /* @__PURE__ */ jsx149(
|
|
24535
25089
|
SwipeableViews,
|
|
24536
25090
|
{
|
|
24537
25091
|
index: currentTabIndex ?? value,
|
|
@@ -24541,21 +25095,12 @@ var Tabs = ({
|
|
|
24541
25095
|
height: "100%"
|
|
24542
25096
|
}
|
|
24543
25097
|
},
|
|
24544
|
-
containerStyle: {
|
|
24545
|
-
transition: "transform 0.35s cubic-bezier(0.15, 0.3, 0.25, 1) 0s",
|
|
24546
|
-
// NOTE: This will be a workaround for the issue with the SwipeableViews blurring
|
|
24547
|
-
willChange: "unset",
|
|
24548
|
-
...fullHeight && {
|
|
24549
|
-
height: "100%"
|
|
24550
|
-
}
|
|
24551
|
-
},
|
|
24552
25098
|
slideStyle: {
|
|
24553
25099
|
...fullHeight && {
|
|
24554
25100
|
height: "100%"
|
|
24555
25101
|
},
|
|
24556
25102
|
scrollbarGutter
|
|
24557
25103
|
},
|
|
24558
|
-
slideClassName: "Slim-Vertical-Scroll",
|
|
24559
25104
|
children
|
|
24560
25105
|
}
|
|
24561
25106
|
)
|
|
@@ -24568,8 +25113,8 @@ var Tabs = ({
|
|
|
24568
25113
|
var Tabs_default = Tabs;
|
|
24569
25114
|
|
|
24570
25115
|
// src/components/tab/TabContent.tsx
|
|
24571
|
-
import { jsx as
|
|
24572
|
-
var TabContent = ({ children }) => /* @__PURE__ */
|
|
25116
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
25117
|
+
var TabContent = ({ children }) => /* @__PURE__ */ jsx150(
|
|
24573
25118
|
Box_default,
|
|
24574
25119
|
{
|
|
24575
25120
|
sx: {
|
|
@@ -24586,8 +25131,8 @@ import {
|
|
|
24586
25131
|
TableRow as MuiTableRow,
|
|
24587
25132
|
TableCell as MuiTableCell
|
|
24588
25133
|
} from "@mui/material";
|
|
24589
|
-
import { jsx as
|
|
24590
|
-
var TableDivider = () => /* @__PURE__ */
|
|
25134
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
25135
|
+
var TableDivider = () => /* @__PURE__ */ jsx151(MuiTableRow, { children: /* @__PURE__ */ jsx151(
|
|
24591
25136
|
MuiTableCell,
|
|
24592
25137
|
{
|
|
24593
25138
|
colSpan: 1e3,
|
|
@@ -24600,8 +25145,8 @@ var TableDivider_default = TableDivider;
|
|
|
24600
25145
|
import {
|
|
24601
25146
|
TableSortLabel as MuiTableSortLabel
|
|
24602
25147
|
} from "@mui/material";
|
|
24603
|
-
import { jsx as
|
|
24604
|
-
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */
|
|
25148
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
25149
|
+
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx152(MuiTableSortLabel, { ...rest, children });
|
|
24605
25150
|
var TableSortLabel_default = TableSortLabel;
|
|
24606
25151
|
|
|
24607
25152
|
// src/components/table/Table.tsx
|
|
@@ -24609,21 +25154,21 @@ import {
|
|
|
24609
25154
|
TableContainer,
|
|
24610
25155
|
Table as MuiTable
|
|
24611
25156
|
} from "@mui/material";
|
|
24612
|
-
import { jsx as
|
|
24613
|
-
var Table = ({ children, sx, className }) => /* @__PURE__ */
|
|
25157
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
25158
|
+
var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx153(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx153(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
|
|
24614
25159
|
var Table_default = Table;
|
|
24615
25160
|
|
|
24616
25161
|
// src/components/table/TableBody.tsx
|
|
24617
25162
|
import { TableBody as MuiTableBody } from "@mui/material";
|
|
24618
|
-
import { jsx as
|
|
24619
|
-
var TableBody = ({ children }) => /* @__PURE__ */
|
|
25163
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
25164
|
+
var TableBody = ({ children }) => /* @__PURE__ */ jsx154(MuiTableBody, { children });
|
|
24620
25165
|
var TableBody_default = TableBody;
|
|
24621
25166
|
|
|
24622
25167
|
// src/components/table/TableCell.tsx
|
|
24623
25168
|
import {
|
|
24624
25169
|
TableCell as MuiTableCell2
|
|
24625
25170
|
} from "@mui/material";
|
|
24626
|
-
import { jsx as
|
|
25171
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
24627
25172
|
var TableCell = ({
|
|
24628
25173
|
children,
|
|
24629
25174
|
size = "M",
|
|
@@ -24634,7 +25179,7 @@ var TableCell = ({
|
|
|
24634
25179
|
onClick,
|
|
24635
25180
|
noBorder = false,
|
|
24636
25181
|
...rest
|
|
24637
|
-
}) => /* @__PURE__ */
|
|
25182
|
+
}) => /* @__PURE__ */ jsx155(
|
|
24638
25183
|
MuiTableCell2,
|
|
24639
25184
|
{
|
|
24640
25185
|
...rest,
|
|
@@ -24658,12 +25203,12 @@ var TableCell = ({
|
|
|
24658
25203
|
var TableCell_default = TableCell;
|
|
24659
25204
|
|
|
24660
25205
|
// src/components/table/TableCellCopy.tsx
|
|
24661
|
-
import * as
|
|
24662
|
-
import { jsx as
|
|
25206
|
+
import * as React82 from "react";
|
|
25207
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
24663
25208
|
var TableCellCopy = ({ text, ...rest }) => {
|
|
24664
25209
|
const { t } = useTranslation();
|
|
24665
|
-
const [isCopied, setIsCopied] =
|
|
24666
|
-
const [showIcon, setShowIcon] =
|
|
25210
|
+
const [isCopied, setIsCopied] = React82.useState(false);
|
|
25211
|
+
const [showIcon, setShowIcon] = React82.useState(false);
|
|
24667
25212
|
const manageButtonClicked = () => {
|
|
24668
25213
|
void navigator.clipboard.writeText(text);
|
|
24669
25214
|
if (isCopied) {
|
|
@@ -24677,7 +25222,7 @@ var TableCellCopy = ({ text, ...rest }) => {
|
|
|
24677
25222
|
const getIconId = () => !isCopied ? "content-copy" : "check";
|
|
24678
25223
|
const iconHiddenClass = "icon-hidden";
|
|
24679
25224
|
const iconCopiedClass = "icon-copied";
|
|
24680
|
-
return /* @__PURE__ */
|
|
25225
|
+
return /* @__PURE__ */ jsx156(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx156(
|
|
24681
25226
|
Stack_default,
|
|
24682
25227
|
{
|
|
24683
25228
|
direction: "row",
|
|
@@ -24686,7 +25231,7 @@ var TableCellCopy = ({ text, ...rest }) => {
|
|
|
24686
25231
|
onMouseEnter: () => setShowIcon(true),
|
|
24687
25232
|
onMouseLeave: () => setShowIcon(false),
|
|
24688
25233
|
onClick: manageButtonClicked,
|
|
24689
|
-
children: /* @__PURE__ */
|
|
25234
|
+
children: /* @__PURE__ */ jsx156(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx156(
|
|
24690
25235
|
Button_default,
|
|
24691
25236
|
{
|
|
24692
25237
|
className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
|
|
@@ -24716,21 +25261,21 @@ var TableCellCopy_default = TableCellCopy;
|
|
|
24716
25261
|
|
|
24717
25262
|
// src/components/table/TableHead.tsx
|
|
24718
25263
|
import { TableHead as MuiTableHead } from "@mui/material";
|
|
24719
|
-
import { jsx as
|
|
24720
|
-
var TableHead = ({ children }) => /* @__PURE__ */
|
|
25264
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
25265
|
+
var TableHead = ({ children }) => /* @__PURE__ */ jsx157(MuiTableHead, { children });
|
|
24721
25266
|
var TableHead_default = TableHead;
|
|
24722
25267
|
|
|
24723
25268
|
// src/components/table/TableRow.tsx
|
|
24724
25269
|
import {
|
|
24725
25270
|
TableRow as MuiTableRow2
|
|
24726
25271
|
} from "@mui/material";
|
|
24727
|
-
import { jsx as
|
|
25272
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
24728
25273
|
var TableRow = ({
|
|
24729
25274
|
children,
|
|
24730
25275
|
isFollowedByNestedTable = false,
|
|
24731
25276
|
fadeInLeftAnimation = false,
|
|
24732
25277
|
sx
|
|
24733
|
-
}) => /* @__PURE__ */
|
|
25278
|
+
}) => /* @__PURE__ */ jsx158(
|
|
24734
25279
|
MuiTableRow2,
|
|
24735
25280
|
{
|
|
24736
25281
|
className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
|
|
@@ -24742,14 +25287,14 @@ var TableRow_default = TableRow;
|
|
|
24742
25287
|
|
|
24743
25288
|
// src/components/table/NestedTable.tsx
|
|
24744
25289
|
import { Collapse as Collapse7 } from "@mui/material";
|
|
24745
|
-
import { jsx as
|
|
25290
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
24746
25291
|
var NestedTable = ({
|
|
24747
25292
|
colSpan,
|
|
24748
25293
|
children,
|
|
24749
25294
|
className = "",
|
|
24750
25295
|
sx,
|
|
24751
25296
|
isVisible = true
|
|
24752
|
-
}) => /* @__PURE__ */
|
|
25297
|
+
}) => /* @__PURE__ */ jsx159(TableRow_default, { children: /* @__PURE__ */ jsx159(
|
|
24753
25298
|
TableCell_default,
|
|
24754
25299
|
{
|
|
24755
25300
|
colSpan,
|
|
@@ -24758,14 +25303,14 @@ var NestedTable = ({
|
|
|
24758
25303
|
height: "auto",
|
|
24759
25304
|
...!isVisible && { borderBottom: "none" }
|
|
24760
25305
|
},
|
|
24761
|
-
children: /* @__PURE__ */
|
|
25306
|
+
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 }) }) }) })
|
|
24762
25307
|
}
|
|
24763
25308
|
) });
|
|
24764
25309
|
var NestedTable_default = NestedTable;
|
|
24765
25310
|
|
|
24766
25311
|
// src/components/toolbar/ToolbarBreadcrumb.tsx
|
|
24767
|
-
import { jsx as
|
|
24768
|
-
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */
|
|
25312
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
25313
|
+
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx160(
|
|
24769
25314
|
Stack_default,
|
|
24770
25315
|
{
|
|
24771
25316
|
direction: "row",
|
|
@@ -24775,7 +25320,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx159(
|
|
|
24775
25320
|
(previous, current, index) => [
|
|
24776
25321
|
...previous,
|
|
24777
25322
|
...index > 0 ? [
|
|
24778
|
-
/* @__PURE__ */
|
|
25323
|
+
/* @__PURE__ */ jsx160(
|
|
24779
25324
|
Typography_default,
|
|
24780
25325
|
{
|
|
24781
25326
|
color: grey500,
|
|
@@ -24798,10 +25343,10 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
24798
25343
|
|
|
24799
25344
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
24800
25345
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
24801
|
-
import * as
|
|
24802
|
-
import { jsx as
|
|
24803
|
-
var ToolbarBreadcrumbButton =
|
|
24804
|
-
return /* @__PURE__ */
|
|
25346
|
+
import * as React83 from "react";
|
|
25347
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
25348
|
+
var ToolbarBreadcrumbButton = React83.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
25349
|
+
return /* @__PURE__ */ jsx161(
|
|
24805
25350
|
ButtonBase5,
|
|
24806
25351
|
{
|
|
24807
25352
|
className: `Cn-ToolbarBreadcrumbButton ${className}`,
|
|
@@ -24820,14 +25365,14 @@ var ToolbarBreadcrumbButton = React82.forwardRef(function ToolbarBreadcrumbButto
|
|
|
24820
25365
|
}
|
|
24821
25366
|
},
|
|
24822
25367
|
...rest,
|
|
24823
|
-
children: /* @__PURE__ */
|
|
25368
|
+
children: /* @__PURE__ */ jsx161(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
|
|
24824
25369
|
}
|
|
24825
25370
|
);
|
|
24826
25371
|
});
|
|
24827
25372
|
var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
|
|
24828
25373
|
|
|
24829
25374
|
// src/components/toolbar/Toolbar.tsx
|
|
24830
|
-
import { jsx as
|
|
25375
|
+
import { jsx as jsx162, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
24831
25376
|
var Toolbar = ({
|
|
24832
25377
|
children,
|
|
24833
25378
|
rightActions,
|
|
@@ -24868,7 +25413,7 @@ var Toolbar = ({
|
|
|
24868
25413
|
width: "100%"
|
|
24869
25414
|
},
|
|
24870
25415
|
children: [
|
|
24871
|
-
leftActions && /* @__PURE__ */
|
|
25416
|
+
leftActions && /* @__PURE__ */ jsx162(
|
|
24872
25417
|
Box_default,
|
|
24873
25418
|
{
|
|
24874
25419
|
className: `Cn-Toolbar-left`,
|
|
@@ -24878,7 +25423,7 @@ var Toolbar = ({
|
|
|
24878
25423
|
children: leftActions
|
|
24879
25424
|
}
|
|
24880
25425
|
),
|
|
24881
|
-
/* @__PURE__ */
|
|
25426
|
+
/* @__PURE__ */ jsx162(
|
|
24882
25427
|
Box_default,
|
|
24883
25428
|
{
|
|
24884
25429
|
className: `Cn-Toolbar-children`,
|
|
@@ -24893,7 +25438,7 @@ var Toolbar = ({
|
|
|
24893
25438
|
]
|
|
24894
25439
|
}
|
|
24895
25440
|
),
|
|
24896
|
-
rightActions && /* @__PURE__ */
|
|
25441
|
+
rightActions && /* @__PURE__ */ jsx162(
|
|
24897
25442
|
Box_default,
|
|
24898
25443
|
{
|
|
24899
25444
|
className: `Cn-Toolbar-right`,
|
|
@@ -24912,19 +25457,19 @@ var Toolbar = ({
|
|
|
24912
25457
|
var Toolbar_default = Toolbar;
|
|
24913
25458
|
|
|
24914
25459
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
24915
|
-
import * as
|
|
24916
|
-
import { useState as
|
|
24917
|
-
import { jsx as
|
|
24918
|
-
var ToolbarTitle =
|
|
25460
|
+
import * as React84 from "react";
|
|
25461
|
+
import { useState as useState34 } from "react";
|
|
25462
|
+
import { jsx as jsx163, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
25463
|
+
var ToolbarTitle = React84.forwardRef(function ToolbarTitle2({
|
|
24919
25464
|
title,
|
|
24920
25465
|
align = "left",
|
|
24921
25466
|
className,
|
|
24922
25467
|
hoverActions,
|
|
24923
25468
|
color: color2 = grey900
|
|
24924
25469
|
}, ref) {
|
|
24925
|
-
const textElementRef =
|
|
24926
|
-
const [showHoverActions, setShowHoverActions] =
|
|
24927
|
-
return /* @__PURE__ */
|
|
25470
|
+
const textElementRef = React84.useRef(null);
|
|
25471
|
+
const [showHoverActions, setShowHoverActions] = useState34(false);
|
|
25472
|
+
return /* @__PURE__ */ jsx163(Box_default, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx163(
|
|
24928
25473
|
TextEllipsisTooltip_default,
|
|
24929
25474
|
{
|
|
24930
25475
|
title: title ?? "\xA0",
|
|
@@ -24947,7 +25492,7 @@ var ToolbarTitle = React83.forwardRef(function ToolbarTitle2({
|
|
|
24947
25492
|
},
|
|
24948
25493
|
children: [
|
|
24949
25494
|
title || "\xA0",
|
|
24950
|
-
hoverActions && showHoverActions && /* @__PURE__ */
|
|
25495
|
+
hoverActions && showHoverActions && /* @__PURE__ */ jsx163(
|
|
24951
25496
|
Box_default,
|
|
24952
25497
|
{
|
|
24953
25498
|
sx: {
|
|
@@ -24976,13 +25521,13 @@ var Slide_default = Slide;
|
|
|
24976
25521
|
|
|
24977
25522
|
// src/components/widget/WidgetLegendItem.tsx
|
|
24978
25523
|
import { ButtonBase as ButtonBase6 } from "@mui/material";
|
|
24979
|
-
import { jsx as
|
|
25524
|
+
import { jsx as jsx164, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
24980
25525
|
var WidgetLegendItem = ({
|
|
24981
25526
|
groupLabel,
|
|
24982
25527
|
legendDirection = "column",
|
|
24983
25528
|
items = [],
|
|
24984
25529
|
onClick
|
|
24985
|
-
}) => /* @__PURE__ */
|
|
25530
|
+
}) => /* @__PURE__ */ jsx164(
|
|
24986
25531
|
ButtonBase6,
|
|
24987
25532
|
{
|
|
24988
25533
|
tabIndex: onClick ? 0 : -1,
|
|
@@ -25008,7 +25553,7 @@ var WidgetLegendItem = ({
|
|
|
25008
25553
|
color: grey800
|
|
25009
25554
|
},
|
|
25010
25555
|
children: [
|
|
25011
|
-
groupLabel && /* @__PURE__ */
|
|
25556
|
+
groupLabel && /* @__PURE__ */ jsx164(
|
|
25012
25557
|
Typography_default,
|
|
25013
25558
|
{
|
|
25014
25559
|
variant: "overline",
|
|
@@ -25040,7 +25585,7 @@ var WidgetLegendItem = ({
|
|
|
25040
25585
|
paddingRight: legendDirection === "row" ? "12px" : "inherit"
|
|
25041
25586
|
},
|
|
25042
25587
|
children: [
|
|
25043
|
-
iconColor && /* @__PURE__ */
|
|
25588
|
+
iconColor && /* @__PURE__ */ jsx164(
|
|
25044
25589
|
Icon_default,
|
|
25045
25590
|
{
|
|
25046
25591
|
id: iconId,
|
|
@@ -25051,7 +25596,7 @@ var WidgetLegendItem = ({
|
|
|
25051
25596
|
size: iconSize
|
|
25052
25597
|
}
|
|
25053
25598
|
),
|
|
25054
|
-
label && /* @__PURE__ */
|
|
25599
|
+
label && /* @__PURE__ */ jsx164(
|
|
25055
25600
|
Typography_default,
|
|
25056
25601
|
{
|
|
25057
25602
|
variant: "caption",
|
|
@@ -25060,7 +25605,7 @@ var WidgetLegendItem = ({
|
|
|
25060
25605
|
children: label
|
|
25061
25606
|
}
|
|
25062
25607
|
),
|
|
25063
|
-
value && /* @__PURE__ */
|
|
25608
|
+
value && /* @__PURE__ */ jsx164(
|
|
25064
25609
|
Typography_default,
|
|
25065
25610
|
{
|
|
25066
25611
|
sx: style3,
|
|
@@ -25069,7 +25614,7 @@ var WidgetLegendItem = ({
|
|
|
25069
25614
|
children: value
|
|
25070
25615
|
}
|
|
25071
25616
|
),
|
|
25072
|
-
incrementLabelValue && /* @__PURE__ */
|
|
25617
|
+
incrementLabelValue && /* @__PURE__ */ jsx164(
|
|
25073
25618
|
IncrementLabel_default,
|
|
25074
25619
|
{
|
|
25075
25620
|
label: incrementLabelValue,
|
|
@@ -25095,8 +25640,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
|
|
|
25095
25640
|
|
|
25096
25641
|
// src/components/widget/Widget.tsx
|
|
25097
25642
|
import MuiCard2 from "@mui/material/Card";
|
|
25098
|
-
import { jsx as
|
|
25099
|
-
var Widget = ({ children }) => /* @__PURE__ */
|
|
25643
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
25644
|
+
var Widget = ({ children }) => /* @__PURE__ */ jsx165(
|
|
25100
25645
|
MuiCard2,
|
|
25101
25646
|
{
|
|
25102
25647
|
variant: "elevation",
|
|
@@ -25120,8 +25665,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx164(
|
|
|
25120
25665
|
var Widget_default = Widget;
|
|
25121
25666
|
|
|
25122
25667
|
// src/components/widget/WidgetActions.tsx
|
|
25123
|
-
import { jsx as
|
|
25124
|
-
var WidgetActions = ({ children }) => /* @__PURE__ */
|
|
25668
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
25669
|
+
var WidgetActions = ({ children }) => /* @__PURE__ */ jsx166(
|
|
25125
25670
|
Box_default,
|
|
25126
25671
|
{
|
|
25127
25672
|
sx: {
|
|
@@ -25135,8 +25680,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx165(
|
|
|
25135
25680
|
var WidgetActions_default = WidgetActions;
|
|
25136
25681
|
|
|
25137
25682
|
// src/components/widget/WidgetTitle.tsx
|
|
25138
|
-
import { jsx as
|
|
25139
|
-
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */
|
|
25683
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
25684
|
+
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx167(
|
|
25140
25685
|
Box_default,
|
|
25141
25686
|
{
|
|
25142
25687
|
sx: {
|
|
@@ -25146,7 +25691,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
25146
25691
|
maxWidth: "100%",
|
|
25147
25692
|
...sx
|
|
25148
25693
|
},
|
|
25149
|
-
children: /* @__PURE__ */
|
|
25694
|
+
children: /* @__PURE__ */ jsx167(
|
|
25150
25695
|
Typography_default,
|
|
25151
25696
|
{
|
|
25152
25697
|
variant: "subtitle2",
|
|
@@ -25160,18 +25705,18 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
25160
25705
|
}
|
|
25161
25706
|
)
|
|
25162
25707
|
}
|
|
25163
|
-
) : /* @__PURE__ */
|
|
25708
|
+
) : /* @__PURE__ */ jsx167("span", {});
|
|
25164
25709
|
var WidgetTitle_default = WidgetTitle;
|
|
25165
25710
|
|
|
25166
25711
|
// src/components/window/MinimizableWindow.tsx
|
|
25167
|
-
import * as
|
|
25168
|
-
import { Fragment as
|
|
25712
|
+
import * as React85 from "react";
|
|
25713
|
+
import { Fragment as Fragment33, jsx as jsx168, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
25169
25714
|
var sizes6 = {
|
|
25170
25715
|
M: 400,
|
|
25171
25716
|
L: 500,
|
|
25172
25717
|
XL: 600
|
|
25173
25718
|
};
|
|
25174
|
-
var
|
|
25719
|
+
var styles2 = {
|
|
25175
25720
|
backgroundColor: dark900,
|
|
25176
25721
|
color: "white",
|
|
25177
25722
|
borderRadius: "16px",
|
|
@@ -25190,7 +25735,7 @@ var iconButtonsStyles = {
|
|
|
25190
25735
|
backgroundColor: "rgba(255, 255, 255, 0.2)"
|
|
25191
25736
|
}
|
|
25192
25737
|
};
|
|
25193
|
-
var MinimizableWindow =
|
|
25738
|
+
var MinimizableWindow = React85.forwardRef(function MinimizableWindow2({
|
|
25194
25739
|
children,
|
|
25195
25740
|
title,
|
|
25196
25741
|
size = "M",
|
|
@@ -25205,17 +25750,17 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25205
25750
|
onBack
|
|
25206
25751
|
}, ref) {
|
|
25207
25752
|
const { t } = useTranslation();
|
|
25208
|
-
const overlayRef =
|
|
25209
|
-
const windowRef =
|
|
25210
|
-
const headerRef =
|
|
25211
|
-
const [isDraggingState, setIsDraggingState] =
|
|
25212
|
-
const diffRef =
|
|
25213
|
-
|
|
25753
|
+
const overlayRef = React85.useRef(null);
|
|
25754
|
+
const windowRef = React85.useRef(null);
|
|
25755
|
+
const headerRef = React85.useRef(null);
|
|
25756
|
+
const [isDraggingState, setIsDraggingState] = React85.useState(false);
|
|
25757
|
+
const diffRef = React85.useRef({ x: 0, y: 0 });
|
|
25758
|
+
React85.useImperativeHandle(ref, () => ({
|
|
25214
25759
|
window: windowRef.current,
|
|
25215
25760
|
header: headerRef.current,
|
|
25216
25761
|
overlay: overlayRef.current
|
|
25217
25762
|
}));
|
|
25218
|
-
|
|
25763
|
+
React85.useEffect(() => {
|
|
25219
25764
|
if (open) {
|
|
25220
25765
|
overlayRef.current?.style.removeProperty("transform");
|
|
25221
25766
|
overlayRef.current?.style.removeProperty("opacity");
|
|
@@ -25277,8 +25822,8 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25277
25822
|
}
|
|
25278
25823
|
}, 750);
|
|
25279
25824
|
};
|
|
25280
|
-
return /* @__PURE__ */ jsxs78(
|
|
25281
|
-
isDraggingState && /* @__PURE__ */
|
|
25825
|
+
return /* @__PURE__ */ jsxs78(Fragment33, { children: [
|
|
25826
|
+
isDraggingState && /* @__PURE__ */ jsx168(
|
|
25282
25827
|
Box_default,
|
|
25283
25828
|
{
|
|
25284
25829
|
sx: {
|
|
@@ -25294,7 +25839,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25294
25839
|
onMouseMove: (ev) => handleMouseMove(ev)
|
|
25295
25840
|
}
|
|
25296
25841
|
),
|
|
25297
|
-
/* @__PURE__ */
|
|
25842
|
+
/* @__PURE__ */ jsx168(
|
|
25298
25843
|
Box_default,
|
|
25299
25844
|
{
|
|
25300
25845
|
ref: overlayRef,
|
|
@@ -25315,7 +25860,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25315
25860
|
Stack_default,
|
|
25316
25861
|
{
|
|
25317
25862
|
sx: {
|
|
25318
|
-
...
|
|
25863
|
+
...styles2,
|
|
25319
25864
|
...sx
|
|
25320
25865
|
},
|
|
25321
25866
|
ref: windowRef,
|
|
@@ -25336,19 +25881,19 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25336
25881
|
onMouseDown: handleMouseDown,
|
|
25337
25882
|
minHeight: "44px",
|
|
25338
25883
|
children: [
|
|
25339
|
-
/* @__PURE__ */
|
|
25884
|
+
/* @__PURE__ */ jsx168(
|
|
25340
25885
|
Stack_default,
|
|
25341
25886
|
{
|
|
25342
25887
|
direction: "row",
|
|
25343
25888
|
alignItems: "center",
|
|
25344
25889
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
25345
|
-
children: showBackButton && /* @__PURE__ */
|
|
25890
|
+
children: showBackButton && /* @__PURE__ */ jsx168(
|
|
25346
25891
|
Tooltip_default,
|
|
25347
25892
|
{
|
|
25348
25893
|
title: t("MINIMIZABLE_WINDOW.GO_BACK"),
|
|
25349
25894
|
zIndex: 999999,
|
|
25350
25895
|
placement: "top",
|
|
25351
|
-
children: /* @__PURE__ */
|
|
25896
|
+
children: /* @__PURE__ */ jsx168(
|
|
25352
25897
|
IconButton_default,
|
|
25353
25898
|
{
|
|
25354
25899
|
size: "S",
|
|
@@ -25361,7 +25906,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25361
25906
|
)
|
|
25362
25907
|
}
|
|
25363
25908
|
),
|
|
25364
|
-
/* @__PURE__ */
|
|
25909
|
+
/* @__PURE__ */ jsx168(
|
|
25365
25910
|
Box_default,
|
|
25366
25911
|
{
|
|
25367
25912
|
sx: {
|
|
@@ -25369,7 +25914,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25369
25914
|
left: "50%",
|
|
25370
25915
|
transform: "translateX(-50%)"
|
|
25371
25916
|
},
|
|
25372
|
-
children: typeof title === "string" ? /* @__PURE__ */
|
|
25917
|
+
children: typeof title === "string" ? /* @__PURE__ */ jsx168(Typography_default, { children: title }) : title
|
|
25373
25918
|
}
|
|
25374
25919
|
),
|
|
25375
25920
|
/* @__PURE__ */ jsxs78(
|
|
@@ -25379,13 +25924,13 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25379
25924
|
alignItems: "center",
|
|
25380
25925
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
25381
25926
|
children: [
|
|
25382
|
-
/* @__PURE__ */
|
|
25927
|
+
/* @__PURE__ */ jsx168(Box_default, { children: /* @__PURE__ */ jsx168(
|
|
25383
25928
|
Tooltip_default,
|
|
25384
25929
|
{
|
|
25385
25930
|
title: t("MINIMIZABLE_WINDOW.MINIMIZE"),
|
|
25386
25931
|
zIndex: 999999,
|
|
25387
25932
|
placement: "top",
|
|
25388
|
-
children: /* @__PURE__ */
|
|
25933
|
+
children: /* @__PURE__ */ jsx168(
|
|
25389
25934
|
IconButton_default,
|
|
25390
25935
|
{
|
|
25391
25936
|
size: "S",
|
|
@@ -25401,13 +25946,13 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25401
25946
|
)
|
|
25402
25947
|
}
|
|
25403
25948
|
) }),
|
|
25404
|
-
closeable && /* @__PURE__ */
|
|
25949
|
+
closeable && /* @__PURE__ */ jsx168(Box_default, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx168(
|
|
25405
25950
|
Tooltip_default,
|
|
25406
25951
|
{
|
|
25407
25952
|
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
25408
25953
|
zIndex: 999999,
|
|
25409
25954
|
placement: "top",
|
|
25410
|
-
children: /* @__PURE__ */
|
|
25955
|
+
children: /* @__PURE__ */ jsx168(
|
|
25411
25956
|
IconButton_default,
|
|
25412
25957
|
{
|
|
25413
25958
|
size: "S",
|
|
@@ -25424,7 +25969,7 @@ var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
|
25424
25969
|
]
|
|
25425
25970
|
}
|
|
25426
25971
|
),
|
|
25427
|
-
/* @__PURE__ */
|
|
25972
|
+
/* @__PURE__ */ jsx168(
|
|
25428
25973
|
Stack_default,
|
|
25429
25974
|
{
|
|
25430
25975
|
sx: {
|
|
@@ -25690,9 +26235,18 @@ react-is/cjs/react-is.development.js:
|
|
|
25690
26235
|
* LICENSE file in the root directory of this source tree.
|
|
25691
26236
|
*)
|
|
25692
26237
|
|
|
25693
|
-
@mui/styled-engine/index.js:
|
|
26238
|
+
@mui/styled-engine/esm/index.js:
|
|
26239
|
+
(**
|
|
26240
|
+
* @mui/styled-engine v7.2.0
|
|
26241
|
+
*
|
|
26242
|
+
* @license MIT
|
|
26243
|
+
* This source code is licensed under the MIT license found in the
|
|
26244
|
+
* LICENSE file in the root directory of this source tree.
|
|
26245
|
+
*)
|
|
26246
|
+
|
|
26247
|
+
@mui/system/esm/index.js:
|
|
25694
26248
|
(**
|
|
25695
|
-
* @mui/
|
|
26249
|
+
* @mui/system v7.2.0
|
|
25696
26250
|
*
|
|
25697
26251
|
* @license MIT
|
|
25698
26252
|
* This source code is licensed under the MIT license found in the
|