gbc-kyc-kit 2.1.3 → 2.1.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/gbc-kyc-kit.es.js +1679 -347
- package/dist/gbc-kyc-kit.umd.js +69 -69
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$2 from "react";
|
|
2
|
-
import React__default$1, { forwardRef, useEffect, useReducer, useState, useRef, isValidElement, cloneElement, useLayoutEffect, useContext, Children, createElement, useCallback } from "react";
|
|
2
|
+
import React__default$1, { forwardRef, useEffect, useReducer, useState, useRef, isValidElement, cloneElement, useLayoutEffect, useContext, Children, createElement, useMemo, useCallback } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import ReactDOM__default from "react-dom";
|
|
5
5
|
var style$3 = "";
|
|
@@ -19327,7 +19327,7 @@ function styleInject(css2, ref) {
|
|
|
19327
19327
|
}
|
|
19328
19328
|
}
|
|
19329
19329
|
var css_248z = '.ReactFlagsSelect-module_flagsSelect__2pfa2 {\n position: relative;\n vertical-align: inherit;\n padding-bottom: 5px;\n text-align: left;\n}\n\n.ReactFlagsSelect-module_flagsSelectInline__cUnnz {\n display: inline-block;\n}\n\n.ReactFlagsSelect-module_selectBtn__19wW7 {\n cursor: pointer;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 5px 10px;\n font-family: inherit;\n color: #4d4d4d;\n border: thin solid rgba(77, 77, 77, 0.3);\n border-radius: 4px;\n background: transparent;\n}\n.ReactFlagsSelect-module_selectBtn__19wW7:after, .ReactFlagsSelect-module_selectBtn__19wW7[aria-expanded=true]:after {\n content: " ";\n width: 0;\n height: 0;\n display: inline-block;\n margin-left: 5px;\n}\n.ReactFlagsSelect-module_selectBtn__19wW7:after {\n border-top: 5px solid #4d4d4d;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-bottom: 0;\n}\n.ReactFlagsSelect-module_selectBtn__19wW7[aria-expanded=true]:after {\n border-top: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-bottom: 5px solid #4d4d4d;\n}\n\n.ReactFlagsSelect-module_disabledBtn__3A4GF {\n background: #eaeaea;\n cursor: default;\n}\n\n.ReactFlagsSelect-module_label__27pw9, .ReactFlagsSelect-module_secondaryLabel__37t1D {\n font-size: 1em;\n padding-left: 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ReactFlagsSelect-module_secondaryLabel__37t1D {\n color: #707070;\n padding-left: 5px;\n}\n\n.ReactFlagsSelect-module_selectValue__152eS,\n.ReactFlagsSelect-module_selectOption__3pcgW {\n cursor: pointer;\n padding: 0 8px;\n margin: 4px 0;\n white-space: nowrap;\n}\n\n.ReactFlagsSelect-module_selectValue__152eS {\n pointer-events: none;\n display: flex;\n align-items: center;\n}\n\n.ReactFlagsSelect-module_selectOption__3pcgW {\n padding: 2px 18px;\n}\n.ReactFlagsSelect-module_selectOption__3pcgW:hover, .ReactFlagsSelect-module_selectOption__3pcgW:focus {\n outline: none;\n background: #eaeaea;\n}\n\n.ReactFlagsSelect-module_selectFlag__2q5gC {\n display: inline-flex;\n font-size: 1.2em;\n}\n\n.ReactFlagsSelect-module_selectOptionValue__vS99- {\n display: flex;\n align-items: center;\n}\n\n.ReactFlagsSelect-module_selectOptionWithlabel__2GpmM {\n padding: 4px 10px;\n}\n\n.ReactFlagsSelect-module_selectOptions__3LNBJ {\n position: absolute;\n z-index: 999999;\n border: 1px solid #bdbbbb;\n border-radius: 3px;\n background: #ffffff;\n margin-top: 8px;\n padding: 8px 0;\n max-height: 180px;\n overflow: auto;\n}\n\n.ReactFlagsSelect-module_selectOptionsWithSearch__1W03w {\n padding: 0 0 8px 0;\n}\n\n.ReactFlagsSelect-module_fullWidthOptions__1XeR6 {\n right: 0;\n left: 0;\n}\n\n.ReactFlagsSelect-module_alignOptionsToRight__3Qvq2 {\n right: 0;\n}\n\n.ReactFlagsSelect-module_filterBox__3m8EU {\n position: sticky;\n top: 0;\n width: 100%;\n padding-top: 8px;\n background: #ffffff;\n}\n.ReactFlagsSelect-module_filterBox__3m8EU input {\n width: calc(100% - 20px);\n margin: 0 10px;\n padding: 8px;\n box-sizing: border-box;\n}\n.ReactFlagsSelect-module_filterBox__3m8EU input:focus {\n outline: none;\n}';
|
|
19330
|
-
var styles$
|
|
19330
|
+
var styles$4 = { "flagsSelect": "ReactFlagsSelect-module_flagsSelect__2pfa2", "flagsSelectInline": "ReactFlagsSelect-module_flagsSelectInline__cUnnz", "selectBtn": "ReactFlagsSelect-module_selectBtn__19wW7", "disabledBtn": "ReactFlagsSelect-module_disabledBtn__3A4GF", "label": "ReactFlagsSelect-module_label__27pw9", "secondaryLabel": "ReactFlagsSelect-module_secondaryLabel__37t1D", "selectValue": "ReactFlagsSelect-module_selectValue__152eS", "selectOption": "ReactFlagsSelect-module_selectOption__3pcgW", "selectFlag": "ReactFlagsSelect-module_selectFlag__2q5gC", "selectOptionValue": "ReactFlagsSelect-module_selectOptionValue__vS99-", "selectOptionWithlabel": "ReactFlagsSelect-module_selectOptionWithlabel__2GpmM", "selectOptions": "ReactFlagsSelect-module_selectOptions__3LNBJ", "selectOptionsWithSearch": "ReactFlagsSelect-module_selectOptionsWithSearch__1W03w", "fullWidthOptions": "ReactFlagsSelect-module_fullWidthOptions__1XeR6", "alignOptionsToRight": "ReactFlagsSelect-module_alignOptionsToRight__3Qvq2", "filterBox": "ReactFlagsSelect-module_filterBox__3m8EU" };
|
|
19331
19331
|
styleInject(css_248z);
|
|
19332
19332
|
var defaultPlaceholder = "Select a country";
|
|
19333
19333
|
var defaultSearchPlaceholder = "Search";
|
|
@@ -19408,18 +19408,18 @@ var ReactFlagsSelect = function(_a) {
|
|
|
19408
19408
|
}, []);
|
|
19409
19409
|
var displayLabel = getLabel(validSelectedValue);
|
|
19410
19410
|
var btnId = "".concat(rfsKey, "-btn");
|
|
19411
|
-
return /* @__PURE__ */ jsxs("div", { className: classnames(styles$
|
|
19411
|
+
return /* @__PURE__ */ jsxs("div", { className: classnames(styles$4.flagsSelect, className, (_b = {}, _b[styles$4.flagsSelectInline] = !fullWidth, _b)), id, "data-testid": rfsKey, children: [/* @__PURE__ */ jsx$1("button", { ref: selectedFlagRef, id: btnId, type: "button", className: classnames(styles$4.selectBtn, selectButtonClassName, (_c = {}, _c[styles$4.disabledBtn] = disabled, _c)), style: { fontSize: selectedSize }, onClick: toggleDropdown, onKeyUp: function(e2) {
|
|
19412
19412
|
return closeDropdwownWithKeyboard(e2);
|
|
19413
|
-
}, disabled, "aria-labelledby": btnId, "aria-haspopup": "listbox", "aria-expanded": isDropdownOpen, "data-testid": btnId, children: /* @__PURE__ */ jsx$1("span", { className: styles$
|
|
19413
|
+
}, disabled, "aria-labelledby": btnId, "aria-haspopup": "listbox", "aria-expanded": isDropdownOpen, "data-testid": btnId, children: /* @__PURE__ */ jsx$1("span", { className: styles$4.selectValue, children: validSelectedValue ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx$1("span", { className: styles$4.selectFlag, "data-testid": "".concat(rfsKey, "-selected-flag"), children: getSelectedFlag() }), showSelectedLabel && /* @__PURE__ */ jsx$1("span", { className: styles$4.label, children: isCustomLabelObject(displayLabel) ? displayLabel.primary : displayLabel }), showSecondarySelectedLabel && isCustomLabelObject(displayLabel) && /* @__PURE__ */ jsx$1("span", { className: styles$4.secondaryLabel, children: displayLabel.secondary })] }) : /* @__PURE__ */ jsx$1(Fragment, { children: placeholder || defaultPlaceholder }) }) }), !disabled && isDropdownOpen && /* @__PURE__ */ jsxs("ul", { tabIndex: -1, role: "listbox", ref: optionsRef, style: { fontSize: optionsSize }, className: classnames(styles$4.selectOptions, (_d = {}, _d[styles$4.selectOptionsWithSearch] = searchable, _d[styles$4.alignOptionsToRight] = alignOptionsToRight, _d[styles$4.fullWidthOptions] = fullWidth, _d)), children: [searchable && /* @__PURE__ */ jsx$1("div", { className: styles$4.filterBox, children: /* @__PURE__ */ jsx$1("input", { type: "text", name: "".concat(rfsKey, "-q"), autoComplete: "off", value: filterValue, placeholder: searchPlaceholder || defaultSearchPlaceholder, ref: filterTextRef, onChange: filterSearch, autoFocus: true }) }), options.map(function(countryCode) {
|
|
19414
19414
|
var _a2;
|
|
19415
19415
|
var countryFlagName = countryCodeToPascalCase(countryCode);
|
|
19416
19416
|
var CountryFlag = getFlag(countryFlagName);
|
|
19417
19417
|
var countryLabel = getLabel(countryCode);
|
|
19418
|
-
return /* @__PURE__ */ jsx$1("li", { id: "".concat(rfsKey, "-").concat(countryCode), role: "option", tabIndex: 0, className: classnames(styles$
|
|
19418
|
+
return /* @__PURE__ */ jsx$1("li", { id: "".concat(rfsKey, "-").concat(countryCode), role: "option", tabIndex: 0, className: classnames(styles$4.selectOption, (_a2 = {}, _a2[styles$4.selectOptionWithlabel] = showOptionLabel, _a2)), onClick: function() {
|
|
19419
19419
|
return onOptionSelect(countryCode);
|
|
19420
19420
|
}, onKeyUp: function(e2) {
|
|
19421
19421
|
return onSelectWithKeyboard(e2, countryCode);
|
|
19422
|
-
}, children: /* @__PURE__ */ jsxs("span", { className: styles$
|
|
19422
|
+
}, children: /* @__PURE__ */ jsxs("span", { className: styles$4.selectOptionValue, children: [/* @__PURE__ */ jsx$1("span", { className: styles$4.selectFlag, children: /* @__PURE__ */ jsx$1(CountryFlag, {}) }), showOptionLabel && /* @__PURE__ */ jsx$1("span", { className: styles$4.label, children: isCustomLabelObject(countryLabel) ? countryLabel.primary : countryLabel }), showSecondaryOptionLabel && isCustomLabelObject(countryLabel) && /* @__PURE__ */ jsx$1("span", { className: styles$4.secondaryLabel, children: countryLabel.secondary })] }) }, countryCode);
|
|
19423
19423
|
})] })] });
|
|
19424
19424
|
};
|
|
19425
19425
|
function CustomInput({
|
|
@@ -21473,7 +21473,7 @@ var deepmerge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
21473
21473
|
"default": deepmerge$1,
|
|
21474
21474
|
isPlainObject
|
|
21475
21475
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21476
|
-
const _excluded$
|
|
21476
|
+
const _excluded$1U = ["values", "unit", "step"];
|
|
21477
21477
|
const sortBreakpointsValues = (values2) => {
|
|
21478
21478
|
const breakpointsAsArray = Object.keys(values2).map((key) => ({
|
|
21479
21479
|
key,
|
|
@@ -21497,7 +21497,7 @@ function createBreakpoints(breakpoints) {
|
|
|
21497
21497
|
},
|
|
21498
21498
|
unit = "px",
|
|
21499
21499
|
step = 5
|
|
21500
|
-
} = breakpoints, other = _objectWithoutPropertiesLoose$1(breakpoints, _excluded$
|
|
21500
|
+
} = breakpoints, other = _objectWithoutPropertiesLoose$1(breakpoints, _excluded$1U);
|
|
21501
21501
|
const sortedValues = sortBreakpointsValues(values2);
|
|
21502
21502
|
const keys2 = Object.keys(sortedValues);
|
|
21503
21503
|
function up(key) {
|
|
@@ -22463,14 +22463,14 @@ function applyStyles$2(key, styles2) {
|
|
|
22463
22463
|
}
|
|
22464
22464
|
return {};
|
|
22465
22465
|
}
|
|
22466
|
-
const _excluded$
|
|
22466
|
+
const _excluded$1T = ["breakpoints", "palette", "spacing", "shape"];
|
|
22467
22467
|
function createTheme$2(options = {}, ...args) {
|
|
22468
22468
|
const {
|
|
22469
22469
|
breakpoints: breakpointsInput = {},
|
|
22470
22470
|
palette: paletteInput = {},
|
|
22471
22471
|
spacing: spacingInput,
|
|
22472
22472
|
shape: shapeInput = {}
|
|
22473
|
-
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$
|
|
22473
|
+
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$1T);
|
|
22474
22474
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
22475
22475
|
const spacing = createSpacing(spacingInput);
|
|
22476
22476
|
let muiTheme = deepmerge$1({
|
|
@@ -22522,7 +22522,7 @@ function GlobalStyles$1({
|
|
|
22522
22522
|
styles: globalStyles
|
|
22523
22523
|
});
|
|
22524
22524
|
}
|
|
22525
|
-
const _excluded$
|
|
22525
|
+
const _excluded$1S = ["sx"];
|
|
22526
22526
|
const splitProps = (props) => {
|
|
22527
22527
|
var _props$theme$unstable, _props$theme;
|
|
22528
22528
|
const result = {
|
|
@@ -22542,7 +22542,7 @@ const splitProps = (props) => {
|
|
|
22542
22542
|
function extendSxProp(props) {
|
|
22543
22543
|
const {
|
|
22544
22544
|
sx: inSx
|
|
22545
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
22545
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1S);
|
|
22546
22546
|
const {
|
|
22547
22547
|
systemProps,
|
|
22548
22548
|
otherProps
|
|
@@ -22608,7 +22608,7 @@ function clsx() {
|
|
|
22608
22608
|
(e2 = arguments[f2]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
22609
22609
|
return n2;
|
|
22610
22610
|
}
|
|
22611
|
-
const _excluded$
|
|
22611
|
+
const _excluded$1R = ["className", "component"];
|
|
22612
22612
|
function createBox(options = {}) {
|
|
22613
22613
|
const {
|
|
22614
22614
|
themeId,
|
|
@@ -22624,7 +22624,7 @@ function createBox(options = {}) {
|
|
|
22624
22624
|
const _extendSxProp = extendSxProp(inProps), {
|
|
22625
22625
|
className,
|
|
22626
22626
|
component = "div"
|
|
22627
|
-
} = _extendSxProp, other = _objectWithoutPropertiesLoose$1(_extendSxProp, _excluded$
|
|
22627
|
+
} = _extendSxProp, other = _objectWithoutPropertiesLoose$1(_extendSxProp, _excluded$1R);
|
|
22628
22628
|
return /* @__PURE__ */ jsx$1(BoxRoot, _extends$2({
|
|
22629
22629
|
as: component,
|
|
22630
22630
|
ref,
|
|
@@ -22798,7 +22798,7 @@ var getDisplayName = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
22798
22798
|
"default": getDisplayName$1,
|
|
22799
22799
|
getFunctionName
|
|
22800
22800
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
22801
|
-
const _excluded$
|
|
22801
|
+
const _excluded$1Q = ["ownerState"], _excluded2$d = ["variants"], _excluded3$5 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
22802
22802
|
function isEmpty$3(obj) {
|
|
22803
22803
|
return Object.keys(obj).length === 0;
|
|
22804
22804
|
}
|
|
@@ -22831,7 +22831,7 @@ function defaultOverridesResolver$1(slot) {
|
|
|
22831
22831
|
function processStyleArg$1(callableStyle, _ref) {
|
|
22832
22832
|
let {
|
|
22833
22833
|
ownerState
|
|
22834
|
-
} = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$
|
|
22834
|
+
} = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$1Q);
|
|
22835
22835
|
const resolvedStylesArg = typeof callableStyle === "function" ? callableStyle(_extends$2({
|
|
22836
22836
|
ownerState
|
|
22837
22837
|
}, props)) : callableStyle;
|
|
@@ -23406,6 +23406,51 @@ function getScrollbarSize(doc) {
|
|
|
23406
23406
|
const documentWidth = doc.documentElement.clientWidth;
|
|
23407
23407
|
return Math.abs(window.innerWidth - documentWidth);
|
|
23408
23408
|
}
|
|
23409
|
+
let cachedType;
|
|
23410
|
+
function detectScrollType() {
|
|
23411
|
+
if (cachedType) {
|
|
23412
|
+
return cachedType;
|
|
23413
|
+
}
|
|
23414
|
+
const dummy = document.createElement("div");
|
|
23415
|
+
const container = document.createElement("div");
|
|
23416
|
+
container.style.width = "10px";
|
|
23417
|
+
container.style.height = "1px";
|
|
23418
|
+
dummy.appendChild(container);
|
|
23419
|
+
dummy.dir = "rtl";
|
|
23420
|
+
dummy.style.fontSize = "14px";
|
|
23421
|
+
dummy.style.width = "4px";
|
|
23422
|
+
dummy.style.height = "1px";
|
|
23423
|
+
dummy.style.position = "absolute";
|
|
23424
|
+
dummy.style.top = "-1000px";
|
|
23425
|
+
dummy.style.overflow = "scroll";
|
|
23426
|
+
document.body.appendChild(dummy);
|
|
23427
|
+
cachedType = "reverse";
|
|
23428
|
+
if (dummy.scrollLeft > 0) {
|
|
23429
|
+
cachedType = "default";
|
|
23430
|
+
} else {
|
|
23431
|
+
dummy.scrollLeft = 1;
|
|
23432
|
+
if (dummy.scrollLeft === 0) {
|
|
23433
|
+
cachedType = "negative";
|
|
23434
|
+
}
|
|
23435
|
+
}
|
|
23436
|
+
document.body.removeChild(dummy);
|
|
23437
|
+
return cachedType;
|
|
23438
|
+
}
|
|
23439
|
+
function getNormalizedScrollLeft(element, direction) {
|
|
23440
|
+
const scrollLeft = element.scrollLeft;
|
|
23441
|
+
if (direction !== "rtl") {
|
|
23442
|
+
return scrollLeft;
|
|
23443
|
+
}
|
|
23444
|
+
const type = detectScrollType();
|
|
23445
|
+
switch (type) {
|
|
23446
|
+
case "negative":
|
|
23447
|
+
return element.scrollWidth - element.clientWidth + scrollLeft;
|
|
23448
|
+
case "reverse":
|
|
23449
|
+
return element.scrollWidth - element.clientWidth - scrollLeft;
|
|
23450
|
+
default:
|
|
23451
|
+
return scrollLeft;
|
|
23452
|
+
}
|
|
23453
|
+
}
|
|
23409
23454
|
const usePreviousProps = (value) => {
|
|
23410
23455
|
const ref = React$2.useRef({});
|
|
23411
23456
|
React$2.useEffect(() => {
|
|
@@ -23512,7 +23557,7 @@ function resolveComponentProps(componentProps, ownerState, slotState) {
|
|
|
23512
23557
|
}
|
|
23513
23558
|
return componentProps;
|
|
23514
23559
|
}
|
|
23515
|
-
const _excluded$
|
|
23560
|
+
const _excluded$1P = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
23516
23561
|
function useSlotProps(parameters) {
|
|
23517
23562
|
var _parameters$additiona;
|
|
23518
23563
|
const {
|
|
@@ -23520,7 +23565,7 @@ function useSlotProps(parameters) {
|
|
|
23520
23565
|
externalSlotProps,
|
|
23521
23566
|
ownerState,
|
|
23522
23567
|
skipResolvingSlotProps = false
|
|
23523
|
-
} = parameters, rest = _objectWithoutPropertiesLoose$1(parameters, _excluded$
|
|
23568
|
+
} = parameters, rest = _objectWithoutPropertiesLoose$1(parameters, _excluded$1P);
|
|
23524
23569
|
const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
|
|
23525
23570
|
const {
|
|
23526
23571
|
props: mergedProps,
|
|
@@ -23602,7 +23647,7 @@ function toPropertyKey(t2) {
|
|
|
23602
23647
|
var i = toPrimitive(t2, "string");
|
|
23603
23648
|
return "symbol" == _typeof$1(i) ? i : i + "";
|
|
23604
23649
|
}
|
|
23605
|
-
const _excluded$
|
|
23650
|
+
const _excluded$1O = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
|
23606
23651
|
const defaultTheme$3 = createTheme$2();
|
|
23607
23652
|
const defaultCreateStyledComponent = styled$3("div", {
|
|
23608
23653
|
name: "MuiStack",
|
|
@@ -23722,7 +23767,7 @@ function createStack(options = {}) {
|
|
|
23722
23767
|
children,
|
|
23723
23768
|
className,
|
|
23724
23769
|
useFlexGap = false
|
|
23725
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
23770
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1O);
|
|
23726
23771
|
const ownerState = {
|
|
23727
23772
|
direction,
|
|
23728
23773
|
spacing,
|
|
@@ -24019,7 +24064,7 @@ function blend(background, overlay, opacity, gamma = 1) {
|
|
|
24019
24064
|
values: rgb
|
|
24020
24065
|
});
|
|
24021
24066
|
}
|
|
24022
|
-
const _excluded$
|
|
24067
|
+
const _excluded$1N = ["mode", "contrastThreshold", "tonalOffset"];
|
|
24023
24068
|
const light = {
|
|
24024
24069
|
text: {
|
|
24025
24070
|
primary: "rgba(0, 0, 0, 0.87)",
|
|
@@ -24173,7 +24218,7 @@ function createPalette(palette) {
|
|
|
24173
24218
|
mode = "light",
|
|
24174
24219
|
contrastThreshold = 3,
|
|
24175
24220
|
tonalOffset = 0.2
|
|
24176
|
-
} = palette, other = _objectWithoutPropertiesLoose$1(palette, _excluded$
|
|
24221
|
+
} = palette, other = _objectWithoutPropertiesLoose$1(palette, _excluded$1N);
|
|
24177
24222
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
24178
24223
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
24179
24224
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -24250,7 +24295,7 @@ function createPalette(palette) {
|
|
|
24250
24295
|
}, modes[mode]), other);
|
|
24251
24296
|
return paletteOutput;
|
|
24252
24297
|
}
|
|
24253
|
-
const _excluded$
|
|
24298
|
+
const _excluded$1M = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
24254
24299
|
function round$2(value) {
|
|
24255
24300
|
return Math.round(value * 1e5) / 1e5;
|
|
24256
24301
|
}
|
|
@@ -24269,7 +24314,7 @@ function createTypography(palette, typography) {
|
|
|
24269
24314
|
htmlFontSize = 16,
|
|
24270
24315
|
allVariants,
|
|
24271
24316
|
pxToRem: pxToRem2
|
|
24272
|
-
} = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$
|
|
24317
|
+
} = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$1M);
|
|
24273
24318
|
const coef = fontSize2 / 14;
|
|
24274
24319
|
const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
|
|
24275
24320
|
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$2({
|
|
@@ -24323,7 +24368,7 @@ function createShadow(...px) {
|
|
|
24323
24368
|
}
|
|
24324
24369
|
const shadows = ["none", createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
24325
24370
|
var shadows$1 = shadows;
|
|
24326
|
-
const _excluded$
|
|
24371
|
+
const _excluded$1L = ["duration", "easing", "delay"];
|
|
24327
24372
|
const easing = {
|
|
24328
24373
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
24329
24374
|
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
@@ -24358,7 +24403,7 @@ function createTransitions(inputTransitions) {
|
|
|
24358
24403
|
easing: easingOption = mergedEasing.easeInOut,
|
|
24359
24404
|
delay = 0
|
|
24360
24405
|
} = options;
|
|
24361
|
-
_objectWithoutPropertiesLoose$1(options, _excluded$
|
|
24406
|
+
_objectWithoutPropertiesLoose$1(options, _excluded$1L);
|
|
24362
24407
|
return (Array.isArray(props) ? props : [props]).map((animatedProp) => `${animatedProp} ${typeof durationOption === "string" ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === "string" ? delay : formatMs(delay)}`).join(",");
|
|
24363
24408
|
};
|
|
24364
24409
|
return _extends$2({
|
|
@@ -24380,14 +24425,14 @@ const zIndex = {
|
|
|
24380
24425
|
tooltip: 1500
|
|
24381
24426
|
};
|
|
24382
24427
|
var zIndex$1 = zIndex;
|
|
24383
|
-
const _excluded$
|
|
24428
|
+
const _excluded$1K = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
24384
24429
|
function createTheme(options = {}, ...args) {
|
|
24385
24430
|
const {
|
|
24386
24431
|
mixins: mixinsInput = {},
|
|
24387
24432
|
palette: paletteInput = {},
|
|
24388
24433
|
transitions: transitionsInput = {},
|
|
24389
24434
|
typography: typographyInput = {}
|
|
24390
|
-
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$
|
|
24435
|
+
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$1K);
|
|
24391
24436
|
if (options.vars && options.generateCssVars === void 0) {
|
|
24392
24437
|
throw new Error(formatMuiErrorMessage$1(18));
|
|
24393
24438
|
}
|
|
@@ -24473,7 +24518,7 @@ _interopRequireDefault(require$$5);
|
|
|
24473
24518
|
_interopRequireDefault(require$$6);
|
|
24474
24519
|
var _createTheme = _interopRequireDefault(require$$7);
|
|
24475
24520
|
var _styleFunctionSx = _interopRequireDefault(require$$8);
|
|
24476
|
-
const _excluded$
|
|
24521
|
+
const _excluded$1J = ["ownerState"], _excluded2$c = ["variants"], _excluded3$4 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
24477
24522
|
function _getRequireWildcardCache$1(e2) {
|
|
24478
24523
|
if ("function" != typeof WeakMap)
|
|
24479
24524
|
return null;
|
|
@@ -24530,7 +24575,7 @@ function defaultOverridesResolver(slot) {
|
|
|
24530
24575
|
function processStyleArg(callableStyle, _ref) {
|
|
24531
24576
|
let {
|
|
24532
24577
|
ownerState
|
|
24533
|
-
} = _ref, props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded$
|
|
24578
|
+
} = _ref, props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded$1J);
|
|
24534
24579
|
const resolvedStylesArg = typeof callableStyle === "function" ? callableStyle((0, _extends2.default)({
|
|
24535
24580
|
ownerState
|
|
24536
24581
|
}, props)) : callableStyle;
|
|
@@ -24708,8 +24753,8 @@ function getSvgIconUtilityClass(slot) {
|
|
|
24708
24753
|
return generateUtilityClass("MuiSvgIcon", slot);
|
|
24709
24754
|
}
|
|
24710
24755
|
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
24711
|
-
const _excluded$
|
|
24712
|
-
const useUtilityClasses$
|
|
24756
|
+
const _excluded$1I = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
24757
|
+
const useUtilityClasses$1k = (ownerState) => {
|
|
24713
24758
|
const {
|
|
24714
24759
|
color: color2,
|
|
24715
24760
|
fontSize: fontSize2,
|
|
@@ -24772,7 +24817,7 @@ const SvgIcon = /* @__PURE__ */ React$2.forwardRef(function SvgIcon2(inProps, re
|
|
|
24772
24817
|
inheritViewBox = false,
|
|
24773
24818
|
titleAccess,
|
|
24774
24819
|
viewBox = "0 0 24 24"
|
|
24775
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
24820
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1I);
|
|
24776
24821
|
const hasSvgAsChild = /* @__PURE__ */ React$2.isValidElement(children) && children.type === "svg";
|
|
24777
24822
|
const ownerState = _extends$2({}, props, {
|
|
24778
24823
|
color: color2,
|
|
@@ -24787,7 +24832,7 @@ const SvgIcon = /* @__PURE__ */ React$2.forwardRef(function SvgIcon2(inProps, re
|
|
|
24787
24832
|
if (!inheritViewBox) {
|
|
24788
24833
|
more.viewBox = viewBox;
|
|
24789
24834
|
}
|
|
24790
|
-
const classes = useUtilityClasses$
|
|
24835
|
+
const classes = useUtilityClasses$1k(ownerState);
|
|
24791
24836
|
return /* @__PURE__ */ jsxs(SvgIconRoot, _extends$2({
|
|
24792
24837
|
as: component,
|
|
24793
24838
|
className: clsx(classes.root, className),
|
|
@@ -25284,8 +25329,8 @@ function getPaperUtilityClass(slot) {
|
|
|
25284
25329
|
return generateUtilityClass("MuiPaper", slot);
|
|
25285
25330
|
}
|
|
25286
25331
|
generateUtilityClasses("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
25287
|
-
const _excluded$
|
|
25288
|
-
const useUtilityClasses$
|
|
25332
|
+
const _excluded$1H = ["className", "component", "elevation", "square", "variant"];
|
|
25333
|
+
const useUtilityClasses$1j = (ownerState) => {
|
|
25289
25334
|
const {
|
|
25290
25335
|
square,
|
|
25291
25336
|
elevation,
|
|
@@ -25338,14 +25383,14 @@ const Paper = /* @__PURE__ */ React$2.forwardRef(function Paper2(inProps, ref) {
|
|
|
25338
25383
|
elevation = 1,
|
|
25339
25384
|
square = false,
|
|
25340
25385
|
variant = "elevation"
|
|
25341
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
25386
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1H);
|
|
25342
25387
|
const ownerState = _extends$2({}, props, {
|
|
25343
25388
|
component,
|
|
25344
25389
|
elevation,
|
|
25345
25390
|
square,
|
|
25346
25391
|
variant
|
|
25347
25392
|
});
|
|
25348
|
-
const classes = useUtilityClasses$
|
|
25393
|
+
const classes = useUtilityClasses$1j(ownerState);
|
|
25349
25394
|
return /* @__PURE__ */ jsx$1(PaperRoot, _extends$2({
|
|
25350
25395
|
as: component,
|
|
25351
25396
|
ownerState,
|
|
@@ -25354,7 +25399,7 @@ const Paper = /* @__PURE__ */ React$2.forwardRef(function Paper2(inProps, ref) {
|
|
|
25354
25399
|
}, other));
|
|
25355
25400
|
});
|
|
25356
25401
|
var Paper$1 = Paper;
|
|
25357
|
-
const _excluded$
|
|
25402
|
+
const _excluded$1G = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], _excluded2$b = ["component", "slots", "slotProps"], _excluded3$3 = ["component"];
|
|
25358
25403
|
function useSlot(name, parameters) {
|
|
25359
25404
|
const {
|
|
25360
25405
|
className,
|
|
@@ -25363,7 +25408,7 @@ function useSlot(name, parameters) {
|
|
|
25363
25408
|
externalForwardedProps,
|
|
25364
25409
|
getSlotOwnerState,
|
|
25365
25410
|
internalForwardedProps
|
|
25366
|
-
} = parameters, useSlotPropsParams = _objectWithoutPropertiesLoose$1(parameters, _excluded$
|
|
25411
|
+
} = parameters, useSlotPropsParams = _objectWithoutPropertiesLoose$1(parameters, _excluded$1G);
|
|
25367
25412
|
const {
|
|
25368
25413
|
component: rootComponent,
|
|
25369
25414
|
slots = {
|
|
@@ -25443,7 +25488,7 @@ function Ripple(props) {
|
|
|
25443
25488
|
}
|
|
25444
25489
|
const touchRippleClasses = generateUtilityClasses("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]);
|
|
25445
25490
|
var touchRippleClasses$1 = touchRippleClasses;
|
|
25446
|
-
const _excluded$
|
|
25491
|
+
const _excluded$1F = ["center", "classes", "className"];
|
|
25447
25492
|
let _$2 = (t2) => t2, _t$2, _t2$2, _t3$2, _t4$2;
|
|
25448
25493
|
const DURATION = 550;
|
|
25449
25494
|
const DELAY_RIPPLE = 80;
|
|
@@ -25558,7 +25603,7 @@ const TouchRipple = /* @__PURE__ */ React$2.forwardRef(function TouchRipple2(inP
|
|
|
25558
25603
|
center: centerProp = false,
|
|
25559
25604
|
classes = {},
|
|
25560
25605
|
className
|
|
25561
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
25606
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1F);
|
|
25562
25607
|
const [ripples, setRipples] = React$2.useState([]);
|
|
25563
25608
|
const nextKey = React$2.useRef(0);
|
|
25564
25609
|
const rippleCallback = React$2.useRef(null);
|
|
@@ -25717,8 +25762,8 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
25717
25762
|
}
|
|
25718
25763
|
const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
|
|
25719
25764
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
25720
|
-
const _excluded$
|
|
25721
|
-
const useUtilityClasses$
|
|
25765
|
+
const _excluded$1E = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
|
25766
|
+
const useUtilityClasses$1i = (ownerState) => {
|
|
25722
25767
|
const {
|
|
25723
25768
|
disabled,
|
|
25724
25769
|
focusVisible,
|
|
@@ -25803,7 +25848,7 @@ const ButtonBase = /* @__PURE__ */ React$2.forwardRef(function ButtonBase2(inPro
|
|
|
25803
25848
|
TouchRippleProps,
|
|
25804
25849
|
touchRippleRef,
|
|
25805
25850
|
type
|
|
25806
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
25851
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1E);
|
|
25807
25852
|
const buttonRef = React$2.useRef(null);
|
|
25808
25853
|
const rippleRef = React$2.useRef(null);
|
|
25809
25854
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -25950,7 +25995,7 @@ const ButtonBase = /* @__PURE__ */ React$2.forwardRef(function ButtonBase2(inPro
|
|
|
25950
25995
|
tabIndex,
|
|
25951
25996
|
focusVisible
|
|
25952
25997
|
});
|
|
25953
|
-
const classes = useUtilityClasses$
|
|
25998
|
+
const classes = useUtilityClasses$1i(ownerState);
|
|
25954
25999
|
return /* @__PURE__ */ jsxs(ButtonBaseRoot, _extends$2({
|
|
25955
26000
|
as: ComponentProp,
|
|
25956
26001
|
className: clsx(classes.root, className),
|
|
@@ -25989,8 +26034,8 @@ function getIconButtonUtilityClass(slot) {
|
|
|
25989
26034
|
}
|
|
25990
26035
|
const iconButtonClasses = generateUtilityClasses("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]);
|
|
25991
26036
|
var iconButtonClasses$1 = iconButtonClasses;
|
|
25992
|
-
const _excluded$
|
|
25993
|
-
const useUtilityClasses$
|
|
26037
|
+
const _excluded$1D = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
26038
|
+
const useUtilityClasses$1h = (ownerState) => {
|
|
25994
26039
|
const {
|
|
25995
26040
|
classes,
|
|
25996
26041
|
disabled,
|
|
@@ -26081,7 +26126,7 @@ const IconButton = /* @__PURE__ */ React$2.forwardRef(function IconButton2(inPro
|
|
|
26081
26126
|
disabled = false,
|
|
26082
26127
|
disableFocusRipple = false,
|
|
26083
26128
|
size = "medium"
|
|
26084
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
26129
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1D);
|
|
26085
26130
|
const ownerState = _extends$2({}, props, {
|
|
26086
26131
|
edge,
|
|
26087
26132
|
color: color2,
|
|
@@ -26089,7 +26134,7 @@ const IconButton = /* @__PURE__ */ React$2.forwardRef(function IconButton2(inPro
|
|
|
26089
26134
|
disableFocusRipple,
|
|
26090
26135
|
size
|
|
26091
26136
|
});
|
|
26092
|
-
const classes = useUtilityClasses$
|
|
26137
|
+
const classes = useUtilityClasses$1h(ownerState);
|
|
26093
26138
|
return /* @__PURE__ */ jsx$1(IconButtonRoot, _extends$2({
|
|
26094
26139
|
className: clsx(classes.root, className),
|
|
26095
26140
|
centerRipple: true,
|
|
@@ -26117,8 +26162,8 @@ var InfoOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
|
26117
26162
|
var ClearIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
26118
26163
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
26119
26164
|
}), "Close");
|
|
26120
|
-
const _excluded$
|
|
26121
|
-
const useUtilityClasses$
|
|
26165
|
+
const _excluded$1C = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"];
|
|
26166
|
+
const useUtilityClasses$1g = (ownerState) => {
|
|
26122
26167
|
const {
|
|
26123
26168
|
variant,
|
|
26124
26169
|
color: color2,
|
|
@@ -26262,14 +26307,14 @@ const Alert = /* @__PURE__ */ React$2.forwardRef(function Alert2(inProps, ref) {
|
|
|
26262
26307
|
slotProps = {},
|
|
26263
26308
|
slots = {},
|
|
26264
26309
|
variant = "standard"
|
|
26265
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
26310
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1C);
|
|
26266
26311
|
const ownerState = _extends$2({}, props, {
|
|
26267
26312
|
color: color2,
|
|
26268
26313
|
severity,
|
|
26269
26314
|
variant,
|
|
26270
26315
|
colorSeverity: color2 || severity
|
|
26271
26316
|
});
|
|
26272
|
-
const classes = useUtilityClasses$
|
|
26317
|
+
const classes = useUtilityClasses$1g(ownerState);
|
|
26273
26318
|
const externalForwardedProps = {
|
|
26274
26319
|
slots: _extends$2({
|
|
26275
26320
|
closeButton: components.CloseButton,
|
|
@@ -26328,8 +26373,8 @@ function getTypographyUtilityClass(slot) {
|
|
|
26328
26373
|
return generateUtilityClass("MuiTypography", slot);
|
|
26329
26374
|
}
|
|
26330
26375
|
generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
26331
|
-
const _excluded$
|
|
26332
|
-
const useUtilityClasses$
|
|
26376
|
+
const _excluded$1B = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
26377
|
+
const useUtilityClasses$1f = (ownerState) => {
|
|
26333
26378
|
const {
|
|
26334
26379
|
align,
|
|
26335
26380
|
gutterBottom,
|
|
@@ -26411,7 +26456,7 @@ const Typography = /* @__PURE__ */ React$2.forwardRef(function Typography2(inPro
|
|
|
26411
26456
|
paragraph = false,
|
|
26412
26457
|
variant = "body1",
|
|
26413
26458
|
variantMapping = defaultVariantMapping
|
|
26414
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
26459
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1B);
|
|
26415
26460
|
const ownerState = _extends$2({}, props, {
|
|
26416
26461
|
align,
|
|
26417
26462
|
color: color2,
|
|
@@ -26424,7 +26469,7 @@ const Typography = /* @__PURE__ */ React$2.forwardRef(function Typography2(inPro
|
|
|
26424
26469
|
variantMapping
|
|
26425
26470
|
});
|
|
26426
26471
|
const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
26427
|
-
const classes = useUtilityClasses$
|
|
26472
|
+
const classes = useUtilityClasses$1f(ownerState);
|
|
26428
26473
|
return /* @__PURE__ */ jsx$1(TypographyRoot, _extends$2({
|
|
26429
26474
|
as: Component,
|
|
26430
26475
|
ref,
|
|
@@ -26437,8 +26482,8 @@ function getAlertTitleUtilityClass(slot) {
|
|
|
26437
26482
|
return generateUtilityClass("MuiAlertTitle", slot);
|
|
26438
26483
|
}
|
|
26439
26484
|
generateUtilityClasses("MuiAlertTitle", ["root"]);
|
|
26440
|
-
const _excluded$
|
|
26441
|
-
const useUtilityClasses$
|
|
26485
|
+
const _excluded$1A = ["className"];
|
|
26486
|
+
const useUtilityClasses$1e = (ownerState) => {
|
|
26442
26487
|
const {
|
|
26443
26488
|
classes
|
|
26444
26489
|
} = ownerState;
|
|
@@ -26466,9 +26511,9 @@ const AlertTitle = /* @__PURE__ */ React$2.forwardRef(function AlertTitle2(inPro
|
|
|
26466
26511
|
});
|
|
26467
26512
|
const {
|
|
26468
26513
|
className
|
|
26469
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
26514
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1A);
|
|
26470
26515
|
const ownerState = props;
|
|
26471
|
-
const classes = useUtilityClasses$
|
|
26516
|
+
const classes = useUtilityClasses$1e(ownerState);
|
|
26472
26517
|
return /* @__PURE__ */ jsx$1(AlertTitleRoot, _extends$2({
|
|
26473
26518
|
gutterBottom: true,
|
|
26474
26519
|
component: "div",
|
|
@@ -28746,7 +28791,7 @@ function getPopperUtilityClass(slot) {
|
|
|
28746
28791
|
return generateUtilityClass("MuiPopper", slot);
|
|
28747
28792
|
}
|
|
28748
28793
|
generateUtilityClasses("MuiPopper", ["root"]);
|
|
28749
|
-
const _excluded$
|
|
28794
|
+
const _excluded$1z = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], _excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
28750
28795
|
function flipPlacement(placement, direction) {
|
|
28751
28796
|
if (direction === "ltr") {
|
|
28752
28797
|
return placement;
|
|
@@ -28770,7 +28815,7 @@ function resolveAnchorEl$1(anchorEl) {
|
|
|
28770
28815
|
function isHTMLElement(element) {
|
|
28771
28816
|
return element.nodeType !== void 0;
|
|
28772
28817
|
}
|
|
28773
|
-
const useUtilityClasses$
|
|
28818
|
+
const useUtilityClasses$1d = (ownerState) => {
|
|
28774
28819
|
const {
|
|
28775
28820
|
classes
|
|
28776
28821
|
} = ownerState;
|
|
@@ -28795,7 +28840,7 @@ const PopperTooltip = /* @__PURE__ */ React$2.forwardRef(function PopperTooltip2
|
|
|
28795
28840
|
slotProps = {},
|
|
28796
28841
|
slots = {},
|
|
28797
28842
|
TransitionProps
|
|
28798
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
28843
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1z);
|
|
28799
28844
|
const tooltipRef = React$2.useRef(null);
|
|
28800
28845
|
const ownRef = useForkRef(tooltipRef, forwardedRef);
|
|
28801
28846
|
const popperRef = React$2.useRef(null);
|
|
@@ -28868,7 +28913,7 @@ const PopperTooltip = /* @__PURE__ */ React$2.forwardRef(function PopperTooltip2
|
|
|
28868
28913
|
if (TransitionProps !== null) {
|
|
28869
28914
|
childProps.TransitionProps = TransitionProps;
|
|
28870
28915
|
}
|
|
28871
|
-
const classes = useUtilityClasses$
|
|
28916
|
+
const classes = useUtilityClasses$1d(props);
|
|
28872
28917
|
const Root = (_slots$root = slots.root) != null ? _slots$root : "div";
|
|
28873
28918
|
const rootProps = useSlotProps({
|
|
28874
28919
|
elementType: Root,
|
|
@@ -28954,7 +28999,7 @@ const Popper$1 = /* @__PURE__ */ React$2.forwardRef(function Popper(props, forwa
|
|
|
28954
28999
|
});
|
|
28955
29000
|
});
|
|
28956
29001
|
var BasePopper = Popper$1;
|
|
28957
|
-
const _excluded$
|
|
29002
|
+
const _excluded$1y = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
|
|
28958
29003
|
const PopperRoot = styled$1(BasePopper, {
|
|
28959
29004
|
name: "MuiPopper",
|
|
28960
29005
|
slot: "Root",
|
|
@@ -28983,7 +29028,7 @@ const Popper2 = /* @__PURE__ */ React$2.forwardRef(function Popper3(inProps, ref
|
|
|
28983
29028
|
transition,
|
|
28984
29029
|
slots,
|
|
28985
29030
|
slotProps
|
|
28986
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
29031
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1y);
|
|
28987
29032
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
28988
29033
|
const otherProps = _extends$2({
|
|
28989
29034
|
anchorEl,
|
|
@@ -29013,8 +29058,8 @@ function getListSubheaderUtilityClass(slot) {
|
|
|
29013
29058
|
return generateUtilityClass("MuiListSubheader", slot);
|
|
29014
29059
|
}
|
|
29015
29060
|
generateUtilityClasses("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
|
|
29016
|
-
const _excluded$
|
|
29017
|
-
const useUtilityClasses$
|
|
29061
|
+
const _excluded$1x = ["className", "color", "component", "disableGutters", "disableSticky", "inset"];
|
|
29062
|
+
const useUtilityClasses$1c = (ownerState) => {
|
|
29018
29063
|
const {
|
|
29019
29064
|
classes,
|
|
29020
29065
|
color: color2,
|
|
@@ -29074,7 +29119,7 @@ const ListSubheader = /* @__PURE__ */ React$2.forwardRef(function ListSubheader2
|
|
|
29074
29119
|
disableGutters = false,
|
|
29075
29120
|
disableSticky = false,
|
|
29076
29121
|
inset = false
|
|
29077
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
29122
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1x);
|
|
29078
29123
|
const ownerState = _extends$2({}, props, {
|
|
29079
29124
|
color: color2,
|
|
29080
29125
|
component,
|
|
@@ -29082,7 +29127,7 @@ const ListSubheader = /* @__PURE__ */ React$2.forwardRef(function ListSubheader2
|
|
|
29082
29127
|
disableSticky,
|
|
29083
29128
|
inset
|
|
29084
29129
|
});
|
|
29085
|
-
const classes = useUtilityClasses$
|
|
29130
|
+
const classes = useUtilityClasses$1c(ownerState);
|
|
29086
29131
|
return /* @__PURE__ */ jsx$1(ListSubheaderRoot, _extends$2({
|
|
29087
29132
|
as: component,
|
|
29088
29133
|
className: clsx(classes.root, className),
|
|
@@ -29100,8 +29145,8 @@ function getChipUtilityClass(slot) {
|
|
|
29100
29145
|
}
|
|
29101
29146
|
const chipClasses = generateUtilityClasses("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]);
|
|
29102
29147
|
var chipClasses$1 = chipClasses;
|
|
29103
|
-
const _excluded$
|
|
29104
|
-
const useUtilityClasses$
|
|
29148
|
+
const _excluded$1w = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
|
|
29149
|
+
const useUtilityClasses$1b = (ownerState) => {
|
|
29105
29150
|
const {
|
|
29106
29151
|
classes,
|
|
29107
29152
|
disabled,
|
|
@@ -29377,7 +29422,7 @@ const Chip = /* @__PURE__ */ React$2.forwardRef(function Chip2(inProps, ref) {
|
|
|
29377
29422
|
variant = "filled",
|
|
29378
29423
|
tabIndex,
|
|
29379
29424
|
skipFocusWhenDisabled = false
|
|
29380
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
29425
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1w);
|
|
29381
29426
|
const chipRef = React$2.useRef(null);
|
|
29382
29427
|
const handleRef = useForkRef(chipRef, ref);
|
|
29383
29428
|
const handleDeleteIconClick = (event) => {
|
|
@@ -29418,7 +29463,7 @@ const Chip = /* @__PURE__ */ React$2.forwardRef(function Chip2(inProps, ref) {
|
|
|
29418
29463
|
clickable,
|
|
29419
29464
|
variant
|
|
29420
29465
|
});
|
|
29421
|
-
const classes = useUtilityClasses$
|
|
29466
|
+
const classes = useUtilityClasses$1b(ownerState);
|
|
29422
29467
|
const moreProps = component === ButtonBase$1 ? _extends$2({
|
|
29423
29468
|
component: ComponentProp || "div",
|
|
29424
29469
|
focusVisibleClassName: classes.focusVisible
|
|
@@ -29466,11 +29511,11 @@ const Chip = /* @__PURE__ */ React$2.forwardRef(function Chip2(inProps, ref) {
|
|
|
29466
29511
|
}));
|
|
29467
29512
|
});
|
|
29468
29513
|
var MUIChip = Chip;
|
|
29469
|
-
const _excluded$
|
|
29514
|
+
const _excluded$1v = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
29470
29515
|
function getStyleValue(value) {
|
|
29471
29516
|
return parseInt(value, 10) || 0;
|
|
29472
29517
|
}
|
|
29473
|
-
const styles$
|
|
29518
|
+
const styles$3 = {
|
|
29474
29519
|
shadow: {
|
|
29475
29520
|
visibility: "hidden",
|
|
29476
29521
|
position: "absolute",
|
|
@@ -29497,7 +29542,7 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
|
|
|
29497
29542
|
minRows = 1,
|
|
29498
29543
|
style: style2,
|
|
29499
29544
|
value
|
|
29500
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
29545
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1v);
|
|
29501
29546
|
const {
|
|
29502
29547
|
current: isControlled
|
|
29503
29548
|
} = React$2.useRef(value != null);
|
|
@@ -29623,7 +29668,7 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
|
|
|
29623
29668
|
readOnly: true,
|
|
29624
29669
|
ref: hiddenTextareaRef,
|
|
29625
29670
|
tabIndex: -1,
|
|
29626
|
-
style: _extends$2({}, styles$
|
|
29671
|
+
style: _extends$2({}, styles$3.shadow, style2, {
|
|
29627
29672
|
paddingTop: 0,
|
|
29628
29673
|
paddingBottom: 0
|
|
29629
29674
|
})
|
|
@@ -29671,7 +29716,7 @@ function getInputBaseUtilityClass(slot) {
|
|
|
29671
29716
|
}
|
|
29672
29717
|
const inputBaseClasses = generateUtilityClasses("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
29673
29718
|
var inputBaseClasses$1 = inputBaseClasses;
|
|
29674
|
-
const _excluded$
|
|
29719
|
+
const _excluded$1u = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
|
|
29675
29720
|
const rootOverridesResolver = (props, styles2) => {
|
|
29676
29721
|
const {
|
|
29677
29722
|
ownerState
|
|
@@ -29684,7 +29729,7 @@ const inputOverridesResolver = (props, styles2) => {
|
|
|
29684
29729
|
} = props;
|
|
29685
29730
|
return [styles2.input, ownerState.size === "small" && styles2.inputSizeSmall, ownerState.multiline && styles2.inputMultiline, ownerState.type === "search" && styles2.inputTypeSearch, ownerState.startAdornment && styles2.inputAdornedStart, ownerState.endAdornment && styles2.inputAdornedEnd, ownerState.hiddenLabel && styles2.inputHiddenLabel];
|
|
29686
29731
|
};
|
|
29687
|
-
const useUtilityClasses$
|
|
29732
|
+
const useUtilityClasses$1a = (ownerState) => {
|
|
29688
29733
|
const {
|
|
29689
29734
|
classes,
|
|
29690
29735
|
color: color2,
|
|
@@ -29874,7 +29919,7 @@ const InputBase = /* @__PURE__ */ React$2.forwardRef(function InputBase2(inProps
|
|
|
29874
29919
|
startAdornment,
|
|
29875
29920
|
type = "text",
|
|
29876
29921
|
value: valueProp
|
|
29877
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
29922
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1u);
|
|
29878
29923
|
const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
29879
29924
|
const {
|
|
29880
29925
|
current: isControlled
|
|
@@ -30017,7 +30062,7 @@ const InputBase = /* @__PURE__ */ React$2.forwardRef(function InputBase2(inProps
|
|
|
30017
30062
|
startAdornment,
|
|
30018
30063
|
type
|
|
30019
30064
|
});
|
|
30020
|
-
const classes = useUtilityClasses$
|
|
30065
|
+
const classes = useUtilityClasses$1a(ownerState);
|
|
30021
30066
|
const Root = slots.root || components.Root || InputBaseRoot;
|
|
30022
30067
|
const rootProps = slotProps.root || componentsProps.root || {};
|
|
30023
30068
|
const Input3 = slots.input || components.Input || InputBaseComponent;
|
|
@@ -30092,8 +30137,8 @@ function getAutocompleteUtilityClass(slot) {
|
|
|
30092
30137
|
const autocompleteClasses = generateUtilityClasses("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
30093
30138
|
var autocompleteClasses$1 = autocompleteClasses;
|
|
30094
30139
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
30095
|
-
const _excluded$
|
|
30096
|
-
const useUtilityClasses$
|
|
30140
|
+
const _excluded$1t = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"], _excluded2$9 = ["ref"], _excluded3$2 = ["key"], _excluded4$1 = ["key"];
|
|
30141
|
+
const useUtilityClasses$19 = (ownerState) => {
|
|
30097
30142
|
const {
|
|
30098
30143
|
classes,
|
|
30099
30144
|
disablePortal,
|
|
@@ -30515,7 +30560,7 @@ const Autocomplete = /* @__PURE__ */ React$2.forwardRef(function Autocomplete2(i
|
|
|
30515
30560
|
selectOnFocus = !props.freeSolo,
|
|
30516
30561
|
size = "medium",
|
|
30517
30562
|
slotProps = {}
|
|
30518
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
30563
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1t);
|
|
30519
30564
|
const {
|
|
30520
30565
|
getRootProps,
|
|
30521
30566
|
getInputProps,
|
|
@@ -30568,7 +30613,7 @@ const Autocomplete = /* @__PURE__ */ React$2.forwardRef(function Autocomplete2(i
|
|
|
30568
30613
|
popupOpen,
|
|
30569
30614
|
size
|
|
30570
30615
|
});
|
|
30571
|
-
const classes = useUtilityClasses$
|
|
30616
|
+
const classes = useUtilityClasses$19(ownerState);
|
|
30572
30617
|
let startAdornment;
|
|
30573
30618
|
if (multiple && value.length > 0) {
|
|
30574
30619
|
const getCustomizedTagProps = (params) => _extends$2({
|
|
@@ -30740,8 +30785,8 @@ const Autocomplete = /* @__PURE__ */ React$2.forwardRef(function Autocomplete2(i
|
|
|
30740
30785
|
});
|
|
30741
30786
|
});
|
|
30742
30787
|
var Autocomplete$1 = Autocomplete;
|
|
30743
|
-
const _excluded$
|
|
30744
|
-
const styles$
|
|
30788
|
+
const _excluded$1s = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
30789
|
+
const styles$2 = {
|
|
30745
30790
|
entering: {
|
|
30746
30791
|
opacity: 1
|
|
30747
30792
|
},
|
|
@@ -30770,7 +30815,7 @@ const Fade = /* @__PURE__ */ React$2.forwardRef(function Fade2(props, ref) {
|
|
|
30770
30815
|
style: style2,
|
|
30771
30816
|
timeout = defaultTimeout,
|
|
30772
30817
|
TransitionComponent = Transition$1
|
|
30773
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
30818
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1s);
|
|
30774
30819
|
const nodeRef = React$2.useRef(null);
|
|
30775
30820
|
const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);
|
|
30776
30821
|
const normalizedTransitionCallback = (callback) => (maybeIsAppearing) => {
|
|
@@ -30839,7 +30884,7 @@ const Fade = /* @__PURE__ */ React$2.forwardRef(function Fade2(props, ref) {
|
|
|
30839
30884
|
style: _extends$2({
|
|
30840
30885
|
opacity: 0,
|
|
30841
30886
|
visibility: state === "exited" && !inProp ? "hidden" : void 0
|
|
30842
|
-
}, styles$
|
|
30887
|
+
}, styles$2[state], style2, children.props.style),
|
|
30843
30888
|
ref: handleRef
|
|
30844
30889
|
}, childProps));
|
|
30845
30890
|
}
|
|
@@ -30850,8 +30895,8 @@ function getBackdropUtilityClass(slot) {
|
|
|
30850
30895
|
return generateUtilityClass("MuiBackdrop", slot);
|
|
30851
30896
|
}
|
|
30852
30897
|
generateUtilityClasses("MuiBackdrop", ["root", "invisible"]);
|
|
30853
|
-
const _excluded$
|
|
30854
|
-
const useUtilityClasses$
|
|
30898
|
+
const _excluded$1r = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
30899
|
+
const useUtilityClasses$18 = (ownerState) => {
|
|
30855
30900
|
const {
|
|
30856
30901
|
classes,
|
|
30857
30902
|
invisible
|
|
@@ -30904,12 +30949,12 @@ const Backdrop = /* @__PURE__ */ React$2.forwardRef(function Backdrop2(inProps,
|
|
|
30904
30949
|
slots = {},
|
|
30905
30950
|
TransitionComponent = Fade$1,
|
|
30906
30951
|
transitionDuration
|
|
30907
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
30952
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1r);
|
|
30908
30953
|
const ownerState = _extends$2({}, props, {
|
|
30909
30954
|
component,
|
|
30910
30955
|
invisible
|
|
30911
30956
|
});
|
|
30912
|
-
const classes = useUtilityClasses$
|
|
30957
|
+
const classes = useUtilityClasses$18(ownerState);
|
|
30913
30958
|
const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
30914
30959
|
return /* @__PURE__ */ jsx$1(TransitionComponent, _extends$2({
|
|
30915
30960
|
in: open,
|
|
@@ -30986,10 +31031,10 @@ const badgeClasses = generateUtilityClasses("MuiBadge", [
|
|
|
30986
31031
|
"anchorOriginBottomRightRectangular"
|
|
30987
31032
|
]);
|
|
30988
31033
|
var badgeClasses$1 = badgeClasses;
|
|
30989
|
-
const _excluded$
|
|
31034
|
+
const _excluded$1q = ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
|
|
30990
31035
|
const RADIUS_STANDARD = 10;
|
|
30991
31036
|
const RADIUS_DOT = 4;
|
|
30992
|
-
const useUtilityClasses$
|
|
31037
|
+
const useUtilityClasses$17 = (ownerState) => {
|
|
30993
31038
|
const {
|
|
30994
31039
|
color: color2,
|
|
30995
31040
|
anchorOrigin,
|
|
@@ -31212,7 +31257,7 @@ const Badge = /* @__PURE__ */ React$2.forwardRef(function Badge2(inProps, ref) {
|
|
|
31212
31257
|
slotProps,
|
|
31213
31258
|
showZero = false,
|
|
31214
31259
|
variant: variantProp = "standard"
|
|
31215
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
31260
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1q);
|
|
31216
31261
|
const {
|
|
31217
31262
|
badgeContent,
|
|
31218
31263
|
invisible: invisibleFromHook,
|
|
@@ -31250,7 +31295,7 @@ const Badge = /* @__PURE__ */ React$2.forwardRef(function Badge2(inProps, ref) {
|
|
|
31250
31295
|
overlap,
|
|
31251
31296
|
variant
|
|
31252
31297
|
});
|
|
31253
|
-
const classes = useUtilityClasses$
|
|
31298
|
+
const classes = useUtilityClasses$17(ownerState);
|
|
31254
31299
|
const RootSlot = (_ref = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref : BadgeRoot;
|
|
31255
31300
|
const BadgeSlot = (_ref2 = (_slots$badge = slots == null ? void 0 : slots.badge) != null ? _slots$badge : components.Badge) != null ? _ref2 : BadgeBadge;
|
|
31256
31301
|
const rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
@@ -31298,8 +31343,8 @@ const ButtonGroupContext = /* @__PURE__ */ React$2.createContext({});
|
|
|
31298
31343
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
31299
31344
|
const ButtonGroupButtonContext = /* @__PURE__ */ React$2.createContext(void 0);
|
|
31300
31345
|
var ButtonGroupButtonContext$1 = ButtonGroupButtonContext;
|
|
31301
|
-
const _excluded$
|
|
31302
|
-
const useUtilityClasses$
|
|
31346
|
+
const _excluded$1p = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
31347
|
+
const useUtilityClasses$16 = (ownerState) => {
|
|
31303
31348
|
const {
|
|
31304
31349
|
color: color2,
|
|
31305
31350
|
disableElevation,
|
|
@@ -31516,7 +31561,7 @@ const Button = /* @__PURE__ */ React$2.forwardRef(function Button2(inProps, ref)
|
|
|
31516
31561
|
startIcon: startIconProp,
|
|
31517
31562
|
type,
|
|
31518
31563
|
variant = "text"
|
|
31519
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
31564
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1p);
|
|
31520
31565
|
const ownerState = _extends$2({}, props, {
|
|
31521
31566
|
color: color2,
|
|
31522
31567
|
component,
|
|
@@ -31528,7 +31573,7 @@ const Button = /* @__PURE__ */ React$2.forwardRef(function Button2(inProps, ref)
|
|
|
31528
31573
|
type,
|
|
31529
31574
|
variant
|
|
31530
31575
|
});
|
|
31531
|
-
const classes = useUtilityClasses$
|
|
31576
|
+
const classes = useUtilityClasses$16(ownerState);
|
|
31532
31577
|
const startIcon = startIconProp && /* @__PURE__ */ jsx$1(ButtonStartIcon, {
|
|
31533
31578
|
className: classes.startIcon,
|
|
31534
31579
|
ownerState,
|
|
@@ -31559,8 +31604,8 @@ function getSwitchBaseUtilityClass(slot) {
|
|
|
31559
31604
|
return generateUtilityClass("PrivateSwitchBase", slot);
|
|
31560
31605
|
}
|
|
31561
31606
|
generateUtilityClasses("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
31562
|
-
const _excluded$
|
|
31563
|
-
const useUtilityClasses$
|
|
31607
|
+
const _excluded$1o = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"];
|
|
31608
|
+
const useUtilityClasses$15 = (ownerState) => {
|
|
31564
31609
|
const {
|
|
31565
31610
|
classes,
|
|
31566
31611
|
checked,
|
|
@@ -31620,7 +31665,7 @@ const SwitchBase = /* @__PURE__ */ React$2.forwardRef(function SwitchBase2(props
|
|
|
31620
31665
|
tabIndex,
|
|
31621
31666
|
type,
|
|
31622
31667
|
value
|
|
31623
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
31668
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1o);
|
|
31624
31669
|
const [checked, setCheckedState] = useControlled({
|
|
31625
31670
|
controlled: checkedProp,
|
|
31626
31671
|
default: Boolean(defaultChecked),
|
|
@@ -31667,7 +31712,7 @@ const SwitchBase = /* @__PURE__ */ React$2.forwardRef(function SwitchBase2(props
|
|
|
31667
31712
|
disableFocusRipple,
|
|
31668
31713
|
edge
|
|
31669
31714
|
});
|
|
31670
|
-
const classes = useUtilityClasses$
|
|
31715
|
+
const classes = useUtilityClasses$15(ownerState);
|
|
31671
31716
|
return /* @__PURE__ */ jsxs(SwitchBaseRoot, _extends$2({
|
|
31672
31717
|
component: "span",
|
|
31673
31718
|
className: clsx(classes.root, className),
|
|
@@ -31716,8 +31761,8 @@ function getCheckboxUtilityClass(slot) {
|
|
|
31716
31761
|
}
|
|
31717
31762
|
const checkboxClasses = generateUtilityClasses("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]);
|
|
31718
31763
|
var checkboxClasses$1 = checkboxClasses;
|
|
31719
|
-
const _excluded$
|
|
31720
|
-
const useUtilityClasses$
|
|
31764
|
+
const _excluded$1n = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
|
31765
|
+
const useUtilityClasses$14 = (ownerState) => {
|
|
31721
31766
|
const {
|
|
31722
31767
|
classes,
|
|
31723
31768
|
indeterminate,
|
|
@@ -31778,7 +31823,7 @@ const Checkbox = /* @__PURE__ */ React$2.forwardRef(function Checkbox2(inProps,
|
|
|
31778
31823
|
inputProps,
|
|
31779
31824
|
size = "medium",
|
|
31780
31825
|
className
|
|
31781
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
31826
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1n);
|
|
31782
31827
|
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
31783
31828
|
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
31784
31829
|
const ownerState = _extends$2({}, props, {
|
|
@@ -31786,7 +31831,7 @@ const Checkbox = /* @__PURE__ */ React$2.forwardRef(function Checkbox2(inProps,
|
|
|
31786
31831
|
indeterminate,
|
|
31787
31832
|
size
|
|
31788
31833
|
});
|
|
31789
|
-
const classes = useUtilityClasses$
|
|
31834
|
+
const classes = useUtilityClasses$14(ownerState);
|
|
31790
31835
|
return /* @__PURE__ */ jsx$1(CheckboxRoot, _extends$2({
|
|
31791
31836
|
type: "checkbox",
|
|
31792
31837
|
inputProps: _extends$2({
|
|
@@ -31810,7 +31855,7 @@ function getCircularProgressUtilityClass(slot) {
|
|
|
31810
31855
|
return generateUtilityClass("MuiCircularProgress", slot);
|
|
31811
31856
|
}
|
|
31812
31857
|
generateUtilityClasses("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
31813
|
-
const _excluded$
|
|
31858
|
+
const _excluded$1m = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
31814
31859
|
let _$1 = (t2) => t2, _t$1, _t2$1, _t3$1, _t4$1;
|
|
31815
31860
|
const SIZE = 44;
|
|
31816
31861
|
const circularRotateKeyframe = keyframes(_t$1 || (_t$1 = _$1`
|
|
@@ -31838,7 +31883,7 @@ const circularDashKeyframe = keyframes(_t2$1 || (_t2$1 = _$1`
|
|
|
31838
31883
|
stroke-dashoffset: -125px;
|
|
31839
31884
|
}
|
|
31840
31885
|
`));
|
|
31841
|
-
const useUtilityClasses$
|
|
31886
|
+
const useUtilityClasses$13 = (ownerState) => {
|
|
31842
31887
|
const {
|
|
31843
31888
|
classes,
|
|
31844
31889
|
variant,
|
|
@@ -31920,7 +31965,7 @@ const CircularProgress = /* @__PURE__ */ React$2.forwardRef(function CircularPro
|
|
|
31920
31965
|
thickness = 3.6,
|
|
31921
31966
|
value = 0,
|
|
31922
31967
|
variant = "indeterminate"
|
|
31923
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
31968
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1m);
|
|
31924
31969
|
const ownerState = _extends$2({}, props, {
|
|
31925
31970
|
color: color2,
|
|
31926
31971
|
disableShrink,
|
|
@@ -31929,7 +31974,7 @@ const CircularProgress = /* @__PURE__ */ React$2.forwardRef(function CircularPro
|
|
|
31929
31974
|
value,
|
|
31930
31975
|
variant
|
|
31931
31976
|
});
|
|
31932
|
-
const classes = useUtilityClasses$
|
|
31977
|
+
const classes = useUtilityClasses$13(ownerState);
|
|
31933
31978
|
const circleStyle = {};
|
|
31934
31979
|
const rootStyle = {};
|
|
31935
31980
|
const rootProps = {};
|
|
@@ -32617,8 +32662,8 @@ function getModalUtilityClass(slot) {
|
|
|
32617
32662
|
return generateUtilityClass("MuiModal", slot);
|
|
32618
32663
|
}
|
|
32619
32664
|
generateUtilityClasses("MuiModal", ["root", "hidden", "backdrop"]);
|
|
32620
|
-
const _excluded$
|
|
32621
|
-
const useUtilityClasses
|
|
32665
|
+
const _excluded$1l = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
|
|
32666
|
+
const useUtilityClasses$12 = (ownerState) => {
|
|
32622
32667
|
const {
|
|
32623
32668
|
open,
|
|
32624
32669
|
exited,
|
|
@@ -32689,7 +32734,7 @@ const Modal = /* @__PURE__ */ React$2.forwardRef(function Modal2(inProps, ref) {
|
|
|
32689
32734
|
open,
|
|
32690
32735
|
slotProps,
|
|
32691
32736
|
slots
|
|
32692
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
32737
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1l);
|
|
32693
32738
|
const propsWithDefaults = _extends$2({}, props, {
|
|
32694
32739
|
closeAfterTransition,
|
|
32695
32740
|
disableAutoFocus,
|
|
@@ -32715,7 +32760,7 @@ const Modal = /* @__PURE__ */ React$2.forwardRef(function Modal2(inProps, ref) {
|
|
|
32715
32760
|
const ownerState = _extends$2({}, propsWithDefaults, {
|
|
32716
32761
|
exited
|
|
32717
32762
|
});
|
|
32718
|
-
const classes = useUtilityClasses
|
|
32763
|
+
const classes = useUtilityClasses$12(ownerState);
|
|
32719
32764
|
const childProps = {};
|
|
32720
32765
|
if (children.props.tabIndex === void 0) {
|
|
32721
32766
|
childProps.tabIndex = "-1";
|
|
@@ -32788,8 +32833,8 @@ function getDividerUtilityClass(slot) {
|
|
|
32788
32833
|
}
|
|
32789
32834
|
const dividerClasses = generateUtilityClasses("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
32790
32835
|
var dividerClasses$1 = dividerClasses;
|
|
32791
|
-
const _excluded$
|
|
32792
|
-
const useUtilityClasses$
|
|
32836
|
+
const _excluded$1k = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
|
|
32837
|
+
const useUtilityClasses$11 = (ownerState) => {
|
|
32793
32838
|
const {
|
|
32794
32839
|
absolute,
|
|
32795
32840
|
children,
|
|
@@ -32932,7 +32977,7 @@ const Divider = /* @__PURE__ */ React$2.forwardRef(function Divider2(inProps, re
|
|
|
32932
32977
|
role = component !== "hr" ? "separator" : void 0,
|
|
32933
32978
|
textAlign = "center",
|
|
32934
32979
|
variant = "fullWidth"
|
|
32935
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
32980
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1k);
|
|
32936
32981
|
const ownerState = _extends$2({}, props, {
|
|
32937
32982
|
absolute,
|
|
32938
32983
|
component,
|
|
@@ -32943,7 +32988,7 @@ const Divider = /* @__PURE__ */ React$2.forwardRef(function Divider2(inProps, re
|
|
|
32943
32988
|
textAlign,
|
|
32944
32989
|
variant
|
|
32945
32990
|
});
|
|
32946
|
-
const classes = useUtilityClasses$
|
|
32991
|
+
const classes = useUtilityClasses$11(ownerState);
|
|
32947
32992
|
return /* @__PURE__ */ jsx$1(DividerRoot, _extends$2({
|
|
32948
32993
|
as: component,
|
|
32949
32994
|
className: clsx(classes.root, className),
|
|
@@ -32960,8 +33005,8 @@ const Divider = /* @__PURE__ */ React$2.forwardRef(function Divider2(inProps, re
|
|
|
32960
33005
|
});
|
|
32961
33006
|
Divider.muiSkipListHighlight = true;
|
|
32962
33007
|
var Divider$1 = Divider;
|
|
32963
|
-
const _excluded$
|
|
32964
|
-
const useUtilityClasses$
|
|
33008
|
+
const _excluded$1j = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
33009
|
+
const useUtilityClasses$10 = (ownerState) => {
|
|
32965
33010
|
const {
|
|
32966
33011
|
classes,
|
|
32967
33012
|
disableUnderline
|
|
@@ -33138,14 +33183,14 @@ const FilledInput = /* @__PURE__ */ React$2.forwardRef(function FilledInput2(inP
|
|
|
33138
33183
|
slotProps,
|
|
33139
33184
|
slots = {},
|
|
33140
33185
|
type = "text"
|
|
33141
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
33186
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1j);
|
|
33142
33187
|
const ownerState = _extends$2({}, props, {
|
|
33143
33188
|
fullWidth,
|
|
33144
33189
|
inputComponent,
|
|
33145
33190
|
multiline,
|
|
33146
33191
|
type
|
|
33147
33192
|
});
|
|
33148
|
-
const classes = useUtilityClasses$
|
|
33193
|
+
const classes = useUtilityClasses$10(props);
|
|
33149
33194
|
const filledInputComponentsProps = {
|
|
33150
33195
|
root: {
|
|
33151
33196
|
ownerState
|
|
@@ -33178,8 +33223,8 @@ function getFormControlUtilityClasses(slot) {
|
|
|
33178
33223
|
return generateUtilityClass("MuiFormControl", slot);
|
|
33179
33224
|
}
|
|
33180
33225
|
generateUtilityClasses("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
|
|
33181
|
-
const _excluded$
|
|
33182
|
-
const useUtilityClasses
|
|
33226
|
+
const _excluded$1i = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"];
|
|
33227
|
+
const useUtilityClasses$$ = (ownerState) => {
|
|
33183
33228
|
const {
|
|
33184
33229
|
classes,
|
|
33185
33230
|
margin: margin2,
|
|
@@ -33237,7 +33282,7 @@ const FormControl = /* @__PURE__ */ React$2.forwardRef(function FormControl2(inP
|
|
|
33237
33282
|
required = false,
|
|
33238
33283
|
size = "medium",
|
|
33239
33284
|
variant = "outlined"
|
|
33240
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
33285
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1i);
|
|
33241
33286
|
const ownerState = _extends$2({}, props, {
|
|
33242
33287
|
color: color2,
|
|
33243
33288
|
component,
|
|
@@ -33250,7 +33295,7 @@ const FormControl = /* @__PURE__ */ React$2.forwardRef(function FormControl2(inP
|
|
|
33250
33295
|
size,
|
|
33251
33296
|
variant
|
|
33252
33297
|
});
|
|
33253
|
-
const classes = useUtilityClasses
|
|
33298
|
+
const classes = useUtilityClasses$$(ownerState);
|
|
33254
33299
|
const [adornedStart, setAdornedStart] = React$2.useState(() => {
|
|
33255
33300
|
let initialAdornedStart = false;
|
|
33256
33301
|
if (children) {
|
|
@@ -33345,8 +33390,8 @@ function getFormControlLabelUtilityClasses(slot) {
|
|
|
33345
33390
|
}
|
|
33346
33391
|
const formControlLabelClasses = generateUtilityClasses("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]);
|
|
33347
33392
|
var formControlLabelClasses$1 = formControlLabelClasses;
|
|
33348
|
-
const _excluded$
|
|
33349
|
-
const useUtilityClasses$
|
|
33393
|
+
const _excluded$1h = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"];
|
|
33394
|
+
const useUtilityClasses$_ = (ownerState) => {
|
|
33350
33395
|
const {
|
|
33351
33396
|
classes,
|
|
33352
33397
|
disabled,
|
|
@@ -33430,7 +33475,7 @@ const FormControlLabel = /* @__PURE__ */ React$2.forwardRef(function FormControl
|
|
|
33430
33475
|
labelPlacement = "end",
|
|
33431
33476
|
required: requiredProp,
|
|
33432
33477
|
slotProps = {}
|
|
33433
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
33478
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1h);
|
|
33434
33479
|
const muiFormControl = useFormControl();
|
|
33435
33480
|
const disabled = (_ref = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref : muiFormControl == null ? void 0 : muiFormControl.disabled;
|
|
33436
33481
|
const required = requiredProp != null ? requiredProp : control.props.required;
|
|
@@ -33454,7 +33499,7 @@ const FormControlLabel = /* @__PURE__ */ React$2.forwardRef(function FormControl
|
|
|
33454
33499
|
required,
|
|
33455
33500
|
error: fcs.error
|
|
33456
33501
|
});
|
|
33457
|
-
const classes = useUtilityClasses$
|
|
33502
|
+
const classes = useUtilityClasses$_(ownerState);
|
|
33458
33503
|
const typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;
|
|
33459
33504
|
let label = labelProp;
|
|
33460
33505
|
if (label != null && label.type !== Typography$1 && !disableTypography) {
|
|
@@ -33488,8 +33533,8 @@ function getFormHelperTextUtilityClasses(slot) {
|
|
|
33488
33533
|
const formHelperTextClasses = generateUtilityClasses("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]);
|
|
33489
33534
|
var formHelperTextClasses$1 = formHelperTextClasses;
|
|
33490
33535
|
var _span$3;
|
|
33491
|
-
const _excluded$
|
|
33492
|
-
const useUtilityClasses$
|
|
33536
|
+
const _excluded$1g = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
|
|
33537
|
+
const useUtilityClasses$Z = (ownerState) => {
|
|
33493
33538
|
const {
|
|
33494
33539
|
classes,
|
|
33495
33540
|
contained,
|
|
@@ -33546,7 +33591,7 @@ const FormHelperText = /* @__PURE__ */ React$2.forwardRef(function FormHelperTex
|
|
|
33546
33591
|
children,
|
|
33547
33592
|
className,
|
|
33548
33593
|
component = "p"
|
|
33549
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
33594
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1g);
|
|
33550
33595
|
const muiFormControl = useFormControl();
|
|
33551
33596
|
const fcs = formControlState({
|
|
33552
33597
|
props,
|
|
@@ -33564,7 +33609,7 @@ const FormHelperText = /* @__PURE__ */ React$2.forwardRef(function FormHelperTex
|
|
|
33564
33609
|
focused: fcs.focused,
|
|
33565
33610
|
required: fcs.required
|
|
33566
33611
|
});
|
|
33567
|
-
const classes = useUtilityClasses$
|
|
33612
|
+
const classes = useUtilityClasses$Z(ownerState);
|
|
33568
33613
|
return /* @__PURE__ */ jsx$1(FormHelperTextRoot, _extends$2({
|
|
33569
33614
|
as: component,
|
|
33570
33615
|
ownerState,
|
|
@@ -33583,8 +33628,8 @@ function getFormLabelUtilityClasses(slot) {
|
|
|
33583
33628
|
}
|
|
33584
33629
|
const formLabelClasses = generateUtilityClasses("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]);
|
|
33585
33630
|
var formLabelClasses$1 = formLabelClasses;
|
|
33586
|
-
const _excluded$
|
|
33587
|
-
const useUtilityClasses$
|
|
33631
|
+
const _excluded$1f = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"];
|
|
33632
|
+
const useUtilityClasses$Y = (ownerState) => {
|
|
33588
33633
|
const {
|
|
33589
33634
|
classes,
|
|
33590
33635
|
color: color2,
|
|
@@ -33647,7 +33692,7 @@ const FormLabel = /* @__PURE__ */ React$2.forwardRef(function FormLabel2(inProps
|
|
|
33647
33692
|
children,
|
|
33648
33693
|
className,
|
|
33649
33694
|
component = "label"
|
|
33650
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
33695
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1f);
|
|
33651
33696
|
const muiFormControl = useFormControl();
|
|
33652
33697
|
const fcs = formControlState({
|
|
33653
33698
|
props,
|
|
@@ -33663,7 +33708,7 @@ const FormLabel = /* @__PURE__ */ React$2.forwardRef(function FormLabel2(inProps
|
|
|
33663
33708
|
focused: fcs.focused,
|
|
33664
33709
|
required: fcs.required
|
|
33665
33710
|
});
|
|
33666
|
-
const classes = useUtilityClasses$
|
|
33711
|
+
const classes = useUtilityClasses$Y(ownerState);
|
|
33667
33712
|
return /* @__PURE__ */ jsxs(FormLabelRoot, _extends$2({
|
|
33668
33713
|
as: component,
|
|
33669
33714
|
ownerState,
|
|
@@ -33679,11 +33724,11 @@ const FormLabel = /* @__PURE__ */ React$2.forwardRef(function FormLabel2(inProps
|
|
|
33679
33724
|
}));
|
|
33680
33725
|
});
|
|
33681
33726
|
var FormLabel$1 = FormLabel;
|
|
33682
|
-
const _excluded$
|
|
33727
|
+
const _excluded$1e = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
33683
33728
|
function getScale(value) {
|
|
33684
33729
|
return `scale(${value}, ${value ** 2})`;
|
|
33685
33730
|
}
|
|
33686
|
-
const styles = {
|
|
33731
|
+
const styles$1 = {
|
|
33687
33732
|
entering: {
|
|
33688
33733
|
opacity: 1,
|
|
33689
33734
|
transform: getScale(1)
|
|
@@ -33710,7 +33755,7 @@ const Grow = /* @__PURE__ */ React$2.forwardRef(function Grow2(props, ref) {
|
|
|
33710
33755
|
style: style2,
|
|
33711
33756
|
timeout = "auto",
|
|
33712
33757
|
TransitionComponent = Transition$1
|
|
33713
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
33758
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1e);
|
|
33714
33759
|
const timer = useTimeout$1();
|
|
33715
33760
|
const autoTimeout = React$2.useRef();
|
|
33716
33761
|
const theme = useTheme$1();
|
|
@@ -33822,7 +33867,7 @@ const Grow = /* @__PURE__ */ React$2.forwardRef(function Grow2(props, ref) {
|
|
|
33822
33867
|
opacity: 0,
|
|
33823
33868
|
transform: getScale(0.75),
|
|
33824
33869
|
visibility: state === "exited" && !inProp ? "hidden" : void 0
|
|
33825
|
-
}, styles[state], style2, children.props.style),
|
|
33870
|
+
}, styles$1[state], style2, children.props.style),
|
|
33826
33871
|
ref: handleRef
|
|
33827
33872
|
}, childProps));
|
|
33828
33873
|
}
|
|
@@ -33830,8 +33875,8 @@ const Grow = /* @__PURE__ */ React$2.forwardRef(function Grow2(props, ref) {
|
|
|
33830
33875
|
});
|
|
33831
33876
|
Grow.muiSupportAuto = true;
|
|
33832
33877
|
var Grow$1 = Grow;
|
|
33833
|
-
const _excluded$
|
|
33834
|
-
const useUtilityClasses$
|
|
33878
|
+
const _excluded$1d = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
33879
|
+
const useUtilityClasses$X = (ownerState) => {
|
|
33835
33880
|
const {
|
|
33836
33881
|
classes,
|
|
33837
33882
|
disableUnderline
|
|
@@ -33935,8 +33980,8 @@ const Input = /* @__PURE__ */ React$2.forwardRef(function Input2(inProps, ref) {
|
|
|
33935
33980
|
slotProps,
|
|
33936
33981
|
slots = {},
|
|
33937
33982
|
type = "text"
|
|
33938
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
33939
|
-
const classes = useUtilityClasses$
|
|
33983
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1d);
|
|
33984
|
+
const classes = useUtilityClasses$X(props);
|
|
33940
33985
|
const ownerState = {
|
|
33941
33986
|
disableUnderline
|
|
33942
33987
|
};
|
|
@@ -33971,14 +34016,14 @@ function getInputAdornmentUtilityClass(slot) {
|
|
|
33971
34016
|
const inputAdornmentClasses = generateUtilityClasses("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]);
|
|
33972
34017
|
var inputAdornmentClasses$1 = inputAdornmentClasses;
|
|
33973
34018
|
var _span$2;
|
|
33974
|
-
const _excluded$
|
|
34019
|
+
const _excluded$1c = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"];
|
|
33975
34020
|
const overridesResolver$1 = (props, styles2) => {
|
|
33976
34021
|
const {
|
|
33977
34022
|
ownerState
|
|
33978
34023
|
} = props;
|
|
33979
34024
|
return [styles2.root, styles2[`position${capitalize$1(ownerState.position)}`], ownerState.disablePointerEvents === true && styles2.disablePointerEvents, styles2[ownerState.variant]];
|
|
33980
34025
|
};
|
|
33981
|
-
const useUtilityClasses$
|
|
34026
|
+
const useUtilityClasses$W = (ownerState) => {
|
|
33982
34027
|
const {
|
|
33983
34028
|
classes,
|
|
33984
34029
|
disablePointerEvents,
|
|
@@ -34030,7 +34075,7 @@ const InputAdornment = /* @__PURE__ */ React$2.forwardRef(function InputAdornmen
|
|
|
34030
34075
|
disableTypography = false,
|
|
34031
34076
|
position: position2,
|
|
34032
34077
|
variant: variantProp
|
|
34033
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
34078
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1c);
|
|
34034
34079
|
const muiFormControl = useFormControl() || {};
|
|
34035
34080
|
let variant = variantProp;
|
|
34036
34081
|
if (variantProp && muiFormControl.variant)
|
|
@@ -34045,7 +34090,7 @@ const InputAdornment = /* @__PURE__ */ React$2.forwardRef(function InputAdornmen
|
|
|
34045
34090
|
position: position2,
|
|
34046
34091
|
variant
|
|
34047
34092
|
});
|
|
34048
|
-
const classes = useUtilityClasses$
|
|
34093
|
+
const classes = useUtilityClasses$W(ownerState);
|
|
34049
34094
|
return /* @__PURE__ */ jsx$1(FormControlContext$1.Provider, {
|
|
34050
34095
|
value: null,
|
|
34051
34096
|
children: /* @__PURE__ */ jsx$1(InputAdornmentRoot, _extends$2({
|
|
@@ -34071,8 +34116,8 @@ function getInputLabelUtilityClasses(slot) {
|
|
|
34071
34116
|
return generateUtilityClass("MuiInputLabel", slot);
|
|
34072
34117
|
}
|
|
34073
34118
|
generateUtilityClasses("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
|
|
34074
|
-
const _excluded$
|
|
34075
|
-
const useUtilityClasses$
|
|
34119
|
+
const _excluded$1b = ["disableAnimation", "margin", "shrink", "variant", "className"];
|
|
34120
|
+
const useUtilityClasses$V = (ownerState) => {
|
|
34076
34121
|
const {
|
|
34077
34122
|
classes,
|
|
34078
34123
|
formControl,
|
|
@@ -34163,7 +34208,7 @@ const InputLabel = /* @__PURE__ */ React$2.forwardRef(function InputLabel2(inPro
|
|
|
34163
34208
|
disableAnimation = false,
|
|
34164
34209
|
shrink: shrinkProp,
|
|
34165
34210
|
className
|
|
34166
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
34211
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1b);
|
|
34167
34212
|
const muiFormControl = useFormControl();
|
|
34168
34213
|
let shrink = shrinkProp;
|
|
34169
34214
|
if (typeof shrink === "undefined" && muiFormControl) {
|
|
@@ -34183,7 +34228,7 @@ const InputLabel = /* @__PURE__ */ React$2.forwardRef(function InputLabel2(inPro
|
|
|
34183
34228
|
required: fcs.required,
|
|
34184
34229
|
focused: fcs.focused
|
|
34185
34230
|
});
|
|
34186
|
-
const classes = useUtilityClasses$
|
|
34231
|
+
const classes = useUtilityClasses$V(ownerState);
|
|
34187
34232
|
return /* @__PURE__ */ jsx$1(InputLabelRoot, _extends$2({
|
|
34188
34233
|
"data-shrink": shrink,
|
|
34189
34234
|
ownerState,
|
|
@@ -34200,8 +34245,8 @@ function getListUtilityClass(slot) {
|
|
|
34200
34245
|
return generateUtilityClass("MuiList", slot);
|
|
34201
34246
|
}
|
|
34202
34247
|
generateUtilityClasses("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
34203
|
-
const _excluded$
|
|
34204
|
-
const useUtilityClasses$
|
|
34248
|
+
const _excluded$1a = ["children", "className", "component", "dense", "disablePadding", "subheader"];
|
|
34249
|
+
const useUtilityClasses$U = (ownerState) => {
|
|
34205
34250
|
const {
|
|
34206
34251
|
classes,
|
|
34207
34252
|
disablePadding,
|
|
@@ -34247,7 +34292,7 @@ const List = /* @__PURE__ */ React$2.forwardRef(function List2(inProps, ref) {
|
|
|
34247
34292
|
dense = false,
|
|
34248
34293
|
disablePadding = false,
|
|
34249
34294
|
subheader
|
|
34250
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
34295
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1a);
|
|
34251
34296
|
const context = React$2.useMemo(() => ({
|
|
34252
34297
|
dense
|
|
34253
34298
|
}), [dense]);
|
|
@@ -34256,7 +34301,7 @@ const List = /* @__PURE__ */ React$2.forwardRef(function List2(inProps, ref) {
|
|
|
34256
34301
|
dense,
|
|
34257
34302
|
disablePadding
|
|
34258
34303
|
});
|
|
34259
|
-
const classes = useUtilityClasses$
|
|
34304
|
+
const classes = useUtilityClasses$U(ownerState);
|
|
34260
34305
|
return /* @__PURE__ */ jsx$1(ListContext$1.Provider, {
|
|
34261
34306
|
value: context,
|
|
34262
34307
|
children: /* @__PURE__ */ jsxs(ListRoot, _extends$2({
|
|
@@ -34275,8 +34320,8 @@ function getListItemIconUtilityClass(slot) {
|
|
|
34275
34320
|
}
|
|
34276
34321
|
const listItemIconClasses = generateUtilityClasses("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
34277
34322
|
var listItemIconClasses$1 = listItemIconClasses;
|
|
34278
|
-
const _excluded$
|
|
34279
|
-
const useUtilityClasses$
|
|
34323
|
+
const _excluded$19 = ["className"];
|
|
34324
|
+
const useUtilityClasses$T = (ownerState) => {
|
|
34280
34325
|
const {
|
|
34281
34326
|
alignItems,
|
|
34282
34327
|
classes
|
|
@@ -34313,12 +34358,12 @@ const ListItemIcon = /* @__PURE__ */ React$2.forwardRef(function ListItemIcon2(i
|
|
|
34313
34358
|
});
|
|
34314
34359
|
const {
|
|
34315
34360
|
className
|
|
34316
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
34361
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$19);
|
|
34317
34362
|
const context = React$2.useContext(ListContext$1);
|
|
34318
34363
|
const ownerState = _extends$2({}, props, {
|
|
34319
34364
|
alignItems: context.alignItems
|
|
34320
34365
|
});
|
|
34321
|
-
const classes = useUtilityClasses$
|
|
34366
|
+
const classes = useUtilityClasses$T(ownerState);
|
|
34322
34367
|
return /* @__PURE__ */ jsx$1(ListItemIconRoot, _extends$2({
|
|
34323
34368
|
className: clsx(classes.root, className),
|
|
34324
34369
|
ownerState,
|
|
@@ -34331,8 +34376,8 @@ function getListItemTextUtilityClass(slot) {
|
|
|
34331
34376
|
}
|
|
34332
34377
|
const listItemTextClasses = generateUtilityClasses("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
34333
34378
|
var listItemTextClasses$1 = listItemTextClasses;
|
|
34334
|
-
const _excluded$
|
|
34335
|
-
const useUtilityClasses$
|
|
34379
|
+
const _excluded$18 = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"];
|
|
34380
|
+
const useUtilityClasses$S = (ownerState) => {
|
|
34336
34381
|
const {
|
|
34337
34382
|
classes,
|
|
34338
34383
|
inset,
|
|
@@ -34387,7 +34432,7 @@ const ListItemText = /* @__PURE__ */ React$2.forwardRef(function ListItemText2(i
|
|
|
34387
34432
|
primaryTypographyProps,
|
|
34388
34433
|
secondary: secondaryProp,
|
|
34389
34434
|
secondaryTypographyProps
|
|
34390
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
34435
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$18);
|
|
34391
34436
|
const {
|
|
34392
34437
|
dense
|
|
34393
34438
|
} = React$2.useContext(ListContext$1);
|
|
@@ -34400,7 +34445,7 @@ const ListItemText = /* @__PURE__ */ React$2.forwardRef(function ListItemText2(i
|
|
|
34400
34445
|
secondary: !!secondary,
|
|
34401
34446
|
dense
|
|
34402
34447
|
});
|
|
34403
|
-
const classes = useUtilityClasses$
|
|
34448
|
+
const classes = useUtilityClasses$S(ownerState);
|
|
34404
34449
|
if (primary != null && primary.type !== Typography$1 && !disableTypography) {
|
|
34405
34450
|
primary = /* @__PURE__ */ jsx$1(Typography$1, _extends$2({
|
|
34406
34451
|
variant: dense ? "body2" : "body1",
|
|
@@ -34430,8 +34475,8 @@ const ListItemText = /* @__PURE__ */ React$2.forwardRef(function ListItemText2(i
|
|
|
34430
34475
|
}));
|
|
34431
34476
|
});
|
|
34432
34477
|
var ListItemText$1 = ListItemText;
|
|
34433
|
-
const _excluded$
|
|
34434
|
-
function nextItem(list, item, disableListWrap) {
|
|
34478
|
+
const _excluded$17 = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
34479
|
+
function nextItem$1(list, item, disableListWrap) {
|
|
34435
34480
|
if (list === item) {
|
|
34436
34481
|
return list.firstChild;
|
|
34437
34482
|
}
|
|
@@ -34440,7 +34485,7 @@ function nextItem(list, item, disableListWrap) {
|
|
|
34440
34485
|
}
|
|
34441
34486
|
return disableListWrap ? null : list.firstChild;
|
|
34442
34487
|
}
|
|
34443
|
-
function previousItem(list, item, disableListWrap) {
|
|
34488
|
+
function previousItem$1(list, item, disableListWrap) {
|
|
34444
34489
|
if (list === item) {
|
|
34445
34490
|
return disableListWrap ? list.firstChild : list.lastChild;
|
|
34446
34491
|
}
|
|
@@ -34466,7 +34511,7 @@ function textCriteriaMatches(nextFocus, textCriteria) {
|
|
|
34466
34511
|
}
|
|
34467
34512
|
return text.indexOf(textCriteria.keys.join("")) === 0;
|
|
34468
34513
|
}
|
|
34469
|
-
function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, traversalFunction, textCriteria) {
|
|
34514
|
+
function moveFocus$1(list, currentFocus, disableListWrap, disabledItemsFocusable, traversalFunction, textCriteria) {
|
|
34470
34515
|
let wrappedOnce = false;
|
|
34471
34516
|
let nextFocus = traversalFunction(list, currentFocus, currentFocus ? disableListWrap : false);
|
|
34472
34517
|
while (nextFocus) {
|
|
@@ -34497,7 +34542,7 @@ const MenuList = /* @__PURE__ */ React$2.forwardRef(function MenuList2(props, re
|
|
|
34497
34542
|
disableListWrap = false,
|
|
34498
34543
|
onKeyDown,
|
|
34499
34544
|
variant = "selectedMenu"
|
|
34500
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
34545
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$17);
|
|
34501
34546
|
const listRef = React$2.useRef(null);
|
|
34502
34547
|
const textCriteriaRef = React$2.useRef({
|
|
34503
34548
|
keys: [],
|
|
@@ -34529,16 +34574,16 @@ const MenuList = /* @__PURE__ */ React$2.forwardRef(function MenuList2(props, re
|
|
|
34529
34574
|
const currentFocus = ownerDocument(list).activeElement;
|
|
34530
34575
|
if (key === "ArrowDown") {
|
|
34531
34576
|
event.preventDefault();
|
|
34532
|
-
moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, nextItem);
|
|
34577
|
+
moveFocus$1(list, currentFocus, disableListWrap, disabledItemsFocusable, nextItem$1);
|
|
34533
34578
|
} else if (key === "ArrowUp") {
|
|
34534
34579
|
event.preventDefault();
|
|
34535
|
-
moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, previousItem);
|
|
34580
|
+
moveFocus$1(list, currentFocus, disableListWrap, disabledItemsFocusable, previousItem$1);
|
|
34536
34581
|
} else if (key === "Home") {
|
|
34537
34582
|
event.preventDefault();
|
|
34538
|
-
moveFocus(list, null, disableListWrap, disabledItemsFocusable, nextItem);
|
|
34583
|
+
moveFocus$1(list, null, disableListWrap, disabledItemsFocusable, nextItem$1);
|
|
34539
34584
|
} else if (key === "End") {
|
|
34540
34585
|
event.preventDefault();
|
|
34541
|
-
moveFocus(list, null, disableListWrap, disabledItemsFocusable, previousItem);
|
|
34586
|
+
moveFocus$1(list, null, disableListWrap, disabledItemsFocusable, previousItem$1);
|
|
34542
34587
|
} else if (key.length === 1) {
|
|
34543
34588
|
const criteria = textCriteriaRef.current;
|
|
34544
34589
|
const lowerKey = key.toLowerCase();
|
|
@@ -34555,7 +34600,7 @@ const MenuList = /* @__PURE__ */ React$2.forwardRef(function MenuList2(props, re
|
|
|
34555
34600
|
criteria.lastTime = currTime;
|
|
34556
34601
|
criteria.keys.push(lowerKey);
|
|
34557
34602
|
const keepFocusOnCurrent = currentFocus && !criteria.repeating && textCriteriaMatches(currentFocus, criteria);
|
|
34558
|
-
if (criteria.previousKeyMatched && (keepFocusOnCurrent || moveFocus(list, currentFocus, false, disabledItemsFocusable, nextItem, criteria))) {
|
|
34603
|
+
if (criteria.previousKeyMatched && (keepFocusOnCurrent || moveFocus$1(list, currentFocus, false, disabledItemsFocusable, nextItem$1, criteria))) {
|
|
34559
34604
|
event.preventDefault();
|
|
34560
34605
|
} else {
|
|
34561
34606
|
criteria.previousKeyMatched = false;
|
|
@@ -34619,7 +34664,7 @@ function getPopoverUtilityClass(slot) {
|
|
|
34619
34664
|
return generateUtilityClass("MuiPopover", slot);
|
|
34620
34665
|
}
|
|
34621
34666
|
generateUtilityClasses("MuiPopover", ["root", "paper"]);
|
|
34622
|
-
const _excluded$
|
|
34667
|
+
const _excluded$16 = ["onEntering"], _excluded2$8 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"], _excluded3$1 = ["slotProps"];
|
|
34623
34668
|
function getOffsetTop(rect, vertical) {
|
|
34624
34669
|
let offset2 = 0;
|
|
34625
34670
|
if (typeof vertical === "number") {
|
|
@@ -34648,7 +34693,7 @@ function getTransformOriginValue(transformOrigin2) {
|
|
|
34648
34693
|
function resolveAnchorEl(anchorEl) {
|
|
34649
34694
|
return typeof anchorEl === "function" ? anchorEl() : anchorEl;
|
|
34650
34695
|
}
|
|
34651
|
-
const useUtilityClasses$
|
|
34696
|
+
const useUtilityClasses$R = (ownerState) => {
|
|
34652
34697
|
const {
|
|
34653
34698
|
classes
|
|
34654
34699
|
} = ownerState;
|
|
@@ -34711,7 +34756,7 @@ const Popover = /* @__PURE__ */ React$2.forwardRef(function Popover2(inProps, re
|
|
|
34711
34756
|
onEntering
|
|
34712
34757
|
} = {},
|
|
34713
34758
|
disableScrollLock = false
|
|
34714
|
-
} = props, TransitionProps = _objectWithoutPropertiesLoose$1(props.TransitionProps, _excluded$
|
|
34759
|
+
} = props, TransitionProps = _objectWithoutPropertiesLoose$1(props.TransitionProps, _excluded$16), other = _objectWithoutPropertiesLoose$1(props, _excluded2$8);
|
|
34715
34760
|
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
34716
34761
|
const paperRef = React$2.useRef();
|
|
34717
34762
|
const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
|
|
@@ -34726,7 +34771,7 @@ const Popover = /* @__PURE__ */ React$2.forwardRef(function Popover2(inProps, re
|
|
|
34726
34771
|
transitionDuration: transitionDurationProp,
|
|
34727
34772
|
TransitionProps
|
|
34728
34773
|
});
|
|
34729
|
-
const classes = useUtilityClasses$
|
|
34774
|
+
const classes = useUtilityClasses$R(ownerState);
|
|
34730
34775
|
const getAnchorOffset = React$2.useCallback(() => {
|
|
34731
34776
|
if (anchorReference === "anchorPosition") {
|
|
34732
34777
|
return anchorPosition;
|
|
@@ -34907,7 +34952,7 @@ function getMenuUtilityClass(slot) {
|
|
|
34907
34952
|
return generateUtilityClass("MuiMenu", slot);
|
|
34908
34953
|
}
|
|
34909
34954
|
generateUtilityClasses("MuiMenu", ["root", "paper", "list"]);
|
|
34910
|
-
const _excluded$
|
|
34955
|
+
const _excluded$15 = ["onEntering"], _excluded2$7 = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"];
|
|
34911
34956
|
const RTL_ORIGIN = {
|
|
34912
34957
|
vertical: "top",
|
|
34913
34958
|
horizontal: "right"
|
|
@@ -34916,7 +34961,7 @@ const LTR_ORIGIN = {
|
|
|
34916
34961
|
vertical: "top",
|
|
34917
34962
|
horizontal: "left"
|
|
34918
34963
|
};
|
|
34919
|
-
const useUtilityClasses$
|
|
34964
|
+
const useUtilityClasses$Q = (ownerState) => {
|
|
34920
34965
|
const {
|
|
34921
34966
|
classes
|
|
34922
34967
|
} = ownerState;
|
|
@@ -34971,7 +35016,7 @@ const Menu = /* @__PURE__ */ React$2.forwardRef(function Menu2(inProps, ref) {
|
|
|
34971
35016
|
variant = "selectedMenu",
|
|
34972
35017
|
slots = {},
|
|
34973
35018
|
slotProps = {}
|
|
34974
|
-
} = props, TransitionProps = _objectWithoutPropertiesLoose$1(props.TransitionProps, _excluded$
|
|
35019
|
+
} = props, TransitionProps = _objectWithoutPropertiesLoose$1(props.TransitionProps, _excluded$15), other = _objectWithoutPropertiesLoose$1(props, _excluded2$7);
|
|
34975
35020
|
const isRtl = useRtl();
|
|
34976
35021
|
const ownerState = _extends$2({}, props, {
|
|
34977
35022
|
autoFocus,
|
|
@@ -34983,7 +35028,7 @@ const Menu = /* @__PURE__ */ React$2.forwardRef(function Menu2(inProps, ref) {
|
|
|
34983
35028
|
TransitionProps,
|
|
34984
35029
|
variant
|
|
34985
35030
|
});
|
|
34986
|
-
const classes = useUtilityClasses$
|
|
35031
|
+
const classes = useUtilityClasses$Q(ownerState);
|
|
34987
35032
|
const autoFocusItem = autoFocus && !disableAutoFocusItem && open;
|
|
34988
35033
|
const menuListActionsRef = React$2.useRef(null);
|
|
34989
35034
|
const handleEntering = (element, isAppearing) => {
|
|
@@ -35073,14 +35118,14 @@ function getMenuItemUtilityClass(slot) {
|
|
|
35073
35118
|
}
|
|
35074
35119
|
const menuItemClasses = generateUtilityClasses("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]);
|
|
35075
35120
|
var menuItemClasses$1 = menuItemClasses;
|
|
35076
|
-
const _excluded$
|
|
35121
|
+
const _excluded$14 = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"];
|
|
35077
35122
|
const overridesResolver = (props, styles2) => {
|
|
35078
35123
|
const {
|
|
35079
35124
|
ownerState
|
|
35080
35125
|
} = props;
|
|
35081
35126
|
return [styles2.root, ownerState.dense && styles2.dense, ownerState.divider && styles2.divider, !ownerState.disableGutters && styles2.gutters];
|
|
35082
35127
|
};
|
|
35083
|
-
const useUtilityClasses$
|
|
35128
|
+
const useUtilityClasses$P = (ownerState) => {
|
|
35084
35129
|
const {
|
|
35085
35130
|
disabled,
|
|
35086
35131
|
dense,
|
|
@@ -35191,7 +35236,7 @@ const MenuItem = /* @__PURE__ */ React$2.forwardRef(function MenuItem2(inProps,
|
|
|
35191
35236
|
role = "menuitem",
|
|
35192
35237
|
tabIndex: tabIndexProp,
|
|
35193
35238
|
className
|
|
35194
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
35239
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$14);
|
|
35195
35240
|
const context = React$2.useContext(ListContext$1);
|
|
35196
35241
|
const childContext = React$2.useMemo(() => ({
|
|
35197
35242
|
dense: dense || context.dense || false,
|
|
@@ -35210,7 +35255,7 @@ const MenuItem = /* @__PURE__ */ React$2.forwardRef(function MenuItem2(inProps,
|
|
|
35210
35255
|
divider,
|
|
35211
35256
|
disableGutters
|
|
35212
35257
|
});
|
|
35213
|
-
const classes = useUtilityClasses$
|
|
35258
|
+
const classes = useUtilityClasses$P(props);
|
|
35214
35259
|
const handleRef = useForkRef(menuItemRef, ref);
|
|
35215
35260
|
let tabIndex;
|
|
35216
35261
|
if (!props.disabled) {
|
|
@@ -35237,8 +35282,8 @@ function getNativeSelectUtilityClasses(slot) {
|
|
|
35237
35282
|
}
|
|
35238
35283
|
const nativeSelectClasses = generateUtilityClasses("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
35239
35284
|
var nativeSelectClasses$1 = nativeSelectClasses;
|
|
35240
|
-
const _excluded
|
|
35241
|
-
const useUtilityClasses$
|
|
35285
|
+
const _excluded$13 = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
|
|
35286
|
+
const useUtilityClasses$O = (ownerState) => {
|
|
35242
35287
|
const {
|
|
35243
35288
|
classes,
|
|
35244
35289
|
variant,
|
|
@@ -35348,13 +35393,13 @@ const NativeSelectInput = /* @__PURE__ */ React$2.forwardRef(function NativeSele
|
|
|
35348
35393
|
IconComponent,
|
|
35349
35394
|
inputRef,
|
|
35350
35395
|
variant = "standard"
|
|
35351
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded
|
|
35396
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$13);
|
|
35352
35397
|
const ownerState = _extends$2({}, props, {
|
|
35353
35398
|
disabled,
|
|
35354
35399
|
variant,
|
|
35355
35400
|
error
|
|
35356
35401
|
});
|
|
35357
|
-
const classes = useUtilityClasses$
|
|
35402
|
+
const classes = useUtilityClasses$O(ownerState);
|
|
35358
35403
|
return /* @__PURE__ */ jsxs(React$2.Fragment, {
|
|
35359
35404
|
children: [/* @__PURE__ */ jsx$1(NativeSelectSelect, _extends$2({
|
|
35360
35405
|
ownerState,
|
|
@@ -35370,7 +35415,7 @@ const NativeSelectInput = /* @__PURE__ */ React$2.forwardRef(function NativeSele
|
|
|
35370
35415
|
});
|
|
35371
35416
|
var NativeSelectInput$1 = NativeSelectInput;
|
|
35372
35417
|
var _span$1;
|
|
35373
|
-
const _excluded$
|
|
35418
|
+
const _excluded$12 = ["children", "classes", "className", "label", "notched"];
|
|
35374
35419
|
const NotchedOutlineRoot$1 = styled$1("fieldset", {
|
|
35375
35420
|
shouldForwardProp: rootShouldForwardProp$1
|
|
35376
35421
|
})({
|
|
@@ -35437,7 +35482,7 @@ function NotchedOutline(props) {
|
|
|
35437
35482
|
className,
|
|
35438
35483
|
label,
|
|
35439
35484
|
notched
|
|
35440
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
35485
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$12);
|
|
35441
35486
|
const withLabel = label != null && label !== "";
|
|
35442
35487
|
const ownerState = _extends$2({}, props, {
|
|
35443
35488
|
notched,
|
|
@@ -35459,8 +35504,8 @@ function NotchedOutline(props) {
|
|
|
35459
35504
|
})
|
|
35460
35505
|
}));
|
|
35461
35506
|
}
|
|
35462
|
-
const _excluded$
|
|
35463
|
-
const useUtilityClasses$
|
|
35507
|
+
const _excluded$11 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
|
|
35508
|
+
const useUtilityClasses$N = (ownerState) => {
|
|
35464
35509
|
const {
|
|
35465
35510
|
classes
|
|
35466
35511
|
} = ownerState;
|
|
@@ -35576,8 +35621,8 @@ const OutlinedInput = /* @__PURE__ */ React$2.forwardRef(function OutlinedInput2
|
|
|
35576
35621
|
notched,
|
|
35577
35622
|
slots = {},
|
|
35578
35623
|
type = "text"
|
|
35579
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
35580
|
-
const classes = useUtilityClasses$
|
|
35624
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$11);
|
|
35625
|
+
const classes = useUtilityClasses$N(props);
|
|
35581
35626
|
const muiFormControl = useFormControl();
|
|
35582
35627
|
const fcs = formControlState({
|
|
35583
35628
|
props,
|
|
@@ -35636,7 +35681,7 @@ function getSelectUtilityClasses(slot) {
|
|
|
35636
35681
|
const selectClasses = generateUtilityClasses("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
35637
35682
|
var selectClasses$1 = selectClasses;
|
|
35638
35683
|
var _span;
|
|
35639
|
-
const _excluded$
|
|
35684
|
+
const _excluded$10 = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "error", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
|
|
35640
35685
|
const SelectSelect = styled$1("div", {
|
|
35641
35686
|
name: "MuiSelect",
|
|
35642
35687
|
slot: "Select",
|
|
@@ -35701,7 +35746,7 @@ function areEqualValues(a, b2) {
|
|
|
35701
35746
|
function isEmpty(display) {
|
|
35702
35747
|
return display == null || typeof display === "string" && !display.trim();
|
|
35703
35748
|
}
|
|
35704
|
-
const useUtilityClasses$
|
|
35749
|
+
const useUtilityClasses$M = (ownerState) => {
|
|
35705
35750
|
const {
|
|
35706
35751
|
classes,
|
|
35707
35752
|
variant,
|
|
@@ -35749,7 +35794,7 @@ const SelectInput = /* @__PURE__ */ React$2.forwardRef(function SelectInput2(pro
|
|
|
35749
35794
|
tabIndex: tabIndexProp,
|
|
35750
35795
|
value: valueProp,
|
|
35751
35796
|
variant = "standard"
|
|
35752
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
35797
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$10);
|
|
35753
35798
|
const [value, setValueState] = useControlled({
|
|
35754
35799
|
controlled: valueProp,
|
|
35755
35800
|
default: defaultValue,
|
|
@@ -35995,7 +36040,7 @@ const SelectInput = /* @__PURE__ */ React$2.forwardRef(function SelectInput2(pro
|
|
|
35995
36040
|
open,
|
|
35996
36041
|
error
|
|
35997
36042
|
});
|
|
35998
|
-
const classes = useUtilityClasses$
|
|
36043
|
+
const classes = useUtilityClasses$M(ownerState);
|
|
35999
36044
|
const paperProps = _extends$2({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
36000
36045
|
const listboxId = useId();
|
|
36001
36046
|
return /* @__PURE__ */ jsxs(React$2.Fragment, {
|
|
@@ -36071,8 +36116,8 @@ const SelectInput = /* @__PURE__ */ React$2.forwardRef(function SelectInput2(pro
|
|
|
36071
36116
|
});
|
|
36072
36117
|
});
|
|
36073
36118
|
var SelectInput$1 = SelectInput;
|
|
36074
|
-
const _excluded
|
|
36075
|
-
const useUtilityClasses$
|
|
36119
|
+
const _excluded$$ = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"], _excluded2$6 = ["root"];
|
|
36120
|
+
const useUtilityClasses$L = (ownerState) => {
|
|
36076
36121
|
const {
|
|
36077
36122
|
classes
|
|
36078
36123
|
} = ownerState;
|
|
@@ -36114,7 +36159,7 @@ const Select = /* @__PURE__ */ React$2.forwardRef(function Select2(inProps, ref)
|
|
|
36114
36159
|
renderValue,
|
|
36115
36160
|
SelectDisplayProps,
|
|
36116
36161
|
variant: variantProp = "outlined"
|
|
36117
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded
|
|
36162
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$$);
|
|
36118
36163
|
const inputComponent = native2 ? NativeSelectInput$1 : SelectInput$1;
|
|
36119
36164
|
const muiFormControl = useFormControl();
|
|
36120
36165
|
const fcs = formControlState({
|
|
@@ -36127,7 +36172,7 @@ const Select = /* @__PURE__ */ React$2.forwardRef(function Select2(inProps, ref)
|
|
|
36127
36172
|
variant,
|
|
36128
36173
|
classes: classesProp
|
|
36129
36174
|
});
|
|
36130
|
-
const classes = useUtilityClasses$
|
|
36175
|
+
const classes = useUtilityClasses$L(ownerState);
|
|
36131
36176
|
const restOfClasses = _objectWithoutPropertiesLoose$1(classes, _excluded2$6);
|
|
36132
36177
|
const InputComponent = input || {
|
|
36133
36178
|
standard: /* @__PURE__ */ jsx$1(StyledInput, {
|
|
@@ -36186,9 +36231,9 @@ function getSkeletonUtilityClass(slot) {
|
|
|
36186
36231
|
return generateUtilityClass("MuiSkeleton", slot);
|
|
36187
36232
|
}
|
|
36188
36233
|
generateUtilityClasses("MuiSkeleton", ["root", "text", "rectangular", "rounded", "circular", "pulse", "wave", "withChildren", "fitContent", "heightAuto"]);
|
|
36189
|
-
const _excluded$
|
|
36234
|
+
const _excluded$_ = ["animation", "className", "component", "height", "style", "variant", "width"];
|
|
36190
36235
|
let _ = (t2) => t2, _t, _t2, _t3, _t4;
|
|
36191
|
-
const useUtilityClasses$
|
|
36236
|
+
const useUtilityClasses$K = (ownerState) => {
|
|
36192
36237
|
const {
|
|
36193
36238
|
classes,
|
|
36194
36239
|
variant,
|
|
@@ -36315,14 +36360,14 @@ const Skeleton = /* @__PURE__ */ React$2.forwardRef(function Skeleton2(inProps,
|
|
|
36315
36360
|
style: style2,
|
|
36316
36361
|
variant = "text",
|
|
36317
36362
|
width: width2
|
|
36318
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
36363
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$_);
|
|
36319
36364
|
const ownerState = _extends$2({}, props, {
|
|
36320
36365
|
animation,
|
|
36321
36366
|
component,
|
|
36322
36367
|
variant,
|
|
36323
36368
|
hasChildren: Boolean(other.children)
|
|
36324
36369
|
});
|
|
36325
|
-
const classes = useUtilityClasses$
|
|
36370
|
+
const classes = useUtilityClasses$K(ownerState);
|
|
36326
36371
|
return /* @__PURE__ */ jsx$1(SkeletonRoot, _extends$2({
|
|
36327
36372
|
as: component,
|
|
36328
36373
|
ref,
|
|
@@ -36341,11 +36386,11 @@ function getTooltipUtilityClass(slot) {
|
|
|
36341
36386
|
}
|
|
36342
36387
|
const tooltipClasses = generateUtilityClasses("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
|
|
36343
36388
|
var tooltipClasses$1 = tooltipClasses;
|
|
36344
|
-
const _excluded$
|
|
36389
|
+
const _excluded$Z = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
|
|
36345
36390
|
function round(value) {
|
|
36346
36391
|
return Math.round(value * 1e5) / 1e5;
|
|
36347
36392
|
}
|
|
36348
|
-
const useUtilityClasses$
|
|
36393
|
+
const useUtilityClasses$J = (ownerState) => {
|
|
36349
36394
|
const {
|
|
36350
36395
|
classes,
|
|
36351
36396
|
disableInteractive,
|
|
@@ -36560,7 +36605,7 @@ const Tooltip = /* @__PURE__ */ React$2.forwardRef(function Tooltip2(inProps, re
|
|
|
36560
36605
|
title,
|
|
36561
36606
|
TransitionComponent: TransitionComponentProp = Grow$1,
|
|
36562
36607
|
TransitionProps
|
|
36563
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
36608
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$Z);
|
|
36564
36609
|
const children = /* @__PURE__ */ React$2.isValidElement(childrenProp) ? childrenProp : /* @__PURE__ */ jsx$1("span", {
|
|
36565
36610
|
children: childrenProp
|
|
36566
36611
|
});
|
|
@@ -36782,7 +36827,7 @@ const Tooltip = /* @__PURE__ */ React$2.forwardRef(function Tooltip2(inProps, re
|
|
|
36782
36827
|
PopperComponentProp,
|
|
36783
36828
|
touch: ignoreNonTouchEvents.current
|
|
36784
36829
|
});
|
|
36785
|
-
const classes = useUtilityClasses$
|
|
36830
|
+
const classes = useUtilityClasses$J(ownerState);
|
|
36786
36831
|
const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;
|
|
36787
36832
|
const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow$1;
|
|
36788
36833
|
const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;
|
|
@@ -36837,8 +36882,8 @@ function getSwitchUtilityClass(slot) {
|
|
|
36837
36882
|
}
|
|
36838
36883
|
const switchClasses = generateUtilityClasses("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]);
|
|
36839
36884
|
var switchClasses$1 = switchClasses;
|
|
36840
|
-
const _excluded$
|
|
36841
|
-
const useUtilityClasses$
|
|
36885
|
+
const _excluded$Y = ["className", "color", "edge", "size", "sx"];
|
|
36886
|
+
const useUtilityClasses$I = (ownerState) => {
|
|
36842
36887
|
const {
|
|
36843
36888
|
classes,
|
|
36844
36889
|
edge,
|
|
@@ -37026,13 +37071,13 @@ const Switch = /* @__PURE__ */ React$2.forwardRef(function Switch2(inProps, ref)
|
|
|
37026
37071
|
edge = false,
|
|
37027
37072
|
size = "medium",
|
|
37028
37073
|
sx
|
|
37029
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
37074
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$Y);
|
|
37030
37075
|
const ownerState = _extends$2({}, props, {
|
|
37031
37076
|
color: color2,
|
|
37032
37077
|
edge,
|
|
37033
37078
|
size
|
|
37034
37079
|
});
|
|
37035
|
-
const classes = useUtilityClasses$
|
|
37080
|
+
const classes = useUtilityClasses$I(ownerState);
|
|
37036
37081
|
const icon = /* @__PURE__ */ jsx$1(SwitchThumb, {
|
|
37037
37082
|
className: classes.thumb,
|
|
37038
37083
|
ownerState
|
|
@@ -37058,6 +37103,177 @@ const Switch = /* @__PURE__ */ React$2.forwardRef(function Switch2(inProps, ref)
|
|
|
37058
37103
|
});
|
|
37059
37104
|
});
|
|
37060
37105
|
var MUISwitch = Switch;
|
|
37106
|
+
function getTabUtilityClass(slot) {
|
|
37107
|
+
return generateUtilityClass("MuiTab", slot);
|
|
37108
|
+
}
|
|
37109
|
+
const tabClasses = generateUtilityClasses("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]);
|
|
37110
|
+
var tabClasses$1 = tabClasses;
|
|
37111
|
+
const _excluded$X = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"];
|
|
37112
|
+
const useUtilityClasses$H = (ownerState) => {
|
|
37113
|
+
const {
|
|
37114
|
+
classes,
|
|
37115
|
+
textColor,
|
|
37116
|
+
fullWidth,
|
|
37117
|
+
wrapped,
|
|
37118
|
+
icon,
|
|
37119
|
+
label,
|
|
37120
|
+
selected,
|
|
37121
|
+
disabled
|
|
37122
|
+
} = ownerState;
|
|
37123
|
+
const slots = {
|
|
37124
|
+
root: ["root", icon && label && "labelIcon", `textColor${capitalize$1(textColor)}`, fullWidth && "fullWidth", wrapped && "wrapped", selected && "selected", disabled && "disabled"],
|
|
37125
|
+
iconWrapper: ["iconWrapper"]
|
|
37126
|
+
};
|
|
37127
|
+
return composeClasses(slots, getTabUtilityClass, classes);
|
|
37128
|
+
};
|
|
37129
|
+
const TabRoot = styled$1(ButtonBase$1, {
|
|
37130
|
+
name: "MuiTab",
|
|
37131
|
+
slot: "Root",
|
|
37132
|
+
overridesResolver: (props, styles2) => {
|
|
37133
|
+
const {
|
|
37134
|
+
ownerState
|
|
37135
|
+
} = props;
|
|
37136
|
+
return [styles2.root, ownerState.label && ownerState.icon && styles2.labelIcon, styles2[`textColor${capitalize$1(ownerState.textColor)}`], ownerState.fullWidth && styles2.fullWidth, ownerState.wrapped && styles2.wrapped, {
|
|
37137
|
+
[`& .${tabClasses$1.iconWrapper}`]: styles2.iconWrapper
|
|
37138
|
+
}];
|
|
37139
|
+
}
|
|
37140
|
+
})(({
|
|
37141
|
+
theme,
|
|
37142
|
+
ownerState
|
|
37143
|
+
}) => _extends$2({}, theme.typography.button, {
|
|
37144
|
+
maxWidth: 360,
|
|
37145
|
+
minWidth: 90,
|
|
37146
|
+
position: "relative",
|
|
37147
|
+
minHeight: 48,
|
|
37148
|
+
flexShrink: 0,
|
|
37149
|
+
padding: "12px 16px",
|
|
37150
|
+
overflow: "hidden",
|
|
37151
|
+
whiteSpace: "normal",
|
|
37152
|
+
textAlign: "center"
|
|
37153
|
+
}, ownerState.label && {
|
|
37154
|
+
flexDirection: ownerState.iconPosition === "top" || ownerState.iconPosition === "bottom" ? "column" : "row"
|
|
37155
|
+
}, {
|
|
37156
|
+
lineHeight: 1.25
|
|
37157
|
+
}, ownerState.icon && ownerState.label && {
|
|
37158
|
+
minHeight: 72,
|
|
37159
|
+
paddingTop: 9,
|
|
37160
|
+
paddingBottom: 9,
|
|
37161
|
+
[`& > .${tabClasses$1.iconWrapper}`]: _extends$2({}, ownerState.iconPosition === "top" && {
|
|
37162
|
+
marginBottom: 6
|
|
37163
|
+
}, ownerState.iconPosition === "bottom" && {
|
|
37164
|
+
marginTop: 6
|
|
37165
|
+
}, ownerState.iconPosition === "start" && {
|
|
37166
|
+
marginRight: theme.spacing(1)
|
|
37167
|
+
}, ownerState.iconPosition === "end" && {
|
|
37168
|
+
marginLeft: theme.spacing(1)
|
|
37169
|
+
})
|
|
37170
|
+
}, ownerState.textColor === "inherit" && {
|
|
37171
|
+
color: "inherit",
|
|
37172
|
+
opacity: 0.6,
|
|
37173
|
+
[`&.${tabClasses$1.selected}`]: {
|
|
37174
|
+
opacity: 1
|
|
37175
|
+
},
|
|
37176
|
+
[`&.${tabClasses$1.disabled}`]: {
|
|
37177
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
37178
|
+
}
|
|
37179
|
+
}, ownerState.textColor === "primary" && {
|
|
37180
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
37181
|
+
[`&.${tabClasses$1.selected}`]: {
|
|
37182
|
+
color: (theme.vars || theme).palette.primary.main
|
|
37183
|
+
},
|
|
37184
|
+
[`&.${tabClasses$1.disabled}`]: {
|
|
37185
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
37186
|
+
}
|
|
37187
|
+
}, ownerState.textColor === "secondary" && {
|
|
37188
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
37189
|
+
[`&.${tabClasses$1.selected}`]: {
|
|
37190
|
+
color: (theme.vars || theme).palette.secondary.main
|
|
37191
|
+
},
|
|
37192
|
+
[`&.${tabClasses$1.disabled}`]: {
|
|
37193
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
37194
|
+
}
|
|
37195
|
+
}, ownerState.fullWidth && {
|
|
37196
|
+
flexShrink: 1,
|
|
37197
|
+
flexGrow: 1,
|
|
37198
|
+
flexBasis: 0,
|
|
37199
|
+
maxWidth: "none"
|
|
37200
|
+
}, ownerState.wrapped && {
|
|
37201
|
+
fontSize: theme.typography.pxToRem(12)
|
|
37202
|
+
}));
|
|
37203
|
+
const Tab = /* @__PURE__ */ React$2.forwardRef(function Tab2(inProps, ref) {
|
|
37204
|
+
const props = useDefaultProps({
|
|
37205
|
+
props: inProps,
|
|
37206
|
+
name: "MuiTab"
|
|
37207
|
+
});
|
|
37208
|
+
const {
|
|
37209
|
+
className,
|
|
37210
|
+
disabled = false,
|
|
37211
|
+
disableFocusRipple = false,
|
|
37212
|
+
fullWidth,
|
|
37213
|
+
icon: iconProp,
|
|
37214
|
+
iconPosition = "top",
|
|
37215
|
+
indicator,
|
|
37216
|
+
label,
|
|
37217
|
+
onChange,
|
|
37218
|
+
onClick,
|
|
37219
|
+
onFocus,
|
|
37220
|
+
selected,
|
|
37221
|
+
selectionFollowsFocus,
|
|
37222
|
+
textColor = "inherit",
|
|
37223
|
+
value,
|
|
37224
|
+
wrapped = false
|
|
37225
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$X);
|
|
37226
|
+
const ownerState = _extends$2({}, props, {
|
|
37227
|
+
disabled,
|
|
37228
|
+
disableFocusRipple,
|
|
37229
|
+
selected,
|
|
37230
|
+
icon: !!iconProp,
|
|
37231
|
+
iconPosition,
|
|
37232
|
+
label: !!label,
|
|
37233
|
+
fullWidth,
|
|
37234
|
+
textColor,
|
|
37235
|
+
wrapped
|
|
37236
|
+
});
|
|
37237
|
+
const classes = useUtilityClasses$H(ownerState);
|
|
37238
|
+
const icon = iconProp && label && /* @__PURE__ */ React$2.isValidElement(iconProp) ? /* @__PURE__ */ React$2.cloneElement(iconProp, {
|
|
37239
|
+
className: clsx(classes.iconWrapper, iconProp.props.className)
|
|
37240
|
+
}) : iconProp;
|
|
37241
|
+
const handleClick = (event) => {
|
|
37242
|
+
if (!selected && onChange) {
|
|
37243
|
+
onChange(event, value);
|
|
37244
|
+
}
|
|
37245
|
+
if (onClick) {
|
|
37246
|
+
onClick(event);
|
|
37247
|
+
}
|
|
37248
|
+
};
|
|
37249
|
+
const handleFocus = (event) => {
|
|
37250
|
+
if (selectionFollowsFocus && !selected && onChange) {
|
|
37251
|
+
onChange(event, value);
|
|
37252
|
+
}
|
|
37253
|
+
if (onFocus) {
|
|
37254
|
+
onFocus(event);
|
|
37255
|
+
}
|
|
37256
|
+
};
|
|
37257
|
+
return /* @__PURE__ */ jsxs(TabRoot, _extends$2({
|
|
37258
|
+
focusRipple: !disableFocusRipple,
|
|
37259
|
+
className: clsx(classes.root, className),
|
|
37260
|
+
ref,
|
|
37261
|
+
role: "tab",
|
|
37262
|
+
"aria-selected": selected,
|
|
37263
|
+
disabled,
|
|
37264
|
+
onClick: handleClick,
|
|
37265
|
+
onFocus: handleFocus,
|
|
37266
|
+
ownerState,
|
|
37267
|
+
tabIndex: selected ? 0 : -1
|
|
37268
|
+
}, other, {
|
|
37269
|
+
children: [iconPosition === "top" || iconPosition === "start" ? /* @__PURE__ */ jsxs(React$2.Fragment, {
|
|
37270
|
+
children: [icon, label]
|
|
37271
|
+
}) : /* @__PURE__ */ jsxs(React$2.Fragment, {
|
|
37272
|
+
children: [label, icon]
|
|
37273
|
+
}), indicator]
|
|
37274
|
+
}));
|
|
37275
|
+
});
|
|
37276
|
+
var Tab$1 = Tab;
|
|
37061
37277
|
const TableContext = /* @__PURE__ */ React$2.createContext();
|
|
37062
37278
|
var TableContext$1 = TableContext;
|
|
37063
37279
|
const Tablelvl2Context = /* @__PURE__ */ React$2.createContext();
|
|
@@ -37067,8 +37283,8 @@ function getTableCellUtilityClass(slot) {
|
|
|
37067
37283
|
}
|
|
37068
37284
|
const tableCellClasses = generateUtilityClasses("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]);
|
|
37069
37285
|
var tableCellClasses$1 = tableCellClasses;
|
|
37070
|
-
const _excluded$
|
|
37071
|
-
const useUtilityClasses$
|
|
37286
|
+
const _excluded$W = ["align", "className", "component", "padding", "scope", "size", "sortDirection", "variant"];
|
|
37287
|
+
const useUtilityClasses$G = (ownerState) => {
|
|
37072
37288
|
const {
|
|
37073
37289
|
classes,
|
|
37074
37290
|
variant,
|
|
@@ -37154,7 +37370,7 @@ const TableCell = /* @__PURE__ */ React$2.forwardRef(function TableCell2(inProps
|
|
|
37154
37370
|
size: sizeProp,
|
|
37155
37371
|
sortDirection,
|
|
37156
37372
|
variant: variantProp
|
|
37157
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
37373
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$W);
|
|
37158
37374
|
const table = React$2.useContext(TableContext$1);
|
|
37159
37375
|
const tablelvl2 = React$2.useContext(Tablelvl2Context$1);
|
|
37160
37376
|
const isHeadCell = tablelvl2 && tablelvl2.variant === "head";
|
|
@@ -37180,7 +37396,7 @@ const TableCell = /* @__PURE__ */ React$2.forwardRef(function TableCell2(inProps
|
|
|
37180
37396
|
stickyHeader: variant === "head" && table && table.stickyHeader,
|
|
37181
37397
|
variant
|
|
37182
37398
|
});
|
|
37183
|
-
const classes = useUtilityClasses$
|
|
37399
|
+
const classes = useUtilityClasses$G(ownerState);
|
|
37184
37400
|
let ariaSort = null;
|
|
37185
37401
|
if (sortDirection) {
|
|
37186
37402
|
ariaSort = sortDirection === "asc" ? "ascending" : "descending";
|
|
@@ -37199,8 +37415,8 @@ function getToolbarUtilityClass(slot) {
|
|
|
37199
37415
|
return generateUtilityClass("MuiToolbar", slot);
|
|
37200
37416
|
}
|
|
37201
37417
|
generateUtilityClasses("MuiToolbar", ["root", "gutters", "regular", "dense"]);
|
|
37202
|
-
const _excluded$
|
|
37203
|
-
const useUtilityClasses$
|
|
37418
|
+
const _excluded$V = ["className", "component", "disableGutters", "variant"];
|
|
37419
|
+
const useUtilityClasses$F = (ownerState) => {
|
|
37204
37420
|
const {
|
|
37205
37421
|
classes,
|
|
37206
37422
|
disableGutters,
|
|
@@ -37250,13 +37466,13 @@ const Toolbar = /* @__PURE__ */ React$2.forwardRef(function Toolbar2(inProps, re
|
|
|
37250
37466
|
component = "div",
|
|
37251
37467
|
disableGutters = false,
|
|
37252
37468
|
variant = "regular"
|
|
37253
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
37469
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$V);
|
|
37254
37470
|
const ownerState = _extends$2({}, props, {
|
|
37255
37471
|
component,
|
|
37256
37472
|
disableGutters,
|
|
37257
37473
|
variant
|
|
37258
37474
|
});
|
|
37259
|
-
const classes = useUtilityClasses$
|
|
37475
|
+
const classes = useUtilityClasses$F(ownerState);
|
|
37260
37476
|
return /* @__PURE__ */ jsx$1(ToolbarRoot, _extends$2({
|
|
37261
37477
|
as: component,
|
|
37262
37478
|
className: clsx(classes.root, className),
|
|
@@ -37271,7 +37487,7 @@ var KeyboardArrowLeft = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
|
37271
37487
|
var KeyboardArrowRight = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
37272
37488
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
37273
37489
|
}), "KeyboardArrowRight");
|
|
37274
|
-
const _excluded$
|
|
37490
|
+
const _excluded$U = ["backIconButtonProps", "count", "disabled", "getItemAriaLabel", "nextIconButtonProps", "onPageChange", "page", "rowsPerPage", "showFirstButton", "showLastButton", "slots", "slotProps"];
|
|
37275
37491
|
const TablePaginationActions = /* @__PURE__ */ React$2.forwardRef(function TablePaginationActions2(props, ref) {
|
|
37276
37492
|
var _slots$firstButton, _slots$lastButton, _slots$nextButton, _slots$previousButton, _slots$firstButtonIco, _slots$lastButtonIcon, _slots$nextButtonIcon, _slots$previousButton2;
|
|
37277
37493
|
const {
|
|
@@ -37287,7 +37503,7 @@ const TablePaginationActions = /* @__PURE__ */ React$2.forwardRef(function Table
|
|
|
37287
37503
|
showLastButton,
|
|
37288
37504
|
slots = {},
|
|
37289
37505
|
slotProps = {}
|
|
37290
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
37506
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$U);
|
|
37291
37507
|
const isRtl = useRtl();
|
|
37292
37508
|
const handleFirstPageButtonClick = (event) => {
|
|
37293
37509
|
onPageChange(event, 0);
|
|
@@ -37360,7 +37576,7 @@ function getTablePaginationUtilityClass(slot) {
|
|
|
37360
37576
|
const tablePaginationClasses = generateUtilityClasses("MuiTablePagination", ["root", "toolbar", "spacer", "selectLabel", "selectRoot", "select", "selectIcon", "input", "menuItem", "displayedRows", "actions"]);
|
|
37361
37577
|
var tablePaginationClasses$1 = tablePaginationClasses;
|
|
37362
37578
|
var _InputBase;
|
|
37363
|
-
const _excluded$
|
|
37579
|
+
const _excluded$T = ["ActionsComponent", "backIconButtonProps", "className", "colSpan", "component", "count", "disabled", "getItemAriaLabel", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "onPageChange", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps", "showFirstButton", "showLastButton", "slotProps", "slots"];
|
|
37364
37580
|
const TablePaginationRoot = styled$1(TableCell$1, {
|
|
37365
37581
|
name: "MuiTablePagination",
|
|
37366
37582
|
slot: "Root",
|
|
@@ -37458,7 +37674,7 @@ function defaultLabelDisplayedRows({
|
|
|
37458
37674
|
function defaultGetAriaLabel(type) {
|
|
37459
37675
|
return `Go to ${type} page`;
|
|
37460
37676
|
}
|
|
37461
|
-
const useUtilityClasses$
|
|
37677
|
+
const useUtilityClasses$E = (ownerState) => {
|
|
37462
37678
|
const {
|
|
37463
37679
|
classes
|
|
37464
37680
|
} = ownerState;
|
|
@@ -37504,9 +37720,9 @@ const TablePagination = /* @__PURE__ */ React$2.forwardRef(function TablePaginat
|
|
|
37504
37720
|
showLastButton = false,
|
|
37505
37721
|
slotProps = {},
|
|
37506
37722
|
slots = {}
|
|
37507
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
37723
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$T);
|
|
37508
37724
|
const ownerState = props;
|
|
37509
|
-
const classes = useUtilityClasses$
|
|
37725
|
+
const classes = useUtilityClasses$E(ownerState);
|
|
37510
37726
|
const selectProps = (_slotProps$select = slotProps == null ? void 0 : slotProps.select) != null ? _slotProps$select : SelectProps;
|
|
37511
37727
|
const MenuItemComponent = selectProps.native ? "option" : TablePaginationMenuItem;
|
|
37512
37728
|
let colSpan;
|
|
@@ -37586,6 +37802,777 @@ const TablePagination = /* @__PURE__ */ React$2.forwardRef(function TablePaginat
|
|
|
37586
37802
|
}));
|
|
37587
37803
|
});
|
|
37588
37804
|
var TablePagination$1 = TablePagination;
|
|
37805
|
+
function easeInOutSin(time) {
|
|
37806
|
+
return (1 + Math.sin(Math.PI * time - Math.PI / 2)) / 2;
|
|
37807
|
+
}
|
|
37808
|
+
function animate(property2, element, to, options = {}, cb = () => {
|
|
37809
|
+
}) {
|
|
37810
|
+
const {
|
|
37811
|
+
ease = easeInOutSin,
|
|
37812
|
+
duration: duration2 = 300
|
|
37813
|
+
} = options;
|
|
37814
|
+
let start2 = null;
|
|
37815
|
+
const from2 = element[property2];
|
|
37816
|
+
let cancelled = false;
|
|
37817
|
+
const cancel = () => {
|
|
37818
|
+
cancelled = true;
|
|
37819
|
+
};
|
|
37820
|
+
const step = (timestamp) => {
|
|
37821
|
+
if (cancelled) {
|
|
37822
|
+
cb(new Error("Animation cancelled"));
|
|
37823
|
+
return;
|
|
37824
|
+
}
|
|
37825
|
+
if (start2 === null) {
|
|
37826
|
+
start2 = timestamp;
|
|
37827
|
+
}
|
|
37828
|
+
const time = Math.min(1, (timestamp - start2) / duration2);
|
|
37829
|
+
element[property2] = ease(time) * (to - from2) + from2;
|
|
37830
|
+
if (time >= 1) {
|
|
37831
|
+
requestAnimationFrame(() => {
|
|
37832
|
+
cb(null);
|
|
37833
|
+
});
|
|
37834
|
+
return;
|
|
37835
|
+
}
|
|
37836
|
+
requestAnimationFrame(step);
|
|
37837
|
+
};
|
|
37838
|
+
if (from2 === to) {
|
|
37839
|
+
cb(new Error("Element already at target position"));
|
|
37840
|
+
return cancel;
|
|
37841
|
+
}
|
|
37842
|
+
requestAnimationFrame(step);
|
|
37843
|
+
return cancel;
|
|
37844
|
+
}
|
|
37845
|
+
const _excluded$S = ["onChange"];
|
|
37846
|
+
const styles = {
|
|
37847
|
+
width: 99,
|
|
37848
|
+
height: 99,
|
|
37849
|
+
position: "absolute",
|
|
37850
|
+
top: -9999,
|
|
37851
|
+
overflow: "scroll"
|
|
37852
|
+
};
|
|
37853
|
+
function ScrollbarSize(props) {
|
|
37854
|
+
const {
|
|
37855
|
+
onChange
|
|
37856
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$S);
|
|
37857
|
+
const scrollbarHeight = React$2.useRef();
|
|
37858
|
+
const nodeRef = React$2.useRef(null);
|
|
37859
|
+
const setMeasurements = () => {
|
|
37860
|
+
scrollbarHeight.current = nodeRef.current.offsetHeight - nodeRef.current.clientHeight;
|
|
37861
|
+
};
|
|
37862
|
+
useEnhancedEffect$1(() => {
|
|
37863
|
+
const handleResize = debounce$1(() => {
|
|
37864
|
+
const prevHeight = scrollbarHeight.current;
|
|
37865
|
+
setMeasurements();
|
|
37866
|
+
if (prevHeight !== scrollbarHeight.current) {
|
|
37867
|
+
onChange(scrollbarHeight.current);
|
|
37868
|
+
}
|
|
37869
|
+
});
|
|
37870
|
+
const containerWindow = ownerWindow(nodeRef.current);
|
|
37871
|
+
containerWindow.addEventListener("resize", handleResize);
|
|
37872
|
+
return () => {
|
|
37873
|
+
handleResize.clear();
|
|
37874
|
+
containerWindow.removeEventListener("resize", handleResize);
|
|
37875
|
+
};
|
|
37876
|
+
}, [onChange]);
|
|
37877
|
+
React$2.useEffect(() => {
|
|
37878
|
+
setMeasurements();
|
|
37879
|
+
onChange(scrollbarHeight.current);
|
|
37880
|
+
}, [onChange]);
|
|
37881
|
+
return /* @__PURE__ */ jsx$1("div", _extends$2({
|
|
37882
|
+
style: styles
|
|
37883
|
+
}, other, {
|
|
37884
|
+
ref: nodeRef
|
|
37885
|
+
}));
|
|
37886
|
+
}
|
|
37887
|
+
function getTabScrollButtonUtilityClass(slot) {
|
|
37888
|
+
return generateUtilityClass("MuiTabScrollButton", slot);
|
|
37889
|
+
}
|
|
37890
|
+
const tabScrollButtonClasses = generateUtilityClasses("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]);
|
|
37891
|
+
var tabScrollButtonClasses$1 = tabScrollButtonClasses;
|
|
37892
|
+
const _excluded$R = ["className", "slots", "slotProps", "direction", "orientation", "disabled"];
|
|
37893
|
+
const useUtilityClasses$D = (ownerState) => {
|
|
37894
|
+
const {
|
|
37895
|
+
classes,
|
|
37896
|
+
orientation,
|
|
37897
|
+
disabled
|
|
37898
|
+
} = ownerState;
|
|
37899
|
+
const slots = {
|
|
37900
|
+
root: ["root", orientation, disabled && "disabled"]
|
|
37901
|
+
};
|
|
37902
|
+
return composeClasses(slots, getTabScrollButtonUtilityClass, classes);
|
|
37903
|
+
};
|
|
37904
|
+
const TabScrollButtonRoot = styled$1(ButtonBase$1, {
|
|
37905
|
+
name: "MuiTabScrollButton",
|
|
37906
|
+
slot: "Root",
|
|
37907
|
+
overridesResolver: (props, styles2) => {
|
|
37908
|
+
const {
|
|
37909
|
+
ownerState
|
|
37910
|
+
} = props;
|
|
37911
|
+
return [styles2.root, ownerState.orientation && styles2[ownerState.orientation]];
|
|
37912
|
+
}
|
|
37913
|
+
})(({
|
|
37914
|
+
ownerState
|
|
37915
|
+
}) => _extends$2({
|
|
37916
|
+
width: 40,
|
|
37917
|
+
flexShrink: 0,
|
|
37918
|
+
opacity: 0.8,
|
|
37919
|
+
[`&.${tabScrollButtonClasses$1.disabled}`]: {
|
|
37920
|
+
opacity: 0
|
|
37921
|
+
}
|
|
37922
|
+
}, ownerState.orientation === "vertical" && {
|
|
37923
|
+
width: "100%",
|
|
37924
|
+
height: 40,
|
|
37925
|
+
"& svg": {
|
|
37926
|
+
transform: `rotate(${ownerState.isRtl ? -90 : 90}deg)`
|
|
37927
|
+
}
|
|
37928
|
+
}));
|
|
37929
|
+
const TabScrollButton = /* @__PURE__ */ React$2.forwardRef(function TabScrollButton2(inProps, ref) {
|
|
37930
|
+
var _slots$StartScrollBut, _slots$EndScrollButto;
|
|
37931
|
+
const props = useDefaultProps({
|
|
37932
|
+
props: inProps,
|
|
37933
|
+
name: "MuiTabScrollButton"
|
|
37934
|
+
});
|
|
37935
|
+
const {
|
|
37936
|
+
className,
|
|
37937
|
+
slots = {},
|
|
37938
|
+
slotProps = {},
|
|
37939
|
+
direction
|
|
37940
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$R);
|
|
37941
|
+
const isRtl = useRtl();
|
|
37942
|
+
const ownerState = _extends$2({
|
|
37943
|
+
isRtl
|
|
37944
|
+
}, props);
|
|
37945
|
+
const classes = useUtilityClasses$D(ownerState);
|
|
37946
|
+
const StartButtonIcon = (_slots$StartScrollBut = slots.StartScrollButtonIcon) != null ? _slots$StartScrollBut : KeyboardArrowLeft;
|
|
37947
|
+
const EndButtonIcon = (_slots$EndScrollButto = slots.EndScrollButtonIcon) != null ? _slots$EndScrollButto : KeyboardArrowRight;
|
|
37948
|
+
const startButtonIconProps = useSlotProps({
|
|
37949
|
+
elementType: StartButtonIcon,
|
|
37950
|
+
externalSlotProps: slotProps.startScrollButtonIcon,
|
|
37951
|
+
additionalProps: {
|
|
37952
|
+
fontSize: "small"
|
|
37953
|
+
},
|
|
37954
|
+
ownerState
|
|
37955
|
+
});
|
|
37956
|
+
const endButtonIconProps = useSlotProps({
|
|
37957
|
+
elementType: EndButtonIcon,
|
|
37958
|
+
externalSlotProps: slotProps.endScrollButtonIcon,
|
|
37959
|
+
additionalProps: {
|
|
37960
|
+
fontSize: "small"
|
|
37961
|
+
},
|
|
37962
|
+
ownerState
|
|
37963
|
+
});
|
|
37964
|
+
return /* @__PURE__ */ jsx$1(TabScrollButtonRoot, _extends$2({
|
|
37965
|
+
component: "div",
|
|
37966
|
+
className: clsx(classes.root, className),
|
|
37967
|
+
ref,
|
|
37968
|
+
role: null,
|
|
37969
|
+
ownerState,
|
|
37970
|
+
tabIndex: null
|
|
37971
|
+
}, other, {
|
|
37972
|
+
children: direction === "left" ? /* @__PURE__ */ jsx$1(StartButtonIcon, _extends$2({}, startButtonIconProps)) : /* @__PURE__ */ jsx$1(EndButtonIcon, _extends$2({}, endButtonIconProps))
|
|
37973
|
+
}));
|
|
37974
|
+
});
|
|
37975
|
+
var TabScrollButton$1 = TabScrollButton;
|
|
37976
|
+
function getTabsUtilityClass(slot) {
|
|
37977
|
+
return generateUtilityClass("MuiTabs", slot);
|
|
37978
|
+
}
|
|
37979
|
+
const tabsClasses = generateUtilityClasses("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]);
|
|
37980
|
+
var tabsClasses$1 = tabsClasses;
|
|
37981
|
+
const _excluded$Q = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"];
|
|
37982
|
+
const nextItem = (list, item) => {
|
|
37983
|
+
if (list === item) {
|
|
37984
|
+
return list.firstChild;
|
|
37985
|
+
}
|
|
37986
|
+
if (item && item.nextElementSibling) {
|
|
37987
|
+
return item.nextElementSibling;
|
|
37988
|
+
}
|
|
37989
|
+
return list.firstChild;
|
|
37990
|
+
};
|
|
37991
|
+
const previousItem = (list, item) => {
|
|
37992
|
+
if (list === item) {
|
|
37993
|
+
return list.lastChild;
|
|
37994
|
+
}
|
|
37995
|
+
if (item && item.previousElementSibling) {
|
|
37996
|
+
return item.previousElementSibling;
|
|
37997
|
+
}
|
|
37998
|
+
return list.lastChild;
|
|
37999
|
+
};
|
|
38000
|
+
const moveFocus = (list, currentFocus, traversalFunction) => {
|
|
38001
|
+
let wrappedOnce = false;
|
|
38002
|
+
let nextFocus = traversalFunction(list, currentFocus);
|
|
38003
|
+
while (nextFocus) {
|
|
38004
|
+
if (nextFocus === list.firstChild) {
|
|
38005
|
+
if (wrappedOnce) {
|
|
38006
|
+
return;
|
|
38007
|
+
}
|
|
38008
|
+
wrappedOnce = true;
|
|
38009
|
+
}
|
|
38010
|
+
const nextFocusDisabled = nextFocus.disabled || nextFocus.getAttribute("aria-disabled") === "true";
|
|
38011
|
+
if (!nextFocus.hasAttribute("tabindex") || nextFocusDisabled) {
|
|
38012
|
+
nextFocus = traversalFunction(list, nextFocus);
|
|
38013
|
+
} else {
|
|
38014
|
+
nextFocus.focus();
|
|
38015
|
+
return;
|
|
38016
|
+
}
|
|
38017
|
+
}
|
|
38018
|
+
};
|
|
38019
|
+
const useUtilityClasses$C = (ownerState) => {
|
|
38020
|
+
const {
|
|
38021
|
+
vertical,
|
|
38022
|
+
fixed,
|
|
38023
|
+
hideScrollbar,
|
|
38024
|
+
scrollableX,
|
|
38025
|
+
scrollableY,
|
|
38026
|
+
centered,
|
|
38027
|
+
scrollButtonsHideMobile,
|
|
38028
|
+
classes
|
|
38029
|
+
} = ownerState;
|
|
38030
|
+
const slots = {
|
|
38031
|
+
root: ["root", vertical && "vertical"],
|
|
38032
|
+
scroller: ["scroller", fixed && "fixed", hideScrollbar && "hideScrollbar", scrollableX && "scrollableX", scrollableY && "scrollableY"],
|
|
38033
|
+
flexContainer: ["flexContainer", vertical && "flexContainerVertical", centered && "centered"],
|
|
38034
|
+
indicator: ["indicator"],
|
|
38035
|
+
scrollButtons: ["scrollButtons", scrollButtonsHideMobile && "scrollButtonsHideMobile"],
|
|
38036
|
+
scrollableX: [scrollableX && "scrollableX"],
|
|
38037
|
+
hideScrollbar: [hideScrollbar && "hideScrollbar"]
|
|
38038
|
+
};
|
|
38039
|
+
return composeClasses(slots, getTabsUtilityClass, classes);
|
|
38040
|
+
};
|
|
38041
|
+
const TabsRoot = styled$1("div", {
|
|
38042
|
+
name: "MuiTabs",
|
|
38043
|
+
slot: "Root",
|
|
38044
|
+
overridesResolver: (props, styles2) => {
|
|
38045
|
+
const {
|
|
38046
|
+
ownerState
|
|
38047
|
+
} = props;
|
|
38048
|
+
return [{
|
|
38049
|
+
[`& .${tabsClasses$1.scrollButtons}`]: styles2.scrollButtons
|
|
38050
|
+
}, {
|
|
38051
|
+
[`& .${tabsClasses$1.scrollButtons}`]: ownerState.scrollButtonsHideMobile && styles2.scrollButtonsHideMobile
|
|
38052
|
+
}, styles2.root, ownerState.vertical && styles2.vertical];
|
|
38053
|
+
}
|
|
38054
|
+
})(({
|
|
38055
|
+
ownerState,
|
|
38056
|
+
theme
|
|
38057
|
+
}) => _extends$2({
|
|
38058
|
+
overflow: "hidden",
|
|
38059
|
+
minHeight: 48,
|
|
38060
|
+
WebkitOverflowScrolling: "touch",
|
|
38061
|
+
display: "flex"
|
|
38062
|
+
}, ownerState.vertical && {
|
|
38063
|
+
flexDirection: "column"
|
|
38064
|
+
}, ownerState.scrollButtonsHideMobile && {
|
|
38065
|
+
[`& .${tabsClasses$1.scrollButtons}`]: {
|
|
38066
|
+
[theme.breakpoints.down("sm")]: {
|
|
38067
|
+
display: "none"
|
|
38068
|
+
}
|
|
38069
|
+
}
|
|
38070
|
+
}));
|
|
38071
|
+
const TabsScroller = styled$1("div", {
|
|
38072
|
+
name: "MuiTabs",
|
|
38073
|
+
slot: "Scroller",
|
|
38074
|
+
overridesResolver: (props, styles2) => {
|
|
38075
|
+
const {
|
|
38076
|
+
ownerState
|
|
38077
|
+
} = props;
|
|
38078
|
+
return [styles2.scroller, ownerState.fixed && styles2.fixed, ownerState.hideScrollbar && styles2.hideScrollbar, ownerState.scrollableX && styles2.scrollableX, ownerState.scrollableY && styles2.scrollableY];
|
|
38079
|
+
}
|
|
38080
|
+
})(({
|
|
38081
|
+
ownerState
|
|
38082
|
+
}) => _extends$2({
|
|
38083
|
+
position: "relative",
|
|
38084
|
+
display: "inline-block",
|
|
38085
|
+
flex: "1 1 auto",
|
|
38086
|
+
whiteSpace: "nowrap"
|
|
38087
|
+
}, ownerState.fixed && {
|
|
38088
|
+
overflowX: "hidden",
|
|
38089
|
+
width: "100%"
|
|
38090
|
+
}, ownerState.hideScrollbar && {
|
|
38091
|
+
scrollbarWidth: "none",
|
|
38092
|
+
"&::-webkit-scrollbar": {
|
|
38093
|
+
display: "none"
|
|
38094
|
+
}
|
|
38095
|
+
}, ownerState.scrollableX && {
|
|
38096
|
+
overflowX: "auto",
|
|
38097
|
+
overflowY: "hidden"
|
|
38098
|
+
}, ownerState.scrollableY && {
|
|
38099
|
+
overflowY: "auto",
|
|
38100
|
+
overflowX: "hidden"
|
|
38101
|
+
}));
|
|
38102
|
+
const FlexContainer = styled$1("div", {
|
|
38103
|
+
name: "MuiTabs",
|
|
38104
|
+
slot: "FlexContainer",
|
|
38105
|
+
overridesResolver: (props, styles2) => {
|
|
38106
|
+
const {
|
|
38107
|
+
ownerState
|
|
38108
|
+
} = props;
|
|
38109
|
+
return [styles2.flexContainer, ownerState.vertical && styles2.flexContainerVertical, ownerState.centered && styles2.centered];
|
|
38110
|
+
}
|
|
38111
|
+
})(({
|
|
38112
|
+
ownerState
|
|
38113
|
+
}) => _extends$2({
|
|
38114
|
+
display: "flex"
|
|
38115
|
+
}, ownerState.vertical && {
|
|
38116
|
+
flexDirection: "column"
|
|
38117
|
+
}, ownerState.centered && {
|
|
38118
|
+
justifyContent: "center"
|
|
38119
|
+
}));
|
|
38120
|
+
const TabsIndicator = styled$1("span", {
|
|
38121
|
+
name: "MuiTabs",
|
|
38122
|
+
slot: "Indicator",
|
|
38123
|
+
overridesResolver: (props, styles2) => styles2.indicator
|
|
38124
|
+
})(({
|
|
38125
|
+
ownerState,
|
|
38126
|
+
theme
|
|
38127
|
+
}) => _extends$2({
|
|
38128
|
+
position: "absolute",
|
|
38129
|
+
height: 2,
|
|
38130
|
+
bottom: 0,
|
|
38131
|
+
width: "100%",
|
|
38132
|
+
transition: theme.transitions.create()
|
|
38133
|
+
}, ownerState.indicatorColor === "primary" && {
|
|
38134
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
38135
|
+
}, ownerState.indicatorColor === "secondary" && {
|
|
38136
|
+
backgroundColor: (theme.vars || theme).palette.secondary.main
|
|
38137
|
+
}, ownerState.vertical && {
|
|
38138
|
+
height: "100%",
|
|
38139
|
+
width: 2,
|
|
38140
|
+
right: 0
|
|
38141
|
+
}));
|
|
38142
|
+
const TabsScrollbarSize = styled$1(ScrollbarSize)({
|
|
38143
|
+
overflowX: "auto",
|
|
38144
|
+
overflowY: "hidden",
|
|
38145
|
+
scrollbarWidth: "none",
|
|
38146
|
+
"&::-webkit-scrollbar": {
|
|
38147
|
+
display: "none"
|
|
38148
|
+
}
|
|
38149
|
+
});
|
|
38150
|
+
const defaultIndicatorStyle = {};
|
|
38151
|
+
const Tabs = /* @__PURE__ */ React$2.forwardRef(function Tabs2(inProps, ref) {
|
|
38152
|
+
const props = useDefaultProps({
|
|
38153
|
+
props: inProps,
|
|
38154
|
+
name: "MuiTabs"
|
|
38155
|
+
});
|
|
38156
|
+
const theme = useTheme$1();
|
|
38157
|
+
const isRtl = useRtl();
|
|
38158
|
+
const {
|
|
38159
|
+
"aria-label": ariaLabel,
|
|
38160
|
+
"aria-labelledby": ariaLabelledBy,
|
|
38161
|
+
action,
|
|
38162
|
+
centered = false,
|
|
38163
|
+
children: childrenProp,
|
|
38164
|
+
className,
|
|
38165
|
+
component = "div",
|
|
38166
|
+
allowScrollButtonsMobile = false,
|
|
38167
|
+
indicatorColor = "primary",
|
|
38168
|
+
onChange,
|
|
38169
|
+
orientation = "horizontal",
|
|
38170
|
+
ScrollButtonComponent = TabScrollButton$1,
|
|
38171
|
+
scrollButtons = "auto",
|
|
38172
|
+
selectionFollowsFocus,
|
|
38173
|
+
slots = {},
|
|
38174
|
+
slotProps = {},
|
|
38175
|
+
TabIndicatorProps = {},
|
|
38176
|
+
TabScrollButtonProps = {},
|
|
38177
|
+
textColor = "primary",
|
|
38178
|
+
value,
|
|
38179
|
+
variant = "standard",
|
|
38180
|
+
visibleScrollbar = false
|
|
38181
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$Q);
|
|
38182
|
+
const scrollable = variant === "scrollable";
|
|
38183
|
+
const vertical = orientation === "vertical";
|
|
38184
|
+
const scrollStart = vertical ? "scrollTop" : "scrollLeft";
|
|
38185
|
+
const start2 = vertical ? "top" : "left";
|
|
38186
|
+
const end2 = vertical ? "bottom" : "right";
|
|
38187
|
+
const clientSize = vertical ? "clientHeight" : "clientWidth";
|
|
38188
|
+
const size = vertical ? "height" : "width";
|
|
38189
|
+
const ownerState = _extends$2({}, props, {
|
|
38190
|
+
component,
|
|
38191
|
+
allowScrollButtonsMobile,
|
|
38192
|
+
indicatorColor,
|
|
38193
|
+
orientation,
|
|
38194
|
+
vertical,
|
|
38195
|
+
scrollButtons,
|
|
38196
|
+
textColor,
|
|
38197
|
+
variant,
|
|
38198
|
+
visibleScrollbar,
|
|
38199
|
+
fixed: !scrollable,
|
|
38200
|
+
hideScrollbar: scrollable && !visibleScrollbar,
|
|
38201
|
+
scrollableX: scrollable && !vertical,
|
|
38202
|
+
scrollableY: scrollable && vertical,
|
|
38203
|
+
centered: centered && !scrollable,
|
|
38204
|
+
scrollButtonsHideMobile: !allowScrollButtonsMobile
|
|
38205
|
+
});
|
|
38206
|
+
const classes = useUtilityClasses$C(ownerState);
|
|
38207
|
+
const startScrollButtonIconProps = useSlotProps({
|
|
38208
|
+
elementType: slots.StartScrollButtonIcon,
|
|
38209
|
+
externalSlotProps: slotProps.startScrollButtonIcon,
|
|
38210
|
+
ownerState
|
|
38211
|
+
});
|
|
38212
|
+
const endScrollButtonIconProps = useSlotProps({
|
|
38213
|
+
elementType: slots.EndScrollButtonIcon,
|
|
38214
|
+
externalSlotProps: slotProps.endScrollButtonIcon,
|
|
38215
|
+
ownerState
|
|
38216
|
+
});
|
|
38217
|
+
const [mounted, setMounted] = React$2.useState(false);
|
|
38218
|
+
const [indicatorStyle, setIndicatorStyle] = React$2.useState(defaultIndicatorStyle);
|
|
38219
|
+
const [displayStartScroll, setDisplayStartScroll] = React$2.useState(false);
|
|
38220
|
+
const [displayEndScroll, setDisplayEndScroll] = React$2.useState(false);
|
|
38221
|
+
const [updateScrollObserver, setUpdateScrollObserver] = React$2.useState(false);
|
|
38222
|
+
const [scrollerStyle, setScrollerStyle] = React$2.useState({
|
|
38223
|
+
overflow: "hidden",
|
|
38224
|
+
scrollbarWidth: 0
|
|
38225
|
+
});
|
|
38226
|
+
const valueToIndex = /* @__PURE__ */ new Map();
|
|
38227
|
+
const tabsRef = React$2.useRef(null);
|
|
38228
|
+
const tabListRef = React$2.useRef(null);
|
|
38229
|
+
const getTabsMeta = () => {
|
|
38230
|
+
const tabsNode = tabsRef.current;
|
|
38231
|
+
let tabsMeta;
|
|
38232
|
+
if (tabsNode) {
|
|
38233
|
+
const rect = tabsNode.getBoundingClientRect();
|
|
38234
|
+
tabsMeta = {
|
|
38235
|
+
clientWidth: tabsNode.clientWidth,
|
|
38236
|
+
scrollLeft: tabsNode.scrollLeft,
|
|
38237
|
+
scrollTop: tabsNode.scrollTop,
|
|
38238
|
+
scrollLeftNormalized: getNormalizedScrollLeft(tabsNode, isRtl ? "rtl" : "ltr"),
|
|
38239
|
+
scrollWidth: tabsNode.scrollWidth,
|
|
38240
|
+
top: rect.top,
|
|
38241
|
+
bottom: rect.bottom,
|
|
38242
|
+
left: rect.left,
|
|
38243
|
+
right: rect.right
|
|
38244
|
+
};
|
|
38245
|
+
}
|
|
38246
|
+
let tabMeta;
|
|
38247
|
+
if (tabsNode && value !== false) {
|
|
38248
|
+
const children2 = tabListRef.current.children;
|
|
38249
|
+
if (children2.length > 0) {
|
|
38250
|
+
const tab = children2[valueToIndex.get(value)];
|
|
38251
|
+
tabMeta = tab ? tab.getBoundingClientRect() : null;
|
|
38252
|
+
}
|
|
38253
|
+
}
|
|
38254
|
+
return {
|
|
38255
|
+
tabsMeta,
|
|
38256
|
+
tabMeta
|
|
38257
|
+
};
|
|
38258
|
+
};
|
|
38259
|
+
const updateIndicatorState = useEventCallback(() => {
|
|
38260
|
+
const {
|
|
38261
|
+
tabsMeta,
|
|
38262
|
+
tabMeta
|
|
38263
|
+
} = getTabsMeta();
|
|
38264
|
+
let startValue = 0;
|
|
38265
|
+
let startIndicator;
|
|
38266
|
+
if (vertical) {
|
|
38267
|
+
startIndicator = "top";
|
|
38268
|
+
if (tabMeta && tabsMeta) {
|
|
38269
|
+
startValue = tabMeta.top - tabsMeta.top + tabsMeta.scrollTop;
|
|
38270
|
+
}
|
|
38271
|
+
} else {
|
|
38272
|
+
startIndicator = isRtl ? "right" : "left";
|
|
38273
|
+
if (tabMeta && tabsMeta) {
|
|
38274
|
+
const correction = isRtl ? tabsMeta.scrollLeftNormalized + tabsMeta.clientWidth - tabsMeta.scrollWidth : tabsMeta.scrollLeft;
|
|
38275
|
+
startValue = (isRtl ? -1 : 1) * (tabMeta[startIndicator] - tabsMeta[startIndicator] + correction);
|
|
38276
|
+
}
|
|
38277
|
+
}
|
|
38278
|
+
const newIndicatorStyle = {
|
|
38279
|
+
[startIndicator]: startValue,
|
|
38280
|
+
[size]: tabMeta ? tabMeta[size] : 0
|
|
38281
|
+
};
|
|
38282
|
+
if (isNaN(indicatorStyle[startIndicator]) || isNaN(indicatorStyle[size])) {
|
|
38283
|
+
setIndicatorStyle(newIndicatorStyle);
|
|
38284
|
+
} else {
|
|
38285
|
+
const dStart = Math.abs(indicatorStyle[startIndicator] - newIndicatorStyle[startIndicator]);
|
|
38286
|
+
const dSize = Math.abs(indicatorStyle[size] - newIndicatorStyle[size]);
|
|
38287
|
+
if (dStart >= 1 || dSize >= 1) {
|
|
38288
|
+
setIndicatorStyle(newIndicatorStyle);
|
|
38289
|
+
}
|
|
38290
|
+
}
|
|
38291
|
+
});
|
|
38292
|
+
const scroll = (scrollValue, {
|
|
38293
|
+
animation = true
|
|
38294
|
+
} = {}) => {
|
|
38295
|
+
if (animation) {
|
|
38296
|
+
animate(scrollStart, tabsRef.current, scrollValue, {
|
|
38297
|
+
duration: theme.transitions.duration.standard
|
|
38298
|
+
});
|
|
38299
|
+
} else {
|
|
38300
|
+
tabsRef.current[scrollStart] = scrollValue;
|
|
38301
|
+
}
|
|
38302
|
+
};
|
|
38303
|
+
const moveTabsScroll = (delta) => {
|
|
38304
|
+
let scrollValue = tabsRef.current[scrollStart];
|
|
38305
|
+
if (vertical) {
|
|
38306
|
+
scrollValue += delta;
|
|
38307
|
+
} else {
|
|
38308
|
+
scrollValue += delta * (isRtl ? -1 : 1);
|
|
38309
|
+
scrollValue *= isRtl && detectScrollType() === "reverse" ? -1 : 1;
|
|
38310
|
+
}
|
|
38311
|
+
scroll(scrollValue);
|
|
38312
|
+
};
|
|
38313
|
+
const getScrollSize = () => {
|
|
38314
|
+
const containerSize = tabsRef.current[clientSize];
|
|
38315
|
+
let totalSize = 0;
|
|
38316
|
+
const children2 = Array.from(tabListRef.current.children);
|
|
38317
|
+
for (let i = 0; i < children2.length; i += 1) {
|
|
38318
|
+
const tab = children2[i];
|
|
38319
|
+
if (totalSize + tab[clientSize] > containerSize) {
|
|
38320
|
+
if (i === 0) {
|
|
38321
|
+
totalSize = containerSize;
|
|
38322
|
+
}
|
|
38323
|
+
break;
|
|
38324
|
+
}
|
|
38325
|
+
totalSize += tab[clientSize];
|
|
38326
|
+
}
|
|
38327
|
+
return totalSize;
|
|
38328
|
+
};
|
|
38329
|
+
const handleStartScrollClick = () => {
|
|
38330
|
+
moveTabsScroll(-1 * getScrollSize());
|
|
38331
|
+
};
|
|
38332
|
+
const handleEndScrollClick = () => {
|
|
38333
|
+
moveTabsScroll(getScrollSize());
|
|
38334
|
+
};
|
|
38335
|
+
const handleScrollbarSizeChange = React$2.useCallback((scrollbarWidth) => {
|
|
38336
|
+
setScrollerStyle({
|
|
38337
|
+
overflow: null,
|
|
38338
|
+
scrollbarWidth
|
|
38339
|
+
});
|
|
38340
|
+
}, []);
|
|
38341
|
+
const getConditionalElements = () => {
|
|
38342
|
+
const conditionalElements2 = {};
|
|
38343
|
+
conditionalElements2.scrollbarSizeListener = scrollable ? /* @__PURE__ */ jsx$1(TabsScrollbarSize, {
|
|
38344
|
+
onChange: handleScrollbarSizeChange,
|
|
38345
|
+
className: clsx(classes.scrollableX, classes.hideScrollbar)
|
|
38346
|
+
}) : null;
|
|
38347
|
+
const scrollButtonsActive = displayStartScroll || displayEndScroll;
|
|
38348
|
+
const showScrollButtons = scrollable && (scrollButtons === "auto" && scrollButtonsActive || scrollButtons === true);
|
|
38349
|
+
conditionalElements2.scrollButtonStart = showScrollButtons ? /* @__PURE__ */ jsx$1(ScrollButtonComponent, _extends$2({
|
|
38350
|
+
slots: {
|
|
38351
|
+
StartScrollButtonIcon: slots.StartScrollButtonIcon
|
|
38352
|
+
},
|
|
38353
|
+
slotProps: {
|
|
38354
|
+
startScrollButtonIcon: startScrollButtonIconProps
|
|
38355
|
+
},
|
|
38356
|
+
orientation,
|
|
38357
|
+
direction: isRtl ? "right" : "left",
|
|
38358
|
+
onClick: handleStartScrollClick,
|
|
38359
|
+
disabled: !displayStartScroll
|
|
38360
|
+
}, TabScrollButtonProps, {
|
|
38361
|
+
className: clsx(classes.scrollButtons, TabScrollButtonProps.className)
|
|
38362
|
+
})) : null;
|
|
38363
|
+
conditionalElements2.scrollButtonEnd = showScrollButtons ? /* @__PURE__ */ jsx$1(ScrollButtonComponent, _extends$2({
|
|
38364
|
+
slots: {
|
|
38365
|
+
EndScrollButtonIcon: slots.EndScrollButtonIcon
|
|
38366
|
+
},
|
|
38367
|
+
slotProps: {
|
|
38368
|
+
endScrollButtonIcon: endScrollButtonIconProps
|
|
38369
|
+
},
|
|
38370
|
+
orientation,
|
|
38371
|
+
direction: isRtl ? "left" : "right",
|
|
38372
|
+
onClick: handleEndScrollClick,
|
|
38373
|
+
disabled: !displayEndScroll
|
|
38374
|
+
}, TabScrollButtonProps, {
|
|
38375
|
+
className: clsx(classes.scrollButtons, TabScrollButtonProps.className)
|
|
38376
|
+
})) : null;
|
|
38377
|
+
return conditionalElements2;
|
|
38378
|
+
};
|
|
38379
|
+
const scrollSelectedIntoView = useEventCallback((animation) => {
|
|
38380
|
+
const {
|
|
38381
|
+
tabsMeta,
|
|
38382
|
+
tabMeta
|
|
38383
|
+
} = getTabsMeta();
|
|
38384
|
+
if (!tabMeta || !tabsMeta) {
|
|
38385
|
+
return;
|
|
38386
|
+
}
|
|
38387
|
+
if (tabMeta[start2] < tabsMeta[start2]) {
|
|
38388
|
+
const nextScrollStart = tabsMeta[scrollStart] + (tabMeta[start2] - tabsMeta[start2]);
|
|
38389
|
+
scroll(nextScrollStart, {
|
|
38390
|
+
animation
|
|
38391
|
+
});
|
|
38392
|
+
} else if (tabMeta[end2] > tabsMeta[end2]) {
|
|
38393
|
+
const nextScrollStart = tabsMeta[scrollStart] + (tabMeta[end2] - tabsMeta[end2]);
|
|
38394
|
+
scroll(nextScrollStart, {
|
|
38395
|
+
animation
|
|
38396
|
+
});
|
|
38397
|
+
}
|
|
38398
|
+
});
|
|
38399
|
+
const updateScrollButtonState = useEventCallback(() => {
|
|
38400
|
+
if (scrollable && scrollButtons !== false) {
|
|
38401
|
+
setUpdateScrollObserver(!updateScrollObserver);
|
|
38402
|
+
}
|
|
38403
|
+
});
|
|
38404
|
+
React$2.useEffect(() => {
|
|
38405
|
+
const handleResize = debounce$1(() => {
|
|
38406
|
+
if (tabsRef.current) {
|
|
38407
|
+
updateIndicatorState();
|
|
38408
|
+
}
|
|
38409
|
+
});
|
|
38410
|
+
let resizeObserver;
|
|
38411
|
+
const handleMutation = (records) => {
|
|
38412
|
+
records.forEach((record) => {
|
|
38413
|
+
record.removedNodes.forEach((item) => {
|
|
38414
|
+
var _resizeObserver;
|
|
38415
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.unobserve(item);
|
|
38416
|
+
});
|
|
38417
|
+
record.addedNodes.forEach((item) => {
|
|
38418
|
+
var _resizeObserver2;
|
|
38419
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.observe(item);
|
|
38420
|
+
});
|
|
38421
|
+
});
|
|
38422
|
+
handleResize();
|
|
38423
|
+
updateScrollButtonState();
|
|
38424
|
+
};
|
|
38425
|
+
const win = ownerWindow(tabsRef.current);
|
|
38426
|
+
win.addEventListener("resize", handleResize);
|
|
38427
|
+
let mutationObserver;
|
|
38428
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
38429
|
+
resizeObserver = new ResizeObserver(handleResize);
|
|
38430
|
+
Array.from(tabListRef.current.children).forEach((child) => {
|
|
38431
|
+
resizeObserver.observe(child);
|
|
38432
|
+
});
|
|
38433
|
+
}
|
|
38434
|
+
if (typeof MutationObserver !== "undefined") {
|
|
38435
|
+
mutationObserver = new MutationObserver(handleMutation);
|
|
38436
|
+
mutationObserver.observe(tabListRef.current, {
|
|
38437
|
+
childList: true
|
|
38438
|
+
});
|
|
38439
|
+
}
|
|
38440
|
+
return () => {
|
|
38441
|
+
var _mutationObserver, _resizeObserver3;
|
|
38442
|
+
handleResize.clear();
|
|
38443
|
+
win.removeEventListener("resize", handleResize);
|
|
38444
|
+
(_mutationObserver = mutationObserver) == null || _mutationObserver.disconnect();
|
|
38445
|
+
(_resizeObserver3 = resizeObserver) == null || _resizeObserver3.disconnect();
|
|
38446
|
+
};
|
|
38447
|
+
}, [updateIndicatorState, updateScrollButtonState]);
|
|
38448
|
+
React$2.useEffect(() => {
|
|
38449
|
+
const tabListChildren = Array.from(tabListRef.current.children);
|
|
38450
|
+
const length2 = tabListChildren.length;
|
|
38451
|
+
if (typeof IntersectionObserver !== "undefined" && length2 > 0 && scrollable && scrollButtons !== false) {
|
|
38452
|
+
const firstTab = tabListChildren[0];
|
|
38453
|
+
const lastTab = tabListChildren[length2 - 1];
|
|
38454
|
+
const observerOptions = {
|
|
38455
|
+
root: tabsRef.current,
|
|
38456
|
+
threshold: 0.99
|
|
38457
|
+
};
|
|
38458
|
+
const handleScrollButtonStart = (entries) => {
|
|
38459
|
+
setDisplayStartScroll(!entries[0].isIntersecting);
|
|
38460
|
+
};
|
|
38461
|
+
const firstObserver = new IntersectionObserver(handleScrollButtonStart, observerOptions);
|
|
38462
|
+
firstObserver.observe(firstTab);
|
|
38463
|
+
const handleScrollButtonEnd = (entries) => {
|
|
38464
|
+
setDisplayEndScroll(!entries[0].isIntersecting);
|
|
38465
|
+
};
|
|
38466
|
+
const lastObserver = new IntersectionObserver(handleScrollButtonEnd, observerOptions);
|
|
38467
|
+
lastObserver.observe(lastTab);
|
|
38468
|
+
return () => {
|
|
38469
|
+
firstObserver.disconnect();
|
|
38470
|
+
lastObserver.disconnect();
|
|
38471
|
+
};
|
|
38472
|
+
}
|
|
38473
|
+
return void 0;
|
|
38474
|
+
}, [scrollable, scrollButtons, updateScrollObserver, childrenProp == null ? void 0 : childrenProp.length]);
|
|
38475
|
+
React$2.useEffect(() => {
|
|
38476
|
+
setMounted(true);
|
|
38477
|
+
}, []);
|
|
38478
|
+
React$2.useEffect(() => {
|
|
38479
|
+
updateIndicatorState();
|
|
38480
|
+
});
|
|
38481
|
+
React$2.useEffect(() => {
|
|
38482
|
+
scrollSelectedIntoView(defaultIndicatorStyle !== indicatorStyle);
|
|
38483
|
+
}, [scrollSelectedIntoView, indicatorStyle]);
|
|
38484
|
+
React$2.useImperativeHandle(action, () => ({
|
|
38485
|
+
updateIndicator: updateIndicatorState,
|
|
38486
|
+
updateScrollButtons: updateScrollButtonState
|
|
38487
|
+
}), [updateIndicatorState, updateScrollButtonState]);
|
|
38488
|
+
const indicator = /* @__PURE__ */ jsx$1(TabsIndicator, _extends$2({}, TabIndicatorProps, {
|
|
38489
|
+
className: clsx(classes.indicator, TabIndicatorProps.className),
|
|
38490
|
+
ownerState,
|
|
38491
|
+
style: _extends$2({}, indicatorStyle, TabIndicatorProps.style)
|
|
38492
|
+
}));
|
|
38493
|
+
let childIndex = 0;
|
|
38494
|
+
const children = React$2.Children.map(childrenProp, (child) => {
|
|
38495
|
+
if (!/* @__PURE__ */ React$2.isValidElement(child)) {
|
|
38496
|
+
return null;
|
|
38497
|
+
}
|
|
38498
|
+
const childValue = child.props.value === void 0 ? childIndex : child.props.value;
|
|
38499
|
+
valueToIndex.set(childValue, childIndex);
|
|
38500
|
+
const selected = childValue === value;
|
|
38501
|
+
childIndex += 1;
|
|
38502
|
+
return /* @__PURE__ */ React$2.cloneElement(child, _extends$2({
|
|
38503
|
+
fullWidth: variant === "fullWidth",
|
|
38504
|
+
indicator: selected && !mounted && indicator,
|
|
38505
|
+
selected,
|
|
38506
|
+
selectionFollowsFocus,
|
|
38507
|
+
onChange,
|
|
38508
|
+
textColor,
|
|
38509
|
+
value: childValue
|
|
38510
|
+
}, childIndex === 1 && value === false && !child.props.tabIndex ? {
|
|
38511
|
+
tabIndex: 0
|
|
38512
|
+
} : {}));
|
|
38513
|
+
});
|
|
38514
|
+
const handleKeyDown2 = (event) => {
|
|
38515
|
+
const list = tabListRef.current;
|
|
38516
|
+
const currentFocus = ownerDocument(list).activeElement;
|
|
38517
|
+
const role = currentFocus.getAttribute("role");
|
|
38518
|
+
if (role !== "tab") {
|
|
38519
|
+
return;
|
|
38520
|
+
}
|
|
38521
|
+
let previousItemKey = orientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
38522
|
+
let nextItemKey = orientation === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
38523
|
+
if (orientation === "horizontal" && isRtl) {
|
|
38524
|
+
previousItemKey = "ArrowRight";
|
|
38525
|
+
nextItemKey = "ArrowLeft";
|
|
38526
|
+
}
|
|
38527
|
+
switch (event.key) {
|
|
38528
|
+
case previousItemKey:
|
|
38529
|
+
event.preventDefault();
|
|
38530
|
+
moveFocus(list, currentFocus, previousItem);
|
|
38531
|
+
break;
|
|
38532
|
+
case nextItemKey:
|
|
38533
|
+
event.preventDefault();
|
|
38534
|
+
moveFocus(list, currentFocus, nextItem);
|
|
38535
|
+
break;
|
|
38536
|
+
case "Home":
|
|
38537
|
+
event.preventDefault();
|
|
38538
|
+
moveFocus(list, null, nextItem);
|
|
38539
|
+
break;
|
|
38540
|
+
case "End":
|
|
38541
|
+
event.preventDefault();
|
|
38542
|
+
moveFocus(list, null, previousItem);
|
|
38543
|
+
break;
|
|
38544
|
+
}
|
|
38545
|
+
};
|
|
38546
|
+
const conditionalElements = getConditionalElements();
|
|
38547
|
+
return /* @__PURE__ */ jsxs(TabsRoot, _extends$2({
|
|
38548
|
+
className: clsx(classes.root, className),
|
|
38549
|
+
ownerState,
|
|
38550
|
+
ref,
|
|
38551
|
+
as: component
|
|
38552
|
+
}, other, {
|
|
38553
|
+
children: [conditionalElements.scrollButtonStart, conditionalElements.scrollbarSizeListener, /* @__PURE__ */ jsxs(TabsScroller, {
|
|
38554
|
+
className: classes.scroller,
|
|
38555
|
+
ownerState,
|
|
38556
|
+
style: {
|
|
38557
|
+
overflow: scrollerStyle.overflow,
|
|
38558
|
+
[vertical ? `margin${isRtl ? "Left" : "Right"}` : "marginBottom"]: visibleScrollbar ? void 0 : -scrollerStyle.scrollbarWidth
|
|
38559
|
+
},
|
|
38560
|
+
ref: tabsRef,
|
|
38561
|
+
children: [/* @__PURE__ */ jsx$1(FlexContainer, {
|
|
38562
|
+
"aria-label": ariaLabel,
|
|
38563
|
+
"aria-labelledby": ariaLabelledBy,
|
|
38564
|
+
"aria-orientation": orientation === "vertical" ? "vertical" : null,
|
|
38565
|
+
className: classes.flexContainer,
|
|
38566
|
+
ownerState,
|
|
38567
|
+
onKeyDown: handleKeyDown2,
|
|
38568
|
+
ref: tabListRef,
|
|
38569
|
+
role: "tablist",
|
|
38570
|
+
children
|
|
38571
|
+
}), mounted && indicator]
|
|
38572
|
+
}), conditionalElements.scrollButtonEnd]
|
|
38573
|
+
}));
|
|
38574
|
+
});
|
|
38575
|
+
var Tabs$1 = Tabs;
|
|
37589
38576
|
function getTextFieldUtilityClass(slot) {
|
|
37590
38577
|
return generateUtilityClass("MuiTextField", slot);
|
|
37591
38578
|
}
|
|
@@ -37751,6 +38738,9 @@ const showBackButton = (status) => {
|
|
|
37751
38738
|
var ArrowBack = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
37752
38739
|
d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
|
|
37753
38740
|
}), "ArrowBack");
|
|
38741
|
+
var ArrowUpward = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
38742
|
+
d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"
|
|
38743
|
+
}), "ArrowUpward");
|
|
37754
38744
|
var CloudUploadIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
37755
38745
|
d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"
|
|
37756
38746
|
}), "CloudUpload");
|
|
@@ -37760,9 +38750,15 @@ var CompareArrowsIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
|
37760
38750
|
var ContentCopy = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
37761
38751
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
|
|
37762
38752
|
}), "ContentCopy");
|
|
38753
|
+
var CropRotate = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
38754
|
+
d: "M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81 1.33-1.33C19.8 4.07 22.14 7.24 22.5 11H24c-.51-6.16-5.66-11-11.95-11M16 14h2V8c0-1.11-.9-2-2-2h-6v2h6zm-8 2V4H6v2H4v2h2v8c0 1.1.89 2 2 2h8v2h2v-2h2v-2z"
|
|
38755
|
+
}), "CropRotate");
|
|
37763
38756
|
var ImageNotSupportedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
37764
38757
|
d: "m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"
|
|
37765
38758
|
}), "ImageNotSupported");
|
|
38759
|
+
var ZoomInTwoTone = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
38760
|
+
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14m.5-7H9v2H7v1h2v2h1v-2h2V9h-2z"
|
|
38761
|
+
}), "ZoomInTwoTone");
|
|
37766
38762
|
function BackButton({
|
|
37767
38763
|
action
|
|
37768
38764
|
}) {
|
|
@@ -38048,14 +39044,13 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
|
|
|
38048
39044
|
setIsLoading(false);
|
|
38049
39045
|
}
|
|
38050
39046
|
};
|
|
38051
|
-
const onUploadImage = async () => {
|
|
39047
|
+
const onUploadImage = async (side) => {
|
|
38052
39048
|
const getImage = webcamRef.current.getScreenshot();
|
|
38053
|
-
|
|
38054
|
-
|
|
38055
|
-
secondImage: getImage
|
|
38056
|
-
} : {
|
|
38057
|
-
firstImage: getImage
|
|
39049
|
+
const newImage = Object.assign(base64, {
|
|
39050
|
+
[side]: getImage
|
|
38058
39051
|
});
|
|
39052
|
+
console.log(newImage);
|
|
39053
|
+
setBase64(newImage);
|
|
38059
39054
|
setActivateCamera(false);
|
|
38060
39055
|
};
|
|
38061
39056
|
const usePortrait = () => {
|
|
@@ -38072,7 +39067,7 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
|
|
|
38072
39067
|
return isPortrait2;
|
|
38073
39068
|
};
|
|
38074
39069
|
const isPortrait = usePortrait();
|
|
38075
|
-
const videoConstraints = {
|
|
39070
|
+
const videoConstraints = useMemo(() => ({
|
|
38076
39071
|
width: {
|
|
38077
39072
|
ideal: isPortrait ? 720 : 1280
|
|
38078
39073
|
},
|
|
@@ -38080,10 +39075,10 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
|
|
|
38080
39075
|
ideal: isPortrait ? 1280 : 720
|
|
38081
39076
|
},
|
|
38082
39077
|
aspectRatio: {
|
|
38083
|
-
ideal: isPortrait ?
|
|
39078
|
+
ideal: isPortrait ? 16 / 9 : 9 / 16
|
|
38084
39079
|
},
|
|
38085
39080
|
facingMode: "environment"
|
|
38086
|
-
};
|
|
39081
|
+
}), [isPortrait]);
|
|
38087
39082
|
useEffect(() => {
|
|
38088
39083
|
if (activateCamera) {
|
|
38089
39084
|
setActivateCamera(false);
|
|
@@ -38113,6 +39108,418 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
|
|
|
38113
39108
|
const validateErrorMessageOCR = (message) => {
|
|
38114
39109
|
return message === "Tipo de documento no v\xE1lido" || message === "Datos de la imagen no reconocidas" || message === "Dato no reconocido(Primer Nombre)" || message == "Dato no reconocido(Primer Apellido)" || message == "";
|
|
38115
39110
|
};
|
|
39111
|
+
function UploadDocument({
|
|
39112
|
+
setActivateCamera,
|
|
39113
|
+
activateCamera,
|
|
39114
|
+
webcamRef,
|
|
39115
|
+
Webcam: Webcam2,
|
|
39116
|
+
videoConstraints,
|
|
39117
|
+
base64,
|
|
39118
|
+
detail
|
|
39119
|
+
}) {
|
|
39120
|
+
return /* @__PURE__ */ jsx$1("div", {
|
|
39121
|
+
className: "drag-zone",
|
|
39122
|
+
children: /* @__PURE__ */ jsx$1(Box$1, {
|
|
39123
|
+
className: "drag-and-drop-container",
|
|
39124
|
+
children: /* @__PURE__ */ jsxs(Box$1, {
|
|
39125
|
+
onClick: () => setActivateCamera(true),
|
|
39126
|
+
position: "relative",
|
|
39127
|
+
zIndex: 1,
|
|
39128
|
+
width: "100%",
|
|
39129
|
+
height: "100%",
|
|
39130
|
+
overflow: "hidden",
|
|
39131
|
+
display: "flex",
|
|
39132
|
+
justifyContent: "center",
|
|
39133
|
+
alignItems: "center",
|
|
39134
|
+
children: [activateCamera && /* @__PURE__ */ jsx$1(Webcam2, {
|
|
39135
|
+
ref: webcamRef,
|
|
39136
|
+
videoConstraints,
|
|
39137
|
+
forceScreenshotSourceSize: true,
|
|
39138
|
+
audio: false,
|
|
39139
|
+
style: {
|
|
39140
|
+
width: "100%",
|
|
39141
|
+
height: "100%",
|
|
39142
|
+
objectFit: "cover",
|
|
39143
|
+
position: "absolute",
|
|
39144
|
+
top: "50%",
|
|
39145
|
+
left: "50%",
|
|
39146
|
+
transform: "translate(-50%, -50%)",
|
|
39147
|
+
borderRadius: "5px"
|
|
39148
|
+
}
|
|
39149
|
+
}), !activateCamera && /* @__PURE__ */ jsxs(Box$1, {
|
|
39150
|
+
children: [/* @__PURE__ */ jsx$1(CloudUploadIcon, {}), /* @__PURE__ */ jsx$1(Typography$1, {
|
|
39151
|
+
variant: "h6",
|
|
39152
|
+
className: "title",
|
|
39153
|
+
mt: 2,
|
|
39154
|
+
children: "Cargar documento"
|
|
39155
|
+
}), /* @__PURE__ */ jsx$1(Typography$1, {
|
|
39156
|
+
variant: "body2",
|
|
39157
|
+
children: detail
|
|
39158
|
+
})]
|
|
39159
|
+
})]
|
|
39160
|
+
})
|
|
39161
|
+
})
|
|
39162
|
+
});
|
|
39163
|
+
}
|
|
39164
|
+
function CustomTabPanel(props) {
|
|
39165
|
+
const {
|
|
39166
|
+
children,
|
|
39167
|
+
value,
|
|
39168
|
+
index,
|
|
39169
|
+
tabOptions,
|
|
39170
|
+
base64,
|
|
39171
|
+
setBase64,
|
|
39172
|
+
setActivateCamera,
|
|
39173
|
+
activateCamera,
|
|
39174
|
+
webcamRef,
|
|
39175
|
+
Webcam: Webcam2,
|
|
39176
|
+
videoConstraints,
|
|
39177
|
+
onUploadImage,
|
|
39178
|
+
dualModeRequired,
|
|
39179
|
+
status,
|
|
39180
|
+
...other
|
|
39181
|
+
} = props;
|
|
39182
|
+
return /* @__PURE__ */ jsx$1("div", {
|
|
39183
|
+
role: "tabpanel",
|
|
39184
|
+
hidden: value !== index,
|
|
39185
|
+
id: `simple-tabpanel-${index}`,
|
|
39186
|
+
"aria-labelledby": `simple-tab-${index}`,
|
|
39187
|
+
...other,
|
|
39188
|
+
children: value === index && /* @__PURE__ */ jsx$1(Box$1, {
|
|
39189
|
+
children
|
|
39190
|
+
})
|
|
39191
|
+
});
|
|
39192
|
+
}
|
|
39193
|
+
CustomTabPanel.propTypes = {
|
|
39194
|
+
children: PropTypes.node,
|
|
39195
|
+
index: PropTypes.number.isRequired,
|
|
39196
|
+
value: PropTypes.number.isRequired
|
|
39197
|
+
};
|
|
39198
|
+
function a11yProps(index) {
|
|
39199
|
+
return {
|
|
39200
|
+
id: `simple-tab-${index}`,
|
|
39201
|
+
"aria-controls": `simple-tabpanel-${index}`
|
|
39202
|
+
};
|
|
39203
|
+
}
|
|
39204
|
+
function SideDocsSelector({
|
|
39205
|
+
base64,
|
|
39206
|
+
setBase64,
|
|
39207
|
+
setActivateCamera,
|
|
39208
|
+
activateCamera,
|
|
39209
|
+
webcamRef,
|
|
39210
|
+
Webcam: Webcam2,
|
|
39211
|
+
videoConstraints,
|
|
39212
|
+
onUploadImage,
|
|
39213
|
+
dualModeRequired,
|
|
39214
|
+
status
|
|
39215
|
+
}) {
|
|
39216
|
+
const [value, setValue] = React$2.useState(0);
|
|
39217
|
+
const [showZoom, setShowZoom] = React$2.useState(false);
|
|
39218
|
+
const handleChange = (event, newValue) => {
|
|
39219
|
+
setValue(newValue);
|
|
39220
|
+
};
|
|
39221
|
+
const deleteImage = (image) => {
|
|
39222
|
+
const updatedImage = {
|
|
39223
|
+
...base64
|
|
39224
|
+
};
|
|
39225
|
+
delete updatedImage[image];
|
|
39226
|
+
setBase64(updatedImage);
|
|
39227
|
+
};
|
|
39228
|
+
const toggleZoom = () => {
|
|
39229
|
+
setShowZoom(!showZoom);
|
|
39230
|
+
};
|
|
39231
|
+
return /* @__PURE__ */ jsxs(Box$1, {
|
|
39232
|
+
sx: {
|
|
39233
|
+
width: "100%"
|
|
39234
|
+
},
|
|
39235
|
+
children: [/* @__PURE__ */ jsx$1(Box$1, {
|
|
39236
|
+
sx: {
|
|
39237
|
+
borderBottom: 1,
|
|
39238
|
+
borderColor: "divider"
|
|
39239
|
+
},
|
|
39240
|
+
children: /* @__PURE__ */ jsxs(Tabs$1, {
|
|
39241
|
+
value,
|
|
39242
|
+
onChange: handleChange,
|
|
39243
|
+
"aria-label": "document selector",
|
|
39244
|
+
children: [/* @__PURE__ */ jsx$1(Tab$1, {
|
|
39245
|
+
label: "Frontal",
|
|
39246
|
+
...a11yProps(0)
|
|
39247
|
+
}), /* @__PURE__ */ jsx$1(Tab$1, {
|
|
39248
|
+
label: "Reverso",
|
|
39249
|
+
...a11yProps(1)
|
|
39250
|
+
})]
|
|
39251
|
+
})
|
|
39252
|
+
}), /* @__PURE__ */ jsx$1(CustomTabPanel, {
|
|
39253
|
+
value,
|
|
39254
|
+
index: 0,
|
|
39255
|
+
children: /* @__PURE__ */ jsx$1(Box$1, {
|
|
39256
|
+
className: "thumbnails-container",
|
|
39257
|
+
children: /* @__PURE__ */ jsx$1(Box$1, {
|
|
39258
|
+
className: "thumbnails",
|
|
39259
|
+
children: /* @__PURE__ */ jsxs(Box$1, {
|
|
39260
|
+
display: "flex",
|
|
39261
|
+
flexDirection: "column",
|
|
39262
|
+
justifyContent: "space-evenly",
|
|
39263
|
+
alignItems: "center",
|
|
39264
|
+
width: "100%",
|
|
39265
|
+
children: [base64.firstImage ? /* @__PURE__ */ jsxs("div", {
|
|
39266
|
+
className: "img-container",
|
|
39267
|
+
style: {
|
|
39268
|
+
transition: "transform 0.3s ease-in-out, width 0.3s ease-in-out",
|
|
39269
|
+
width: "100%",
|
|
39270
|
+
position: "relative",
|
|
39271
|
+
zIndex: 1
|
|
39272
|
+
},
|
|
39273
|
+
children: [/* @__PURE__ */ jsx$1("img", {
|
|
39274
|
+
src: base64.firstImage,
|
|
39275
|
+
alt: "thumbnail",
|
|
39276
|
+
style: {
|
|
39277
|
+
width: "100%",
|
|
39278
|
+
height: "auto"
|
|
39279
|
+
}
|
|
39280
|
+
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
39281
|
+
style: {
|
|
39282
|
+
position: "absolute",
|
|
39283
|
+
top: 0,
|
|
39284
|
+
right: 0,
|
|
39285
|
+
display: "flex",
|
|
39286
|
+
gap: "8px",
|
|
39287
|
+
zIndex: 20
|
|
39288
|
+
},
|
|
39289
|
+
children: [/* @__PURE__ */ jsx$1(Box$1, {
|
|
39290
|
+
className: "rotate-button",
|
|
39291
|
+
onClick: toggleZoom,
|
|
39292
|
+
sx: {
|
|
39293
|
+
backgroundColor: "rgba(255, 255, 255, 0.7)",
|
|
39294
|
+
borderRadius: "50%",
|
|
39295
|
+
padding: "4px",
|
|
39296
|
+
cursor: "pointer",
|
|
39297
|
+
display: "flex",
|
|
39298
|
+
alignItems: "center",
|
|
39299
|
+
justifyContent: "center"
|
|
39300
|
+
},
|
|
39301
|
+
children: /* @__PURE__ */ jsx$1(MUITooltip, {
|
|
39302
|
+
title: "Ampliar",
|
|
39303
|
+
placement: "right",
|
|
39304
|
+
arrow: true,
|
|
39305
|
+
children: /* @__PURE__ */ jsx$1(ZoomInTwoTone, {
|
|
39306
|
+
sx: {
|
|
39307
|
+
width: "18px"
|
|
39308
|
+
}
|
|
39309
|
+
})
|
|
39310
|
+
})
|
|
39311
|
+
}), /* @__PURE__ */ jsx$1(Box$1, {
|
|
39312
|
+
className: "delete-button",
|
|
39313
|
+
onClick: () => deleteImage("firstImage"),
|
|
39314
|
+
sx: {
|
|
39315
|
+
backgroundColor: "rgba(255, 255, 255, 0.7)",
|
|
39316
|
+
borderRadius: "50%",
|
|
39317
|
+
padding: "4px",
|
|
39318
|
+
cursor: "pointer",
|
|
39319
|
+
display: "flex",
|
|
39320
|
+
alignItems: "center",
|
|
39321
|
+
justifyContent: "center"
|
|
39322
|
+
},
|
|
39323
|
+
children: /* @__PURE__ */ jsx$1(MUITooltip, {
|
|
39324
|
+
title: "Vaciar",
|
|
39325
|
+
placement: "right",
|
|
39326
|
+
arrow: true,
|
|
39327
|
+
children: /* @__PURE__ */ jsx$1(Typography$1, {
|
|
39328
|
+
variant: "body2",
|
|
39329
|
+
children: "x"
|
|
39330
|
+
})
|
|
39331
|
+
})
|
|
39332
|
+
})]
|
|
39333
|
+
})]
|
|
39334
|
+
}) : /* @__PURE__ */ jsx$1(UploadDocument, {
|
|
39335
|
+
setActivateCamera,
|
|
39336
|
+
activateCamera,
|
|
39337
|
+
webcamRef,
|
|
39338
|
+
Webcam: Webcam2,
|
|
39339
|
+
videoConstraints,
|
|
39340
|
+
base64,
|
|
39341
|
+
detail: "Subir frontal del documento"
|
|
39342
|
+
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
39343
|
+
width: "100%",
|
|
39344
|
+
children: [activateCamera && /* @__PURE__ */ jsx$1(CustomButton, {
|
|
39345
|
+
type: "button",
|
|
39346
|
+
onClick: () => onUploadImage("firstImage"),
|
|
39347
|
+
children: "Capturar"
|
|
39348
|
+
}), !status && Object.keys(base64).length > 0 && !activateCamera && lib$1(status) && (!dualModeRequired && base64.firstImage || dualModeRequired && base64.firstImage && base64.secondImage) && /* @__PURE__ */ jsx$1(CustomButton, {
|
|
39349
|
+
type: "submit",
|
|
39350
|
+
children: "Procesar"
|
|
39351
|
+
})]
|
|
39352
|
+
})]
|
|
39353
|
+
})
|
|
39354
|
+
})
|
|
39355
|
+
})
|
|
39356
|
+
}), /* @__PURE__ */ jsx$1(CustomTabPanel, {
|
|
39357
|
+
value,
|
|
39358
|
+
index: 1,
|
|
39359
|
+
children: /* @__PURE__ */ jsx$1(Box$1, {
|
|
39360
|
+
className: "thumbnails-container",
|
|
39361
|
+
children: /* @__PURE__ */ jsx$1(Box$1, {
|
|
39362
|
+
className: "thumbnails",
|
|
39363
|
+
children: /* @__PURE__ */ jsxs(Box$1, {
|
|
39364
|
+
display: "flex",
|
|
39365
|
+
flexDirection: "column",
|
|
39366
|
+
justifyContent: "space-evenly",
|
|
39367
|
+
alignItems: "center",
|
|
39368
|
+
width: "100%",
|
|
39369
|
+
children: [base64.secondImage ? /* @__PURE__ */ jsxs("div", {
|
|
39370
|
+
className: "img-container",
|
|
39371
|
+
style: {
|
|
39372
|
+
transition: "transform 0.3s ease-in-out, width 0.3s ease-in-out",
|
|
39373
|
+
width: "100%",
|
|
39374
|
+
position: "relative",
|
|
39375
|
+
zIndex: 1
|
|
39376
|
+
},
|
|
39377
|
+
children: [/* @__PURE__ */ jsx$1("img", {
|
|
39378
|
+
src: base64.secondImage,
|
|
39379
|
+
alt: "thumbnail",
|
|
39380
|
+
style: {
|
|
39381
|
+
width: "100%",
|
|
39382
|
+
height: "auto"
|
|
39383
|
+
}
|
|
39384
|
+
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
39385
|
+
style: {
|
|
39386
|
+
position: "absolute",
|
|
39387
|
+
top: 0,
|
|
39388
|
+
right: 0,
|
|
39389
|
+
display: "flex",
|
|
39390
|
+
gap: "8px",
|
|
39391
|
+
zIndex: 20
|
|
39392
|
+
},
|
|
39393
|
+
children: [/* @__PURE__ */ jsx$1(Box$1, {
|
|
39394
|
+
className: "rotate-button",
|
|
39395
|
+
onClick: toggleZoom,
|
|
39396
|
+
sx: {
|
|
39397
|
+
backgroundColor: "rgba(255, 255, 255, 0.7)",
|
|
39398
|
+
borderRadius: "50%",
|
|
39399
|
+
padding: "4px",
|
|
39400
|
+
cursor: "pointer",
|
|
39401
|
+
display: "flex",
|
|
39402
|
+
alignItems: "center",
|
|
39403
|
+
justifyContent: "center"
|
|
39404
|
+
},
|
|
39405
|
+
children: /* @__PURE__ */ jsx$1(MUITooltip, {
|
|
39406
|
+
title: "Girar",
|
|
39407
|
+
placement: "right",
|
|
39408
|
+
arrow: true,
|
|
39409
|
+
children: /* @__PURE__ */ jsx$1(CropRotate, {
|
|
39410
|
+
sx: {
|
|
39411
|
+
width: "18px"
|
|
39412
|
+
}
|
|
39413
|
+
})
|
|
39414
|
+
})
|
|
39415
|
+
}), /* @__PURE__ */ jsx$1(Box$1, {
|
|
39416
|
+
className: "delete-button",
|
|
39417
|
+
onClick: () => deleteImage("secondImage"),
|
|
39418
|
+
sx: {
|
|
39419
|
+
backgroundColor: "rgba(255, 255, 255, 0.7)",
|
|
39420
|
+
borderRadius: "50%",
|
|
39421
|
+
padding: "4px",
|
|
39422
|
+
cursor: "pointer",
|
|
39423
|
+
display: "flex",
|
|
39424
|
+
alignItems: "center",
|
|
39425
|
+
justifyContent: "center"
|
|
39426
|
+
},
|
|
39427
|
+
children: /* @__PURE__ */ jsx$1(MUITooltip, {
|
|
39428
|
+
title: "Vaciar",
|
|
39429
|
+
placement: "right",
|
|
39430
|
+
arrow: true,
|
|
39431
|
+
children: /* @__PURE__ */ jsx$1(Typography$1, {
|
|
39432
|
+
variant: "body2",
|
|
39433
|
+
children: "x"
|
|
39434
|
+
})
|
|
39435
|
+
})
|
|
39436
|
+
})]
|
|
39437
|
+
})]
|
|
39438
|
+
}) : /* @__PURE__ */ jsx$1(UploadDocument, {
|
|
39439
|
+
setActivateCamera,
|
|
39440
|
+
activateCamera,
|
|
39441
|
+
webcamRef,
|
|
39442
|
+
Webcam: Webcam2,
|
|
39443
|
+
videoConstraints,
|
|
39444
|
+
base64,
|
|
39445
|
+
detail: "Subir reverso del documento"
|
|
39446
|
+
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
39447
|
+
width: "100%",
|
|
39448
|
+
children: [activateCamera && /* @__PURE__ */ jsx$1(CustomButton, {
|
|
39449
|
+
type: "button",
|
|
39450
|
+
onClick: () => onUploadImage("secondImage"),
|
|
39451
|
+
children: "Capturar"
|
|
39452
|
+
}), !status && Object.keys(base64).length > 0 && !activateCamera && lib$1(status) && (!dualModeRequired && base64.secondImage || dualModeRequired && base64.firstImage && base64.secondImage) && /* @__PURE__ */ jsx$1(CustomButton, {
|
|
39453
|
+
type: "submit",
|
|
39454
|
+
children: "Procesar"
|
|
39455
|
+
})]
|
|
39456
|
+
})]
|
|
39457
|
+
})
|
|
39458
|
+
})
|
|
39459
|
+
})
|
|
39460
|
+
}), showZoom && /* @__PURE__ */ jsx$1(Box$1, {
|
|
39461
|
+
sx: {
|
|
39462
|
+
position: "fixed",
|
|
39463
|
+
top: 0,
|
|
39464
|
+
left: 0,
|
|
39465
|
+
width: "100%",
|
|
39466
|
+
height: "100%",
|
|
39467
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
39468
|
+
display: "flex",
|
|
39469
|
+
justifyContent: "center",
|
|
39470
|
+
alignItems: "center",
|
|
39471
|
+
zIndex: 999
|
|
39472
|
+
},
|
|
39473
|
+
children: /* @__PURE__ */ jsxs(Box$1, {
|
|
39474
|
+
display: "flex",
|
|
39475
|
+
justifyContent: "center",
|
|
39476
|
+
alignItems: "center",
|
|
39477
|
+
position: "relative",
|
|
39478
|
+
height: 525,
|
|
39479
|
+
children: [/* @__PURE__ */ jsx$1(Box$1, {
|
|
39480
|
+
className: "delete-button",
|
|
39481
|
+
onClick: toggleZoom,
|
|
39482
|
+
sx: {
|
|
39483
|
+
width: "30px",
|
|
39484
|
+
height: "30px",
|
|
39485
|
+
backgroundColor: "#202124",
|
|
39486
|
+
borderRadius: "50%",
|
|
39487
|
+
cursor: "pointer",
|
|
39488
|
+
display: "flex",
|
|
39489
|
+
alignItems: "center",
|
|
39490
|
+
justifyContent: "center",
|
|
39491
|
+
position: "absolute",
|
|
39492
|
+
color: "red",
|
|
39493
|
+
zIndex: 111111,
|
|
39494
|
+
bottom: 10,
|
|
39495
|
+
right: 55
|
|
39496
|
+
},
|
|
39497
|
+
children: /* @__PURE__ */ jsx$1(MUITooltip, {
|
|
39498
|
+
title: "Vaciar",
|
|
39499
|
+
placement: "right",
|
|
39500
|
+
arrow: true,
|
|
39501
|
+
children: /* @__PURE__ */ jsx$1(ArrowUpward, {
|
|
39502
|
+
sx: {
|
|
39503
|
+
color: "white"
|
|
39504
|
+
}
|
|
39505
|
+
})
|
|
39506
|
+
})
|
|
39507
|
+
}), /* @__PURE__ */ jsx$1("img", {
|
|
39508
|
+
src: value === 0 ? base64.firstImage : base64.secondImage,
|
|
39509
|
+
alt: "zoomed",
|
|
39510
|
+
onClick: toggleZoom,
|
|
39511
|
+
style: {
|
|
39512
|
+
maxWidth: showZoom ? "140%" : "100%",
|
|
39513
|
+
maxHeight: "90%",
|
|
39514
|
+
objectFit: "contain",
|
|
39515
|
+
borderRadius: "5px",
|
|
39516
|
+
transform: showZoom ? "rotate(90deg)" : "none"
|
|
39517
|
+
}
|
|
39518
|
+
})]
|
|
39519
|
+
})
|
|
39520
|
+
})]
|
|
39521
|
+
});
|
|
39522
|
+
}
|
|
38116
39523
|
var reactWebcam = { exports: {} };
|
|
38117
39524
|
(function(module, exports) {
|
|
38118
39525
|
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
@@ -38529,13 +39936,13 @@ function DocumentReader({
|
|
|
38529
39936
|
message,
|
|
38530
39937
|
clearState,
|
|
38531
39938
|
base64,
|
|
38532
|
-
setBase64,
|
|
38533
39939
|
countryCode,
|
|
38534
39940
|
onUploadImage,
|
|
38535
|
-
webcamRef,
|
|
38536
39941
|
activateCamera,
|
|
38537
39942
|
setActivateCamera,
|
|
38538
|
-
|
|
39943
|
+
webcamRef,
|
|
39944
|
+
videoConstraints,
|
|
39945
|
+
setBase64
|
|
38539
39946
|
} = DocumentReaderController(dataDocument, clientId, authorize, eventId, source2, inProduction, countryCodeAllowed, validateVpn, successMessage, dualModeRequired);
|
|
38540
39947
|
return /* @__PURE__ */ jsxs("div", {
|
|
38541
39948
|
className: `kit-gbc ${mode}`,
|
|
@@ -38566,100 +39973,17 @@ function DocumentReader({
|
|
|
38566
39973
|
}) : /* @__PURE__ */ jsx$1("p", {
|
|
38567
39974
|
children: "Ubique su documento de identidad dentro del recuadro lo m\xE1s centrado posible."
|
|
38568
39975
|
})]
|
|
38569
|
-
}), lib$1(status) && /* @__PURE__ */
|
|
38570
|
-
|
|
38571
|
-
|
|
38572
|
-
|
|
38573
|
-
|
|
38574
|
-
|
|
38575
|
-
|
|
38576
|
-
|
|
38577
|
-
|
|
38578
|
-
|
|
38579
|
-
|
|
38580
|
-
display: "flex",
|
|
38581
|
-
justifyContent: "center",
|
|
38582
|
-
alignItems: "center",
|
|
38583
|
-
children: [activateCamera && /* @__PURE__ */ jsx$1(Webcam, {
|
|
38584
|
-
ref: webcamRef,
|
|
38585
|
-
videoConstraints,
|
|
38586
|
-
forceScreenshotSourceSize: true,
|
|
38587
|
-
audio: false,
|
|
38588
|
-
style: {
|
|
38589
|
-
width: "98%",
|
|
38590
|
-
height: "auto",
|
|
38591
|
-
objectFit: "cover",
|
|
38592
|
-
position: "absolute",
|
|
38593
|
-
top: "50%",
|
|
38594
|
-
left: "50%",
|
|
38595
|
-
transform: "translate(-50%, -50%)",
|
|
38596
|
-
borderRadius: "15px"
|
|
38597
|
-
}
|
|
38598
|
-
}), !activateCamera && Object.keys(base64).length === 0 && /* @__PURE__ */ jsxs(Box$1, {
|
|
38599
|
-
children: [/* @__PURE__ */ jsx$1(CloudUploadIcon, {}), /* @__PURE__ */ jsx$1(Typography$1, {
|
|
38600
|
-
variant: "h6",
|
|
38601
|
-
className: "title",
|
|
38602
|
-
mt: 2,
|
|
38603
|
-
children: "Cargar documento"
|
|
38604
|
-
}), /* @__PURE__ */ jsx$1(Typography$1, {
|
|
38605
|
-
variant: "body2",
|
|
38606
|
-
children: " Subir frontal y reverso"
|
|
38607
|
-
})]
|
|
38608
|
-
})]
|
|
38609
|
-
}), Object.keys(base64).length > 0 && /* @__PURE__ */ jsx$1(Box$1, {
|
|
38610
|
-
className: "delete-button",
|
|
38611
|
-
onClick: () => setBase64({}),
|
|
38612
|
-
children: /* @__PURE__ */ jsx$1(MUITooltip, {
|
|
38613
|
-
title: "Vaciar",
|
|
38614
|
-
placement: "right",
|
|
38615
|
-
arrow: true,
|
|
38616
|
-
children: /* @__PURE__ */ jsx$1(Typography$1, {
|
|
38617
|
-
variant: "body2",
|
|
38618
|
-
children: "x"
|
|
38619
|
-
})
|
|
38620
|
-
})
|
|
38621
|
-
})]
|
|
38622
|
-
}), /* @__PURE__ */ jsx$1(Box$1, {
|
|
38623
|
-
className: "thumbnails-container",
|
|
38624
|
-
children: /* @__PURE__ */ jsx$1(Box$1, {
|
|
38625
|
-
className: "thumbnails",
|
|
38626
|
-
children: /* @__PURE__ */ jsx$1(Box$1, {
|
|
38627
|
-
display: "flex",
|
|
38628
|
-
justifyContent: "space-evenly",
|
|
38629
|
-
alignItems: "center",
|
|
38630
|
-
width: "100%",
|
|
38631
|
-
children: base64 && base64.firstImage && /* @__PURE__ */ jsxs(Fragment, {
|
|
38632
|
-
children: [/* @__PURE__ */ jsx$1("div", {
|
|
38633
|
-
className: "img-container",
|
|
38634
|
-
children: /* @__PURE__ */ jsx$1("img", {
|
|
38635
|
-
src: base64.firstImage,
|
|
38636
|
-
alt: "thumbnail"
|
|
38637
|
-
})
|
|
38638
|
-
}), base64.secondImage ? /* @__PURE__ */ jsx$1("div", {
|
|
38639
|
-
className: "img-container",
|
|
38640
|
-
children: /* @__PURE__ */ jsx$1("img", {
|
|
38641
|
-
src: base64.secondImage,
|
|
38642
|
-
alt: "thumbnail"
|
|
38643
|
-
})
|
|
38644
|
-
}) : /* @__PURE__ */ jsx$1(Box$1, {
|
|
38645
|
-
className: "second-image",
|
|
38646
|
-
onClick: () => setActivateCamera(true),
|
|
38647
|
-
children: "+"
|
|
38648
|
-
})]
|
|
38649
|
-
})
|
|
38650
|
-
})
|
|
38651
|
-
})
|
|
38652
|
-
})]
|
|
38653
|
-
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
38654
|
-
width: "100%",
|
|
38655
|
-
children: [activateCamera && /* @__PURE__ */ jsx$1(CustomButton, {
|
|
38656
|
-
type: "button",
|
|
38657
|
-
onClick: onUploadImage,
|
|
38658
|
-
children: "Capturar"
|
|
38659
|
-
}), !status && Object.keys(base64).length > 0 && !activateCamera && lib$1(status) && (!dualModeRequired || dualModeRequired && base64.secondImage) && /* @__PURE__ */ jsx$1(CustomButton, {
|
|
38660
|
-
type: "submit",
|
|
38661
|
-
children: "Procesar"
|
|
38662
|
-
})]
|
|
39976
|
+
}), lib$1(status) && /* @__PURE__ */ jsx$1(SideDocsSelector, {
|
|
39977
|
+
base64,
|
|
39978
|
+
setBase64,
|
|
39979
|
+
setActivateCamera,
|
|
39980
|
+
activateCamera,
|
|
39981
|
+
webcamRef,
|
|
39982
|
+
Webcam,
|
|
39983
|
+
videoConstraints,
|
|
39984
|
+
onUploadImage,
|
|
39985
|
+
dualModeRequired,
|
|
39986
|
+
status
|
|
38663
39987
|
})]
|
|
38664
39988
|
})
|
|
38665
39989
|
})]
|
|
@@ -40427,7 +41751,7 @@ const UploadIcon = () => {
|
|
|
40427
41751
|
})]
|
|
40428
41752
|
});
|
|
40429
41753
|
};
|
|
40430
|
-
function
|
|
41754
|
+
function UploadDocumentBulkProcess({
|
|
40431
41755
|
message,
|
|
40432
41756
|
id,
|
|
40433
41757
|
subtitle,
|
|
@@ -40447,6 +41771,12 @@ function UploadDocument({
|
|
|
40447
41771
|
})
|
|
40448
41772
|
}, id);
|
|
40449
41773
|
}
|
|
41774
|
+
UploadDocumentBulkProcess.propTypes = {
|
|
41775
|
+
message: propTypes.exports.PropTypes.string,
|
|
41776
|
+
id: propTypes.exports.PropTypes.string,
|
|
41777
|
+
subtitle: propTypes.exports.PropTypes.string,
|
|
41778
|
+
className: propTypes.exports.PropTypes.string
|
|
41779
|
+
};
|
|
40450
41780
|
var csv = { exports: {} };
|
|
40451
41781
|
(function(module) {
|
|
40452
41782
|
(function(root2, factory) {
|
|
@@ -56653,7 +57983,7 @@ function BulkVerification({
|
|
|
56653
57983
|
alignItems: "center",
|
|
56654
57984
|
display: "flex"
|
|
56655
57985
|
},
|
|
56656
|
-
children: [/* @__PURE__ */ jsx$1(
|
|
57986
|
+
children: [/* @__PURE__ */ jsx$1(UploadDocumentBulkProcess, {
|
|
56657
57987
|
id: "front",
|
|
56658
57988
|
message: `${csvFile ? "Cambiar archivo" : "Cargar archivo"}`,
|
|
56659
57989
|
subtitle: "Formato soportado: CSV",
|
|
@@ -56697,7 +58027,9 @@ BulkVerification.propTypes = {
|
|
|
56697
58027
|
countryCodeAllowed: propTypes.exports.PropTypes.array,
|
|
56698
58028
|
source: propTypes.exports.PropTypes.string,
|
|
56699
58029
|
eventId: propTypes.exports.PropTypes.string,
|
|
56700
|
-
validateVpn: propTypes.exports.PropTypes.bool
|
|
58030
|
+
validateVpn: propTypes.exports.PropTypes.bool,
|
|
58031
|
+
successMessage: propTypes.exports.PropTypes.string,
|
|
58032
|
+
alertMessage: propTypes.exports.PropTypes.string
|
|
56701
58033
|
};
|
|
56702
58034
|
var bootstrap_min = "";
|
|
56703
58035
|
var bootstrap_bundle_min = { exports: {} };
|