@vitessce/biomarker-select 3.5.2 → 3.5.4
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/index.js +324 -432
- package/dist-tsc/default-async-functions.d.ts +21 -0
- package/dist-tsc/default-async-functions.d.ts.map +1 -1
- package/dist-tsc/default-async-functions.js +64 -1
- package/dist-tsc/index.d.ts +1 -1
- package/dist-tsc/index.js +1 -1
- package/package.json +4 -4
- package/src/default-async-functions.js +72 -1
- package/src/index.js +2 -0
package/dist/index.js
CHANGED
|
@@ -909,12 +909,17 @@ const ViewType = {
|
|
|
909
909
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
910
910
|
DOT_PLOT: "dotPlot",
|
|
911
911
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
912
|
-
BIOMARKER_SELECT: "biomarkerSelect"
|
|
912
|
+
BIOMARKER_SELECT: "biomarkerSelect",
|
|
913
|
+
LINK_CONTROLLER: "linkController"
|
|
913
914
|
};
|
|
914
915
|
const AsyncFunctionType = {
|
|
915
916
|
// String input (rather than Node input)
|
|
916
917
|
AUTOCOMPLETE_FEATURE: "autocompleteFeature",
|
|
917
918
|
// (partial: string, targetModality: null | 'gene' | 'protein' | 'genomic-region' | 'cell-type') -> list of feature nodes
|
|
919
|
+
GET_ALTERNATIVE_TERMS: "getAlternativeTerms",
|
|
920
|
+
// (curieString) -> list of alternative curie strings
|
|
921
|
+
GET_TERM_MAPPING: "getTermMapping",
|
|
922
|
+
// (keyCuriePrefix, valueCuriePrefix) -> Record<curieString, curieString> for key to value
|
|
918
923
|
TRANSFORM_FEATURE: "transformFeature",
|
|
919
924
|
// (featureNode, targetModality) -> list of feature nodes from target modality
|
|
920
925
|
RELATED_FEATURES: "relatedFeatures",
|
|
@@ -1469,6 +1474,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1469
1474
|
CoordinationType.OBS_COLOR_ENCODING,
|
|
1470
1475
|
CoordinationType.ADDITIONAL_OBS_SETS
|
|
1471
1476
|
],
|
|
1477
|
+
[ViewType.LINK_CONTROLLER]: [],
|
|
1472
1478
|
[ViewType.BIOMARKER_SELECT]: [
|
|
1473
1479
|
CoordinationType.FEATURE_SELECTION,
|
|
1474
1480
|
CoordinationType.SAMPLE_SET_SELECTION
|
|
@@ -1618,16 +1624,16 @@ function _extends$2() {
|
|
|
1618
1624
|
};
|
|
1619
1625
|
return _extends$2.apply(this, arguments);
|
|
1620
1626
|
}
|
|
1621
|
-
function _typeof$
|
|
1627
|
+
function _typeof$1(obj) {
|
|
1622
1628
|
"@babel/helpers - typeof";
|
|
1623
|
-
return _typeof$
|
|
1629
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
1624
1630
|
return typeof obj2;
|
|
1625
1631
|
} : function(obj2) {
|
|
1626
1632
|
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
1627
|
-
}, _typeof$
|
|
1633
|
+
}, _typeof$1(obj);
|
|
1628
1634
|
}
|
|
1629
1635
|
function isPlainObject$1(item) {
|
|
1630
|
-
return item && _typeof$
|
|
1636
|
+
return item && _typeof$1(item) === "object" && item.constructor === Object;
|
|
1631
1637
|
}
|
|
1632
1638
|
function deepmerge(target, source) {
|
|
1633
1639
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
@@ -2424,12 +2430,12 @@ function elementTypeAcceptingRef(props, propName, componentName, location, propF
|
|
|
2424
2430
|
}
|
|
2425
2431
|
const elementTypeAcceptingRef$1 = chainPropTypes$1(propTypesExports.elementType, elementTypeAcceptingRef);
|
|
2426
2432
|
function _toPrimitive(input, hint) {
|
|
2427
|
-
if (_typeof$
|
|
2433
|
+
if (_typeof$1(input) !== "object" || input === null)
|
|
2428
2434
|
return input;
|
|
2429
2435
|
var prim = input[Symbol.toPrimitive];
|
|
2430
2436
|
if (prim !== void 0) {
|
|
2431
2437
|
var res = prim.call(input, hint || "default");
|
|
2432
|
-
if (_typeof$
|
|
2438
|
+
if (_typeof$1(res) !== "object")
|
|
2433
2439
|
return res;
|
|
2434
2440
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2435
2441
|
}
|
|
@@ -2437,9 +2443,9 @@ function _toPrimitive(input, hint) {
|
|
|
2437
2443
|
}
|
|
2438
2444
|
function _toPropertyKey(arg) {
|
|
2439
2445
|
var key = _toPrimitive(arg, "string");
|
|
2440
|
-
return _typeof$
|
|
2446
|
+
return _typeof$1(key) === "symbol" ? key : String(key);
|
|
2441
2447
|
}
|
|
2442
|
-
function _defineProperty
|
|
2448
|
+
function _defineProperty(obj, key, value) {
|
|
2443
2449
|
key = _toPropertyKey(key);
|
|
2444
2450
|
if (key in obj) {
|
|
2445
2451
|
Object.defineProperty(obj, key, {
|
|
@@ -2455,7 +2461,7 @@ function _defineProperty$1(obj, key, value) {
|
|
|
2455
2461
|
}
|
|
2456
2462
|
var specialProperty = "exact-prop: ";
|
|
2457
2463
|
function exactProp(propTypes2) {
|
|
2458
|
-
return _extends$2({}, propTypes2, _defineProperty
|
|
2464
|
+
return _extends$2({}, propTypes2, _defineProperty({}, specialProperty, function(props) {
|
|
2459
2465
|
var unsupportedProps = Object.keys(props).filter(function(prop) {
|
|
2460
2466
|
return !propTypes2.hasOwnProperty(prop);
|
|
2461
2467
|
});
|
|
@@ -2686,7 +2692,7 @@ function getDisplayName(Component) {
|
|
|
2686
2692
|
if (typeof Component === "function") {
|
|
2687
2693
|
return getFunctionComponentName(Component, "Component");
|
|
2688
2694
|
}
|
|
2689
|
-
if (_typeof$
|
|
2695
|
+
if (_typeof$1(Component) === "object") {
|
|
2690
2696
|
switch (Component.$$typeof) {
|
|
2691
2697
|
case reactIsExports.ForwardRef:
|
|
2692
2698
|
return getWrappedName(Component, Component.render, "ForwardRef");
|
|
@@ -2864,20 +2870,7 @@ function lighten(color2, coefficient) {
|
|
|
2864
2870
|
}
|
|
2865
2871
|
return recomposeColor(color2);
|
|
2866
2872
|
}
|
|
2867
|
-
function
|
|
2868
|
-
if (key in obj) {
|
|
2869
|
-
Object.defineProperty(obj, key, {
|
|
2870
|
-
value,
|
|
2871
|
-
enumerable: true,
|
|
2872
|
-
configurable: true,
|
|
2873
|
-
writable: true
|
|
2874
|
-
});
|
|
2875
|
-
} else {
|
|
2876
|
-
obj[key] = value;
|
|
2877
|
-
}
|
|
2878
|
-
return obj;
|
|
2879
|
-
}
|
|
2880
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
2873
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2881
2874
|
if (source == null)
|
|
2882
2875
|
return {};
|
|
2883
2876
|
var target = {};
|
|
@@ -2891,10 +2884,10 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
2891
2884
|
}
|
|
2892
2885
|
return target;
|
|
2893
2886
|
}
|
|
2894
|
-
function _objectWithoutProperties
|
|
2887
|
+
function _objectWithoutProperties(source, excluded) {
|
|
2895
2888
|
if (source == null)
|
|
2896
2889
|
return {};
|
|
2897
|
-
var target = _objectWithoutPropertiesLoose
|
|
2890
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
2898
2891
|
var key, i;
|
|
2899
2892
|
if (Object.getOwnPropertySymbols) {
|
|
2900
2893
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -2909,20 +2902,6 @@ function _objectWithoutProperties$1(source, excluded) {
|
|
|
2909
2902
|
}
|
|
2910
2903
|
return target;
|
|
2911
2904
|
}
|
|
2912
|
-
function _extends$1() {
|
|
2913
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
2914
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2915
|
-
var source = arguments[i];
|
|
2916
|
-
for (var key in source) {
|
|
2917
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2918
|
-
target[key] = source[key];
|
|
2919
|
-
}
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
return target;
|
|
2923
|
-
};
|
|
2924
|
-
return _extends$1.apply(this, arguments);
|
|
2925
|
-
}
|
|
2926
2905
|
var keys = ["xs", "sm", "md", "lg", "xl"];
|
|
2927
2906
|
function createBreakpoints(breakpoints) {
|
|
2928
2907
|
var _breakpoints$values = breakpoints.values, values2 = _breakpoints$values === void 0 ? {
|
|
@@ -2931,7 +2910,7 @@ function createBreakpoints(breakpoints) {
|
|
|
2931
2910
|
md: 960,
|
|
2932
2911
|
lg: 1280,
|
|
2933
2912
|
xl: 1920
|
|
2934
|
-
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties
|
|
2913
|
+
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
|
|
2935
2914
|
function up2(key) {
|
|
2936
2915
|
var value = typeof values2[key] === "number" ? values2[key] : key;
|
|
2937
2916
|
return "@media (min-width:".concat(value).concat(unit, ")");
|
|
@@ -2965,7 +2944,7 @@ function createBreakpoints(breakpoints) {
|
|
|
2965
2944
|
}
|
|
2966
2945
|
return values2[key];
|
|
2967
2946
|
}
|
|
2968
|
-
return _extends$
|
|
2947
|
+
return _extends$2({
|
|
2969
2948
|
keys,
|
|
2970
2949
|
values: values2,
|
|
2971
2950
|
up: up2,
|
|
@@ -2977,14 +2956,14 @@ function createBreakpoints(breakpoints) {
|
|
|
2977
2956
|
}
|
|
2978
2957
|
function createMixins(breakpoints, spacing2, mixins) {
|
|
2979
2958
|
var _toolbar;
|
|
2980
|
-
return _extends$
|
|
2959
|
+
return _extends$2({
|
|
2981
2960
|
gutters: function gutters() {
|
|
2982
2961
|
var styles44 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2983
2962
|
console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
|
|
2984
|
-
return _extends$
|
|
2963
|
+
return _extends$2({
|
|
2985
2964
|
paddingLeft: spacing2(2),
|
|
2986
2965
|
paddingRight: spacing2(2)
|
|
2987
|
-
}, styles44, _defineProperty({}, breakpoints.up("sm"), _extends$
|
|
2966
|
+
}, styles44, _defineProperty({}, breakpoints.up("sm"), _extends$2({
|
|
2988
2967
|
paddingLeft: spacing2(3),
|
|
2989
2968
|
paddingRight: spacing2(3)
|
|
2990
2969
|
}, styles44[breakpoints.up("sm")])));
|
|
@@ -3103,7 +3082,7 @@ function createPalette(palette2) {
|
|
|
3103
3082
|
light: green$1[300],
|
|
3104
3083
|
main: green$1[500],
|
|
3105
3084
|
dark: green$1[700]
|
|
3106
|
-
} : _palette$success, _palette$type = palette2.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette2.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette2.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties
|
|
3085
|
+
} : _palette$success, _palette$type = palette2.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette2.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette2.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette2, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
|
3107
3086
|
function getContrastText(background) {
|
|
3108
3087
|
var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
|
|
3109
3088
|
{
|
|
@@ -3118,7 +3097,7 @@ function createPalette(palette2) {
|
|
|
3118
3097
|
var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
|
|
3119
3098
|
var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
|
|
3120
3099
|
var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
|
|
3121
|
-
color2 = _extends$
|
|
3100
|
+
color2 = _extends$2({}, color2);
|
|
3122
3101
|
if (!color2.main && color2[mainShade]) {
|
|
3123
3102
|
color2.main = color2[mainShade];
|
|
3124
3103
|
}
|
|
@@ -3144,7 +3123,7 @@ function createPalette(palette2) {
|
|
|
3144
3123
|
console.error("Material-UI: The palette type `".concat(type, "` is not supported."));
|
|
3145
3124
|
}
|
|
3146
3125
|
}
|
|
3147
|
-
var paletteOutput = deepmerge(_extends$
|
|
3126
|
+
var paletteOutput = deepmerge(_extends$2({
|
|
3148
3127
|
// A collection of common colors.
|
|
3149
3128
|
common: common$1,
|
|
3150
3129
|
// The palette type, can be light or dark.
|
|
@@ -3195,7 +3174,7 @@ var caseAllCaps = {
|
|
|
3195
3174
|
};
|
|
3196
3175
|
var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
3197
3176
|
function createTypography(palette2, typography2) {
|
|
3198
|
-
var _ref5 = typeof typography2 === "function" ? typography2(palette2) : typography2, _ref$fontFamily = _ref5.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref5.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref5.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref5.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref5.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref5.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref5.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref5.allVariants, pxToRem2 = _ref5.pxToRem, other = _objectWithoutProperties
|
|
3177
|
+
var _ref5 = typeof typography2 === "function" ? typography2(palette2) : typography2, _ref$fontFamily = _ref5.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref5.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref5.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref5.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref5.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref5.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref5.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref5.allVariants, pxToRem2 = _ref5.pxToRem, other = _objectWithoutProperties(_ref5, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
|
|
3199
3178
|
{
|
|
3200
3179
|
if (typeof fontSize2 !== "number") {
|
|
3201
3180
|
console.error("Material-UI: `fontSize` is required to be a number.");
|
|
@@ -3209,7 +3188,7 @@ function createTypography(palette2, typography2) {
|
|
|
3209
3188
|
return "".concat(size2 / htmlFontSize * coef, "rem");
|
|
3210
3189
|
};
|
|
3211
3190
|
var buildVariant = function buildVariant2(fontWeight2, size2, lineHeight2, letterSpacing2, casing) {
|
|
3212
|
-
return _extends$
|
|
3191
|
+
return _extends$2({
|
|
3213
3192
|
fontFamily: fontFamily2,
|
|
3214
3193
|
fontWeight: fontWeight2,
|
|
3215
3194
|
fontSize: pxToRem(size2),
|
|
@@ -3234,7 +3213,7 @@ function createTypography(palette2, typography2) {
|
|
|
3234
3213
|
caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
|
|
3235
3214
|
overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
|
|
3236
3215
|
};
|
|
3237
|
-
return deepmerge(_extends$
|
|
3216
|
+
return deepmerge(_extends$2({
|
|
3238
3217
|
htmlFontSize,
|
|
3239
3218
|
pxToRem,
|
|
3240
3219
|
round: roundWithDeprecationWarning,
|
|
@@ -3264,39 +3243,39 @@ var shape = {
|
|
|
3264
3243
|
const shape$1 = shape;
|
|
3265
3244
|
var responsivePropType = re.oneOfType([re.number, re.string, re.object, re.array]);
|
|
3266
3245
|
const responsivePropType$1 = responsivePropType;
|
|
3267
|
-
function _arrayLikeToArray
|
|
3246
|
+
function _arrayLikeToArray(arr, len) {
|
|
3268
3247
|
if (len == null || len > arr.length)
|
|
3269
3248
|
len = arr.length;
|
|
3270
3249
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
3271
3250
|
arr2[i] = arr[i];
|
|
3272
3251
|
return arr2;
|
|
3273
3252
|
}
|
|
3274
|
-
function _arrayWithoutHoles
|
|
3253
|
+
function _arrayWithoutHoles(arr) {
|
|
3275
3254
|
if (Array.isArray(arr))
|
|
3276
|
-
return _arrayLikeToArray
|
|
3255
|
+
return _arrayLikeToArray(arr);
|
|
3277
3256
|
}
|
|
3278
|
-
function _iterableToArray
|
|
3257
|
+
function _iterableToArray(iter) {
|
|
3279
3258
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
3280
3259
|
return Array.from(iter);
|
|
3281
3260
|
}
|
|
3282
|
-
function _unsupportedIterableToArray
|
|
3261
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
3283
3262
|
if (!o)
|
|
3284
3263
|
return;
|
|
3285
3264
|
if (typeof o === "string")
|
|
3286
|
-
return _arrayLikeToArray
|
|
3265
|
+
return _arrayLikeToArray(o, minLen);
|
|
3287
3266
|
var n2 = Object.prototype.toString.call(o).slice(8, -1);
|
|
3288
3267
|
if (n2 === "Object" && o.constructor)
|
|
3289
3268
|
n2 = o.constructor.name;
|
|
3290
3269
|
if (n2 === "Map" || n2 === "Set")
|
|
3291
3270
|
return Array.from(o);
|
|
3292
3271
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
3293
|
-
return _arrayLikeToArray
|
|
3272
|
+
return _arrayLikeToArray(o, minLen);
|
|
3294
3273
|
}
|
|
3295
|
-
function _nonIterableSpread
|
|
3274
|
+
function _nonIterableSpread() {
|
|
3296
3275
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3297
3276
|
}
|
|
3298
|
-
function _toConsumableArray
|
|
3299
|
-
return _arrayWithoutHoles
|
|
3277
|
+
function _toConsumableArray(arr) {
|
|
3278
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
3300
3279
|
}
|
|
3301
3280
|
function merge(acc, item) {
|
|
3302
3281
|
if (!item) {
|
|
@@ -3335,7 +3314,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
3335
3314
|
return acc;
|
|
3336
3315
|
}, {});
|
|
3337
3316
|
}
|
|
3338
|
-
if (_typeof$
|
|
3317
|
+
if (_typeof$1(propValue) === "object") {
|
|
3339
3318
|
var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
|
|
3340
3319
|
return Object.keys(propValue).reduce(function(acc, breakpoint) {
|
|
3341
3320
|
acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
|
|
@@ -3377,11 +3356,11 @@ function style$1(options) {
|
|
|
3377
3356
|
if (cssProperty === false) {
|
|
3378
3357
|
return value;
|
|
3379
3358
|
}
|
|
3380
|
-
return _defineProperty
|
|
3359
|
+
return _defineProperty({}, cssProperty, value);
|
|
3381
3360
|
};
|
|
3382
3361
|
return handleBreakpoints(props, propValue, styleFromPropValue);
|
|
3383
3362
|
};
|
|
3384
|
-
fn2.propTypes = _defineProperty
|
|
3363
|
+
fn2.propTypes = _defineProperty({}, prop, responsivePropType$1);
|
|
3385
3364
|
fn2.filterProps = [prop];
|
|
3386
3365
|
return fn2;
|
|
3387
3366
|
}
|
|
@@ -3482,7 +3461,7 @@ function styleFunctionSx(styleFunction2) {
|
|
|
3482
3461
|
}),
|
|
3483
3462
|
sx: re.object
|
|
3484
3463
|
});
|
|
3485
|
-
newStyleFunction.filterProps = ["css", "sx"].concat(_toConsumableArray
|
|
3464
|
+
newStyleFunction.filterProps = ["css", "sx"].concat(_toConsumableArray(styleFunction2.filterProps));
|
|
3486
3465
|
return newStyleFunction;
|
|
3487
3466
|
}
|
|
3488
3467
|
var displayPrint = style$1({
|
|
@@ -3669,11 +3648,11 @@ var boxSizing = style$1({
|
|
|
3669
3648
|
});
|
|
3670
3649
|
var sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
|
|
3671
3650
|
const sizing$1 = sizing;
|
|
3672
|
-
function _arrayWithHoles
|
|
3651
|
+
function _arrayWithHoles(arr) {
|
|
3673
3652
|
if (Array.isArray(arr))
|
|
3674
3653
|
return arr;
|
|
3675
3654
|
}
|
|
3676
|
-
function _iterableToArrayLimit
|
|
3655
|
+
function _iterableToArrayLimit(arr, i) {
|
|
3677
3656
|
var _i2 = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3678
3657
|
if (null != _i2) {
|
|
3679
3658
|
var _s, _e2, _x, _r, _arr = [], _n2 = true, _d = false;
|
|
@@ -3699,11 +3678,11 @@ function _iterableToArrayLimit$1(arr, i) {
|
|
|
3699
3678
|
return _arr;
|
|
3700
3679
|
}
|
|
3701
3680
|
}
|
|
3702
|
-
function _nonIterableRest
|
|
3681
|
+
function _nonIterableRest() {
|
|
3703
3682
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3704
3683
|
}
|
|
3705
|
-
function _slicedToArray
|
|
3706
|
-
return _arrayWithHoles
|
|
3684
|
+
function _slicedToArray(arr, i) {
|
|
3685
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
3707
3686
|
}
|
|
3708
3687
|
function memoize$1(fn2) {
|
|
3709
3688
|
var cache2 = {};
|
|
@@ -3740,7 +3719,7 @@ var getCssProperties = memoize$1(function(prop) {
|
|
|
3740
3719
|
return [prop];
|
|
3741
3720
|
}
|
|
3742
3721
|
}
|
|
3743
|
-
var _prop$split = prop.split(""), _prop$split2 = _slicedToArray
|
|
3722
|
+
var _prop$split = prop.split(""), _prop$split2 = _slicedToArray(_prop$split, 2), a = _prop$split2[0], b = _prop$split2[1];
|
|
3744
3723
|
var property = properties[a];
|
|
3745
3724
|
var direction = directions[b] || "";
|
|
3746
3725
|
return Array.isArray(direction) ? direction.map(function(dir) {
|
|
@@ -3926,7 +3905,7 @@ const transitions = {
|
|
|
3926
3905
|
create: function create() {
|
|
3927
3906
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
|
|
3928
3907
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3929
|
-
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties
|
|
3908
|
+
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
|
|
3930
3909
|
{
|
|
3931
3910
|
var isString2 = function isString3(value) {
|
|
3932
3911
|
return typeof value === "string";
|
|
@@ -3974,7 +3953,7 @@ var zIndex = {
|
|
|
3974
3953
|
const zIndex$1 = zIndex;
|
|
3975
3954
|
function createTheme() {
|
|
3976
3955
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3977
|
-
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties
|
|
3956
|
+
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
|
|
3978
3957
|
var palette2 = createPalette(paletteInput);
|
|
3979
3958
|
var breakpoints = createBreakpoints(breakpointsInput);
|
|
3980
3959
|
var spacing2 = createSpacing(spacingInput);
|
|
@@ -4114,13 +4093,13 @@ function warning(condition, message) {
|
|
|
4114
4093
|
}
|
|
4115
4094
|
}
|
|
4116
4095
|
}
|
|
4117
|
-
var _typeof
|
|
4096
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
4118
4097
|
return typeof obj;
|
|
4119
4098
|
} : function(obj) {
|
|
4120
4099
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
4121
4100
|
};
|
|
4122
|
-
var isBrowser$1 = (typeof window === "undefined" ? "undefined" : _typeof
|
|
4123
|
-
function _defineProperties
|
|
4101
|
+
var isBrowser$1 = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === "object" && document.nodeType === 9;
|
|
4102
|
+
function _defineProperties(target, props) {
|
|
4124
4103
|
for (var i = 0; i < props.length; i++) {
|
|
4125
4104
|
var descriptor = props[i];
|
|
4126
4105
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -4130,11 +4109,11 @@ function _defineProperties$1(target, props) {
|
|
|
4130
4109
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
4131
4110
|
}
|
|
4132
4111
|
}
|
|
4133
|
-
function _createClass
|
|
4112
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
4134
4113
|
if (protoProps)
|
|
4135
|
-
_defineProperties
|
|
4114
|
+
_defineProperties(Constructor.prototype, protoProps);
|
|
4136
4115
|
if (staticProps)
|
|
4137
|
-
_defineProperties
|
|
4116
|
+
_defineProperties(Constructor, staticProps);
|
|
4138
4117
|
Object.defineProperty(Constructor, "prototype", {
|
|
4139
4118
|
writable: false
|
|
4140
4119
|
});
|
|
@@ -4158,20 +4137,6 @@ function _assertThisInitialized(self2) {
|
|
|
4158
4137
|
}
|
|
4159
4138
|
return self2;
|
|
4160
4139
|
}
|
|
4161
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
4162
|
-
if (source == null)
|
|
4163
|
-
return {};
|
|
4164
|
-
var target = {};
|
|
4165
|
-
var sourceKeys = Object.keys(source);
|
|
4166
|
-
var key, i;
|
|
4167
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
4168
|
-
key = sourceKeys[i];
|
|
4169
|
-
if (excluded.indexOf(key) >= 0)
|
|
4170
|
-
continue;
|
|
4171
|
-
target[key] = source[key];
|
|
4172
|
-
}
|
|
4173
|
-
return target;
|
|
4174
|
-
}
|
|
4175
4140
|
var plainObjectConstrurctor = {}.constructor;
|
|
4176
4141
|
function cloneStyle(style) {
|
|
4177
4142
|
if (style == null || typeof style !== "object")
|
|
@@ -4402,7 +4367,7 @@ var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
|
4402
4367
|
}) : options;
|
|
4403
4368
|
return toCss(this.selectorText, this.style, opts);
|
|
4404
4369
|
};
|
|
4405
|
-
_createClass
|
|
4370
|
+
_createClass(StyleRule2, [{
|
|
4406
4371
|
key: "selector",
|
|
4407
4372
|
set: function set2(selector) {
|
|
4408
4373
|
if (selector === this.selectorText)
|
|
@@ -5137,7 +5102,7 @@ var SheetsRegistry = /* @__PURE__ */ function() {
|
|
|
5137
5102
|
}
|
|
5138
5103
|
return css2;
|
|
5139
5104
|
};
|
|
5140
|
-
_createClass
|
|
5105
|
+
_createClass(SheetsRegistry2, [{
|
|
5141
5106
|
key: "index",
|
|
5142
5107
|
/**
|
|
5143
5108
|
* Current highest index number.
|
|
@@ -5646,6 +5611,20 @@ var functionPlugin = function functionPlugin2() {
|
|
|
5646
5611
|
};
|
|
5647
5612
|
};
|
|
5648
5613
|
const functions = functionPlugin;
|
|
5614
|
+
function _extends$1() {
|
|
5615
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
5616
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
5617
|
+
var source = arguments[i];
|
|
5618
|
+
for (var key in source) {
|
|
5619
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5620
|
+
target[key] = source[key];
|
|
5621
|
+
}
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
5624
|
+
return target;
|
|
5625
|
+
};
|
|
5626
|
+
return _extends$1.apply(this, arguments);
|
|
5627
|
+
}
|
|
5649
5628
|
var at$1 = "@global";
|
|
5650
5629
|
var atPrefix = "@global ";
|
|
5651
5630
|
var GlobalContainerRule = /* @__PURE__ */ function() {
|
|
@@ -6394,7 +6373,7 @@ var propertyDetectors = plugins.filter(function(p) {
|
|
|
6394
6373
|
var noPrefill = plugins.filter(function(p) {
|
|
6395
6374
|
return p.noPrefill;
|
|
6396
6375
|
}).reduce(function(a, p) {
|
|
6397
|
-
a.push.apply(a, _toConsumableArray
|
|
6376
|
+
a.push.apply(a, _toConsumableArray(p.noPrefill));
|
|
6398
6377
|
return a;
|
|
6399
6378
|
}, []);
|
|
6400
6379
|
var el$1;
|
|
@@ -6570,24 +6549,6 @@ function jssPreset() {
|
|
|
6570
6549
|
]
|
|
6571
6550
|
};
|
|
6572
6551
|
}
|
|
6573
|
-
function _objectWithoutProperties(source, excluded) {
|
|
6574
|
-
if (source == null)
|
|
6575
|
-
return {};
|
|
6576
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
6577
|
-
var key, i;
|
|
6578
|
-
if (Object.getOwnPropertySymbols) {
|
|
6579
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
6580
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
6581
|
-
key = sourceSymbolKeys[i];
|
|
6582
|
-
if (excluded.indexOf(key) >= 0)
|
|
6583
|
-
continue;
|
|
6584
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
6585
|
-
continue;
|
|
6586
|
-
target[key] = source[key];
|
|
6587
|
-
}
|
|
6588
|
-
}
|
|
6589
|
-
return target;
|
|
6590
|
-
}
|
|
6591
6552
|
function mergeClasses() {
|
|
6592
6553
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6593
6554
|
var baseClasses = options.baseClasses, newClasses = options.newClasses, Component = options.Component;
|
|
@@ -6771,7 +6732,7 @@ const noopTheme$1 = noopTheme;
|
|
|
6771
6732
|
function getStylesCreator(stylesOrCreator) {
|
|
6772
6733
|
var themingEnabled = typeof stylesOrCreator === "function";
|
|
6773
6734
|
{
|
|
6774
|
-
if (_typeof$
|
|
6735
|
+
if (_typeof$1(stylesOrCreator) !== "object" && !themingEnabled) {
|
|
6775
6736
|
console.error(["Material-UI: The `styles` argument provided is invalid.", "You need to provide a function generating the styles or a styles object."].join("\n"));
|
|
6776
6737
|
}
|
|
6777
6738
|
}
|
|
@@ -6995,7 +6956,7 @@ function makeStyles$1(stylesOrCreator) {
|
|
|
6995
6956
|
};
|
|
6996
6957
|
return useStyles2;
|
|
6997
6958
|
}
|
|
6998
|
-
function _classCallCheck
|
|
6959
|
+
function _classCallCheck(instance, Constructor) {
|
|
6999
6960
|
if (!(instance instanceof Constructor)) {
|
|
7000
6961
|
throw new TypeError("Cannot call a class as a function");
|
|
7001
6962
|
}
|
|
@@ -7003,10 +6964,10 @@ function _classCallCheck$1(instance, Constructor) {
|
|
|
7003
6964
|
var ServerStyleSheets = /* @__PURE__ */ function() {
|
|
7004
6965
|
function ServerStyleSheets2() {
|
|
7005
6966
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7006
|
-
_classCallCheck
|
|
6967
|
+
_classCallCheck(this, ServerStyleSheets2);
|
|
7007
6968
|
this.options = options;
|
|
7008
6969
|
}
|
|
7009
|
-
_createClass
|
|
6970
|
+
_createClass(ServerStyleSheets2, [{
|
|
7010
6971
|
key: "collect",
|
|
7011
6972
|
value: function collect(children) {
|
|
7012
6973
|
var sheetsManager2 = /* @__PURE__ */ new Map();
|
|
@@ -7416,7 +7377,7 @@ var defaultTheme = createTheme();
|
|
|
7416
7377
|
const defaultTheme$1 = defaultTheme;
|
|
7417
7378
|
function makeStyles(stylesOrCreator) {
|
|
7418
7379
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7419
|
-
return makeStyles$1(stylesOrCreator, _extends$
|
|
7380
|
+
return makeStyles$1(stylesOrCreator, _extends$2({
|
|
7420
7381
|
defaultTheme: defaultTheme$1
|
|
7421
7382
|
}, options));
|
|
7422
7383
|
}
|
|
@@ -7483,8 +7444,8 @@ function responsiveProperty(_ref32) {
|
|
|
7483
7444
|
function responsiveFontSizes(themeInput) {
|
|
7484
7445
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7485
7446
|
var _options$breakpoints = options.breakpoints, breakpoints = _options$breakpoints === void 0 ? ["sm", "md", "lg"] : _options$breakpoints, _options$disableAlign = options.disableAlign, disableAlign = _options$disableAlign === void 0 ? false : _options$disableAlign, _options$factor = options.factor, factor = _options$factor === void 0 ? 2 : _options$factor, _options$variants = options.variants, variants = _options$variants === void 0 ? ["h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "caption", "button", "overline"] : _options$variants;
|
|
7486
|
-
var theme = _extends$
|
|
7487
|
-
theme.typography = _extends$
|
|
7447
|
+
var theme = _extends$2({}, themeInput);
|
|
7448
|
+
theme.typography = _extends$2({}, theme.typography);
|
|
7488
7449
|
var typography2 = theme.typography;
|
|
7489
7450
|
var convert = convertLength(typography2.htmlFontSize);
|
|
7490
7451
|
var breakpointValues = breakpoints.map(function(x) {
|
|
@@ -7518,7 +7479,7 @@ function responsiveFontSizes(themeInput) {
|
|
|
7518
7479
|
});
|
|
7519
7480
|
};
|
|
7520
7481
|
}
|
|
7521
|
-
typography2[variant] = _extends$
|
|
7482
|
+
typography2[variant] = _extends$2({}, style, responsiveProperty({
|
|
7522
7483
|
cssProperty: "fontSize",
|
|
7523
7484
|
min: minFontSize,
|
|
7524
7485
|
max: maxFontSize,
|
|
@@ -7532,7 +7493,7 @@ function responsiveFontSizes(themeInput) {
|
|
|
7532
7493
|
var styled = function styled2(Component) {
|
|
7533
7494
|
var componentCreator = styled$2(Component);
|
|
7534
7495
|
return function(style, options) {
|
|
7535
|
-
return componentCreator(style, _extends$
|
|
7496
|
+
return componentCreator(style, _extends$2({
|
|
7536
7497
|
defaultTheme: defaultTheme$1
|
|
7537
7498
|
}, options));
|
|
7538
7499
|
};
|
|
@@ -7546,7 +7507,7 @@ function useTheme() {
|
|
|
7546
7507
|
return theme;
|
|
7547
7508
|
}
|
|
7548
7509
|
function withStyles2(stylesOrCreator, options) {
|
|
7549
|
-
return withStylesWithoutDefault(stylesOrCreator, _extends$
|
|
7510
|
+
return withStylesWithoutDefault(stylesOrCreator, _extends$2({
|
|
7550
7511
|
defaultTheme: defaultTheme$1
|
|
7551
7512
|
}, options));
|
|
7552
7513
|
}
|
|
@@ -7666,8 +7627,8 @@ var styles$T = function styles(theme) {
|
|
|
7666
7627
|
};
|
|
7667
7628
|
};
|
|
7668
7629
|
var SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(props, ref) {
|
|
7669
|
-
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize2 = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties
|
|
7670
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
7630
|
+
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize2 = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
|
|
7631
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
7671
7632
|
className: clsx(classes.root, className, color2 !== "inherit" && classes["color".concat(capitalize(color2))], fontSize2 !== "default" && fontSize2 !== "medium" && classes["fontSize".concat(capitalize(fontSize2))]),
|
|
7672
7633
|
focusable: "false",
|
|
7673
7634
|
viewBox,
|
|
@@ -7745,7 +7706,7 @@ const SvgIcon$1 = withStyles2(styles$T, {
|
|
|
7745
7706
|
})(SvgIcon);
|
|
7746
7707
|
function createSvgIcon(path, displayName) {
|
|
7747
7708
|
var Component = function Component2(props, ref) {
|
|
7748
|
-
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$
|
|
7709
|
+
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$2({
|
|
7749
7710
|
ref
|
|
7750
7711
|
}, props), path);
|
|
7751
7712
|
};
|
|
@@ -7961,72 +7922,9 @@ function useIsFocusVisible() {
|
|
|
7961
7922
|
ref
|
|
7962
7923
|
};
|
|
7963
7924
|
}
|
|
7964
|
-
function _arrayWithHoles(arr) {
|
|
7965
|
-
if (Array.isArray(arr))
|
|
7966
|
-
return arr;
|
|
7967
|
-
}
|
|
7968
|
-
function _iterableToArray(iter) {
|
|
7969
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
7970
|
-
return Array.from(iter);
|
|
7971
|
-
}
|
|
7972
|
-
function _arrayLikeToArray(arr, len) {
|
|
7973
|
-
if (len == null || len > arr.length)
|
|
7974
|
-
len = arr.length;
|
|
7975
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
7976
|
-
arr2[i] = arr[i];
|
|
7977
|
-
}
|
|
7978
|
-
return arr2;
|
|
7979
|
-
}
|
|
7980
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
7981
|
-
if (!o)
|
|
7982
|
-
return;
|
|
7983
|
-
if (typeof o === "string")
|
|
7984
|
-
return _arrayLikeToArray(o, minLen);
|
|
7985
|
-
var n2 = Object.prototype.toString.call(o).slice(8, -1);
|
|
7986
|
-
if (n2 === "Object" && o.constructor)
|
|
7987
|
-
n2 = o.constructor.name;
|
|
7988
|
-
if (n2 === "Map" || n2 === "Set")
|
|
7989
|
-
return Array.from(o);
|
|
7990
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
7991
|
-
return _arrayLikeToArray(o, minLen);
|
|
7992
|
-
}
|
|
7993
|
-
function _nonIterableRest() {
|
|
7994
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7995
|
-
}
|
|
7996
7925
|
function _toArray(arr) {
|
|
7997
7926
|
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
7998
7927
|
}
|
|
7999
|
-
function _iterableToArrayLimit(arr, i) {
|
|
8000
|
-
var _i2 = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8001
|
-
if (_i2 == null)
|
|
8002
|
-
return;
|
|
8003
|
-
var _arr = [];
|
|
8004
|
-
var _n2 = true;
|
|
8005
|
-
var _d = false;
|
|
8006
|
-
var _s, _e2;
|
|
8007
|
-
try {
|
|
8008
|
-
for (_i2 = _i2.call(arr); !(_n2 = (_s = _i2.next()).done); _n2 = true) {
|
|
8009
|
-
_arr.push(_s.value);
|
|
8010
|
-
if (i && _arr.length === i)
|
|
8011
|
-
break;
|
|
8012
|
-
}
|
|
8013
|
-
} catch (err) {
|
|
8014
|
-
_d = true;
|
|
8015
|
-
_e2 = err;
|
|
8016
|
-
} finally {
|
|
8017
|
-
try {
|
|
8018
|
-
if (!_n2 && _i2["return"] != null)
|
|
8019
|
-
_i2["return"]();
|
|
8020
|
-
} finally {
|
|
8021
|
-
if (_d)
|
|
8022
|
-
throw _e2;
|
|
8023
|
-
}
|
|
8024
|
-
}
|
|
8025
|
-
return _arr;
|
|
8026
|
-
}
|
|
8027
|
-
function _slicedToArray(arr, i) {
|
|
8028
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
8029
|
-
}
|
|
8030
7928
|
const config = {
|
|
8031
7929
|
disabled: false
|
|
8032
7930
|
};
|
|
@@ -8744,7 +8642,7 @@ var styles$S = function styles2(theme) {
|
|
|
8744
8642
|
};
|
|
8745
8643
|
};
|
|
8746
8644
|
var Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(props, ref) {
|
|
8747
|
-
var children = props.children, classes = props.classes, className = props.className, collapsedHeight = props.collapsedHeight, _props$collapsedSize = props.collapsedSize, collapsedSizeProp = _props$collapsedSize === void 0 ? "0px" : _props$collapsedSize, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style = props.style, _props$timeout = props.timeout, timeout2 = _props$timeout === void 0 ? duration.standard : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$1 : _props$TransitionComp, other = _objectWithoutProperties
|
|
8645
|
+
var children = props.children, classes = props.classes, className = props.className, collapsedHeight = props.collapsedHeight, _props$collapsedSize = props.collapsedSize, collapsedSizeProp = _props$collapsedSize === void 0 ? "0px" : _props$collapsedSize, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style = props.style, _props$timeout = props.timeout, timeout2 = _props$timeout === void 0 ? duration.standard : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$1 : _props$TransitionComp, other = _objectWithoutProperties(props, ["children", "classes", "className", "collapsedHeight", "collapsedSize", "component", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]);
|
|
8748
8646
|
var theme = useTheme();
|
|
8749
8647
|
var timer = React.useRef();
|
|
8750
8648
|
var wrapperRef = React.useRef(null);
|
|
@@ -8836,7 +8734,7 @@ var Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(props, ref) {
|
|
|
8836
8734
|
timer.current = setTimeout(next, autoTransitionDuration.current || 0);
|
|
8837
8735
|
}
|
|
8838
8736
|
};
|
|
8839
|
-
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$
|
|
8737
|
+
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$2({
|
|
8840
8738
|
in: inProp,
|
|
8841
8739
|
onEnter: handleEnter,
|
|
8842
8740
|
onEntered: handleEntered,
|
|
@@ -8848,12 +8746,12 @@ var Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(props, ref) {
|
|
|
8848
8746
|
nodeRef: enableStrictModeCompat ? nodeRef : void 0,
|
|
8849
8747
|
timeout: timeout2 === "auto" ? null : timeout2
|
|
8850
8748
|
}, other), function(state, childProps) {
|
|
8851
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
8749
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
8852
8750
|
className: clsx(classes.root, classes.container, className, {
|
|
8853
8751
|
"entered": classes.entered,
|
|
8854
8752
|
"exited": !inProp && collapsedSize === "0px" && classes.hidden
|
|
8855
8753
|
}[state]),
|
|
8856
|
-
style: _extends$
|
|
8754
|
+
style: _extends$2({
|
|
8857
8755
|
minHeight: collapsedSize
|
|
8858
8756
|
}, style),
|
|
8859
8757
|
ref: handleRef
|
|
@@ -8963,7 +8861,7 @@ var styles$R = function styles3(theme) {
|
|
|
8963
8861
|
boxShadow: shadow
|
|
8964
8862
|
};
|
|
8965
8863
|
});
|
|
8966
|
-
return _extends$
|
|
8864
|
+
return _extends$2({
|
|
8967
8865
|
/* Styles applied to the root element. */
|
|
8968
8866
|
root: {
|
|
8969
8867
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -8981,8 +8879,8 @@ var styles$R = function styles3(theme) {
|
|
|
8981
8879
|
}, elevations);
|
|
8982
8880
|
};
|
|
8983
8881
|
var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props, ref) {
|
|
8984
|
-
var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties
|
|
8985
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
8882
|
+
var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "component", "square", "elevation", "variant"]);
|
|
8883
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
8986
8884
|
className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded),
|
|
8987
8885
|
ref
|
|
8988
8886
|
}, other));
|
|
@@ -9111,7 +9009,7 @@ var styles$Q = function styles4(theme) {
|
|
|
9111
9009
|
};
|
|
9112
9010
|
};
|
|
9113
9011
|
var Accordion = /* @__PURE__ */ React.forwardRef(function Accordion2(props, ref) {
|
|
9114
|
-
var childrenProp = props.children, classes = props.classes, className = props.className, _props$defaultExpande = props.defaultExpanded, defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, expandedProp = props.expanded, onChange = props.onChange, _props$square = props.square, square = _props$square === void 0 ? false : _props$square, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Collapse$1 : _props$TransitionComp, TransitionProps = props.TransitionProps, other = _objectWithoutProperties
|
|
9012
|
+
var childrenProp = props.children, classes = props.classes, className = props.className, _props$defaultExpande = props.defaultExpanded, defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, expandedProp = props.expanded, onChange = props.onChange, _props$square = props.square, square = _props$square === void 0 ? false : _props$square, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Collapse$1 : _props$TransitionComp, TransitionProps = props.TransitionProps, other = _objectWithoutProperties(props, ["children", "classes", "className", "defaultExpanded", "disabled", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"]);
|
|
9115
9013
|
var _useControlled = useControlled({
|
|
9116
9014
|
controlled: expandedProp,
|
|
9117
9015
|
default: defaultExpanded,
|
|
@@ -9132,13 +9030,13 @@ var Accordion = /* @__PURE__ */ React.forwardRef(function Accordion2(props, ref)
|
|
|
9132
9030
|
toggle: handleChange
|
|
9133
9031
|
};
|
|
9134
9032
|
}, [expanded, disabled, handleChange]);
|
|
9135
|
-
return /* @__PURE__ */ React.createElement(M, _extends$
|
|
9033
|
+
return /* @__PURE__ */ React.createElement(M, _extends$2({
|
|
9136
9034
|
className: clsx(classes.root, className, expanded && classes.expanded, disabled && classes.disabled, !square && classes.rounded),
|
|
9137
9035
|
ref,
|
|
9138
9036
|
square
|
|
9139
9037
|
}, other), /* @__PURE__ */ React.createElement(AccordionContext$1.Provider, {
|
|
9140
9038
|
value: contextValue
|
|
9141
|
-
}, summary), /* @__PURE__ */ React.createElement(TransitionComponent, _extends$
|
|
9039
|
+
}, summary), /* @__PURE__ */ React.createElement(TransitionComponent, _extends$2({
|
|
9142
9040
|
in: expanded,
|
|
9143
9041
|
timeout: "auto"
|
|
9144
9042
|
}, TransitionProps), /* @__PURE__ */ React.createElement("div", {
|
|
@@ -9221,8 +9119,8 @@ var styles$P = function styles5(theme) {
|
|
|
9221
9119
|
};
|
|
9222
9120
|
};
|
|
9223
9121
|
var AccordionDetails = /* @__PURE__ */ React.forwardRef(function AccordionDetails2(props, ref) {
|
|
9224
|
-
var classes = props.classes, className = props.className, other = _objectWithoutProperties
|
|
9225
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
9122
|
+
var classes = props.classes, className = props.className, other = _objectWithoutProperties(props, ["classes", "className"]);
|
|
9123
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
9226
9124
|
className: clsx(classes.root, className),
|
|
9227
9125
|
ref
|
|
9228
9126
|
}, other));
|
|
@@ -9249,16 +9147,6 @@ AccordionDetails.propTypes = {
|
|
|
9249
9147
|
const AccordionDetails$1 = withStyles2(styles$P, {
|
|
9250
9148
|
name: "MuiAccordionDetails"
|
|
9251
9149
|
})(AccordionDetails);
|
|
9252
|
-
function _arrayWithoutHoles(arr) {
|
|
9253
|
-
if (Array.isArray(arr))
|
|
9254
|
-
return _arrayLikeToArray(arr);
|
|
9255
|
-
}
|
|
9256
|
-
function _nonIterableSpread() {
|
|
9257
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9258
|
-
}
|
|
9259
|
-
function _toConsumableArray(arr) {
|
|
9260
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
9261
|
-
}
|
|
9262
9150
|
var useEnhancedEffect$7 = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
|
|
9263
9151
|
function Ripple(props) {
|
|
9264
9152
|
var classes = props.classes, _props$pulsate = props.pulsate, pulsate = _props$pulsate === void 0 ? false : _props$pulsate, rippleX = props.rippleX, rippleY = props.rippleY, rippleSize = props.rippleSize, inProp = props.in, _props$onExited = props.onExited, onExited = _props$onExited === void 0 ? function() {
|
|
@@ -9409,7 +9297,7 @@ var styles$O = function styles6(theme) {
|
|
|
9409
9297
|
};
|
|
9410
9298
|
};
|
|
9411
9299
|
var TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(props, ref) {
|
|
9412
|
-
var _props$center = props.center, centerProp = _props$center === void 0 ? false : _props$center, classes = props.classes, className = props.className, other = _objectWithoutProperties
|
|
9300
|
+
var _props$center = props.center, centerProp = _props$center === void 0 ? false : _props$center, classes = props.classes, className = props.className, other = _objectWithoutProperties(props, ["center", "classes", "className"]);
|
|
9413
9301
|
var _React$useState = React.useState([]), ripples = _React$useState[0], setRipples = _React$useState[1];
|
|
9414
9302
|
var nextKey = React.useRef(0);
|
|
9415
9303
|
var rippleCallback = React.useRef(null);
|
|
@@ -9544,7 +9432,7 @@ var TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(props,
|
|
|
9544
9432
|
stop
|
|
9545
9433
|
};
|
|
9546
9434
|
}, [pulsate, start, stop]);
|
|
9547
|
-
return /* @__PURE__ */ React.createElement("span", _extends$
|
|
9435
|
+
return /* @__PURE__ */ React.createElement("span", _extends$2({
|
|
9548
9436
|
className: clsx(classes.root, className),
|
|
9549
9437
|
ref: container
|
|
9550
9438
|
}, other), /* @__PURE__ */ React.createElement(TransitionGroup$1, {
|
|
@@ -9619,7 +9507,7 @@ var styles$N = {
|
|
|
9619
9507
|
focusVisible: {}
|
|
9620
9508
|
};
|
|
9621
9509
|
var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props, ref) {
|
|
9622
|
-
var action = props.action, buttonRefProp = props.buttonRef, _props$centerRipple = props.centerRipple, centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple, children = props.children, classes = props.classes, className = props.className, _props$component = props.component, component = _props$component === void 0 ? "button" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableRipple = props.disableRipple, disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, _props$disableTouchRi = props.disableTouchRipple, disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi, _props$focusRipple = props.focusRipple, focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple, focusVisibleClassName = props.focusVisibleClassName, onBlur = props.onBlur, onClick = props.onClick, onFocus = props.onFocus, onFocusVisible = props.onFocusVisible, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, onMouseUp = props.onMouseUp, onTouchEnd = props.onTouchEnd, onTouchMove = props.onTouchMove, onTouchStart = props.onTouchStart, onDragLeave = props.onDragLeave, _props$tabIndex = props.tabIndex, tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, TouchRippleProps = props.TouchRippleProps, _props$type = props.type, type = _props$type === void 0 ? "button" : _props$type, other = _objectWithoutProperties
|
|
9510
|
+
var action = props.action, buttonRefProp = props.buttonRef, _props$centerRipple = props.centerRipple, centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple, children = props.children, classes = props.classes, className = props.className, _props$component = props.component, component = _props$component === void 0 ? "button" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableRipple = props.disableRipple, disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, _props$disableTouchRi = props.disableTouchRipple, disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi, _props$focusRipple = props.focusRipple, focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple, focusVisibleClassName = props.focusVisibleClassName, onBlur = props.onBlur, onClick = props.onClick, onFocus = props.onFocus, onFocusVisible = props.onFocusVisible, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, onMouseUp = props.onMouseUp, onTouchEnd = props.onTouchEnd, onTouchMove = props.onTouchMove, onTouchStart = props.onTouchStart, onDragLeave = props.onDragLeave, _props$tabIndex = props.tabIndex, tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex, TouchRippleProps = props.TouchRippleProps, _props$type = props.type, type = _props$type === void 0 ? "button" : _props$type, other = _objectWithoutProperties(props, ["action", "buttonRef", "centerRipple", "children", "classes", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "onDragLeave", "tabIndex", "TouchRippleProps", "type"]);
|
|
9623
9511
|
var buttonRef = React.useRef(null);
|
|
9624
9512
|
function getButtonNode() {
|
|
9625
9513
|
return ReactDOM.findDOMNode(buttonRef.current);
|
|
@@ -9763,7 +9651,7 @@ var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props, re
|
|
|
9763
9651
|
}
|
|
9764
9652
|
}, [enableTouchRipple]);
|
|
9765
9653
|
}
|
|
9766
|
-
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$
|
|
9654
|
+
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$2({
|
|
9767
9655
|
className: clsx(classes.root, className, focusVisible && [classes.focusVisible, focusVisibleClassName], disabled && classes.disabled),
|
|
9768
9656
|
onBlur: handleBlur,
|
|
9769
9657
|
onClick,
|
|
@@ -9781,7 +9669,7 @@ var ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(props, re
|
|
|
9781
9669
|
tabIndex: disabled ? -1 : tabIndex
|
|
9782
9670
|
}, buttonProps, other), children, enableTouchRipple ? (
|
|
9783
9671
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
9784
|
-
/* @__PURE__ */ React.createElement(TouchRipple$1, _extends$
|
|
9672
|
+
/* @__PURE__ */ React.createElement(TouchRipple$1, _extends$2({
|
|
9785
9673
|
ref: rippleRef,
|
|
9786
9674
|
center: centerRipple
|
|
9787
9675
|
}, TouchRippleProps))
|
|
@@ -10012,8 +9900,8 @@ var styles$M = function styles7(theme) {
|
|
|
10012
9900
|
};
|
|
10013
9901
|
};
|
|
10014
9902
|
var IconButton = /* @__PURE__ */ React.forwardRef(function IconButton2(props, ref) {
|
|
10015
|
-
var _props$edge = props.edge, edge = _props$edge === void 0 ? false : _props$edge, children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties
|
|
10016
|
-
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$
|
|
9903
|
+
var _props$edge = props.edge, edge = _props$edge === void 0 ? false : _props$edge, children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["edge", "children", "classes", "className", "color", "disabled", "disableFocusRipple", "size"]);
|
|
9904
|
+
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$2({
|
|
10017
9905
|
className: clsx(classes.root, className, color2 !== "default" && classes["color".concat(capitalize(color2))], disabled && classes.disabled, size2 === "small" && classes["size".concat(capitalize(size2))], {
|
|
10018
9906
|
"start": classes.edgeStart,
|
|
10019
9907
|
"end": classes.edgeEnd
|
|
@@ -10139,7 +10027,7 @@ var styles$L = function styles8(theme) {
|
|
|
10139
10027
|
};
|
|
10140
10028
|
};
|
|
10141
10029
|
var AccordionSummary = /* @__PURE__ */ React.forwardRef(function AccordionSummary2(props, ref) {
|
|
10142
|
-
var children = props.children, classes = props.classes, className = props.className, expandIcon = props.expandIcon, focusVisibleClassName = props.focusVisibleClassName, _props$IconButtonProp = props.IconButtonProps, IconButtonProps = _props$IconButtonProp === void 0 ? {} : _props$IconButtonProp, onClick = props.onClick, other = _objectWithoutProperties
|
|
10030
|
+
var children = props.children, classes = props.classes, className = props.className, expandIcon = props.expandIcon, focusVisibleClassName = props.focusVisibleClassName, _props$IconButtonProp = props.IconButtonProps, IconButtonProps = _props$IconButtonProp === void 0 ? {} : _props$IconButtonProp, onClick = props.onClick, other = _objectWithoutProperties(props, ["children", "classes", "className", "expandIcon", "focusVisibleClassName", "IconButtonProps", "onClick"]);
|
|
10143
10031
|
var _React$useContext = React.useContext(AccordionContext$1), _React$useContext$dis = _React$useContext.disabled, disabled = _React$useContext$dis === void 0 ? false : _React$useContext$dis, expanded = _React$useContext.expanded, toggle = _React$useContext.toggle;
|
|
10144
10032
|
var handleChange = function handleChange2(event) {
|
|
10145
10033
|
if (toggle) {
|
|
@@ -10149,7 +10037,7 @@ var AccordionSummary = /* @__PURE__ */ React.forwardRef(function AccordionSummar
|
|
|
10149
10037
|
onClick(event);
|
|
10150
10038
|
}
|
|
10151
10039
|
};
|
|
10152
|
-
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$
|
|
10040
|
+
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$2({
|
|
10153
10041
|
focusRipple: false,
|
|
10154
10042
|
disableRipple: true,
|
|
10155
10043
|
disabled,
|
|
@@ -10161,7 +10049,7 @@ var AccordionSummary = /* @__PURE__ */ React.forwardRef(function AccordionSummar
|
|
|
10161
10049
|
ref
|
|
10162
10050
|
}, other), /* @__PURE__ */ React.createElement("div", {
|
|
10163
10051
|
className: clsx(classes.content, expanded && classes.expanded)
|
|
10164
|
-
}, children), expandIcon && /* @__PURE__ */ React.createElement(S, _extends$
|
|
10052
|
+
}, children), expandIcon && /* @__PURE__ */ React.createElement(S, _extends$2({
|
|
10165
10053
|
className: clsx(classes.expandIcon, expanded && classes.expanded),
|
|
10166
10054
|
edge: "end",
|
|
10167
10055
|
component: "div",
|
|
@@ -10450,7 +10338,7 @@ var Badge = /* @__PURE__ */ React.forwardRef(function Badge2(props, ref) {
|
|
|
10450
10338
|
var _props$anchorOrigin = props.anchorOrigin, anchorOrigin = _props$anchorOrigin === void 0 ? {
|
|
10451
10339
|
vertical: "top",
|
|
10452
10340
|
horizontal: "right"
|
|
10453
|
-
} : _props$anchorOrigin, badgeContent = props.badgeContent, children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, ComponentProp = _props$component === void 0 ? "span" : _props$component, invisibleProp = props.invisible, _props$max = props.max, max = _props$max === void 0 ? 99 : _props$max, _props$overlap = props.overlap, overlap = _props$overlap === void 0 ? "rectangle" : _props$overlap, _props$showZero = props.showZero, showZero = _props$showZero === void 0 ? false : _props$showZero, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
|
10341
|
+
} : _props$anchorOrigin, badgeContent = props.badgeContent, children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, ComponentProp = _props$component === void 0 ? "span" : _props$component, invisibleProp = props.invisible, _props$max = props.max, max = _props$max === void 0 ? 99 : _props$max, _props$overlap = props.overlap, overlap = _props$overlap === void 0 ? "rectangle" : _props$overlap, _props$showZero = props.showZero, showZero = _props$showZero === void 0 ? false : _props$showZero, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["anchorOrigin", "badgeContent", "children", "classes", "className", "color", "component", "invisible", "max", "overlap", "showZero", "variant"]);
|
|
10454
10342
|
var invisible = invisibleProp;
|
|
10455
10343
|
if (invisibleProp == null && (badgeContent === 0 && !showZero || badgeContent == null && variant !== "dot")) {
|
|
10456
10344
|
invisible = true;
|
|
@@ -10459,7 +10347,7 @@ var Badge = /* @__PURE__ */ React.forwardRef(function Badge2(props, ref) {
|
|
|
10459
10347
|
if (variant !== "dot") {
|
|
10460
10348
|
displayValue = badgeContent > max ? "".concat(max, "+") : badgeContent;
|
|
10461
10349
|
}
|
|
10462
|
-
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$
|
|
10350
|
+
return /* @__PURE__ */ React.createElement(ComponentProp, _extends$2({
|
|
10463
10351
|
className: clsx(classes.root, className),
|
|
10464
10352
|
ref
|
|
10465
10353
|
}, other), children, /* @__PURE__ */ React.createElement("span", {
|
|
@@ -10671,9 +10559,9 @@ var defaultVariantMapping = {
|
|
|
10671
10559
|
body2: "p"
|
|
10672
10560
|
};
|
|
10673
10561
|
var Typography = /* @__PURE__ */ React.forwardRef(function Typography2(props, ref) {
|
|
10674
|
-
var _props$align = props.align, align = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "initial" : _props$color, component = props.component, _props$display = props.display, display2 = _props$display === void 0 ? "initial" : _props$display, _props$gutterBottom = props.gutterBottom, gutterBottom = _props$gutterBottom === void 0 ? false : _props$gutterBottom, _props$noWrap = props.noWrap, noWrap = _props$noWrap === void 0 ? false : _props$noWrap, _props$paragraph = props.paragraph, paragraph = _props$paragraph === void 0 ? false : _props$paragraph, _props$variant = props.variant, variant = _props$variant === void 0 ? "body1" : _props$variant, _props$variantMapping = props.variantMapping, variantMapping = _props$variantMapping === void 0 ? defaultVariantMapping : _props$variantMapping, other = _objectWithoutProperties
|
|
10562
|
+
var _props$align = props.align, align = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "initial" : _props$color, component = props.component, _props$display = props.display, display2 = _props$display === void 0 ? "initial" : _props$display, _props$gutterBottom = props.gutterBottom, gutterBottom = _props$gutterBottom === void 0 ? false : _props$gutterBottom, _props$noWrap = props.noWrap, noWrap = _props$noWrap === void 0 ? false : _props$noWrap, _props$paragraph = props.paragraph, paragraph = _props$paragraph === void 0 ? false : _props$paragraph, _props$variant = props.variant, variant = _props$variant === void 0 ? "body1" : _props$variant, _props$variantMapping = props.variantMapping, variantMapping = _props$variantMapping === void 0 ? defaultVariantMapping : _props$variantMapping, other = _objectWithoutProperties(props, ["align", "classes", "className", "color", "component", "display", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"]);
|
|
10675
10563
|
var Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
10676
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
10564
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
10677
10565
|
className: clsx(classes.root, className, variant !== "inherit" && classes[variant], color2 !== "initial" && classes["color".concat(capitalize(color2))], noWrap && classes.noWrap, gutterBottom && classes.gutterBottom, paragraph && classes.paragraph, align !== "inherit" && classes["align".concat(capitalize(align))], display2 !== "initial" && classes["display".concat(capitalize(display2))]),
|
|
10678
10566
|
ref
|
|
10679
10567
|
}, other));
|
|
@@ -10743,7 +10631,7 @@ const Typography$1 = withStyles2(styles$J, {
|
|
|
10743
10631
|
var styles$I = function styles11(theme) {
|
|
10744
10632
|
return {
|
|
10745
10633
|
/* Styles applied to the root element. */
|
|
10746
|
-
root: _extends$
|
|
10634
|
+
root: _extends$2({}, theme.typography.button, {
|
|
10747
10635
|
boxSizing: "border-box",
|
|
10748
10636
|
minWidth: 64,
|
|
10749
10637
|
padding: "6px 16px",
|
|
@@ -10993,14 +10881,14 @@ var styles$I = function styles11(theme) {
|
|
|
10993
10881
|
};
|
|
10994
10882
|
};
|
|
10995
10883
|
var Button = /* @__PURE__ */ React.forwardRef(function Button2(props, ref) {
|
|
10996
|
-
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, component = _props$component === void 0 ? "button" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableElevati = props.disableElevation, disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, endIconProp = props.endIcon, focusVisibleClassName = props.focusVisibleClassName, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, startIconProp = props.startIcon, _props$type = props.type, type = _props$type === void 0 ? "button" : _props$type, _props$variant = props.variant, variant = _props$variant === void 0 ? "text" : _props$variant, other = _objectWithoutProperties
|
|
10884
|
+
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, component = _props$component === void 0 ? "button" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableElevati = props.disableElevation, disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, endIconProp = props.endIcon, focusVisibleClassName = props.focusVisibleClassName, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, startIconProp = props.startIcon, _props$type = props.type, type = _props$type === void 0 ? "button" : _props$type, _props$variant = props.variant, variant = _props$variant === void 0 ? "text" : _props$variant, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"]);
|
|
10997
10885
|
var startIcon = startIconProp && /* @__PURE__ */ React.createElement("span", {
|
|
10998
10886
|
className: clsx(classes.startIcon, classes["iconSize".concat(capitalize(size2))])
|
|
10999
10887
|
}, startIconProp);
|
|
11000
10888
|
var endIcon = endIconProp && /* @__PURE__ */ React.createElement("span", {
|
|
11001
10889
|
className: clsx(classes.endIcon, classes["iconSize".concat(capitalize(size2))])
|
|
11002
10890
|
}, endIconProp);
|
|
11003
|
-
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$
|
|
10891
|
+
return /* @__PURE__ */ React.createElement(ButtonBase$1, _extends$2({
|
|
11004
10892
|
className: clsx(classes.root, classes[variant], className, color2 === "inherit" ? classes.colorInherit : color2 !== "default" && classes["".concat(variant).concat(capitalize(color2))], size2 !== "medium" && [classes["".concat(variant, "Size").concat(capitalize(size2))], classes["size".concat(capitalize(size2))]], disableElevation && classes.disableElevation, disabled && classes.disabled, fullWidth && classes.fullWidth),
|
|
11005
10893
|
component,
|
|
11006
10894
|
disabled,
|
|
@@ -11243,9 +11131,9 @@ var styles$H = function styles12(theme) {
|
|
|
11243
11131
|
};
|
|
11244
11132
|
};
|
|
11245
11133
|
var ButtonGroup = /* @__PURE__ */ React.forwardRef(function ButtonGroup2(props, ref) {
|
|
11246
|
-
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableElevati = props.disableElevation, disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$disableRipple = props.disableRipple, disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, _props$variant = props.variant, variant = _props$variant === void 0 ? "outlined" : _props$variant, other = _objectWithoutProperties
|
|
11134
|
+
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableElevati = props.disableElevation, disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati, _props$disableFocusRi = props.disableFocusRipple, disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi, _props$disableRipple = props.disableRipple, disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, _props$variant = props.variant, variant = _props$variant === void 0 ? "outlined" : _props$variant, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"]);
|
|
11247
11135
|
var buttonClassName = clsx(classes.grouped, classes["grouped".concat(capitalize(orientation))], classes["grouped".concat(capitalize(variant))], classes["grouped".concat(capitalize(variant)).concat(capitalize(orientation))], classes["grouped".concat(capitalize(variant)).concat(color2 !== "default" ? capitalize(color2) : "")], disabled && classes.disabled);
|
|
11248
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
11136
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
11249
11137
|
role: "group",
|
|
11250
11138
|
className: clsx(classes.root, className, fullWidth && classes.fullWidth, disableElevation && classes.disableElevation, variant === "contained" && classes.contained, orientation === "vertical" && classes.vertical),
|
|
11251
11139
|
ref
|
|
@@ -11366,7 +11254,7 @@ var styles$G = {
|
|
|
11366
11254
|
}
|
|
11367
11255
|
};
|
|
11368
11256
|
var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props, ref) {
|
|
11369
|
-
var autoFocus = props.autoFocus, checkedProp = props.checked, checkedIcon = props.checkedIcon, classes = props.classes, className = props.className, defaultChecked = props.defaultChecked, disabledProp = props.disabled, icon = props.icon, id = props.id, inputProps = props.inputProps, inputRef = props.inputRef, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, readOnly = props.readOnly, required = props.required, tabIndex = props.tabIndex, type = props.type, value = props.value, other = _objectWithoutProperties
|
|
11257
|
+
var autoFocus = props.autoFocus, checkedProp = props.checked, checkedIcon = props.checkedIcon, classes = props.classes, className = props.className, defaultChecked = props.defaultChecked, disabledProp = props.disabled, icon = props.icon, id = props.id, inputProps = props.inputProps, inputRef = props.inputRef, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, readOnly = props.readOnly, required = props.required, tabIndex = props.tabIndex, type = props.type, value = props.value, other = _objectWithoutProperties(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
|
|
11370
11258
|
var _useControlled = useControlled({
|
|
11371
11259
|
controlled: checkedProp,
|
|
11372
11260
|
default: Boolean(defaultChecked),
|
|
@@ -11404,7 +11292,7 @@ var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props, re
|
|
|
11404
11292
|
}
|
|
11405
11293
|
}
|
|
11406
11294
|
var hasLabelFor = type === "checkbox" || type === "radio";
|
|
11407
|
-
return /* @__PURE__ */ React.createElement(S, _extends$
|
|
11295
|
+
return /* @__PURE__ */ React.createElement(S, _extends$2({
|
|
11408
11296
|
component: "span",
|
|
11409
11297
|
className: clsx(classes.root, className, checked && classes.checked, disabled && classes.disabled),
|
|
11410
11298
|
disabled,
|
|
@@ -11413,7 +11301,7 @@ var SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props, re
|
|
|
11413
11301
|
onFocus: handleFocus,
|
|
11414
11302
|
onBlur: handleBlur,
|
|
11415
11303
|
ref
|
|
11416
|
-
}, other), /* @__PURE__ */ React.createElement("input", _extends$
|
|
11304
|
+
}, other), /* @__PURE__ */ React.createElement("input", _extends$2({
|
|
11417
11305
|
autoFocus,
|
|
11418
11306
|
checked: checkedProp,
|
|
11419
11307
|
defaultChecked,
|
|
@@ -11579,10 +11467,10 @@ var defaultCheckedIcon$1 = /* @__PURE__ */ React.createElement(CheckBoxIcon, nul
|
|
|
11579
11467
|
var defaultIcon$1 = /* @__PURE__ */ React.createElement(CheckBoxOutlineBlankIcon, null);
|
|
11580
11468
|
var defaultIndeterminateIcon = /* @__PURE__ */ React.createElement(IndeterminateCheckBoxIcon, null);
|
|
11581
11469
|
var Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(props, ref) {
|
|
11582
|
-
var _props$checkedIcon = props.checkedIcon, checkedIcon = _props$checkedIcon === void 0 ? defaultCheckedIcon$1 : _props$checkedIcon, classes = props.classes, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, _props$icon = props.icon, iconProp = _props$icon === void 0 ? defaultIcon$1 : _props$icon, _props$indeterminate = props.indeterminate, indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate, _props$indeterminateI = props.indeterminateIcon, indeterminateIconProp = _props$indeterminateI === void 0 ? defaultIndeterminateIcon : _props$indeterminateI, inputProps = props.inputProps, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties
|
|
11470
|
+
var _props$checkedIcon = props.checkedIcon, checkedIcon = _props$checkedIcon === void 0 ? defaultCheckedIcon$1 : _props$checkedIcon, classes = props.classes, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, _props$icon = props.icon, iconProp = _props$icon === void 0 ? defaultIcon$1 : _props$icon, _props$indeterminate = props.indeterminate, indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate, _props$indeterminateI = props.indeterminateIcon, indeterminateIconProp = _props$indeterminateI === void 0 ? defaultIndeterminateIcon : _props$indeterminateI, inputProps = props.inputProps, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["checkedIcon", "classes", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"]);
|
|
11583
11471
|
var icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
11584
11472
|
var indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
11585
|
-
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$
|
|
11473
|
+
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$2({
|
|
11586
11474
|
type: "checkbox",
|
|
11587
11475
|
classes: {
|
|
11588
11476
|
root: clsx(classes.root, classes["color".concat(capitalize(color2))], indeterminate && classes.indeterminate),
|
|
@@ -11590,7 +11478,7 @@ var Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(props, ref) {
|
|
|
11590
11478
|
disabled: classes.disabled
|
|
11591
11479
|
},
|
|
11592
11480
|
color: color2,
|
|
11593
|
-
inputProps: _extends$
|
|
11481
|
+
inputProps: _extends$2({
|
|
11594
11482
|
"data-indeterminate": indeterminate
|
|
11595
11483
|
}, inputProps),
|
|
11596
11484
|
icon: /* @__PURE__ */ React.cloneElement(icon, {
|
|
@@ -11939,7 +11827,7 @@ function isDeleteKeyboardEvent(keyboardEvent) {
|
|
|
11939
11827
|
return keyboardEvent.key === "Backspace" || keyboardEvent.key === "Delete";
|
|
11940
11828
|
}
|
|
11941
11829
|
var Chip = /* @__PURE__ */ React.forwardRef(function Chip2(props, ref) {
|
|
11942
|
-
var avatarProp = props.avatar, classes = props.classes, className = props.className, clickableProp = props.clickable, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, ComponentProp = props.component, deleteIconProp = props.deleteIcon, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, iconProp = props.icon, label = props.label, onClick = props.onClick, onDelete = props.onDelete, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, _props$variant = props.variant, variant = _props$variant === void 0 ? "default" : _props$variant, other = _objectWithoutProperties
|
|
11830
|
+
var avatarProp = props.avatar, classes = props.classes, className = props.className, clickableProp = props.clickable, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, ComponentProp = props.component, deleteIconProp = props.deleteIcon, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, iconProp = props.icon, label = props.label, onClick = props.onClick, onDelete = props.onDelete, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, _props$variant = props.variant, variant = _props$variant === void 0 ? "default" : _props$variant, other = _objectWithoutProperties(props, ["avatar", "classes", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"]);
|
|
11943
11831
|
var chipRef = React.useRef(null);
|
|
11944
11832
|
var handleRef = useForkRef(chipRef, ref);
|
|
11945
11833
|
var handleDeleteIconClick = function handleDeleteIconClick2(event) {
|
|
@@ -12002,7 +11890,7 @@ var Chip = /* @__PURE__ */ React.forwardRef(function Chip2(props, ref) {
|
|
|
12002
11890
|
console.error("Material-UI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");
|
|
12003
11891
|
}
|
|
12004
11892
|
}
|
|
12005
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
11893
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
12006
11894
|
role: clickable || onDelete ? "button" : void 0,
|
|
12007
11895
|
className: clsx(classes.root, className, color2 !== "default" && [classes["color".concat(capitalize(color2))], clickable && classes["clickableColor".concat(capitalize(color2))], onDelete && classes["deletableColor".concat(capitalize(color2))]], variant !== "default" && [classes.outlined, {
|
|
12008
11896
|
"primary": classes.outlinedPrimary,
|
|
@@ -12187,7 +12075,7 @@ var styles$D = function styles15(theme) {
|
|
|
12187
12075
|
};
|
|
12188
12076
|
};
|
|
12189
12077
|
var CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgress2(props, ref) {
|
|
12190
|
-
var classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$disableShrink = props.disableShrink, disableShrink = _props$disableShrink === void 0 ? false : _props$disableShrink, _props$size = props.size, size2 = _props$size === void 0 ? 40 : _props$size, style = props.style, _props$thickness = props.thickness, thickness = _props$thickness === void 0 ? 3.6 : _props$thickness, _props$value = props.value, value = _props$value === void 0 ? 0 : _props$value, _props$variant = props.variant, variant = _props$variant === void 0 ? "indeterminate" : _props$variant, other = _objectWithoutProperties
|
|
12078
|
+
var classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$disableShrink = props.disableShrink, disableShrink = _props$disableShrink === void 0 ? false : _props$disableShrink, _props$size = props.size, size2 = _props$size === void 0 ? 40 : _props$size, style = props.style, _props$thickness = props.thickness, thickness = _props$thickness === void 0 ? 3.6 : _props$thickness, _props$value = props.value, value = _props$value === void 0 ? 0 : _props$value, _props$variant = props.variant, variant = _props$variant === void 0 ? "indeterminate" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"]);
|
|
12191
12079
|
var circleStyle = {};
|
|
12192
12080
|
var rootStyle = {};
|
|
12193
12081
|
var rootProps = {};
|
|
@@ -12198,13 +12086,13 @@ var CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgres
|
|
|
12198
12086
|
circleStyle.strokeDashoffset = "".concat(((100 - value) / 100 * circumference).toFixed(3), "px");
|
|
12199
12087
|
rootStyle.transform = "rotate(-90deg)";
|
|
12200
12088
|
}
|
|
12201
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
12089
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
12202
12090
|
className: clsx(classes.root, className, color2 !== "inherit" && classes["color".concat(capitalize(color2))], {
|
|
12203
12091
|
"determinate": classes.determinate,
|
|
12204
12092
|
"indeterminate": classes.indeterminate,
|
|
12205
12093
|
"static": classes.static
|
|
12206
12094
|
}[variant]),
|
|
12207
|
-
style: _extends$
|
|
12095
|
+
style: _extends$2({
|
|
12208
12096
|
width: size2,
|
|
12209
12097
|
height: size2
|
|
12210
12098
|
}, rootStyle, style),
|
|
@@ -12484,31 +12372,6 @@ Portal.propTypes = {
|
|
|
12484
12372
|
Portal["propTypes"] = exactProp(Portal.propTypes);
|
|
12485
12373
|
}
|
|
12486
12374
|
const Portal$1 = Portal;
|
|
12487
|
-
function _classCallCheck(instance, Constructor) {
|
|
12488
|
-
if (!(instance instanceof Constructor)) {
|
|
12489
|
-
throw new TypeError("Cannot call a class as a function");
|
|
12490
|
-
}
|
|
12491
|
-
}
|
|
12492
|
-
function _defineProperties(target, props) {
|
|
12493
|
-
for (var i = 0; i < props.length; i++) {
|
|
12494
|
-
var descriptor = props[i];
|
|
12495
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
12496
|
-
descriptor.configurable = true;
|
|
12497
|
-
if ("value" in descriptor)
|
|
12498
|
-
descriptor.writable = true;
|
|
12499
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12500
|
-
}
|
|
12501
|
-
}
|
|
12502
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
12503
|
-
if (protoProps)
|
|
12504
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
12505
|
-
if (staticProps)
|
|
12506
|
-
_defineProperties(Constructor, staticProps);
|
|
12507
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
12508
|
-
writable: false
|
|
12509
|
-
});
|
|
12510
|
-
return Constructor;
|
|
12511
|
-
}
|
|
12512
12375
|
function getScrollbarSize$1() {
|
|
12513
12376
|
var scrollDiv = document.createElement("div");
|
|
12514
12377
|
scrollDiv.style.width = "99px";
|
|
@@ -12856,12 +12719,12 @@ var styles$C = {
|
|
|
12856
12719
|
}
|
|
12857
12720
|
};
|
|
12858
12721
|
var SimpleBackdrop = /* @__PURE__ */ React.forwardRef(function SimpleBackdrop2(props, ref) {
|
|
12859
|
-
var _props$invisible = props.invisible, invisible = _props$invisible === void 0 ? false : _props$invisible, open = props.open, other = _objectWithoutProperties
|
|
12860
|
-
return open ? /* @__PURE__ */ React.createElement("div", _extends$
|
|
12722
|
+
var _props$invisible = props.invisible, invisible = _props$invisible === void 0 ? false : _props$invisible, open = props.open, other = _objectWithoutProperties(props, ["invisible", "open"]);
|
|
12723
|
+
return open ? /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
12861
12724
|
"aria-hidden": true,
|
|
12862
12725
|
ref
|
|
12863
12726
|
}, other, {
|
|
12864
|
-
style: _extends$
|
|
12727
|
+
style: _extends$2({}, styles$C.root, invisible ? styles$C.invisible : {}, other.style)
|
|
12865
12728
|
})) : null;
|
|
12866
12729
|
});
|
|
12867
12730
|
SimpleBackdrop.propTypes = {
|
|
@@ -12905,10 +12768,10 @@ var Modal = /* @__PURE__ */ React.forwardRef(function Modal2(inProps, ref) {
|
|
|
12905
12768
|
var theme = useTheme$1();
|
|
12906
12769
|
var props = getThemeProps({
|
|
12907
12770
|
name: "MuiModal",
|
|
12908
|
-
props: _extends$
|
|
12771
|
+
props: _extends$2({}, inProps),
|
|
12909
12772
|
theme
|
|
12910
12773
|
});
|
|
12911
|
-
var _props$BackdropCompon = props.BackdropComponent, BackdropComponent = _props$BackdropCompon === void 0 ? SimpleBackdrop$1 : _props$BackdropCompon, BackdropProps = props.BackdropProps, children = props.children, _props$closeAfterTran = props.closeAfterTransition, closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran, container = props.container, _props$disableAutoFoc = props.disableAutoFocus, disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$disableBackdro = props.disableBackdropClick, disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, _props$disableEnforce = props.disableEnforceFocus, disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, _props$disableEscapeK = props.disableEscapeKeyDown, disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$disableRestore = props.disableRestoreFocus, disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, _props$disableScrollL = props.disableScrollLock, disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL, _props$hideBackdrop = props.hideBackdrop, hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, _props$manager = props.manager, manager = _props$manager === void 0 ? defaultManager : _props$manager, onBackdropClick = props.onBackdropClick, onClose = props.onClose, onEscapeKeyDown = props.onEscapeKeyDown, onRendered = props.onRendered, open = props.open, other = _objectWithoutProperties
|
|
12774
|
+
var _props$BackdropCompon = props.BackdropComponent, BackdropComponent = _props$BackdropCompon === void 0 ? SimpleBackdrop$1 : _props$BackdropCompon, BackdropProps = props.BackdropProps, children = props.children, _props$closeAfterTran = props.closeAfterTransition, closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran, container = props.container, _props$disableAutoFoc = props.disableAutoFocus, disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$disableBackdro = props.disableBackdropClick, disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, _props$disableEnforce = props.disableEnforceFocus, disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, _props$disableEscapeK = props.disableEscapeKeyDown, disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$disableRestore = props.disableRestoreFocus, disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, _props$disableScrollL = props.disableScrollLock, disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL, _props$hideBackdrop = props.hideBackdrop, hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, _props$manager = props.manager, manager = _props$manager === void 0 ? defaultManager : _props$manager, onBackdropClick = props.onBackdropClick, onClose = props.onClose, onEscapeKeyDown = props.onEscapeKeyDown, onRendered = props.onRendered, open = props.open, other = _objectWithoutProperties(props, ["BackdropComponent", "BackdropProps", "children", "closeAfterTransition", "container", "disableAutoFocus", "disableBackdropClick", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onEscapeKeyDown", "onRendered", "open"]);
|
|
12912
12775
|
var _React$useState = React.useState(true), exited = _React$useState[0], setExited = _React$useState[1];
|
|
12913
12776
|
var modal = React.useRef({});
|
|
12914
12777
|
var mountNodeRef = React.useRef(null);
|
|
@@ -13020,13 +12883,13 @@ var Modal = /* @__PURE__ */ React.forwardRef(function Modal2(inProps, ref) {
|
|
|
13020
12883
|
ref: handlePortalRef,
|
|
13021
12884
|
container,
|
|
13022
12885
|
disablePortal
|
|
13023
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
|
12886
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
13024
12887
|
ref: handleRef,
|
|
13025
12888
|
onKeyDown: handleKeyDown2,
|
|
13026
12889
|
role: "presentation"
|
|
13027
12890
|
}, other, {
|
|
13028
|
-
style: _extends$
|
|
13029
|
-
}), hideBackdrop ? null : /* @__PURE__ */ React.createElement(BackdropComponent, _extends$
|
|
12891
|
+
style: _extends$2({}, inlineStyle.root, !open && exited ? inlineStyle.hidden : {}, other.style)
|
|
12892
|
+
}), hideBackdrop ? null : /* @__PURE__ */ React.createElement(BackdropComponent, _extends$2({
|
|
13030
12893
|
open,
|
|
13031
12894
|
onClick: handleBackdropClick
|
|
13032
12895
|
}, BackdropProps)), /* @__PURE__ */ React.createElement(Unstable_TrapFocus, {
|
|
@@ -13178,7 +13041,7 @@ var styles$A = {
|
|
|
13178
13041
|
}
|
|
13179
13042
|
};
|
|
13180
13043
|
var TextareaAutosize = /* @__PURE__ */ React.forwardRef(function TextareaAutosize2(props, ref) {
|
|
13181
|
-
var onChange = props.onChange, rows = props.rows, rowsMax = props.rowsMax, rowsMinProp = props.rowsMin, maxRowsProp = props.maxRows, _props$minRows = props.minRows, minRowsProp = _props$minRows === void 0 ? 1 : _props$minRows, style = props.style, value = props.value, other = _objectWithoutProperties
|
|
13044
|
+
var onChange = props.onChange, rows = props.rows, rowsMax = props.rowsMax, rowsMinProp = props.rowsMin, maxRowsProp = props.maxRows, _props$minRows = props.minRows, minRowsProp = _props$minRows === void 0 ? 1 : _props$minRows, style = props.style, value = props.value, other = _objectWithoutProperties(props, ["onChange", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "style", "value"]);
|
|
13182
13045
|
var maxRows = maxRowsProp || rowsMax;
|
|
13183
13046
|
var minRows = rows || rowsMinProp || minRowsProp;
|
|
13184
13047
|
var _React$useRef = React.useRef(value != null), isControlled = _React$useRef.current;
|
|
@@ -13254,12 +13117,12 @@ var TextareaAutosize = /* @__PURE__ */ React.forwardRef(function TextareaAutosiz
|
|
|
13254
13117
|
onChange(event);
|
|
13255
13118
|
}
|
|
13256
13119
|
};
|
|
13257
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("textarea", _extends$
|
|
13120
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("textarea", _extends$2({
|
|
13258
13121
|
value,
|
|
13259
13122
|
onChange: handleChange,
|
|
13260
13123
|
ref: handleRef,
|
|
13261
13124
|
rows: minRows,
|
|
13262
|
-
style: _extends$
|
|
13125
|
+
style: _extends$2({
|
|
13263
13126
|
height: state.outerHeightStyle,
|
|
13264
13127
|
// Need a large enough difference to allow scrolling.
|
|
13265
13128
|
// This prevents infinite rendering loop.
|
|
@@ -13271,7 +13134,7 @@ var TextareaAutosize = /* @__PURE__ */ React.forwardRef(function TextareaAutosiz
|
|
|
13271
13134
|
readOnly: true,
|
|
13272
13135
|
ref: shadowRef,
|
|
13273
13136
|
tabIndex: -1,
|
|
13274
|
-
style: _extends$
|
|
13137
|
+
style: _extends$2({}, styles$A.shadow, style)
|
|
13275
13138
|
}));
|
|
13276
13139
|
});
|
|
13277
13140
|
TextareaAutosize.propTypes = {
|
|
@@ -13355,7 +13218,7 @@ var styles$z = function styles17(theme) {
|
|
|
13355
13218
|
"@keyframes mui-auto-fill-cancel": {}
|
|
13356
13219
|
},
|
|
13357
13220
|
/* Styles applied to the root element. */
|
|
13358
|
-
root: _extends$
|
|
13221
|
+
root: _extends$2({}, theme.typography.body1, {
|
|
13359
13222
|
color: theme.palette.text.primary,
|
|
13360
13223
|
lineHeight: "1.1876em",
|
|
13361
13224
|
// Reset (19px), match the native input line-height
|
|
@@ -13494,7 +13357,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref)
|
|
|
13494
13357
|
props.error;
|
|
13495
13358
|
var _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, id = props.id, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$inputProps = props.inputProps, inputPropsProp = _props$inputProps === void 0 ? {} : _props$inputProps, inputRefProp = props.inputRef;
|
|
13496
13359
|
props.margin;
|
|
13497
|
-
var _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, placeholder = props.placeholder, readOnly = props.readOnly, renderSuffix = props.renderSuffix, rows = props.rows, rowsMax = props.rowsMax, rowsMin = props.rowsMin, maxRows = props.maxRows, minRows = props.minRows, startAdornment = props.startAdornment, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, valueProp = props.value, other = _objectWithoutProperties
|
|
13360
|
+
var _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, placeholder = props.placeholder, readOnly = props.readOnly, renderSuffix = props.renderSuffix, rows = props.rows, rowsMax = props.rowsMax, rowsMin = props.rowsMin, maxRows = props.maxRows, minRows = props.minRows, startAdornment = props.startAdornment, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, valueProp = props.value, other = _objectWithoutProperties(props, ["aria-describedby", "autoComplete", "autoFocus", "classes", "className", "color", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "startAdornment", "type", "value"]);
|
|
13498
13361
|
var value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
13499
13362
|
var _React$useRef = React.useRef(value != null), isControlled = _React$useRef.current;
|
|
13500
13363
|
var inputRef = React.useRef();
|
|
@@ -13612,11 +13475,11 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref)
|
|
|
13612
13475
|
}
|
|
13613
13476
|
};
|
|
13614
13477
|
var InputComponent = inputComponent;
|
|
13615
|
-
var inputProps = _extends$
|
|
13478
|
+
var inputProps = _extends$2({}, inputPropsProp, {
|
|
13616
13479
|
ref: handleInputRef
|
|
13617
13480
|
});
|
|
13618
13481
|
if (typeof InputComponent !== "string") {
|
|
13619
|
-
inputProps = _extends$
|
|
13482
|
+
inputProps = _extends$2({
|
|
13620
13483
|
// Rename ref to inputRef as we don't know the
|
|
13621
13484
|
// provided `inputComponent` structure.
|
|
13622
13485
|
inputRef: handleInputRef,
|
|
@@ -13628,7 +13491,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref)
|
|
|
13628
13491
|
if (rows && !maxRows && !minRows && !rowsMax && !rowsMin) {
|
|
13629
13492
|
InputComponent = "textarea";
|
|
13630
13493
|
} else {
|
|
13631
|
-
inputProps = _extends$
|
|
13494
|
+
inputProps = _extends$2({
|
|
13632
13495
|
minRows: rows || minRows,
|
|
13633
13496
|
rowsMax,
|
|
13634
13497
|
maxRows
|
|
@@ -13636,7 +13499,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref)
|
|
|
13636
13499
|
InputComponent = TextareaAutosize$1;
|
|
13637
13500
|
}
|
|
13638
13501
|
} else {
|
|
13639
|
-
inputProps = _extends$
|
|
13502
|
+
inputProps = _extends$2({
|
|
13640
13503
|
type
|
|
13641
13504
|
}, inputProps);
|
|
13642
13505
|
}
|
|
@@ -13650,13 +13513,13 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref)
|
|
|
13650
13513
|
muiFormControl.setAdornedStart(Boolean(startAdornment));
|
|
13651
13514
|
}
|
|
13652
13515
|
}, [muiFormControl, startAdornment]);
|
|
13653
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
13516
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
13654
13517
|
className: clsx(classes.root, classes["color".concat(capitalize(fcs.color || "primary"))], className, fcs.disabled && classes.disabled, fcs.error && classes.error, fullWidth && classes.fullWidth, fcs.focused && classes.focused, muiFormControl && classes.formControl, multiline && classes.multiline, startAdornment && classes.adornedStart, endAdornment && classes.adornedEnd, fcs.margin === "dense" && classes.marginDense),
|
|
13655
13518
|
onClick: handleClick,
|
|
13656
13519
|
ref
|
|
13657
13520
|
}, other), startAdornment, /* @__PURE__ */ React.createElement(FormControlContext$1.Provider, {
|
|
13658
13521
|
value: null
|
|
13659
|
-
}, /* @__PURE__ */ React.createElement(InputComponent, _extends$
|
|
13522
|
+
}, /* @__PURE__ */ React.createElement(InputComponent, _extends$2({
|
|
13660
13523
|
"aria-invalid": fcs.error,
|
|
13661
13524
|
"aria-describedby": ariaDescribedby,
|
|
13662
13525
|
autoComplete,
|
|
@@ -13678,7 +13541,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref)
|
|
|
13678
13541
|
onBlur: handleBlur,
|
|
13679
13542
|
onChange: handleChange,
|
|
13680
13543
|
onFocus: handleFocus
|
|
13681
|
-
}))), endAdornment, renderSuffix ? renderSuffix(_extends$
|
|
13544
|
+
}))), endAdornment, renderSuffix ? renderSuffix(_extends$2({}, fcs, {
|
|
13682
13545
|
startAdornment
|
|
13683
13546
|
})) : null);
|
|
13684
13547
|
});
|
|
@@ -13995,9 +13858,9 @@ var styles$y = function styles18(theme) {
|
|
|
13995
13858
|
};
|
|
13996
13859
|
};
|
|
13997
13860
|
var FilledInput = /* @__PURE__ */ React.forwardRef(function FilledInput2(props, ref) {
|
|
13998
|
-
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties
|
|
13999
|
-
return /* @__PURE__ */ React.createElement(v, _extends$
|
|
14000
|
-
classes: _extends$
|
|
13861
|
+
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
|
|
13862
|
+
return /* @__PURE__ */ React.createElement(v, _extends$2({
|
|
13863
|
+
classes: _extends$2({}, classes, {
|
|
14001
13864
|
root: clsx(classes.root, !disableUnderline && classes.underline),
|
|
14002
13865
|
underline: null
|
|
14003
13866
|
}),
|
|
@@ -14162,7 +14025,7 @@ var styles$x = {
|
|
|
14162
14025
|
}
|
|
14163
14026
|
};
|
|
14164
14027
|
var FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(props, ref) {
|
|
14165
|
-
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error = _props$error === void 0 ? false : _props$error, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, visuallyFocused = props.focused, _props$hiddenLabel = props.hiddenLabel, hiddenLabel = _props$hiddenLabel === void 0 ? false : _props$hiddenLabel, _props$margin = props.margin, margin = _props$margin === void 0 ? "none" : _props$margin, _props$required = props.required, required = _props$required === void 0 ? false : _props$required, size2 = props.size, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
|
14028
|
+
var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error = _props$error === void 0 ? false : _props$error, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, visuallyFocused = props.focused, _props$hiddenLabel = props.hiddenLabel, hiddenLabel = _props$hiddenLabel === void 0 ? false : _props$hiddenLabel, _props$margin = props.margin, margin = _props$margin === void 0 ? "none" : _props$margin, _props$required = props.required, required = _props$required === void 0 ? false : _props$required, size2 = props.size, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "error", "fullWidth", "focused", "hiddenLabel", "margin", "required", "size", "variant"]);
|
|
14166
14029
|
var _React$useState = React.useState(function() {
|
|
14167
14030
|
var initialAdornedStart = false;
|
|
14168
14031
|
if (children) {
|
|
@@ -14241,7 +14104,7 @@ var FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(props,
|
|
|
14241
14104
|
};
|
|
14242
14105
|
return /* @__PURE__ */ React.createElement(FormControlContext$1.Provider, {
|
|
14243
14106
|
value: childContext
|
|
14244
|
-
}, /* @__PURE__ */ React.createElement(Component, _extends$
|
|
14107
|
+
}, /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
14245
14108
|
className: clsx(classes.root, className, margin !== "none" && classes["margin".concat(capitalize(margin))], fullWidth && classes.fullWidth),
|
|
14246
14109
|
ref
|
|
14247
14110
|
}, other), children));
|
|
@@ -14367,7 +14230,7 @@ var FormControlLabel = /* @__PURE__ */ React.forwardRef(function FormControlLabe
|
|
|
14367
14230
|
props.name;
|
|
14368
14231
|
props.onChange;
|
|
14369
14232
|
props.value;
|
|
14370
|
-
var other = _objectWithoutProperties
|
|
14233
|
+
var other = _objectWithoutProperties(props, ["checked", "classes", "className", "control", "disabled", "inputRef", "label", "labelPlacement", "name", "onChange", "value"]);
|
|
14371
14234
|
var muiFormControl = useFormControl();
|
|
14372
14235
|
var disabled = disabledProp;
|
|
14373
14236
|
if (typeof disabled === "undefined" && typeof control.props.disabled !== "undefined") {
|
|
@@ -14384,7 +14247,7 @@ var FormControlLabel = /* @__PURE__ */ React.forwardRef(function FormControlLabe
|
|
|
14384
14247
|
controlProps[key] = props[key];
|
|
14385
14248
|
}
|
|
14386
14249
|
});
|
|
14387
|
-
return /* @__PURE__ */ React.createElement("label", _extends$
|
|
14250
|
+
return /* @__PURE__ */ React.createElement("label", _extends$2({
|
|
14388
14251
|
className: clsx(classes.root, className, labelPlacement !== "end" && classes["labelPlacement".concat(capitalize(labelPlacement))], disabled && classes.disabled),
|
|
14389
14252
|
ref
|
|
14390
14253
|
}, other), /* @__PURE__ */ React.cloneElement(control, controlProps), /* @__PURE__ */ React.createElement(Typography$1, {
|
|
@@ -14462,8 +14325,8 @@ var styles$v = {
|
|
|
14462
14325
|
}
|
|
14463
14326
|
};
|
|
14464
14327
|
var FormGroup = /* @__PURE__ */ React.forwardRef(function FormGroup2(props, ref) {
|
|
14465
|
-
var classes = props.classes, className = props.className, _props$row = props.row, row = _props$row === void 0 ? false : _props$row, other = _objectWithoutProperties
|
|
14466
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
14328
|
+
var classes = props.classes, className = props.className, _props$row = props.row, row = _props$row === void 0 ? false : _props$row, other = _objectWithoutProperties(props, ["classes", "className", "row"]);
|
|
14329
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
14467
14330
|
className: clsx(classes.root, className, row && classes.row),
|
|
14468
14331
|
ref
|
|
14469
14332
|
}, other));
|
|
@@ -14497,7 +14360,7 @@ const FormGroup$1 = withStyles2(styles$v, {
|
|
|
14497
14360
|
var styles$u = function styles20(theme) {
|
|
14498
14361
|
return {
|
|
14499
14362
|
/* Styles applied to the root element. */
|
|
14500
|
-
root: _extends$
|
|
14363
|
+
root: _extends$2({
|
|
14501
14364
|
color: theme.palette.text.secondary
|
|
14502
14365
|
}, theme.typography.caption, {
|
|
14503
14366
|
textAlign: "left",
|
|
@@ -14540,14 +14403,14 @@ var FormHelperText = /* @__PURE__ */ React.forwardRef(function FormHelperText2(p
|
|
|
14540
14403
|
props.margin;
|
|
14541
14404
|
props.required;
|
|
14542
14405
|
props.variant;
|
|
14543
|
-
var other = _objectWithoutProperties
|
|
14406
|
+
var other = _objectWithoutProperties(props, ["children", "classes", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"]);
|
|
14544
14407
|
var muiFormControl = useFormControl();
|
|
14545
14408
|
var fcs = formControlState({
|
|
14546
14409
|
props,
|
|
14547
14410
|
muiFormControl,
|
|
14548
14411
|
states: ["variant", "margin", "disabled", "error", "filled", "focused", "required"]
|
|
14549
14412
|
});
|
|
14550
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
14413
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
14551
14414
|
className: clsx(classes.root, (fcs.variant === "filled" || fcs.variant === "outlined") && classes.contained, className, fcs.disabled && classes.disabled, fcs.error && classes.error, fcs.filled && classes.filled, fcs.focused && classes.focused, fcs.required && classes.required, fcs.margin === "dense" && classes.marginDense),
|
|
14552
14415
|
ref
|
|
14553
14416
|
}, other), children === " " ? (
|
|
@@ -14620,7 +14483,7 @@ const FormHelperText$1 = withStyles2(styles$u, {
|
|
|
14620
14483
|
var styles$t = function styles21(theme) {
|
|
14621
14484
|
return {
|
|
14622
14485
|
/* Styles applied to the root element. */
|
|
14623
|
-
root: _extends$
|
|
14486
|
+
root: _extends$2({
|
|
14624
14487
|
color: theme.palette.text.secondary
|
|
14625
14488
|
}, theme.typography.body1, {
|
|
14626
14489
|
lineHeight: 1,
|
|
@@ -14668,14 +14531,14 @@ var FormLabel = /* @__PURE__ */ React.forwardRef(function FormLabel2(props, ref)
|
|
|
14668
14531
|
props.filled;
|
|
14669
14532
|
props.focused;
|
|
14670
14533
|
props.required;
|
|
14671
|
-
var other = _objectWithoutProperties
|
|
14534
|
+
var other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "error", "filled", "focused", "required"]);
|
|
14672
14535
|
var muiFormControl = useFormControl();
|
|
14673
14536
|
var fcs = formControlState({
|
|
14674
14537
|
props,
|
|
14675
14538
|
muiFormControl,
|
|
14676
14539
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
14677
14540
|
});
|
|
14678
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
14541
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
14679
14542
|
className: clsx(classes.root, classes["color".concat(capitalize(fcs.color || "primary"))], className, fcs.disabled && classes.disabled, fcs.error && classes.error, fcs.filled && classes.filled, fcs.focused && classes.focused, fcs.required && classes.required),
|
|
14680
14543
|
ref
|
|
14681
14544
|
}, other), children, fcs.required && /* @__PURE__ */ React.createElement("span", {
|
|
@@ -14764,7 +14627,7 @@ function generateGrid(globalStyles, theme, breakpoint) {
|
|
|
14764
14627
|
};
|
|
14765
14628
|
});
|
|
14766
14629
|
if (breakpoint === "xs") {
|
|
14767
|
-
_extends$
|
|
14630
|
+
_extends$2(globalStyles, styles44);
|
|
14768
14631
|
} else {
|
|
14769
14632
|
globalStyles[theme.breakpoints.up(breakpoint)] = styles44;
|
|
14770
14633
|
}
|
|
@@ -14792,7 +14655,7 @@ function generateGutter(theme, breakpoint) {
|
|
|
14792
14655
|
return styles44;
|
|
14793
14656
|
}
|
|
14794
14657
|
var styles$s = function styles22(theme) {
|
|
14795
|
-
return _extends$
|
|
14658
|
+
return _extends$2({
|
|
14796
14659
|
/* Styles applied to the root element. */
|
|
14797
14660
|
root: {},
|
|
14798
14661
|
/* Styles applied to the root element if `container={true}`. */
|
|
@@ -14894,9 +14757,9 @@ var styles$s = function styles22(theme) {
|
|
|
14894
14757
|
}, {}));
|
|
14895
14758
|
};
|
|
14896
14759
|
var Grid = /* @__PURE__ */ React.forwardRef(function Grid2(props, ref) {
|
|
14897
|
-
var _props$alignContent = props.alignContent, alignContent2 = _props$alignContent === void 0 ? "stretch" : _props$alignContent, _props$alignItems = props.alignItems, alignItems2 = _props$alignItems === void 0 ? "stretch" : _props$alignItems, classes = props.classes, classNameProp = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$container = props.container, container = _props$container === void 0 ? false : _props$container, _props$direction = props.direction, direction = _props$direction === void 0 ? "row" : _props$direction, _props$item = props.item, item = _props$item === void 0 ? false : _props$item, justify = props.justify, _props$justifyContent = props.justifyContent, justifyContent2 = _props$justifyContent === void 0 ? "flex-start" : _props$justifyContent, _props$lg = props.lg, lg = _props$lg === void 0 ? false : _props$lg, _props$md = props.md, md = _props$md === void 0 ? false : _props$md, _props$sm = props.sm, sm = _props$sm === void 0 ? false : _props$sm, _props$spacing = props.spacing, spacing2 = _props$spacing === void 0 ? 0 : _props$spacing, _props$wrap = props.wrap, wrap = _props$wrap === void 0 ? "wrap" : _props$wrap, _props$xl = props.xl, xl2 = _props$xl === void 0 ? false : _props$xl, _props$xs = props.xs, xs2 = _props$xs === void 0 ? false : _props$xs, _props$zeroMinWidth = props.zeroMinWidth, zeroMinWidth = _props$zeroMinWidth === void 0 ? false : _props$zeroMinWidth, other = _objectWithoutProperties
|
|
14760
|
+
var _props$alignContent = props.alignContent, alignContent2 = _props$alignContent === void 0 ? "stretch" : _props$alignContent, _props$alignItems = props.alignItems, alignItems2 = _props$alignItems === void 0 ? "stretch" : _props$alignItems, classes = props.classes, classNameProp = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$container = props.container, container = _props$container === void 0 ? false : _props$container, _props$direction = props.direction, direction = _props$direction === void 0 ? "row" : _props$direction, _props$item = props.item, item = _props$item === void 0 ? false : _props$item, justify = props.justify, _props$justifyContent = props.justifyContent, justifyContent2 = _props$justifyContent === void 0 ? "flex-start" : _props$justifyContent, _props$lg = props.lg, lg = _props$lg === void 0 ? false : _props$lg, _props$md = props.md, md = _props$md === void 0 ? false : _props$md, _props$sm = props.sm, sm = _props$sm === void 0 ? false : _props$sm, _props$spacing = props.spacing, spacing2 = _props$spacing === void 0 ? 0 : _props$spacing, _props$wrap = props.wrap, wrap = _props$wrap === void 0 ? "wrap" : _props$wrap, _props$xl = props.xl, xl2 = _props$xl === void 0 ? false : _props$xl, _props$xs = props.xs, xs2 = _props$xs === void 0 ? false : _props$xs, _props$zeroMinWidth = props.zeroMinWidth, zeroMinWidth = _props$zeroMinWidth === void 0 ? false : _props$zeroMinWidth, other = _objectWithoutProperties(props, ["alignContent", "alignItems", "classes", "className", "component", "container", "direction", "item", "justify", "justifyContent", "lg", "md", "sm", "spacing", "wrap", "xl", "xs", "zeroMinWidth"]);
|
|
14898
14761
|
var className = clsx(classes.root, classNameProp, container && [classes.container, spacing2 !== 0 && classes["spacing-xs-".concat(String(spacing2))]], item && classes.item, zeroMinWidth && classes.zeroMinWidth, direction !== "row" && classes["direction-xs-".concat(String(direction))], wrap !== "wrap" && classes["wrap-xs-".concat(String(wrap))], alignItems2 !== "stretch" && classes["align-items-xs-".concat(String(alignItems2))], alignContent2 !== "stretch" && classes["align-content-xs-".concat(String(alignContent2))], (justify || justifyContent2) !== "flex-start" && classes["justify-content-xs-".concat(String(justify || justifyContent2))], xs2 !== false && classes["grid-xs-".concat(String(xs2))], sm !== false && classes["grid-sm-".concat(String(sm))], md !== false && classes["grid-md-".concat(String(md))], lg !== false && classes["grid-lg-".concat(String(lg))], xl2 !== false && classes["grid-xl-".concat(String(xl2))]);
|
|
14899
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
14762
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
14900
14763
|
className,
|
|
14901
14764
|
ref
|
|
14902
14765
|
}, other));
|
|
@@ -15002,7 +14865,7 @@ var StyledGrid = withStyles2(styles$s, {
|
|
|
15002
14865
|
})(Grid);
|
|
15003
14866
|
{
|
|
15004
14867
|
var requireProp = requirePropFactory("Grid");
|
|
15005
|
-
StyledGrid.propTypes = _extends$
|
|
14868
|
+
StyledGrid.propTypes = _extends$2({}, StyledGrid.propTypes, {
|
|
15006
14869
|
alignContent: requireProp("container"),
|
|
15007
14870
|
alignItems: requireProp("container"),
|
|
15008
14871
|
direction: requireProp("container"),
|
|
@@ -15031,7 +14894,7 @@ var styles$r = {
|
|
|
15031
14894
|
}
|
|
15032
14895
|
};
|
|
15033
14896
|
var Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
15034
|
-
var children = props.children, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style = props.style, _props$timeout = props.timeout, timeout2 = _props$timeout === void 0 ? "auto" : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$1 : _props$TransitionComp, other = _objectWithoutProperties
|
|
14897
|
+
var children = props.children, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style = props.style, _props$timeout = props.timeout, timeout2 = _props$timeout === void 0 ? "auto" : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$1 : _props$TransitionComp, other = _objectWithoutProperties(props, ["children", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]);
|
|
15035
14898
|
var timer = React.useRef();
|
|
15036
14899
|
var autoTimeout = React.useRef();
|
|
15037
14900
|
var theme = useTheme();
|
|
@@ -15119,7 +14982,7 @@ var Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15119
14982
|
clearTimeout(timer.current);
|
|
15120
14983
|
};
|
|
15121
14984
|
}, []);
|
|
15122
|
-
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$
|
|
14985
|
+
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$2({
|
|
15123
14986
|
appear: true,
|
|
15124
14987
|
in: inProp,
|
|
15125
14988
|
nodeRef: enableStrictModeCompat ? nodeRef : void 0,
|
|
@@ -15132,8 +14995,8 @@ var Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15132
14995
|
addEndListener,
|
|
15133
14996
|
timeout: timeout2 === "auto" ? null : timeout2
|
|
15134
14997
|
}, other), function(state, childProps) {
|
|
15135
|
-
return /* @__PURE__ */ React.cloneElement(children, _extends$
|
|
15136
|
-
style: _extends$
|
|
14998
|
+
return /* @__PURE__ */ React.cloneElement(children, _extends$2({
|
|
14999
|
+
style: _extends$2({
|
|
15137
15000
|
opacity: 0,
|
|
15138
15001
|
transform: getScale(0.75),
|
|
15139
15002
|
visibility: state === "exited" && !inProp ? "hidden" : void 0
|
|
@@ -15297,9 +15160,9 @@ var styles$q = function styles23(theme) {
|
|
|
15297
15160
|
};
|
|
15298
15161
|
};
|
|
15299
15162
|
var Input = /* @__PURE__ */ React.forwardRef(function Input2(props, ref) {
|
|
15300
|
-
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties
|
|
15301
|
-
return /* @__PURE__ */ React.createElement(v, _extends$
|
|
15302
|
-
classes: _extends$
|
|
15163
|
+
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
|
|
15164
|
+
return /* @__PURE__ */ React.createElement(v, _extends$2({
|
|
15165
|
+
classes: _extends$2({}, classes, {
|
|
15303
15166
|
root: clsx(classes.root, !disableUnderline && classes.underline),
|
|
15304
15167
|
underline: null
|
|
15305
15168
|
}),
|
|
@@ -15515,7 +15378,7 @@ var InputLabel = /* @__PURE__ */ React.forwardRef(function InputLabel2(props, re
|
|
|
15515
15378
|
props.margin;
|
|
15516
15379
|
var shrinkProp = props.shrink;
|
|
15517
15380
|
props.variant;
|
|
15518
|
-
var other = _objectWithoutProperties
|
|
15381
|
+
var other = _objectWithoutProperties(props, ["classes", "className", "disableAnimation", "margin", "shrink", "variant"]);
|
|
15519
15382
|
var muiFormControl = useFormControl();
|
|
15520
15383
|
var shrink = shrinkProp;
|
|
15521
15384
|
if (typeof shrink === "undefined" && muiFormControl) {
|
|
@@ -15526,7 +15389,7 @@ var InputLabel = /* @__PURE__ */ React.forwardRef(function InputLabel2(props, re
|
|
|
15526
15389
|
muiFormControl,
|
|
15527
15390
|
states: ["margin", "variant"]
|
|
15528
15391
|
});
|
|
15529
|
-
return /* @__PURE__ */ React.createElement(FormLabel$1, _extends$
|
|
15392
|
+
return /* @__PURE__ */ React.createElement(FormLabel$1, _extends$2({
|
|
15530
15393
|
"data-shrink": shrink,
|
|
15531
15394
|
className: clsx(classes.root, className, muiFormControl && classes.formControl, !disableAnimation && classes.animated, shrink && classes.shrink, fcs.margin === "dense" && classes.marginDense, {
|
|
15532
15395
|
"filled": classes.filled,
|
|
@@ -15627,7 +15490,7 @@ var styles$o = {
|
|
|
15627
15490
|
}
|
|
15628
15491
|
};
|
|
15629
15492
|
var List = /* @__PURE__ */ React.forwardRef(function List2(props, ref) {
|
|
15630
|
-
var children = props.children, classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "ul" : _props$component, _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disablePadding = props.disablePadding, disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding, subheader = props.subheader, other = _objectWithoutProperties
|
|
15493
|
+
var children = props.children, classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "ul" : _props$component, _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disablePadding = props.disablePadding, disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding, subheader = props.subheader, other = _objectWithoutProperties(props, ["children", "classes", "className", "component", "dense", "disablePadding", "subheader"]);
|
|
15631
15494
|
var context = React.useMemo(function() {
|
|
15632
15495
|
return {
|
|
15633
15496
|
dense
|
|
@@ -15635,7 +15498,7 @@ var List = /* @__PURE__ */ React.forwardRef(function List2(props, ref) {
|
|
|
15635
15498
|
}, [dense]);
|
|
15636
15499
|
return /* @__PURE__ */ React.createElement(ListContext$1.Provider, {
|
|
15637
15500
|
value: context
|
|
15638
|
-
}, /* @__PURE__ */ React.createElement(Component, _extends$
|
|
15501
|
+
}, /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
15639
15502
|
className: clsx(classes.root, className, dense && classes.dense, !disablePadding && classes.padding, subheader && classes.subheader),
|
|
15640
15503
|
ref
|
|
15641
15504
|
}, other), subheader, children));
|
|
@@ -15756,7 +15619,7 @@ var useEnhancedEffect$3 = typeof window === "undefined" ? React.useEffect : Reac
|
|
|
15756
15619
|
var ListItem = /* @__PURE__ */ React.forwardRef(function ListItem2(props, ref) {
|
|
15757
15620
|
var _props$alignItems = props.alignItems, alignItems2 = _props$alignItems === void 0 ? "center" : _props$alignItems, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$button = props.button, button = _props$button === void 0 ? false : _props$button, childrenProp = props.children, classes = props.classes, className = props.className, componentProp = props.component, _props$ContainerCompo = props.ContainerComponent, ContainerComponent = _props$ContainerCompo === void 0 ? "li" : _props$ContainerCompo, _props$ContainerProps = props.ContainerProps;
|
|
15758
15621
|
_props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps;
|
|
15759
|
-
var ContainerClassName = _props$ContainerProps.className, ContainerProps = _objectWithoutProperties
|
|
15622
|
+
var ContainerClassName = _props$ContainerProps.className, ContainerProps = _objectWithoutProperties(_props$ContainerProps, ["className"]), _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, _props$divider = props.divider, divider = _props$divider === void 0 ? false : _props$divider, focusVisibleClassName = props.focusVisibleClassName, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties(props, ["alignItems", "autoFocus", "button", "children", "classes", "className", "component", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "divider", "focusVisibleClassName", "selected"]);
|
|
15760
15623
|
var context = React.useContext(ListContext$1);
|
|
15761
15624
|
var childContext = {
|
|
15762
15625
|
dense: dense || context.dense || false,
|
|
@@ -15778,7 +15641,7 @@ var ListItem = /* @__PURE__ */ React.forwardRef(function ListItem2(props, ref) {
|
|
|
15778
15641
|
listItemRef.current = ReactDOM.findDOMNode(instance);
|
|
15779
15642
|
}, []);
|
|
15780
15643
|
var handleRef = useForkRef(handleOwnRef, ref);
|
|
15781
|
-
var componentProps = _extends$
|
|
15644
|
+
var componentProps = _extends$2({
|
|
15782
15645
|
className: clsx(classes.root, className, childContext.dense && classes.dense, !disableGutters && classes.gutters, divider && classes.divider, disabled && classes.disabled, button && classes.button, alignItems2 !== "center" && classes.alignItemsFlexStart, hasSecondaryAction && classes.secondaryAction, selected && classes.selected),
|
|
15783
15646
|
disabled
|
|
15784
15647
|
}, other);
|
|
@@ -15799,14 +15662,14 @@ var ListItem = /* @__PURE__ */ React.forwardRef(function ListItem2(props, ref) {
|
|
|
15799
15662
|
}
|
|
15800
15663
|
return /* @__PURE__ */ React.createElement(ListContext$1.Provider, {
|
|
15801
15664
|
value: childContext
|
|
15802
|
-
}, /* @__PURE__ */ React.createElement(ContainerComponent, _extends$
|
|
15665
|
+
}, /* @__PURE__ */ React.createElement(ContainerComponent, _extends$2({
|
|
15803
15666
|
className: clsx(classes.container, ContainerClassName),
|
|
15804
15667
|
ref: handleRef
|
|
15805
15668
|
}, ContainerProps), /* @__PURE__ */ React.createElement(Component, componentProps, children), children.pop()));
|
|
15806
15669
|
}
|
|
15807
15670
|
return /* @__PURE__ */ React.createElement(ListContext$1.Provider, {
|
|
15808
15671
|
value: childContext
|
|
15809
|
-
}, /* @__PURE__ */ React.createElement(Component, _extends$
|
|
15672
|
+
}, /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
15810
15673
|
ref: handleRef
|
|
15811
15674
|
}, componentProps), children));
|
|
15812
15675
|
});
|
|
@@ -15911,9 +15774,9 @@ var styles$m = function styles26(theme) {
|
|
|
15911
15774
|
};
|
|
15912
15775
|
};
|
|
15913
15776
|
var ListItemIcon = /* @__PURE__ */ React.forwardRef(function ListItemIcon2(props, ref) {
|
|
15914
|
-
var classes = props.classes, className = props.className, other = _objectWithoutProperties
|
|
15777
|
+
var classes = props.classes, className = props.className, other = _objectWithoutProperties(props, ["classes", "className"]);
|
|
15915
15778
|
var context = React.useContext(ListContext$1);
|
|
15916
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
15779
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
15917
15780
|
className: clsx(classes.root, className, context.alignItems === "flex-start" && classes.alignItemsFlexStart),
|
|
15918
15781
|
ref
|
|
15919
15782
|
}, other));
|
|
@@ -15980,8 +15843,8 @@ var styles$l = function styles27(theme) {
|
|
|
15980
15843
|
};
|
|
15981
15844
|
};
|
|
15982
15845
|
var ListSubheader = /* @__PURE__ */ React.forwardRef(function ListSubheader2(props, ref) {
|
|
15983
|
-
var classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "li" : _props$component, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, _props$disableSticky = props.disableSticky, disableSticky = _props$disableSticky === void 0 ? false : _props$disableSticky, _props$inset = props.inset, inset = _props$inset === void 0 ? false : _props$inset, other = _objectWithoutProperties
|
|
15984
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
15846
|
+
var classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "default" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "li" : _props$component, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, _props$disableSticky = props.disableSticky, disableSticky = _props$disableSticky === void 0 ? false : _props$disableSticky, _props$inset = props.inset, inset = _props$inset === void 0 ? false : _props$inset, other = _objectWithoutProperties(props, ["classes", "className", "color", "component", "disableGutters", "disableSticky", "inset"]);
|
|
15847
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
15985
15848
|
className: clsx(classes.root, className, color2 !== "default" && classes["color".concat(capitalize(color2))], inset && classes.inset, !disableSticky && classes.sticky, !disableGutters && classes.gutters),
|
|
15986
15849
|
ref
|
|
15987
15850
|
}, other));
|
|
@@ -16089,7 +15952,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref) {
|
|
|
16089
15952
|
} : _props$anchorOrigin, anchorPosition = props.anchorPosition, _props$anchorReferenc = props.anchorReference, anchorReference = _props$anchorReferenc === void 0 ? "anchorEl" : _props$anchorReferenc, children = props.children, classes = props.classes, className = props.className, containerProp = props.container, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 8 : _props$elevation, getContentAnchorEl = props.getContentAnchorEl, _props$marginThreshol = props.marginThreshold, marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, open = props.open, _props$PaperProps = props.PaperProps, PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, _props$transformOrigi = props.transformOrigin, transformOrigin = _props$transformOrigi === void 0 ? {
|
|
16090
15953
|
vertical: "top",
|
|
16091
15954
|
horizontal: "left"
|
|
16092
|
-
} : _props$transformOrigi, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? k : _props$TransitionComp, _props$transitionDura = props.transitionDuration, transitionDurationProp = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps, TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp, other = _objectWithoutProperties
|
|
15955
|
+
} : _props$transformOrigi, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? k : _props$TransitionComp, _props$transitionDura = props.transitionDuration, transitionDurationProp = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps, TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp, other = _objectWithoutProperties(props, ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "classes", "className", "container", "elevation", "getContentAnchorEl", "marginThreshold", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]);
|
|
16093
15956
|
var paperRef = React.useRef();
|
|
16094
15957
|
var getAnchorOffset = React.useCallback(function(contentAnchorOffset) {
|
|
16095
15958
|
if (anchorReference === "anchorPosition") {
|
|
@@ -16242,7 +16105,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref) {
|
|
|
16242
16105
|
transitionDuration = void 0;
|
|
16243
16106
|
}
|
|
16244
16107
|
var container = containerProp || (anchorEl ? ownerDocument(getAnchorEl$1(anchorEl)).body : void 0);
|
|
16245
|
-
return /* @__PURE__ */ React.createElement(Modal$1, _extends$
|
|
16108
|
+
return /* @__PURE__ */ React.createElement(Modal$1, _extends$2({
|
|
16246
16109
|
container,
|
|
16247
16110
|
open,
|
|
16248
16111
|
ref,
|
|
@@ -16250,7 +16113,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref) {
|
|
|
16250
16113
|
invisible: true
|
|
16251
16114
|
},
|
|
16252
16115
|
className: clsx(classes.root, className)
|
|
16253
|
-
}, other), /* @__PURE__ */ React.createElement(TransitionComponent, _extends$
|
|
16116
|
+
}, other), /* @__PURE__ */ React.createElement(TransitionComponent, _extends$2({
|
|
16254
16117
|
appear: true,
|
|
16255
16118
|
in: open,
|
|
16256
16119
|
onEnter,
|
|
@@ -16261,7 +16124,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref) {
|
|
|
16261
16124
|
timeout: transitionDuration
|
|
16262
16125
|
}, TransitionProps, {
|
|
16263
16126
|
onEntering: createChainedFunction(handleEntering, TransitionProps.onEntering)
|
|
16264
|
-
}), /* @__PURE__ */ React.createElement(M, _extends$
|
|
16127
|
+
}), /* @__PURE__ */ React.createElement(M, _extends$2({
|
|
16265
16128
|
elevation,
|
|
16266
16129
|
ref: handlePaperRef
|
|
16267
16130
|
}, PaperProps, {
|
|
@@ -16495,7 +16358,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
|
|
|
16495
16358
|
}
|
|
16496
16359
|
var useEnhancedEffect$2 = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
|
|
16497
16360
|
var MenuList = /* @__PURE__ */ React.forwardRef(function MenuList2(props, ref) {
|
|
16498
|
-
var actions = props.actions, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$autoFocusItem = props.autoFocusItem, autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem, children = props.children, className = props.className, _props$disabledItemsF = props.disabledItemsFocusable, disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, _props$disableListWra = props.disableListWrap, disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, onKeyDown = props.onKeyDown, _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties
|
|
16361
|
+
var actions = props.actions, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$autoFocusItem = props.autoFocusItem, autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem, children = props.children, className = props.className, _props$disabledItemsF = props.disabledItemsFocusable, disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, _props$disableListWra = props.disableListWrap, disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, onKeyDown = props.onKeyDown, _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties(props, ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"]);
|
|
16499
16362
|
var listRef = React.useRef(null);
|
|
16500
16363
|
var textCriteriaRef = React.useRef({
|
|
16501
16364
|
keys: [],
|
|
@@ -16598,7 +16461,7 @@ var MenuList = /* @__PURE__ */ React.forwardRef(function MenuList2(props, ref) {
|
|
|
16598
16461
|
}
|
|
16599
16462
|
return child;
|
|
16600
16463
|
});
|
|
16601
|
-
return /* @__PURE__ */ React.createElement(List$1, _extends$
|
|
16464
|
+
return /* @__PURE__ */ React.createElement(List$1, _extends$2({
|
|
16602
16465
|
role: "menu",
|
|
16603
16466
|
ref: handleRef,
|
|
16604
16467
|
className,
|
|
@@ -16674,7 +16537,7 @@ var styles$j = {
|
|
|
16674
16537
|
var Menu = /* @__PURE__ */ React.forwardRef(function Menu2(props, ref) {
|
|
16675
16538
|
var _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus, children = props.children, classes = props.classes, _props$disableAutoFoc = props.disableAutoFocusItem, disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$MenuListProps = props.MenuListProps, MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps, onClose = props.onClose, onEnteringProp = props.onEntering, open = props.open, _props$PaperProps = props.PaperProps, PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, PopoverClasses = props.PopoverClasses, _props$transitionDura = props.transitionDuration, transitionDuration = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps;
|
|
16676
16539
|
_props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;
|
|
16677
|
-
var onEntering = _props$TransitionProp.onEntering, TransitionProps = _objectWithoutProperties
|
|
16540
|
+
var onEntering = _props$TransitionProp.onEntering, TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEntering"]), _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "onEntering", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"]);
|
|
16678
16541
|
var theme = useTheme();
|
|
16679
16542
|
var autoFocusItem = autoFocus && !disableAutoFocusItem && open;
|
|
16680
16543
|
var menuListActionsRef = React.useRef(null);
|
|
@@ -16730,24 +16593,24 @@ var Menu = /* @__PURE__ */ React.forwardRef(function Menu2(props, ref) {
|
|
|
16730
16593
|
}
|
|
16731
16594
|
return child;
|
|
16732
16595
|
});
|
|
16733
|
-
return /* @__PURE__ */ React.createElement(Popover$1, _extends$
|
|
16596
|
+
return /* @__PURE__ */ React.createElement(Popover$1, _extends$2({
|
|
16734
16597
|
getContentAnchorEl,
|
|
16735
16598
|
classes: PopoverClasses,
|
|
16736
16599
|
onClose,
|
|
16737
|
-
TransitionProps: _extends$
|
|
16600
|
+
TransitionProps: _extends$2({
|
|
16738
16601
|
onEntering: handleEntering
|
|
16739
16602
|
}, TransitionProps),
|
|
16740
16603
|
anchorOrigin: theme.direction === "rtl" ? RTL_ORIGIN : LTR_ORIGIN,
|
|
16741
16604
|
transformOrigin: theme.direction === "rtl" ? RTL_ORIGIN : LTR_ORIGIN,
|
|
16742
|
-
PaperProps: _extends$
|
|
16743
|
-
classes: _extends$
|
|
16605
|
+
PaperProps: _extends$2({}, PaperProps, {
|
|
16606
|
+
classes: _extends$2({}, PaperProps.classes, {
|
|
16744
16607
|
root: classes.paper
|
|
16745
16608
|
})
|
|
16746
16609
|
}),
|
|
16747
16610
|
open,
|
|
16748
16611
|
ref,
|
|
16749
16612
|
transitionDuration
|
|
16750
|
-
}, other), /* @__PURE__ */ React.createElement(L, _extends$
|
|
16613
|
+
}, other), /* @__PURE__ */ React.createElement(L, _extends$2({
|
|
16751
16614
|
onKeyDown: handleListKeyDown,
|
|
16752
16615
|
actions: menuListActionsRef,
|
|
16753
16616
|
autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),
|
|
@@ -16868,7 +16731,7 @@ const Menu$1 = withStyles2(styles$j, {
|
|
|
16868
16731
|
var styles$i = function styles28(theme) {
|
|
16869
16732
|
return {
|
|
16870
16733
|
/* Styles applied to the root element. */
|
|
16871
|
-
root: _extends$
|
|
16734
|
+
root: _extends$2({}, theme.typography.body1, _defineProperty({
|
|
16872
16735
|
minHeight: 48,
|
|
16873
16736
|
paddingTop: 6,
|
|
16874
16737
|
paddingBottom: 6,
|
|
@@ -16885,25 +16748,25 @@ var styles$i = function styles28(theme) {
|
|
|
16885
16748
|
/* Styles applied to the root element if `selected={true}`. */
|
|
16886
16749
|
selected: {},
|
|
16887
16750
|
/* Styles applied to the root element if dense. */
|
|
16888
|
-
dense: _extends$
|
|
16751
|
+
dense: _extends$2({}, theme.typography.body2, {
|
|
16889
16752
|
minHeight: "auto"
|
|
16890
16753
|
})
|
|
16891
16754
|
};
|
|
16892
16755
|
};
|
|
16893
16756
|
var MenuItem = /* @__PURE__ */ React.forwardRef(function MenuItem2(props, ref) {
|
|
16894
|
-
var classes = props.classes, className = props.className, _props$component = props.component, component = _props$component === void 0 ? "li" : _props$component, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, ListItemClasses = props.ListItemClasses, _props$role = props.role, role = _props$role === void 0 ? "menuitem" : _props$role, selected = props.selected, tabIndexProp = props.tabIndex, other = _objectWithoutProperties
|
|
16757
|
+
var classes = props.classes, className = props.className, _props$component = props.component, component = _props$component === void 0 ? "li" : _props$component, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, ListItemClasses = props.ListItemClasses, _props$role = props.role, role = _props$role === void 0 ? "menuitem" : _props$role, selected = props.selected, tabIndexProp = props.tabIndex, other = _objectWithoutProperties(props, ["classes", "className", "component", "disableGutters", "ListItemClasses", "role", "selected", "tabIndex"]);
|
|
16895
16758
|
var tabIndex;
|
|
16896
16759
|
if (!props.disabled) {
|
|
16897
16760
|
tabIndex = tabIndexProp !== void 0 ? tabIndexProp : -1;
|
|
16898
16761
|
}
|
|
16899
|
-
return /* @__PURE__ */ React.createElement(ListItem$1, _extends$
|
|
16762
|
+
return /* @__PURE__ */ React.createElement(ListItem$1, _extends$2({
|
|
16900
16763
|
button: true,
|
|
16901
16764
|
role,
|
|
16902
16765
|
tabIndex,
|
|
16903
16766
|
component,
|
|
16904
16767
|
selected,
|
|
16905
16768
|
disableGutters,
|
|
16906
|
-
classes: _extends$
|
|
16769
|
+
classes: _extends$2({
|
|
16907
16770
|
dense: classes.dense
|
|
16908
16771
|
}, ListItemClasses),
|
|
16909
16772
|
className: clsx(classes.root, className, selected && classes.selected, !disableGutters && classes.gutters),
|
|
@@ -16962,8 +16825,8 @@ const y = withStyles2(styles$i, {
|
|
|
16962
16825
|
name: "MuiMenuItem"
|
|
16963
16826
|
})(MenuItem);
|
|
16964
16827
|
var NativeSelectInput = /* @__PURE__ */ React.forwardRef(function NativeSelectInput2(props, ref) {
|
|
16965
|
-
var classes = props.classes, className = props.className, disabled = props.disabled, IconComponent = props.IconComponent, inputRef = props.inputRef, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
|
16966
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("select", _extends$
|
|
16828
|
+
var classes = props.classes, className = props.className, disabled = props.disabled, IconComponent = props.IconComponent, inputRef = props.inputRef, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]);
|
|
16829
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("select", _extends$2({
|
|
16967
16830
|
className: clsx(
|
|
16968
16831
|
classes.root,
|
|
16969
16832
|
// TODO v5: merge root and select
|
|
@@ -17142,18 +17005,18 @@ var defaultInput = /* @__PURE__ */ React.createElement(Input$1, null);
|
|
|
17142
17005
|
var NativeSelect = /* @__PURE__ */ React.forwardRef(function NativeSelect2(props, ref) {
|
|
17143
17006
|
var children = props.children, classes = props.classes, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon$1 : _props$IconComponent, _props$input = props.input, input = _props$input === void 0 ? defaultInput : _props$input, inputProps = props.inputProps;
|
|
17144
17007
|
props.variant;
|
|
17145
|
-
var other = _objectWithoutProperties
|
|
17008
|
+
var other = _objectWithoutProperties(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]);
|
|
17146
17009
|
var muiFormControl = useFormControl();
|
|
17147
17010
|
var fcs = formControlState({
|
|
17148
17011
|
props,
|
|
17149
17012
|
muiFormControl,
|
|
17150
17013
|
states: ["variant"]
|
|
17151
17014
|
});
|
|
17152
|
-
return /* @__PURE__ */ React.cloneElement(input, _extends$
|
|
17015
|
+
return /* @__PURE__ */ React.cloneElement(input, _extends$2({
|
|
17153
17016
|
// Most of the logic is implemented in `NativeSelectInput`.
|
|
17154
17017
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
17155
17018
|
inputComponent: NativeSelectInput$1,
|
|
17156
|
-
inputProps: _extends$
|
|
17019
|
+
inputProps: _extends$2({
|
|
17157
17020
|
children,
|
|
17158
17021
|
classes,
|
|
17159
17022
|
IconComponent,
|
|
@@ -17310,11 +17173,11 @@ var styles$g = function styles30(theme) {
|
|
|
17310
17173
|
};
|
|
17311
17174
|
var NotchedOutline = /* @__PURE__ */ React.forwardRef(function NotchedOutline2(props, ref) {
|
|
17312
17175
|
props.children;
|
|
17313
|
-
var classes = props.classes, className = props.className, label = props.label, labelWidthProp = props.labelWidth, notched = props.notched, style = props.style, other = _objectWithoutProperties
|
|
17176
|
+
var classes = props.classes, className = props.className, label = props.label, labelWidthProp = props.labelWidth, notched = props.notched, style = props.style, other = _objectWithoutProperties(props, ["children", "classes", "className", "label", "labelWidth", "notched", "style"]);
|
|
17314
17177
|
var theme = useTheme();
|
|
17315
17178
|
var align = theme.direction === "rtl" ? "right" : "left";
|
|
17316
17179
|
if (label !== void 0) {
|
|
17317
|
-
return /* @__PURE__ */ React.createElement("fieldset", _extends$
|
|
17180
|
+
return /* @__PURE__ */ React.createElement("fieldset", _extends$2({
|
|
17318
17181
|
"aria-hidden": true,
|
|
17319
17182
|
className: clsx(classes.root, className),
|
|
17320
17183
|
ref,
|
|
@@ -17328,9 +17191,9 @@ var NotchedOutline = /* @__PURE__ */ React.forwardRef(function NotchedOutline2(p
|
|
|
17328
17191
|
})));
|
|
17329
17192
|
}
|
|
17330
17193
|
var labelWidth = labelWidthProp > 0 ? labelWidthProp * 0.75 + 8 : 0.01;
|
|
17331
|
-
return /* @__PURE__ */ React.createElement("fieldset", _extends$
|
|
17194
|
+
return /* @__PURE__ */ React.createElement("fieldset", _extends$2({
|
|
17332
17195
|
"aria-hidden": true,
|
|
17333
|
-
style: _extends$
|
|
17196
|
+
style: _extends$2(_defineProperty({}, "padding".concat(capitalize(align)), 8), style),
|
|
17334
17197
|
className: clsx(classes.root, className),
|
|
17335
17198
|
ref
|
|
17336
17199
|
}, other), /* @__PURE__ */ React.createElement("legend", {
|
|
@@ -17472,8 +17335,8 @@ var styles$f = function styles31(theme) {
|
|
|
17472
17335
|
};
|
|
17473
17336
|
};
|
|
17474
17337
|
var OutlinedInput = /* @__PURE__ */ React.forwardRef(function OutlinedInput2(props, ref) {
|
|
17475
|
-
var classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, label = props.label, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, notched = props.notched, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties
|
|
17476
|
-
return /* @__PURE__ */ React.createElement(v, _extends$
|
|
17338
|
+
var classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, label = props.label, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, notched = props.notched, _props$type = props.type, type = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["classes", "fullWidth", "inputComponent", "label", "labelWidth", "multiline", "notched", "type"]);
|
|
17339
|
+
return /* @__PURE__ */ React.createElement(v, _extends$2({
|
|
17477
17340
|
renderSuffix: function renderSuffix(state) {
|
|
17478
17341
|
return /* @__PURE__ */ React.createElement(NotchedOutline$1, {
|
|
17479
17342
|
className: classes.notchedOutline,
|
|
@@ -17482,7 +17345,7 @@ var OutlinedInput = /* @__PURE__ */ React.forwardRef(function OutlinedInput2(pro
|
|
|
17482
17345
|
notched: typeof notched !== "undefined" ? notched : Boolean(state.startAdornment || state.filled || state.focused)
|
|
17483
17346
|
});
|
|
17484
17347
|
},
|
|
17485
|
-
classes: _extends$
|
|
17348
|
+
classes: _extends$2({}, classes, {
|
|
17486
17349
|
root: clsx(classes.root, classes.underline),
|
|
17487
17350
|
notchedOutline: null
|
|
17488
17351
|
}),
|
|
@@ -19192,7 +19055,7 @@ function getAnchorEl(anchorEl) {
|
|
|
19192
19055
|
var useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
19193
19056
|
var defaultPopperOptions = {};
|
|
19194
19057
|
var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
|
|
19195
|
-
var anchorEl = props.anchorEl, children = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, modifiers2 = props.modifiers, open = props.open, _props$placement = props.placement, initialPlacement = _props$placement === void 0 ? "bottom" : _props$placement, _props$popperOptions = props.popperOptions, popperOptions = _props$popperOptions === void 0 ? defaultPopperOptions : _props$popperOptions, popperRefProp = props.popperRef, style = props.style, _props$transition = props.transition, transition2 = _props$transition === void 0 ? false : _props$transition, other = _objectWithoutProperties
|
|
19058
|
+
var anchorEl = props.anchorEl, children = props.children, container = props.container, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, modifiers2 = props.modifiers, open = props.open, _props$placement = props.placement, initialPlacement = _props$placement === void 0 ? "bottom" : _props$placement, _props$popperOptions = props.popperOptions, popperOptions = _props$popperOptions === void 0 ? defaultPopperOptions : _props$popperOptions, popperRefProp = props.popperRef, style = props.style, _props$transition = props.transition, transition2 = _props$transition === void 0 ? false : _props$transition, other = _objectWithoutProperties(props, ["anchorEl", "children", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"]);
|
|
19196
19059
|
var tooltipRef = React.useRef(null);
|
|
19197
19060
|
var ownRef = useForkRef(tooltipRef, ref);
|
|
19198
19061
|
var popperRef = React.useRef(null);
|
|
@@ -19233,10 +19096,10 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
|
|
|
19233
19096
|
}
|
|
19234
19097
|
}
|
|
19235
19098
|
}
|
|
19236
|
-
var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$
|
|
19099
|
+
var popper = new PopperJs(getAnchorEl(anchorEl), tooltipRef.current, _extends$2({
|
|
19237
19100
|
placement: rtlPlacement
|
|
19238
19101
|
}, popperOptions, {
|
|
19239
|
-
modifiers: _extends$
|
|
19102
|
+
modifiers: _extends$2({}, disablePortal ? {} : {
|
|
19240
19103
|
// It's using scrollParent by default, we can use the viewport when using a portal.
|
|
19241
19104
|
preventOverflow: {
|
|
19242
19105
|
boundariesElement: "window"
|
|
@@ -19293,11 +19156,11 @@ var Popper = /* @__PURE__ */ React.forwardRef(function Popper2(props, ref) {
|
|
|
19293
19156
|
return /* @__PURE__ */ React.createElement(Portal$1, {
|
|
19294
19157
|
disablePortal,
|
|
19295
19158
|
container
|
|
19296
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
|
19159
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
19297
19160
|
ref: handleRef,
|
|
19298
19161
|
role: "tooltip"
|
|
19299
19162
|
}, other, {
|
|
19300
|
-
style: _extends$
|
|
19163
|
+
style: _extends$2({
|
|
19301
19164
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
19302
19165
|
position: "fixed",
|
|
19303
19166
|
// Fix Popper.js display issue
|
|
@@ -19509,7 +19372,7 @@ var defaultCheckedIcon = /* @__PURE__ */ React.createElement(RadioButtonIcon$1,
|
|
|
19509
19372
|
});
|
|
19510
19373
|
var defaultIcon = /* @__PURE__ */ React.createElement(RadioButtonIcon$1, null);
|
|
19511
19374
|
var Radio = /* @__PURE__ */ React.forwardRef(function Radio2(props, ref) {
|
|
19512
|
-
var checkedProp = props.checked, classes = props.classes, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, nameProp = props.name, onChangeProp = props.onChange, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties
|
|
19375
|
+
var checkedProp = props.checked, classes = props.classes, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, nameProp = props.name, onChangeProp = props.onChange, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["checked", "classes", "color", "name", "onChange", "size"]);
|
|
19513
19376
|
var radioGroup = useRadioGroup();
|
|
19514
19377
|
var checked = checkedProp;
|
|
19515
19378
|
var onChange = createChainedFunction(onChangeProp, radioGroup && radioGroup.onChange);
|
|
@@ -19522,7 +19385,7 @@ var Radio = /* @__PURE__ */ React.forwardRef(function Radio2(props, ref) {
|
|
|
19522
19385
|
name = radioGroup.name;
|
|
19523
19386
|
}
|
|
19524
19387
|
}
|
|
19525
|
-
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$
|
|
19388
|
+
return /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$2({
|
|
19526
19389
|
color: color2,
|
|
19527
19390
|
type: "radio",
|
|
19528
19391
|
icon: /* @__PURE__ */ React.cloneElement(defaultIcon, {
|
|
@@ -19618,7 +19481,7 @@ const Radio$1 = withStyles2(styles$d, {
|
|
|
19618
19481
|
name: "MuiRadio"
|
|
19619
19482
|
})(Radio);
|
|
19620
19483
|
var RadioGroup = /* @__PURE__ */ React.forwardRef(function RadioGroup2(props, ref) {
|
|
19621
|
-
var actions = props.actions, children = props.children, nameProp = props.name, valueProp = props.value, onChange = props.onChange, other = _objectWithoutProperties
|
|
19484
|
+
var actions = props.actions, children = props.children, nameProp = props.name, valueProp = props.value, onChange = props.onChange, other = _objectWithoutProperties(props, ["actions", "children", "name", "value", "onChange"]);
|
|
19622
19485
|
var rootRef = React.useRef(null);
|
|
19623
19486
|
var _useControlled = useControlled({
|
|
19624
19487
|
controlled: valueProp,
|
|
@@ -19652,7 +19515,7 @@ var RadioGroup = /* @__PURE__ */ React.forwardRef(function RadioGroup2(props, re
|
|
|
19652
19515
|
onChange: handleChange,
|
|
19653
19516
|
value
|
|
19654
19517
|
}
|
|
19655
|
-
}, /* @__PURE__ */ React.createElement(FormGroup$1, _extends$
|
|
19518
|
+
}, /* @__PURE__ */ React.createElement(FormGroup$1, _extends$2({
|
|
19656
19519
|
role: "radiogroup",
|
|
19657
19520
|
ref: handleRef
|
|
19658
19521
|
}, other), children));
|
|
@@ -19688,16 +19551,8 @@ RadioGroup.propTypes = {
|
|
|
19688
19551
|
value: re.any
|
|
19689
19552
|
};
|
|
19690
19553
|
const RadioGroup$1 = RadioGroup;
|
|
19691
|
-
function _typeof(obj) {
|
|
19692
|
-
"@babel/helpers - typeof";
|
|
19693
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
19694
|
-
return typeof obj2;
|
|
19695
|
-
} : function(obj2) {
|
|
19696
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
19697
|
-
}, _typeof(obj);
|
|
19698
|
-
}
|
|
19699
19554
|
function areEqualValues(a, b) {
|
|
19700
|
-
if (_typeof(b) === "object" && b !== null) {
|
|
19555
|
+
if (_typeof$1(b) === "object" && b !== null) {
|
|
19701
19556
|
return a === b;
|
|
19702
19557
|
}
|
|
19703
19558
|
return String(a) === String(b);
|
|
@@ -19708,7 +19563,7 @@ function isEmpty(display2) {
|
|
|
19708
19563
|
var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props, ref) {
|
|
19709
19564
|
var ariaLabel = props["aria-label"], autoFocus = props.autoFocus, autoWidth = props.autoWidth, children = props.children, classes = props.classes, className = props.className, defaultValue = props.defaultValue, disabled = props.disabled, displayEmpty = props.displayEmpty, IconComponent = props.IconComponent, inputRefProp = props.inputRef, labelId = props.labelId, _props$MenuProps = props.MenuProps, MenuProps = _props$MenuProps === void 0 ? {} : _props$MenuProps, multiple = props.multiple, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onClose = props.onClose, onFocus = props.onFocus, onOpen = props.onOpen, openProp = props.open, readOnly = props.readOnly, renderValue = props.renderValue, _props$SelectDisplayP = props.SelectDisplayProps, SelectDisplayProps = _props$SelectDisplayP === void 0 ? {} : _props$SelectDisplayP, tabIndexProp = props.tabIndex;
|
|
19710
19565
|
props.type;
|
|
19711
|
-
var valueProp = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
|
19566
|
+
var valueProp = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["aria-label", "autoFocus", "autoWidth", "children", "classes", "className", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"]);
|
|
19712
19567
|
var _useControlled = useControlled({
|
|
19713
19568
|
controlled: valueProp,
|
|
19714
19569
|
default: defaultValue,
|
|
@@ -19947,7 +19802,7 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props,
|
|
|
19947
19802
|
tabIndex = disabled ? null : 0;
|
|
19948
19803
|
}
|
|
19949
19804
|
var buttonId = SelectDisplayProps.id || (name ? "mui-component-select-".concat(name) : void 0);
|
|
19950
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", _extends$
|
|
19805
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
19951
19806
|
className: clsx(
|
|
19952
19807
|
classes.root,
|
|
19953
19808
|
// TODO v5: merge root and select
|
|
@@ -19979,7 +19834,7 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props,
|
|
|
19979
19834
|
__html: "​"
|
|
19980
19835
|
}
|
|
19981
19836
|
})
|
|
19982
|
-
) : display2), /* @__PURE__ */ React.createElement("input", _extends$
|
|
19837
|
+
) : display2), /* @__PURE__ */ React.createElement("input", _extends$2({
|
|
19983
19838
|
value: Array.isArray(value) ? value.join(",") : value,
|
|
19984
19839
|
name,
|
|
19985
19840
|
ref: inputRef,
|
|
@@ -19990,19 +19845,19 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props,
|
|
|
19990
19845
|
autoFocus
|
|
19991
19846
|
}, other)), /* @__PURE__ */ React.createElement(IconComponent, {
|
|
19992
19847
|
className: clsx(classes.icon, classes["icon".concat(capitalize(variant))], open && classes.iconOpen, disabled && classes.disabled)
|
|
19993
|
-
}), /* @__PURE__ */ React.createElement(Menu$1, _extends$
|
|
19848
|
+
}), /* @__PURE__ */ React.createElement(Menu$1, _extends$2({
|
|
19994
19849
|
id: "menu-".concat(name || ""),
|
|
19995
19850
|
anchorEl: displayNode,
|
|
19996
19851
|
open,
|
|
19997
19852
|
onClose: handleClose
|
|
19998
19853
|
}, MenuProps, {
|
|
19999
|
-
MenuListProps: _extends$
|
|
19854
|
+
MenuListProps: _extends$2({
|
|
20000
19855
|
"aria-labelledby": labelId,
|
|
20001
19856
|
role: "listbox",
|
|
20002
19857
|
disableListWrap: true
|
|
20003
19858
|
}, MenuProps.MenuListProps),
|
|
20004
|
-
PaperProps: _extends$
|
|
20005
|
-
style: _extends$
|
|
19859
|
+
PaperProps: _extends$2({}, MenuProps.PaperProps, {
|
|
19860
|
+
style: _extends$2({
|
|
20006
19861
|
minWidth: menuMinWidth
|
|
20007
19862
|
}, MenuProps.PaperProps != null ? MenuProps.PaperProps.style : null)
|
|
20008
19863
|
})
|
|
@@ -20145,7 +20000,7 @@ var styles$c = styles$h;
|
|
|
20145
20000
|
var _ref$3 = /* @__PURE__ */ React.createElement(Input$1, null);
|
|
20146
20001
|
var _ref2$2 = /* @__PURE__ */ React.createElement(FilledInput$1, null);
|
|
20147
20002
|
var Select = /* @__PURE__ */ React.forwardRef(function Select2(props, ref) {
|
|
20148
|
-
var _props$autoWidth = props.autoWidth, autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth, children = props.children, classes = props.classes, _props$displayEmpty = props.displayEmpty, displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon$1 : _props$IconComponent, id = props.id, input = props.input, inputProps = props.inputProps, label = props.label, labelId = props.labelId, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, MenuProps = props.MenuProps, _props$multiple = props.multiple, multiple = _props$multiple === void 0 ? false : _props$multiple, _props$native = props.native, native = _props$native === void 0 ? false : _props$native, onClose = props.onClose, onOpen = props.onOpen, open = props.open, renderValue = props.renderValue, SelectDisplayProps = props.SelectDisplayProps, _props$variant = props.variant, variantProps = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
|
20003
|
+
var _props$autoWidth = props.autoWidth, autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth, children = props.children, classes = props.classes, _props$displayEmpty = props.displayEmpty, displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon$1 : _props$IconComponent, id = props.id, input = props.input, inputProps = props.inputProps, label = props.label, labelId = props.labelId, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, MenuProps = props.MenuProps, _props$multiple = props.multiple, multiple = _props$multiple === void 0 ? false : _props$multiple, _props$native = props.native, native = _props$native === void 0 ? false : _props$native, onClose = props.onClose, onOpen = props.onOpen, open = props.open, renderValue = props.renderValue, SelectDisplayProps = props.SelectDisplayProps, _props$variant = props.variant, variantProps = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["autoWidth", "children", "classes", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "labelWidth", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"]);
|
|
20149
20004
|
var inputComponent = native ? NativeSelectInput$1 : SelectInput$1;
|
|
20150
20005
|
var muiFormControl = useFormControl();
|
|
20151
20006
|
var fcs = formControlState({
|
|
@@ -20162,11 +20017,11 @@ var Select = /* @__PURE__ */ React.forwardRef(function Select2(props, ref) {
|
|
|
20162
20017
|
}),
|
|
20163
20018
|
filled: _ref2$2
|
|
20164
20019
|
}[variant];
|
|
20165
|
-
return /* @__PURE__ */ React.cloneElement(InputComponent, _extends$
|
|
20020
|
+
return /* @__PURE__ */ React.cloneElement(InputComponent, _extends$2({
|
|
20166
20021
|
// Most of the logic is implemented in `SelectInput`.
|
|
20167
20022
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
20168
20023
|
inputComponent,
|
|
20169
|
-
inputProps: _extends$
|
|
20024
|
+
inputProps: _extends$2({
|
|
20170
20025
|
children,
|
|
20171
20026
|
IconComponent,
|
|
20172
20027
|
variant,
|
|
@@ -20184,7 +20039,7 @@ var Select = /* @__PURE__ */ React.forwardRef(function Select2(props, ref) {
|
|
|
20184
20039
|
onOpen,
|
|
20185
20040
|
open,
|
|
20186
20041
|
renderValue,
|
|
20187
|
-
SelectDisplayProps: _extends$
|
|
20042
|
+
SelectDisplayProps: _extends$2({
|
|
20188
20043
|
id
|
|
20189
20044
|
}, SelectDisplayProps)
|
|
20190
20045
|
}, inputProps, {
|
|
@@ -20348,7 +20203,7 @@ var styles$b = {
|
|
|
20348
20203
|
completed: {}
|
|
20349
20204
|
};
|
|
20350
20205
|
var Step = /* @__PURE__ */ React.forwardRef(function Step2(props, ref) {
|
|
20351
|
-
var _props$active = props.active, active = _props$active === void 0 ? false : _props$active, alternativeLabel = props.alternativeLabel, children = props.children, classes = props.classes, className = props.className, _props$completed = props.completed, completed = _props$completed === void 0 ? false : _props$completed, connectorProp = props.connector, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$expanded = props.expanded, expanded = _props$expanded === void 0 ? false : _props$expanded, index = props.index, last = props.last, orientation = props.orientation, other = _objectWithoutProperties
|
|
20206
|
+
var _props$active = props.active, active = _props$active === void 0 ? false : _props$active, alternativeLabel = props.alternativeLabel, children = props.children, classes = props.classes, className = props.className, _props$completed = props.completed, completed = _props$completed === void 0 ? false : _props$completed, connectorProp = props.connector, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$expanded = props.expanded, expanded = _props$expanded === void 0 ? false : _props$expanded, index = props.index, last = props.last, orientation = props.orientation, other = _objectWithoutProperties(props, ["active", "alternativeLabel", "children", "classes", "className", "completed", "connector", "disabled", "expanded", "index", "last", "orientation"]);
|
|
20352
20207
|
var connector = connectorProp ? /* @__PURE__ */ React.cloneElement(connectorProp, {
|
|
20353
20208
|
orientation,
|
|
20354
20209
|
alternativeLabel,
|
|
@@ -20357,7 +20212,7 @@ var Step = /* @__PURE__ */ React.forwardRef(function Step2(props, ref) {
|
|
|
20357
20212
|
completed,
|
|
20358
20213
|
disabled
|
|
20359
20214
|
}) : null;
|
|
20360
|
-
var newChildren = /* @__PURE__ */ React.createElement("div", _extends$
|
|
20215
|
+
var newChildren = /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
20361
20216
|
className: clsx(classes.root, classes[orientation], className, alternativeLabel && classes.alternativeLabel, completed && classes.completed),
|
|
20362
20217
|
ref
|
|
20363
20218
|
}, other), connector && alternativeLabel && index !== 0 ? connector : null, React.Children.map(children, function(child) {
|
|
@@ -20369,7 +20224,7 @@ var Step = /* @__PURE__ */ React.forwardRef(function Step2(props, ref) {
|
|
|
20369
20224
|
console.error(["Material-UI: The Step component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n"));
|
|
20370
20225
|
}
|
|
20371
20226
|
}
|
|
20372
|
-
return /* @__PURE__ */ React.cloneElement(child, _extends$
|
|
20227
|
+
return /* @__PURE__ */ React.cloneElement(child, _extends$2({
|
|
20373
20228
|
active,
|
|
20374
20229
|
alternativeLabel,
|
|
20375
20230
|
completed,
|
|
@@ -20590,17 +20445,17 @@ var StepLabel = /* @__PURE__ */ React.forwardRef(function StepLabel2(props, ref)
|
|
|
20590
20445
|
props.expanded;
|
|
20591
20446
|
var icon = props.icon;
|
|
20592
20447
|
props.last;
|
|
20593
|
-
var optional = props.optional, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, StepIconComponentProp = props.StepIconComponent, StepIconProps = props.StepIconProps, other = _objectWithoutProperties
|
|
20448
|
+
var optional = props.optional, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, StepIconComponentProp = props.StepIconComponent, StepIconProps = props.StepIconProps, other = _objectWithoutProperties(props, ["active", "alternativeLabel", "children", "classes", "className", "completed", "disabled", "error", "expanded", "icon", "last", "optional", "orientation", "StepIconComponent", "StepIconProps"]);
|
|
20594
20449
|
var StepIconComponent = StepIconComponentProp;
|
|
20595
20450
|
if (icon && !StepIconComponent) {
|
|
20596
20451
|
StepIconComponent = StepIcon$1;
|
|
20597
20452
|
}
|
|
20598
|
-
return /* @__PURE__ */ React.createElement("span", _extends$
|
|
20453
|
+
return /* @__PURE__ */ React.createElement("span", _extends$2({
|
|
20599
20454
|
className: clsx(classes.root, classes[orientation], className, disabled && classes.disabled, alternativeLabel && classes.alternativeLabel, error && classes.error),
|
|
20600
20455
|
ref
|
|
20601
20456
|
}, other), icon || StepIconComponent ? /* @__PURE__ */ React.createElement("span", {
|
|
20602
20457
|
className: clsx(classes.iconContainer, alternativeLabel && classes.alternativeLabel)
|
|
20603
|
-
}, /* @__PURE__ */ React.createElement(StepIconComponent, _extends$
|
|
20458
|
+
}, /* @__PURE__ */ React.createElement(StepIconComponent, _extends$2({
|
|
20604
20459
|
completed,
|
|
20605
20460
|
active,
|
|
20606
20461
|
error,
|
|
@@ -20710,8 +20565,8 @@ var styles$8 = function styles36(theme) {
|
|
|
20710
20565
|
var StepConnector = /* @__PURE__ */ React.forwardRef(function StepConnector2(props, ref) {
|
|
20711
20566
|
var active = props.active, _props$alternativeLab = props.alternativeLabel, alternativeLabel = _props$alternativeLab === void 0 ? false : _props$alternativeLab, classes = props.classes, className = props.className, completed = props.completed, disabled = props.disabled;
|
|
20712
20567
|
props.index;
|
|
20713
|
-
var _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, other = _objectWithoutProperties
|
|
20714
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
20568
|
+
var _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, other = _objectWithoutProperties(props, ["active", "alternativeLabel", "classes", "className", "completed", "disabled", "index", "orientation"]);
|
|
20569
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
20715
20570
|
className: clsx(classes.root, classes[orientation], className, alternativeLabel && classes.alternativeLabel, active && classes.active, completed && classes.completed, disabled && classes.disabled),
|
|
20716
20571
|
ref
|
|
20717
20572
|
}, other), /* @__PURE__ */ React.createElement("span", {
|
|
@@ -20761,7 +20616,7 @@ var styles$7 = {
|
|
|
20761
20616
|
};
|
|
20762
20617
|
var defaultConnector = /* @__PURE__ */ React.createElement(StepConnector$1, null);
|
|
20763
20618
|
var Stepper = /* @__PURE__ */ React.forwardRef(function Stepper2(props, ref) {
|
|
20764
|
-
var _props$activeStep = props.activeStep, activeStep = _props$activeStep === void 0 ? 0 : _props$activeStep, _props$alternativeLab = props.alternativeLabel, alternativeLabel = _props$alternativeLab === void 0 ? false : _props$alternativeLab, children = props.children, classes = props.classes, className = props.className, _props$connector = props.connector, connectorProp = _props$connector === void 0 ? defaultConnector : _props$connector, _props$nonLinear = props.nonLinear, nonLinear = _props$nonLinear === void 0 ? false : _props$nonLinear, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, other = _objectWithoutProperties
|
|
20619
|
+
var _props$activeStep = props.activeStep, activeStep = _props$activeStep === void 0 ? 0 : _props$activeStep, _props$alternativeLab = props.alternativeLabel, alternativeLabel = _props$alternativeLab === void 0 ? false : _props$alternativeLab, children = props.children, classes = props.classes, className = props.className, _props$connector = props.connector, connectorProp = _props$connector === void 0 ? defaultConnector : _props$connector, _props$nonLinear = props.nonLinear, nonLinear = _props$nonLinear === void 0 ? false : _props$nonLinear, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, other = _objectWithoutProperties(props, ["activeStep", "alternativeLabel", "children", "classes", "className", "connector", "nonLinear", "orientation"]);
|
|
20765
20620
|
var connector = /* @__PURE__ */ React.isValidElement(connectorProp) ? /* @__PURE__ */ React.cloneElement(connectorProp, {
|
|
20766
20621
|
orientation
|
|
20767
20622
|
}) : null;
|
|
@@ -20780,14 +20635,14 @@ var Stepper = /* @__PURE__ */ React.forwardRef(function Stepper2(props, ref) {
|
|
|
20780
20635
|
} else if (!nonLinear && activeStep < index) {
|
|
20781
20636
|
state.disabled = true;
|
|
20782
20637
|
}
|
|
20783
|
-
return /* @__PURE__ */ React.cloneElement(step, _extends$
|
|
20638
|
+
return /* @__PURE__ */ React.cloneElement(step, _extends$2({
|
|
20784
20639
|
alternativeLabel,
|
|
20785
20640
|
connector,
|
|
20786
20641
|
last: index + 1 === childrenArray.length,
|
|
20787
20642
|
orientation
|
|
20788
20643
|
}, state, step.props));
|
|
20789
20644
|
});
|
|
20790
|
-
return /* @__PURE__ */ React.createElement(M, _extends$
|
|
20645
|
+
return /* @__PURE__ */ React.createElement(M, _extends$2({
|
|
20791
20646
|
square: true,
|
|
20792
20647
|
elevation: 0,
|
|
20793
20648
|
className: clsx(classes.root, classes[orientation], className, alternativeLabel && classes.alternativeLabel),
|
|
@@ -20980,7 +20835,7 @@ var styles$6 = function styles37(theme) {
|
|
|
20980
20835
|
};
|
|
20981
20836
|
};
|
|
20982
20837
|
var Switch = /* @__PURE__ */ React.forwardRef(function Switch2(props, ref) {
|
|
20983
|
-
var classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, _props$edge = props.edge, edge = _props$edge === void 0 ? false : _props$edge, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties
|
|
20838
|
+
var classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "secondary" : _props$color, _props$edge = props.edge, edge = _props$edge === void 0 ? false : _props$edge, _props$size = props.size, size2 = _props$size === void 0 ? "medium" : _props$size, other = _objectWithoutProperties(props, ["classes", "className", "color", "edge", "size"]);
|
|
20984
20839
|
var icon = /* @__PURE__ */ React.createElement("span", {
|
|
20985
20840
|
className: classes.thumb
|
|
20986
20841
|
});
|
|
@@ -20989,7 +20844,7 @@ var Switch = /* @__PURE__ */ React.forwardRef(function Switch2(props, ref) {
|
|
|
20989
20844
|
"start": classes.edgeStart,
|
|
20990
20845
|
"end": classes.edgeEnd
|
|
20991
20846
|
}[edge], size2 === "small" && classes["size".concat(capitalize(size2))])
|
|
20992
|
-
}, /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$
|
|
20847
|
+
}, /* @__PURE__ */ React.createElement(SwitchBase$1, _extends$2({
|
|
20993
20848
|
type: "checkbox",
|
|
20994
20849
|
icon,
|
|
20995
20850
|
checkedIcon: icon,
|
|
@@ -21104,7 +20959,7 @@ const Tablelvl2Context$1 = Tablelvl2Context;
|
|
|
21104
20959
|
var styles$5 = function styles38(theme) {
|
|
21105
20960
|
return {
|
|
21106
20961
|
/* Styles applied to the root element. */
|
|
21107
|
-
root: _extends$
|
|
20962
|
+
root: _extends$2({}, theme.typography.body2, {
|
|
21108
20963
|
display: "table-cell",
|
|
21109
20964
|
verticalAlign: "inherit",
|
|
21110
20965
|
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
@@ -21193,7 +21048,7 @@ var styles$5 = function styles38(theme) {
|
|
|
21193
21048
|
};
|
|
21194
21049
|
};
|
|
21195
21050
|
var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref) {
|
|
21196
|
-
var _props$align = props.align, align = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties
|
|
21051
|
+
var _props$align = props.align, align = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties(props, ["align", "classes", "className", "component", "padding", "scope", "size", "sortDirection", "variant"]);
|
|
21197
21052
|
var table = React.useContext(TableContext$1);
|
|
21198
21053
|
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
|
21199
21054
|
var isHeadCell = tablelvl2 && tablelvl2.variant === "head";
|
|
@@ -21216,7 +21071,7 @@ var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref)
|
|
|
21216
21071
|
if (sortDirection) {
|
|
21217
21072
|
ariaSort = sortDirection === "asc" ? "ascending" : "descending";
|
|
21218
21073
|
}
|
|
21219
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
21074
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
21220
21075
|
ref,
|
|
21221
21076
|
className: clsx(classes.root, classes[variant], className, align !== "inherit" && classes["align".concat(capitalize(align))], padding !== "normal" && classes["padding".concat(capitalize(padding))], size2 !== "medium" && classes["size".concat(capitalize(size2))], variant === "head" && table && table.stickyHeader && classes.stickyHeader),
|
|
21222
21077
|
"aria-sort": ariaSort,
|
|
@@ -21308,8 +21163,8 @@ var styles$4 = function styles39(theme) {
|
|
|
21308
21163
|
};
|
|
21309
21164
|
};
|
|
21310
21165
|
var Toolbar = /* @__PURE__ */ React.forwardRef(function Toolbar2(props, ref) {
|
|
21311
|
-
var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, _props$variant = props.variant, variant = _props$variant === void 0 ? "regular" : _props$variant, other = _objectWithoutProperties
|
|
21312
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
21166
|
+
var classes = props.classes, className = props.className, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, _props$variant = props.variant, variant = _props$variant === void 0 ? "regular" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "component", "disableGutters", "variant"]);
|
|
21167
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
21313
21168
|
className: clsx(classes.root, classes[variant], className, !disableGutters && classes.gutters),
|
|
21314
21169
|
ref
|
|
21315
21170
|
}, other));
|
|
@@ -21358,7 +21213,7 @@ var _ref4 = /* @__PURE__ */ React.createElement(KeyboardArrowRight, null);
|
|
|
21358
21213
|
var TablePaginationActions = /* @__PURE__ */ React.forwardRef(function TablePaginationActions2(props, ref) {
|
|
21359
21214
|
var backIconButtonProps = props.backIconButtonProps, count = props.count, nextIconButtonProps = props.nextIconButtonProps, _props$onChangePage = props.onChangePage, onChangePage = _props$onChangePage === void 0 ? function() {
|
|
21360
21215
|
} : _props$onChangePage, _props$onPageChange = props.onPageChange, onPageChange = _props$onPageChange === void 0 ? function() {
|
|
21361
|
-
} : _props$onPageChange, page = props.page, rowsPerPage = props.rowsPerPage, other = _objectWithoutProperties
|
|
21216
|
+
} : _props$onPageChange, page = props.page, rowsPerPage = props.rowsPerPage, other = _objectWithoutProperties(props, ["backIconButtonProps", "count", "nextIconButtonProps", "onChangePage", "onPageChange", "page", "rowsPerPage"]);
|
|
21362
21217
|
var theme = useTheme();
|
|
21363
21218
|
var handleBackButtonClick = function handleBackButtonClick2(event) {
|
|
21364
21219
|
onChangePage(event, page - 1);
|
|
@@ -21368,13 +21223,13 @@ var TablePaginationActions = /* @__PURE__ */ React.forwardRef(function TablePagi
|
|
|
21368
21223
|
onChangePage(event, page + 1);
|
|
21369
21224
|
onPageChange(event, page + 1);
|
|
21370
21225
|
};
|
|
21371
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
21226
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
|
21372
21227
|
ref
|
|
21373
|
-
}, other), /* @__PURE__ */ React.createElement(S, _extends$
|
|
21228
|
+
}, other), /* @__PURE__ */ React.createElement(S, _extends$2({
|
|
21374
21229
|
onClick: handleBackButtonClick,
|
|
21375
21230
|
disabled: page === 0,
|
|
21376
21231
|
color: "inherit"
|
|
21377
|
-
}, backIconButtonProps), theme.direction === "rtl" ? _ref$1 : _ref2$1), /* @__PURE__ */ React.createElement(S, _extends$
|
|
21232
|
+
}, backIconButtonProps), theme.direction === "rtl" ? _ref$1 : _ref2$1), /* @__PURE__ */ React.createElement(S, _extends$2({
|
|
21378
21233
|
onClick: handleNextButtonClick,
|
|
21379
21234
|
disabled: count !== -1 ? page >= Math.ceil(count / rowsPerPage) - 1 : false,
|
|
21380
21235
|
color: "inherit"
|
|
@@ -21480,7 +21335,7 @@ var defaultLabelDisplayedRows = function defaultLabelDisplayedRows2(_ref5) {
|
|
|
21480
21335
|
};
|
|
21481
21336
|
var defaultRowsPerPageOptions = [10, 25, 50, 100];
|
|
21482
21337
|
var TablePagination = /* @__PURE__ */ React.forwardRef(function TablePagination2(props, ref) {
|
|
21483
|
-
var _props$ActionsCompone = props.ActionsComponent, ActionsComponent = _props$ActionsCompone === void 0 ? TablePaginationActions$1 : _props$ActionsCompone, backIconButtonProps = props.backIconButtonProps, _props$backIconButton = props.backIconButtonText, backIconButtonText = _props$backIconButton === void 0 ? "Previous page" : _props$backIconButton, classes = props.classes, className = props.className, colSpanProp = props.colSpan, _props$component = props.component, Component = _props$component === void 0 ? TableCell$1 : _props$component, count = props.count, _props$labelDisplayed = props.labelDisplayedRows, labelDisplayedRows32 = _props$labelDisplayed === void 0 ? defaultLabelDisplayedRows : _props$labelDisplayed, _props$labelRowsPerPa = props.labelRowsPerPage, labelRowsPerPage = _props$labelRowsPerPa === void 0 ? "Rows per page:" : _props$labelRowsPerPa, nextIconButtonProps = props.nextIconButtonProps, _props$nextIconButton = props.nextIconButtonText, nextIconButtonText = _props$nextIconButton === void 0 ? "Next page" : _props$nextIconButton, onChangePage = props.onChangePage, onPageChange = props.onPageChange, onChangeRowsPerPageProp = props.onChangeRowsPerPage, onRowsPerPageChangeProp = props.onRowsPerPageChange, page = props.page, rowsPerPage = props.rowsPerPage, _props$rowsPerPageOpt = props.rowsPerPageOptions, rowsPerPageOptions = _props$rowsPerPageOpt === void 0 ? defaultRowsPerPageOptions : _props$rowsPerPageOpt, _props$SelectProps = props.SelectProps, SelectProps = _props$SelectProps === void 0 ? {} : _props$SelectProps, other = _objectWithoutProperties
|
|
21338
|
+
var _props$ActionsCompone = props.ActionsComponent, ActionsComponent = _props$ActionsCompone === void 0 ? TablePaginationActions$1 : _props$ActionsCompone, backIconButtonProps = props.backIconButtonProps, _props$backIconButton = props.backIconButtonText, backIconButtonText = _props$backIconButton === void 0 ? "Previous page" : _props$backIconButton, classes = props.classes, className = props.className, colSpanProp = props.colSpan, _props$component = props.component, Component = _props$component === void 0 ? TableCell$1 : _props$component, count = props.count, _props$labelDisplayed = props.labelDisplayedRows, labelDisplayedRows32 = _props$labelDisplayed === void 0 ? defaultLabelDisplayedRows : _props$labelDisplayed, _props$labelRowsPerPa = props.labelRowsPerPage, labelRowsPerPage = _props$labelRowsPerPa === void 0 ? "Rows per page:" : _props$labelRowsPerPa, nextIconButtonProps = props.nextIconButtonProps, _props$nextIconButton = props.nextIconButtonText, nextIconButtonText = _props$nextIconButton === void 0 ? "Next page" : _props$nextIconButton, onChangePage = props.onChangePage, onPageChange = props.onPageChange, onChangeRowsPerPageProp = props.onChangeRowsPerPage, onRowsPerPageChangeProp = props.onRowsPerPageChange, page = props.page, rowsPerPage = props.rowsPerPage, _props$rowsPerPageOpt = props.rowsPerPageOptions, rowsPerPageOptions = _props$rowsPerPageOpt === void 0 ? defaultRowsPerPageOptions : _props$rowsPerPageOpt, _props$SelectProps = props.SelectProps, SelectProps = _props$SelectProps === void 0 ? {} : _props$SelectProps, other = _objectWithoutProperties(props, ["ActionsComponent", "backIconButtonProps", "backIconButtonText", "classes", "className", "colSpan", "component", "count", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "nextIconButtonText", "onChangePage", "onPageChange", "onChangeRowsPerPage", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps"]);
|
|
21484
21339
|
var onChangeRowsPerPage = onChangeRowsPerPageProp || onRowsPerPageChangeProp;
|
|
21485
21340
|
var colSpan;
|
|
21486
21341
|
if (Component === TableCell$1 || Component === "td") {
|
|
@@ -21489,7 +21344,7 @@ var TablePagination = /* @__PURE__ */ React.forwardRef(function TablePagination2
|
|
|
21489
21344
|
var selectId = useId();
|
|
21490
21345
|
var labelId = useId();
|
|
21491
21346
|
var MenuItemComponent = SelectProps.native ? "option" : y;
|
|
21492
|
-
return /* @__PURE__ */ React.createElement(Component, _extends$
|
|
21347
|
+
return /* @__PURE__ */ React.createElement(Component, _extends$2({
|
|
21493
21348
|
className: clsx(classes.root, className),
|
|
21494
21349
|
colSpan,
|
|
21495
21350
|
ref
|
|
@@ -21502,7 +21357,7 @@ var TablePagination = /* @__PURE__ */ React.forwardRef(function TablePagination2
|
|
|
21502
21357
|
variant: "body2",
|
|
21503
21358
|
className: classes.caption,
|
|
21504
21359
|
id: labelId
|
|
21505
|
-
}, labelRowsPerPage), rowsPerPageOptions.length > 1 && /* @__PURE__ */ React.createElement(Select$1, _extends$
|
|
21360
|
+
}, labelRowsPerPage), rowsPerPageOptions.length > 1 && /* @__PURE__ */ React.createElement(Select$1, _extends$2({
|
|
21506
21361
|
classes: {
|
|
21507
21362
|
select: classes.select,
|
|
21508
21363
|
icon: classes.selectIcon
|
|
@@ -21531,12 +21386,12 @@ var TablePagination = /* @__PURE__ */ React.forwardRef(function TablePagination2
|
|
|
21531
21386
|
page
|
|
21532
21387
|
})), /* @__PURE__ */ React.createElement(ActionsComponent, {
|
|
21533
21388
|
className: classes.actions,
|
|
21534
|
-
backIconButtonProps: _extends$
|
|
21389
|
+
backIconButtonProps: _extends$2({
|
|
21535
21390
|
title: backIconButtonText,
|
|
21536
21391
|
"aria-label": backIconButtonText
|
|
21537
21392
|
}, backIconButtonProps),
|
|
21538
21393
|
count,
|
|
21539
|
-
nextIconButtonProps: _extends$
|
|
21394
|
+
nextIconButtonProps: _extends$2({
|
|
21540
21395
|
title: nextIconButtonText,
|
|
21541
21396
|
"aria-label": nextIconButtonText
|
|
21542
21397
|
}, nextIconButtonProps),
|
|
@@ -21678,7 +21533,7 @@ var styles$2 = {
|
|
|
21678
21533
|
root: {}
|
|
21679
21534
|
};
|
|
21680
21535
|
var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref) {
|
|
21681
|
-
var autoComplete = props.autoComplete, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, defaultValue = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error = _props$error === void 0 ? false : _props$error, FormHelperTextProps = props.FormHelperTextProps, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, helperText = props.helperText, hiddenLabel = props.hiddenLabel, id = props.id, InputLabelProps = props.InputLabelProps, inputProps = props.inputProps, InputProps = props.InputProps, inputRef = props.inputRef, label = props.label, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, placeholder = props.placeholder, _props$required = props.required, required = _props$required === void 0 ? false : _props$required, rows = props.rows, rowsMax = props.rowsMax, maxRows = props.maxRows, minRows = props.minRows, _props$select = props.select, select = _props$select === void 0 ? false : _props$select, SelectProps = props.SelectProps, type = props.type, value = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
|
21536
|
+
var autoComplete = props.autoComplete, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, defaultValue = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error = _props$error === void 0 ? false : _props$error, FormHelperTextProps = props.FormHelperTextProps, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, helperText = props.helperText, hiddenLabel = props.hiddenLabel, id = props.id, InputLabelProps = props.InputLabelProps, inputProps = props.inputProps, InputProps = props.InputProps, inputRef = props.inputRef, label = props.label, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, placeholder = props.placeholder, _props$required = props.required, required = _props$required === void 0 ? false : _props$required, rows = props.rows, rowsMax = props.rowsMax, maxRows = props.maxRows, minRows = props.minRows, _props$select = props.select, select = _props$select === void 0 ? false : _props$select, SelectProps = props.SelectProps, type = props.type, value = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["autoComplete", "autoFocus", "children", "classes", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "hiddenLabel", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "rowsMax", "maxRows", "minRows", "select", "SelectProps", "type", "value", "variant"]);
|
|
21682
21537
|
{
|
|
21683
21538
|
if (select && !children) {
|
|
21684
21539
|
console.error("Material-UI: `children` must be passed when using the `TextField` component with `select`.");
|
|
@@ -21704,7 +21559,7 @@ var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref)
|
|
|
21704
21559
|
var helperTextId = helperText && id ? "".concat(id, "-helper-text") : void 0;
|
|
21705
21560
|
var inputLabelId = label && id ? "".concat(id, "-label") : void 0;
|
|
21706
21561
|
var InputComponent = variantComponent[variant];
|
|
21707
|
-
var InputElement = /* @__PURE__ */ React.createElement(InputComponent, _extends$
|
|
21562
|
+
var InputElement = /* @__PURE__ */ React.createElement(InputComponent, _extends$2({
|
|
21708
21563
|
"aria-describedby": helperTextId,
|
|
21709
21564
|
autoComplete,
|
|
21710
21565
|
autoFocus,
|
|
@@ -21726,7 +21581,7 @@ var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref)
|
|
|
21726
21581
|
placeholder,
|
|
21727
21582
|
inputProps
|
|
21728
21583
|
}, InputMore, InputProps));
|
|
21729
|
-
return /* @__PURE__ */ React.createElement(FormControl$1, _extends$
|
|
21584
|
+
return /* @__PURE__ */ React.createElement(FormControl$1, _extends$2({
|
|
21730
21585
|
className: clsx(classes.root, className),
|
|
21731
21586
|
disabled,
|
|
21732
21587
|
error,
|
|
@@ -21736,16 +21591,16 @@ var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref)
|
|
|
21736
21591
|
required,
|
|
21737
21592
|
color: color2,
|
|
21738
21593
|
variant
|
|
21739
|
-
}, other), label && /* @__PURE__ */ React.createElement(H, _extends$
|
|
21594
|
+
}, other), label && /* @__PURE__ */ React.createElement(H, _extends$2({
|
|
21740
21595
|
htmlFor: id,
|
|
21741
21596
|
id: inputLabelId
|
|
21742
|
-
}, InputLabelProps), label), select ? /* @__PURE__ */ React.createElement(Select$1, _extends$
|
|
21597
|
+
}, InputLabelProps), label), select ? /* @__PURE__ */ React.createElement(Select$1, _extends$2({
|
|
21743
21598
|
"aria-describedby": helperTextId,
|
|
21744
21599
|
id,
|
|
21745
21600
|
labelId: inputLabelId,
|
|
21746
21601
|
value,
|
|
21747
21602
|
input: InputElement
|
|
21748
|
-
}, SelectProps), children) : InputElement, helperText && /* @__PURE__ */ React.createElement(FormHelperText$1, _extends$
|
|
21603
|
+
}, SelectProps), children) : InputElement, helperText && /* @__PURE__ */ React.createElement(FormHelperText$1, _extends$2({
|
|
21749
21604
|
id: helperTextId
|
|
21750
21605
|
}, FormHelperTextProps), helperText));
|
|
21751
21606
|
});
|
|
@@ -22058,7 +21913,7 @@ var styles$1 = function styles41(theme) {
|
|
|
22058
21913
|
var hystersisOpen = false;
|
|
22059
21914
|
var hystersisTimer = null;
|
|
22060
21915
|
var Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(props, ref) {
|
|
22061
|
-
var _props$arrow = props.arrow, arrow2 = _props$arrow === void 0 ? false : _props$arrow, children = props.children, classes = props.classes, _props$disableFocusLi = props.disableFocusListener, disableFocusListener = _props$disableFocusLi === void 0 ? false : _props$disableFocusLi, _props$disableHoverLi = props.disableHoverListener, disableHoverListener = _props$disableHoverLi === void 0 ? false : _props$disableHoverLi, _props$disableTouchLi = props.disableTouchListener, disableTouchListener = _props$disableTouchLi === void 0 ? false : _props$disableTouchLi, _props$enterDelay = props.enterDelay, enterDelay = _props$enterDelay === void 0 ? 100 : _props$enterDelay, _props$enterNextDelay = props.enterNextDelay, enterNextDelay = _props$enterNextDelay === void 0 ? 0 : _props$enterNextDelay, _props$enterTouchDela = props.enterTouchDelay, enterTouchDelay = _props$enterTouchDela === void 0 ? 700 : _props$enterTouchDela, idProp = props.id, _props$interactive = props.interactive, interactive = _props$interactive === void 0 ? false : _props$interactive, _props$leaveDelay = props.leaveDelay, leaveDelay = _props$leaveDelay === void 0 ? 0 : _props$leaveDelay, _props$leaveTouchDela = props.leaveTouchDelay, leaveTouchDelay = _props$leaveTouchDela === void 0 ? 1500 : _props$leaveTouchDela, onClose = props.onClose, onOpen = props.onOpen, openProp = props.open, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottom" : _props$placement, _props$PopperComponen = props.PopperComponent, PopperComponent = _props$PopperComponen === void 0 ? P : _props$PopperComponen, PopperProps = props.PopperProps, title = props.title, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? k : _props$TransitionComp, TransitionProps = props.TransitionProps, other = _objectWithoutProperties
|
|
21916
|
+
var _props$arrow = props.arrow, arrow2 = _props$arrow === void 0 ? false : _props$arrow, children = props.children, classes = props.classes, _props$disableFocusLi = props.disableFocusListener, disableFocusListener = _props$disableFocusLi === void 0 ? false : _props$disableFocusLi, _props$disableHoverLi = props.disableHoverListener, disableHoverListener = _props$disableHoverLi === void 0 ? false : _props$disableHoverLi, _props$disableTouchLi = props.disableTouchListener, disableTouchListener = _props$disableTouchLi === void 0 ? false : _props$disableTouchLi, _props$enterDelay = props.enterDelay, enterDelay = _props$enterDelay === void 0 ? 100 : _props$enterDelay, _props$enterNextDelay = props.enterNextDelay, enterNextDelay = _props$enterNextDelay === void 0 ? 0 : _props$enterNextDelay, _props$enterTouchDela = props.enterTouchDelay, enterTouchDelay = _props$enterTouchDela === void 0 ? 700 : _props$enterTouchDela, idProp = props.id, _props$interactive = props.interactive, interactive = _props$interactive === void 0 ? false : _props$interactive, _props$leaveDelay = props.leaveDelay, leaveDelay = _props$leaveDelay === void 0 ? 0 : _props$leaveDelay, _props$leaveTouchDela = props.leaveTouchDelay, leaveTouchDelay = _props$leaveTouchDela === void 0 ? 1500 : _props$leaveTouchDela, onClose = props.onClose, onOpen = props.onOpen, openProp = props.open, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottom" : _props$placement, _props$PopperComponen = props.PopperComponent, PopperComponent = _props$PopperComponen === void 0 ? P : _props$PopperComponen, PopperProps = props.PopperProps, title = props.title, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? k : _props$TransitionComp, TransitionProps = props.TransitionProps, other = _objectWithoutProperties(props, ["arrow", "children", "classes", "disableFocusListener", "disableHoverListener", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "id", "interactive", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "title", "TransitionComponent", "TransitionProps"]);
|
|
22062
21917
|
var theme = useTheme();
|
|
22063
21918
|
var _React$useState = React.useState(), childNode = _React$useState[0], setChildNode = _React$useState[1];
|
|
22064
21919
|
var _React$useState2 = React.useState(null), arrowRef = _React$useState2[0], setArrowRef = _React$useState2[1];
|
|
@@ -22221,7 +22076,7 @@ var Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(props, ref) {
|
|
|
22221
22076
|
open = false;
|
|
22222
22077
|
}
|
|
22223
22078
|
var shouldShowNativeTitle = !open && !disableHoverListener;
|
|
22224
|
-
var childrenProps = _extends$
|
|
22079
|
+
var childrenProps = _extends$2({
|
|
22225
22080
|
"aria-describedby": open ? id : null,
|
|
22226
22081
|
title: shouldShowNativeTitle && typeof title === "string" ? title : null
|
|
22227
22082
|
}, other, children.props, {
|
|
@@ -22267,7 +22122,7 @@ var Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(props, ref) {
|
|
|
22267
22122
|
}
|
|
22268
22123
|
}, PopperProps);
|
|
22269
22124
|
}, [arrowRef, PopperProps]);
|
|
22270
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.cloneElement(children, childrenProps), /* @__PURE__ */ React.createElement(PopperComponent, _extends$
|
|
22125
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.cloneElement(children, childrenProps), /* @__PURE__ */ React.createElement(PopperComponent, _extends$2({
|
|
22271
22126
|
className: clsx(classes.popper, interactive && classes.popperInteractive, arrow2 && classes.popperArrow),
|
|
22272
22127
|
placement,
|
|
22273
22128
|
anchorEl: childNode,
|
|
@@ -22276,7 +22131,7 @@ var Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(props, ref) {
|
|
|
22276
22131
|
transition: true
|
|
22277
22132
|
}, interactiveWrapperListeners, mergedPopperProps), function(_ref5) {
|
|
22278
22133
|
var placementInner = _ref5.placement, TransitionPropsInner = _ref5.TransitionProps;
|
|
22279
|
-
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$
|
|
22134
|
+
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$2({
|
|
22280
22135
|
timeout: theme.transitions.duration.shorter
|
|
22281
22136
|
}, TransitionPropsInner, TransitionProps), /* @__PURE__ */ React.createElement("div", {
|
|
22282
22137
|
className: clsx(classes.tooltip, classes["tooltipPlacement".concat(capitalize(placementInner.split("-")[0]))], ignoreNonTouchEvents.current && classes.touch, arrow2 && classes.tooltipArrow)
|
|
@@ -22569,7 +22424,7 @@ function useAutocomplete(props) {
|
|
|
22569
22424
|
getOptionLabel = function getOptionLabel2(option) {
|
|
22570
22425
|
var optionLabel = getOptionLabelProp(option);
|
|
22571
22426
|
if (typeof optionLabel !== "string") {
|
|
22572
|
-
var erroneousReturn = optionLabel === void 0 ? "undefined" : "".concat(_typeof$
|
|
22427
|
+
var erroneousReturn = optionLabel === void 0 ? "undefined" : "".concat(_typeof$1(optionLabel), " (").concat(optionLabel, ")");
|
|
22573
22428
|
console.error("Material-UI: The `getOptionLabel` method of ".concat(componentName, " returned ").concat(erroneousReturn, " instead of a string for ").concat(JSON.stringify(option), "."));
|
|
22574
22429
|
}
|
|
22575
22430
|
return optionLabel;
|
|
@@ -22587,13 +22442,13 @@ function useAutocomplete(props) {
|
|
|
22587
22442
|
controlled: valueProp,
|
|
22588
22443
|
default: defaultValue,
|
|
22589
22444
|
name: componentName
|
|
22590
|
-
}), _useControlled2 = _slicedToArray
|
|
22445
|
+
}), _useControlled2 = _slicedToArray(_useControlled, 2), value = _useControlled2[0], setValue = _useControlled2[1];
|
|
22591
22446
|
var _useControlled3 = useControlled({
|
|
22592
22447
|
controlled: inputValueProp,
|
|
22593
22448
|
default: "",
|
|
22594
22449
|
name: componentName,
|
|
22595
22450
|
state: "inputValue"
|
|
22596
|
-
}), _useControlled4 = _slicedToArray
|
|
22451
|
+
}), _useControlled4 = _slicedToArray(_useControlled3, 2), inputValue = _useControlled4[0], setInputValue = _useControlled4[1];
|
|
22597
22452
|
var _React$useState3 = React.useState(false), focused = _React$useState3[0], setFocused = _React$useState3[1];
|
|
22598
22453
|
var resetInputValue = useEventCallback(function(event, newValue) {
|
|
22599
22454
|
var newInputValue;
|
|
@@ -22621,7 +22476,7 @@ function useAutocomplete(props) {
|
|
|
22621
22476
|
default: false,
|
|
22622
22477
|
name: componentName,
|
|
22623
22478
|
state: "open"
|
|
22624
|
-
}), _useControlled6 = _slicedToArray
|
|
22479
|
+
}), _useControlled6 = _slicedToArray(_useControlled5, 2), open = _useControlled6[0], setOpenState = _useControlled6[1];
|
|
22625
22480
|
var inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value);
|
|
22626
22481
|
var popupOpen = open;
|
|
22627
22482
|
var filteredOptions = popupOpen ? filterOptions(
|
|
@@ -23498,15 +23353,15 @@ var styles42 = function styles43(theme) {
|
|
|
23498
23353
|
paddingBottom: 6,
|
|
23499
23354
|
paddingLeft: 16,
|
|
23500
23355
|
paddingRight: 16
|
|
23501
|
-
}, _defineProperty
|
|
23356
|
+
}, _defineProperty(_option, theme.breakpoints.up("sm"), {
|
|
23502
23357
|
minHeight: "auto"
|
|
23503
|
-
}), _defineProperty
|
|
23358
|
+
}), _defineProperty(_option, '&[aria-selected="true"]', {
|
|
23504
23359
|
backgroundColor: theme.palette.action.selected
|
|
23505
|
-
}), _defineProperty
|
|
23360
|
+
}), _defineProperty(_option, '&[data-focus="true"]', {
|
|
23506
23361
|
backgroundColor: theme.palette.action.hover
|
|
23507
|
-
}), _defineProperty
|
|
23362
|
+
}), _defineProperty(_option, "&:active", {
|
|
23508
23363
|
backgroundColor: theme.palette.action.selected
|
|
23509
|
-
}), _defineProperty
|
|
23364
|
+
}), _defineProperty(_option, '&[aria-disabled="true"]', {
|
|
23510
23365
|
opacity: theme.palette.action.disabledOpacity,
|
|
23511
23366
|
pointerEvents: "none"
|
|
23512
23367
|
}), _option),
|
|
@@ -32100,6 +31955,7 @@ Fuse.config = Config;
|
|
|
32100
31955
|
Fuse.parseQuery = parse;
|
|
32101
31956
|
}
|
|
32102
31957
|
const KG_BASE_URL = "https://storage.googleapis.com/vitessce-demo-data/enrichr-kg-september-2023";
|
|
31958
|
+
const ENSG_TO_GENE_SYMBOL_URL = "https://vitessce-resources.s3.us-east-2.amazonaws.com/genes_filtered.json";
|
|
32103
31959
|
function loadGeneNodes() {
|
|
32104
31960
|
return fetch(`${KG_BASE_URL}/Gene.nodes.csv`).then((res) => res.text()).then((res) => {
|
|
32105
31961
|
const result = csvParse(res);
|
|
@@ -32133,6 +31989,9 @@ function loadPathwayNodes() {
|
|
|
32133
31989
|
}));
|
|
32134
31990
|
});
|
|
32135
31991
|
}
|
|
31992
|
+
function loadEnsgToGeneSymbolMapping() {
|
|
31993
|
+
return fetch(ENSG_TO_GENE_SYMBOL_URL).then((res) => res.json());
|
|
31994
|
+
}
|
|
32136
31995
|
async function loadFuseObject(ctx) {
|
|
32137
31996
|
var _a2;
|
|
32138
31997
|
const queryClient = (
|
|
@@ -32217,8 +32076,41 @@ async function transformFeature({ queryClient }, node, targetModality) {
|
|
|
32217
32076
|
}
|
|
32218
32077
|
return [];
|
|
32219
32078
|
}
|
|
32079
|
+
async function getAlternativeTerms({ queryClient }, curie) {
|
|
32080
|
+
const inputIsEnsemblGeneId = curie.toUpperCase().startsWith("ENSEMBL:ENSG");
|
|
32081
|
+
if (inputIsEnsemblGeneId) {
|
|
32082
|
+
const idMapping = await queryClient.fetchQuery({
|
|
32083
|
+
queryKey: ["ensgToGeneSymbolMapping"],
|
|
32084
|
+
staleTime: Infinity,
|
|
32085
|
+
queryFn: loadEnsgToGeneSymbolMapping
|
|
32086
|
+
});
|
|
32087
|
+
const ensemblId = curie.split(":")[1];
|
|
32088
|
+
let geneSymbol = idMapping == null ? void 0 : idMapping[ensemblId];
|
|
32089
|
+
if (geneSymbol) {
|
|
32090
|
+
if (!geneSymbol.toUpperCase().startsWith("HGNC:")) {
|
|
32091
|
+
geneSymbol = `HGNC:${geneSymbol}`;
|
|
32092
|
+
}
|
|
32093
|
+
return [geneSymbol];
|
|
32094
|
+
}
|
|
32095
|
+
}
|
|
32096
|
+
return [];
|
|
32097
|
+
}
|
|
32098
|
+
async function getTermMapping({ queryClient }, keyCuriePrefix, valCuriePrefix) {
|
|
32099
|
+
if (keyCuriePrefix.toUpperCase() === "ENSEMBL" && valCuriePrefix.toUpperCase() === "HGNC" || keyCuriePrefix.toUpperCase() === "HGNC" && valCuriePrefix.toUpperCase() === "ENSEMBL") {
|
|
32100
|
+
const idMapping = await queryClient.fetchQuery({
|
|
32101
|
+
queryKey: ["ensgToGeneSymbolMapping"],
|
|
32102
|
+
staleTime: Infinity,
|
|
32103
|
+
queryFn: loadEnsgToGeneSymbolMapping
|
|
32104
|
+
});
|
|
32105
|
+
const isReversed = keyCuriePrefix.toUpperCase() === "HGNC";
|
|
32106
|
+
return new Map(Object.entries(idMapping).map(([key, value]) => isReversed ? [`HGNC:${value}`, `ENSEMBL:${key}`] : [`ENSEMBL:${key}`, `HGNC:${value}`]));
|
|
32107
|
+
}
|
|
32108
|
+
throw new Error(`Mapping between ${keyCuriePrefix} and ${valCuriePrefix} is not yet implemented.`);
|
|
32109
|
+
}
|
|
32220
32110
|
export {
|
|
32221
32111
|
BiomarkerSelectSubscriber,
|
|
32222
32112
|
autocompleteFeature,
|
|
32113
|
+
getAlternativeTerms,
|
|
32114
|
+
getTermMapping,
|
|
32223
32115
|
transformFeature
|
|
32224
32116
|
};
|