gbc-kyc-kit 1.6.13 → 1.6.15
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 +117 -69
- package/dist/gbc-kyc-kit.umd.js +45 -45
- package/package.json +1 -1
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -22804,7 +22804,7 @@ function unstable_createStyleFunctionSx() {
|
|
|
22804
22804
|
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
22805
22805
|
styleFunctionSx.filterProps = ["sx"];
|
|
22806
22806
|
var styleFunctionSx$1 = styleFunctionSx;
|
|
22807
|
-
const _excluded$
|
|
22807
|
+
const _excluded$h = ["sx"];
|
|
22808
22808
|
const splitProps = (props) => {
|
|
22809
22809
|
var _props$theme$unstable, _props$theme;
|
|
22810
22810
|
const result = {
|
|
@@ -22824,7 +22824,7 @@ const splitProps = (props) => {
|
|
|
22824
22824
|
function extendSxProp(props) {
|
|
22825
22825
|
const {
|
|
22826
22826
|
sx: inSx
|
|
22827
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
22827
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$h);
|
|
22828
22828
|
const {
|
|
22829
22829
|
systemProps,
|
|
22830
22830
|
otherProps
|
|
@@ -22847,7 +22847,7 @@ function extendSxProp(props) {
|
|
|
22847
22847
|
sx: finalSx
|
|
22848
22848
|
});
|
|
22849
22849
|
}
|
|
22850
|
-
const _excluded$
|
|
22850
|
+
const _excluded$g = ["values", "unit", "step"];
|
|
22851
22851
|
const sortBreakpointsValues = (values2) => {
|
|
22852
22852
|
const breakpointsAsArray = Object.keys(values2).map((key) => ({
|
|
22853
22853
|
key,
|
|
@@ -22871,7 +22871,7 @@ function createBreakpoints(breakpoints) {
|
|
|
22871
22871
|
},
|
|
22872
22872
|
unit = "px",
|
|
22873
22873
|
step = 5
|
|
22874
|
-
} = breakpoints, other = _objectWithoutPropertiesLoose$1(breakpoints, _excluded$
|
|
22874
|
+
} = breakpoints, other = _objectWithoutPropertiesLoose$1(breakpoints, _excluded$g);
|
|
22875
22875
|
const sortedValues = sortBreakpointsValues(values2);
|
|
22876
22876
|
const keys2 = Object.keys(sortedValues);
|
|
22877
22877
|
function up(key) {
|
|
@@ -22934,14 +22934,14 @@ function createSpacing(spacingInput = 8) {
|
|
|
22934
22934
|
spacing.mui = true;
|
|
22935
22935
|
return spacing;
|
|
22936
22936
|
}
|
|
22937
|
-
const _excluded$
|
|
22937
|
+
const _excluded$f = ["breakpoints", "palette", "spacing", "shape"];
|
|
22938
22938
|
function createTheme$1(options = {}, ...args) {
|
|
22939
22939
|
const {
|
|
22940
22940
|
breakpoints: breakpointsInput = {},
|
|
22941
22941
|
palette: paletteInput = {},
|
|
22942
22942
|
spacing: spacingInput,
|
|
22943
22943
|
shape: shapeInput = {}
|
|
22944
|
-
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$
|
|
22944
|
+
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$f);
|
|
22945
22945
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
22946
22946
|
const spacing = createSpacing(spacingInput);
|
|
22947
22947
|
let muiTheme = deepmerge({
|
|
@@ -22981,7 +22981,7 @@ const systemDefaultTheme$1 = createTheme$1();
|
|
|
22981
22981
|
function useTheme(defaultTheme2 = systemDefaultTheme$1) {
|
|
22982
22982
|
return useTheme$1(defaultTheme2);
|
|
22983
22983
|
}
|
|
22984
|
-
const _excluded$
|
|
22984
|
+
const _excluded$e = ["className", "component"];
|
|
22985
22985
|
function createBox(options = {}) {
|
|
22986
22986
|
const {
|
|
22987
22987
|
defaultTheme: defaultTheme2,
|
|
@@ -22996,7 +22996,7 @@ function createBox(options = {}) {
|
|
|
22996
22996
|
const _extendSxProp = extendSxProp(inProps), {
|
|
22997
22997
|
className,
|
|
22998
22998
|
component = "div"
|
|
22999
|
-
} = _extendSxProp, other = _objectWithoutPropertiesLoose$1(_extendSxProp, _excluded$
|
|
22999
|
+
} = _extendSxProp, other = _objectWithoutPropertiesLoose$1(_extendSxProp, _excluded$e);
|
|
23000
23000
|
return /* @__PURE__ */ jsx(BoxRoot, _extends$1({
|
|
23001
23001
|
as: component,
|
|
23002
23002
|
ref,
|
|
@@ -23006,14 +23006,14 @@ function createBox(options = {}) {
|
|
|
23006
23006
|
});
|
|
23007
23007
|
return Box2;
|
|
23008
23008
|
}
|
|
23009
|
-
const _excluded$
|
|
23009
|
+
const _excluded$d = ["variant"];
|
|
23010
23010
|
function isEmpty$1(string2) {
|
|
23011
23011
|
return string2.length === 0;
|
|
23012
23012
|
}
|
|
23013
23013
|
function propsToClassKey(props) {
|
|
23014
23014
|
const {
|
|
23015
23015
|
variant
|
|
23016
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
23016
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$d);
|
|
23017
23017
|
let classKey = variant || "";
|
|
23018
23018
|
Object.keys(other).sort().forEach((key) => {
|
|
23019
23019
|
if (key === "color") {
|
|
@@ -23024,7 +23024,7 @@ function propsToClassKey(props) {
|
|
|
23024
23024
|
});
|
|
23025
23025
|
return classKey;
|
|
23026
23026
|
}
|
|
23027
|
-
const _excluded$
|
|
23027
|
+
const _excluded$c = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"], _excluded2 = ["theme"], _excluded3 = ["theme"];
|
|
23028
23028
|
function isEmpty(obj) {
|
|
23029
23029
|
return Object.keys(obj).length === 0;
|
|
23030
23030
|
}
|
|
@@ -23096,7 +23096,7 @@ function createStyled2(input = {}) {
|
|
|
23096
23096
|
skipVariantsResolver: inputSkipVariantsResolver,
|
|
23097
23097
|
skipSx: inputSkipSx,
|
|
23098
23098
|
overridesResolver
|
|
23099
|
-
} = inputOptions, options = _objectWithoutPropertiesLoose$1(inputOptions, _excluded$
|
|
23099
|
+
} = inputOptions, options = _objectWithoutPropertiesLoose$1(inputOptions, _excluded$c);
|
|
23100
23100
|
const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : componentSlot && componentSlot !== "Root" || false;
|
|
23101
23101
|
const skipSx = inputSkipSx || false;
|
|
23102
23102
|
let label;
|
|
@@ -23358,7 +23358,7 @@ function createMixins(breakpoints, mixins) {
|
|
|
23358
23358
|
}
|
|
23359
23359
|
}, mixins);
|
|
23360
23360
|
}
|
|
23361
|
-
const _excluded$
|
|
23361
|
+
const _excluded$b = ["mode", "contrastThreshold", "tonalOffset"];
|
|
23362
23362
|
const light = {
|
|
23363
23363
|
text: {
|
|
23364
23364
|
primary: "rgba(0, 0, 0, 0.87)",
|
|
@@ -23512,7 +23512,7 @@ function createPalette(palette) {
|
|
|
23512
23512
|
mode = "light",
|
|
23513
23513
|
contrastThreshold = 3,
|
|
23514
23514
|
tonalOffset = 0.2
|
|
23515
|
-
} = palette, other = _objectWithoutPropertiesLoose$1(palette, _excluded$
|
|
23515
|
+
} = palette, other = _objectWithoutPropertiesLoose$1(palette, _excluded$b);
|
|
23516
23516
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
23517
23517
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
23518
23518
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -23589,7 +23589,7 @@ function createPalette(palette) {
|
|
|
23589
23589
|
}, modes[mode]), other);
|
|
23590
23590
|
return paletteOutput;
|
|
23591
23591
|
}
|
|
23592
|
-
const _excluded$
|
|
23592
|
+
const _excluded$a = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
23593
23593
|
function round(value) {
|
|
23594
23594
|
return Math.round(value * 1e5) / 1e5;
|
|
23595
23595
|
}
|
|
@@ -23608,7 +23608,7 @@ function createTypography(palette, typography) {
|
|
|
23608
23608
|
htmlFontSize = 16,
|
|
23609
23609
|
allVariants,
|
|
23610
23610
|
pxToRem: pxToRem2
|
|
23611
|
-
} = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$
|
|
23611
|
+
} = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$a);
|
|
23612
23612
|
const coef = fontSize / 14;
|
|
23613
23613
|
const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
|
|
23614
23614
|
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$1({
|
|
@@ -23662,7 +23662,7 @@ function createShadow(...px) {
|
|
|
23662
23662
|
}
|
|
23663
23663
|
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)];
|
|
23664
23664
|
var shadows$1 = shadows;
|
|
23665
|
-
const _excluded$
|
|
23665
|
+
const _excluded$9 = ["duration", "easing", "delay"];
|
|
23666
23666
|
const easing = {
|
|
23667
23667
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
23668
23668
|
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
@@ -23697,7 +23697,7 @@ function createTransitions(inputTransitions) {
|
|
|
23697
23697
|
easing: easingOption = mergedEasing.easeInOut,
|
|
23698
23698
|
delay = 0
|
|
23699
23699
|
} = options;
|
|
23700
|
-
_objectWithoutPropertiesLoose$1(options, _excluded$
|
|
23700
|
+
_objectWithoutPropertiesLoose$1(options, _excluded$9);
|
|
23701
23701
|
return (Array.isArray(props) ? props : [props]).map((animatedProp) => `${animatedProp} ${typeof durationOption === "string" ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === "string" ? delay : formatMs(delay)}`).join(",");
|
|
23702
23702
|
};
|
|
23703
23703
|
return _extends$1({
|
|
@@ -23719,14 +23719,14 @@ const zIndex = {
|
|
|
23719
23719
|
tooltip: 1500
|
|
23720
23720
|
};
|
|
23721
23721
|
var zIndex$1 = zIndex;
|
|
23722
|
-
const _excluded$
|
|
23722
|
+
const _excluded$8 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
23723
23723
|
function createTheme(options = {}, ...args) {
|
|
23724
23724
|
const {
|
|
23725
23725
|
mixins: mixinsInput = {},
|
|
23726
23726
|
palette: paletteInput = {},
|
|
23727
23727
|
transitions: transitionsInput = {},
|
|
23728
23728
|
typography: typographyInput = {}
|
|
23729
|
-
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$
|
|
23729
|
+
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$8);
|
|
23730
23730
|
if (options.vars) {
|
|
23731
23731
|
throw new Error(formatMuiErrorMessage(18));
|
|
23732
23732
|
}
|
|
@@ -23773,8 +23773,8 @@ function getSvgIconUtilityClass(slot) {
|
|
|
23773
23773
|
return generateUtilityClass("MuiSvgIcon", slot);
|
|
23774
23774
|
}
|
|
23775
23775
|
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
23776
|
-
const _excluded$
|
|
23777
|
-
const useUtilityClasses$
|
|
23776
|
+
const _excluded$7 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
23777
|
+
const useUtilityClasses$6 = (ownerState) => {
|
|
23778
23778
|
const {
|
|
23779
23779
|
color: color2,
|
|
23780
23780
|
fontSize,
|
|
@@ -23837,7 +23837,7 @@ const SvgIcon = /* @__PURE__ */ React$1.forwardRef(function SvgIcon2(inProps, re
|
|
|
23837
23837
|
inheritViewBox = false,
|
|
23838
23838
|
titleAccess,
|
|
23839
23839
|
viewBox = "0 0 24 24"
|
|
23840
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
23840
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$7);
|
|
23841
23841
|
const ownerState = _extends$1({}, props, {
|
|
23842
23842
|
color: color2,
|
|
23843
23843
|
component,
|
|
@@ -23850,7 +23850,7 @@ const SvgIcon = /* @__PURE__ */ React$1.forwardRef(function SvgIcon2(inProps, re
|
|
|
23850
23850
|
if (!inheritViewBox) {
|
|
23851
23851
|
more.viewBox = viewBox;
|
|
23852
23852
|
}
|
|
23853
|
-
const classes = useUtilityClasses$
|
|
23853
|
+
const classes = useUtilityClasses$6(ownerState);
|
|
23854
23854
|
return /* @__PURE__ */ jsxs(SvgIconRoot, _extends$1({
|
|
23855
23855
|
as: component,
|
|
23856
23856
|
className: clsx(classes.root, className),
|
|
@@ -24119,7 +24119,7 @@ function Ripple(props) {
|
|
|
24119
24119
|
}
|
|
24120
24120
|
const touchRippleClasses = generateUtilityClasses("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]);
|
|
24121
24121
|
var touchRippleClasses$1 = touchRippleClasses;
|
|
24122
|
-
const _excluded$
|
|
24122
|
+
const _excluded$6 = ["center", "classes", "className"];
|
|
24123
24123
|
let _ = (t2) => t2, _t, _t2, _t3, _t4;
|
|
24124
24124
|
const DURATION = 550;
|
|
24125
24125
|
const DELAY_RIPPLE = 80;
|
|
@@ -24234,7 +24234,7 @@ const TouchRipple = /* @__PURE__ */ React$1.forwardRef(function TouchRipple2(inP
|
|
|
24234
24234
|
center: centerProp = false,
|
|
24235
24235
|
classes = {},
|
|
24236
24236
|
className
|
|
24237
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
24237
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$6);
|
|
24238
24238
|
const [ripples, setRipples] = React$1.useState([]);
|
|
24239
24239
|
const nextKey = React$1.useRef(0);
|
|
24240
24240
|
const rippleCallback = React$1.useRef(null);
|
|
@@ -24398,8 +24398,8 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
24398
24398
|
}
|
|
24399
24399
|
const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
|
|
24400
24400
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
24401
|
-
const _excluded$
|
|
24402
|
-
const useUtilityClasses$
|
|
24401
|
+
const _excluded$5 = ["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"];
|
|
24402
|
+
const useUtilityClasses$5 = (ownerState) => {
|
|
24403
24403
|
const {
|
|
24404
24404
|
disabled,
|
|
24405
24405
|
focusVisible,
|
|
@@ -24484,7 +24484,7 @@ const ButtonBase = /* @__PURE__ */ React$1.forwardRef(function ButtonBase2(inPro
|
|
|
24484
24484
|
TouchRippleProps,
|
|
24485
24485
|
touchRippleRef,
|
|
24486
24486
|
type
|
|
24487
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
24487
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$5);
|
|
24488
24488
|
const buttonRef = React$1.useRef(null);
|
|
24489
24489
|
const rippleRef = React$1.useRef(null);
|
|
24490
24490
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -24631,7 +24631,7 @@ const ButtonBase = /* @__PURE__ */ React$1.forwardRef(function ButtonBase2(inPro
|
|
|
24631
24631
|
tabIndex,
|
|
24632
24632
|
focusVisible
|
|
24633
24633
|
});
|
|
24634
|
-
const classes = useUtilityClasses$
|
|
24634
|
+
const classes = useUtilityClasses$5(ownerState);
|
|
24635
24635
|
return /* @__PURE__ */ jsxs(ButtonBaseRoot, _extends$1({
|
|
24636
24636
|
as: ComponentProp,
|
|
24637
24637
|
className: clsx(classes.root, className),
|
|
@@ -24664,8 +24664,8 @@ function getTypographyUtilityClass(slot) {
|
|
|
24664
24664
|
return generateUtilityClass("MuiTypography", slot);
|
|
24665
24665
|
}
|
|
24666
24666
|
generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
24667
|
-
const _excluded$
|
|
24668
|
-
const useUtilityClasses$
|
|
24667
|
+
const _excluded$4 = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
24668
|
+
const useUtilityClasses$4 = (ownerState) => {
|
|
24669
24669
|
const {
|
|
24670
24670
|
align,
|
|
24671
24671
|
gutterBottom,
|
|
@@ -24745,7 +24745,7 @@ const Typography = /* @__PURE__ */ React$1.forwardRef(function Typography2(inPro
|
|
|
24745
24745
|
paragraph = false,
|
|
24746
24746
|
variant = "body1",
|
|
24747
24747
|
variantMapping = defaultVariantMapping
|
|
24748
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
24748
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$4);
|
|
24749
24749
|
const ownerState = _extends$1({}, props, {
|
|
24750
24750
|
align,
|
|
24751
24751
|
color: color2,
|
|
@@ -24758,7 +24758,7 @@ const Typography = /* @__PURE__ */ React$1.forwardRef(function Typography2(inPro
|
|
|
24758
24758
|
variantMapping
|
|
24759
24759
|
});
|
|
24760
24760
|
const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
24761
|
-
const classes = useUtilityClasses$
|
|
24761
|
+
const classes = useUtilityClasses$4(ownerState);
|
|
24762
24762
|
return /* @__PURE__ */ jsx(TypographyRoot, _extends$1({
|
|
24763
24763
|
as: Component,
|
|
24764
24764
|
ref,
|
|
@@ -24798,8 +24798,8 @@ function getSwitchBaseUtilityClass(slot) {
|
|
|
24798
24798
|
return generateUtilityClass("PrivateSwitchBase", slot);
|
|
24799
24799
|
}
|
|
24800
24800
|
generateUtilityClasses("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
24801
|
-
const _excluded$
|
|
24802
|
-
const useUtilityClasses$
|
|
24801
|
+
const _excluded$3 = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"];
|
|
24802
|
+
const useUtilityClasses$3 = (ownerState) => {
|
|
24803
24803
|
const {
|
|
24804
24804
|
classes,
|
|
24805
24805
|
checked,
|
|
@@ -24857,7 +24857,7 @@ const SwitchBase = /* @__PURE__ */ React$1.forwardRef(function SwitchBase2(props
|
|
|
24857
24857
|
tabIndex,
|
|
24858
24858
|
type,
|
|
24859
24859
|
value
|
|
24860
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
24860
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$3);
|
|
24861
24861
|
const [checked, setCheckedState] = useControlled({
|
|
24862
24862
|
controlled: checkedProp,
|
|
24863
24863
|
default: Boolean(defaultChecked),
|
|
@@ -24904,7 +24904,7 @@ const SwitchBase = /* @__PURE__ */ React$1.forwardRef(function SwitchBase2(props
|
|
|
24904
24904
|
disableFocusRipple,
|
|
24905
24905
|
edge
|
|
24906
24906
|
});
|
|
24907
|
-
const classes = useUtilityClasses$
|
|
24907
|
+
const classes = useUtilityClasses$3(ownerState);
|
|
24908
24908
|
return /* @__PURE__ */ jsxs(SwitchBaseRoot, _extends$1({
|
|
24909
24909
|
component: "span",
|
|
24910
24910
|
className: clsx(classes.root, className),
|
|
@@ -24953,8 +24953,8 @@ function getCheckboxUtilityClass(slot) {
|
|
|
24953
24953
|
}
|
|
24954
24954
|
const checkboxClasses = generateUtilityClasses("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary"]);
|
|
24955
24955
|
var checkboxClasses$1 = checkboxClasses;
|
|
24956
|
-
const _excluded$
|
|
24957
|
-
const useUtilityClasses$
|
|
24956
|
+
const _excluded$2 = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
|
24957
|
+
const useUtilityClasses$2 = (ownerState) => {
|
|
24958
24958
|
const {
|
|
24959
24959
|
classes,
|
|
24960
24960
|
indeterminate,
|
|
@@ -25014,7 +25014,7 @@ const Checkbox = /* @__PURE__ */ React$1.forwardRef(function Checkbox2(inProps,
|
|
|
25014
25014
|
inputProps,
|
|
25015
25015
|
size = "medium",
|
|
25016
25016
|
className
|
|
25017
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
25017
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$2);
|
|
25018
25018
|
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
25019
25019
|
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
25020
25020
|
const ownerState = _extends$1({}, props, {
|
|
@@ -25022,7 +25022,7 @@ const Checkbox = /* @__PURE__ */ React$1.forwardRef(function Checkbox2(inProps,
|
|
|
25022
25022
|
indeterminate,
|
|
25023
25023
|
size
|
|
25024
25024
|
});
|
|
25025
|
-
const classes = useUtilityClasses$
|
|
25025
|
+
const classes = useUtilityClasses$2(ownerState);
|
|
25026
25026
|
return /* @__PURE__ */ jsx(CheckboxRoot, _extends$1({
|
|
25027
25027
|
type: "checkbox",
|
|
25028
25028
|
inputProps: _extends$1({
|
|
@@ -25047,8 +25047,8 @@ function getFormControlLabelUtilityClasses(slot) {
|
|
|
25047
25047
|
}
|
|
25048
25048
|
const formControlLabelClasses = generateUtilityClasses("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error"]);
|
|
25049
25049
|
var formControlLabelClasses$1 = formControlLabelClasses;
|
|
25050
|
-
const _excluded = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"];
|
|
25051
|
-
const useUtilityClasses = (ownerState) => {
|
|
25050
|
+
const _excluded$1 = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"];
|
|
25051
|
+
const useUtilityClasses$1 = (ownerState) => {
|
|
25052
25052
|
const {
|
|
25053
25053
|
classes,
|
|
25054
25054
|
disabled,
|
|
@@ -25118,7 +25118,7 @@ const FormControlLabel = /* @__PURE__ */ React$1.forwardRef(function FormControl
|
|
|
25118
25118
|
label: labelProp,
|
|
25119
25119
|
labelPlacement = "end",
|
|
25120
25120
|
slotProps = {}
|
|
25121
|
-
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded);
|
|
25121
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1);
|
|
25122
25122
|
const muiFormControl = useFormControl();
|
|
25123
25123
|
let disabled = disabledProp;
|
|
25124
25124
|
if (typeof disabled === "undefined" && typeof control.props.disabled !== "undefined") {
|
|
@@ -25145,7 +25145,7 @@ const FormControlLabel = /* @__PURE__ */ React$1.forwardRef(function FormControl
|
|
|
25145
25145
|
labelPlacement,
|
|
25146
25146
|
error: fcs.error
|
|
25147
25147
|
});
|
|
25148
|
-
const classes = useUtilityClasses(ownerState);
|
|
25148
|
+
const classes = useUtilityClasses$1(ownerState);
|
|
25149
25149
|
const typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;
|
|
25150
25150
|
let label = labelProp;
|
|
25151
25151
|
if (label != null && label.type !== Typography$1 && !disableTypography) {
|
|
@@ -25165,6 +25165,67 @@ const FormControlLabel = /* @__PURE__ */ React$1.forwardRef(function FormControl
|
|
|
25165
25165
|
}));
|
|
25166
25166
|
});
|
|
25167
25167
|
var FormControlLabel$1 = FormControlLabel;
|
|
25168
|
+
function getFormGroupUtilityClass(slot) {
|
|
25169
|
+
return generateUtilityClass("MuiFormGroup", slot);
|
|
25170
|
+
}
|
|
25171
|
+
generateUtilityClasses("MuiFormGroup", ["root", "row", "error"]);
|
|
25172
|
+
const _excluded = ["className", "row"];
|
|
25173
|
+
const useUtilityClasses = (ownerState) => {
|
|
25174
|
+
const {
|
|
25175
|
+
classes,
|
|
25176
|
+
row,
|
|
25177
|
+
error
|
|
25178
|
+
} = ownerState;
|
|
25179
|
+
const slots = {
|
|
25180
|
+
root: ["root", row && "row", error && "error"]
|
|
25181
|
+
};
|
|
25182
|
+
return composeClasses(slots, getFormGroupUtilityClass, classes);
|
|
25183
|
+
};
|
|
25184
|
+
const FormGroupRoot = styled$1("div", {
|
|
25185
|
+
name: "MuiFormGroup",
|
|
25186
|
+
slot: "Root",
|
|
25187
|
+
overridesResolver: (props, styles2) => {
|
|
25188
|
+
const {
|
|
25189
|
+
ownerState
|
|
25190
|
+
} = props;
|
|
25191
|
+
return [styles2.root, ownerState.row && styles2.row];
|
|
25192
|
+
}
|
|
25193
|
+
})(({
|
|
25194
|
+
ownerState
|
|
25195
|
+
}) => _extends$1({
|
|
25196
|
+
display: "flex",
|
|
25197
|
+
flexDirection: "column",
|
|
25198
|
+
flexWrap: "wrap"
|
|
25199
|
+
}, ownerState.row && {
|
|
25200
|
+
flexDirection: "row"
|
|
25201
|
+
}));
|
|
25202
|
+
const FormGroup = /* @__PURE__ */ React$1.forwardRef(function FormGroup2(inProps, ref) {
|
|
25203
|
+
const props = useThemeProps({
|
|
25204
|
+
props: inProps,
|
|
25205
|
+
name: "MuiFormGroup"
|
|
25206
|
+
});
|
|
25207
|
+
const {
|
|
25208
|
+
className,
|
|
25209
|
+
row = false
|
|
25210
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded);
|
|
25211
|
+
const muiFormControl = useFormControl();
|
|
25212
|
+
const fcs = formControlState({
|
|
25213
|
+
props,
|
|
25214
|
+
muiFormControl,
|
|
25215
|
+
states: ["error"]
|
|
25216
|
+
});
|
|
25217
|
+
const ownerState = _extends$1({}, props, {
|
|
25218
|
+
row,
|
|
25219
|
+
error: fcs.error
|
|
25220
|
+
});
|
|
25221
|
+
const classes = useUtilityClasses(ownerState);
|
|
25222
|
+
return /* @__PURE__ */ jsx(FormGroupRoot, _extends$1({
|
|
25223
|
+
className: clsx(classes.root, className),
|
|
25224
|
+
ownerState,
|
|
25225
|
+
ref
|
|
25226
|
+
}, other));
|
|
25227
|
+
});
|
|
25228
|
+
var FormGroup$1 = FormGroup;
|
|
25168
25229
|
function StatusComponent({
|
|
25169
25230
|
title,
|
|
25170
25231
|
status,
|
|
@@ -25499,24 +25560,6 @@ function UploadDocument({
|
|
|
25499
25560
|
})
|
|
25500
25561
|
});
|
|
25501
25562
|
}
|
|
25502
|
-
function CustomCheckbox({
|
|
25503
|
-
isActive,
|
|
25504
|
-
id,
|
|
25505
|
-
label,
|
|
25506
|
-
onChange
|
|
25507
|
-
}) {
|
|
25508
|
-
return /* @__PURE__ */ jsx(Box$1, {
|
|
25509
|
-
className: "checkbox",
|
|
25510
|
-
children: /* @__PURE__ */ jsx(FormControlLabel$1, {
|
|
25511
|
-
control: /* @__PURE__ */ jsx(Checkbox$1, {
|
|
25512
|
-
checked: isActive,
|
|
25513
|
-
color: "primary",
|
|
25514
|
-
onChange
|
|
25515
|
-
}),
|
|
25516
|
-
label
|
|
25517
|
-
}, label)
|
|
25518
|
-
});
|
|
25519
|
-
}
|
|
25520
25563
|
function DocumentReader({
|
|
25521
25564
|
mode,
|
|
25522
25565
|
dataDocument,
|
|
@@ -25614,11 +25657,16 @@ function DocumentReader({
|
|
|
25614
25657
|
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
25615
25658
|
width: "100%",
|
|
25616
25659
|
children: [!status && /* @__PURE__ */ jsxs(Box$1, {
|
|
25617
|
-
children: [/* @__PURE__ */ jsx(
|
|
25618
|
-
|
|
25619
|
-
|
|
25620
|
-
|
|
25621
|
-
|
|
25660
|
+
children: [/* @__PURE__ */ jsx(FormGroup$1, {
|
|
25661
|
+
className: "checkbox",
|
|
25662
|
+
children: /* @__PURE__ */ jsx(FormControlLabel$1, {
|
|
25663
|
+
control: /* @__PURE__ */ jsx(Checkbox$1, {
|
|
25664
|
+
checked: dualMode,
|
|
25665
|
+
color: "primary",
|
|
25666
|
+
onChange: () => setDualMode(!dualMode)
|
|
25667
|
+
}),
|
|
25668
|
+
label: "Cargar reverso del documento"
|
|
25669
|
+
})
|
|
25622
25670
|
}), !dualMode && !base64.secondImage && base64.firstImage && lib$1(status) && /* @__PURE__ */ jsx(CustomButton, {
|
|
25623
25671
|
type: "submit",
|
|
25624
25672
|
children: "Procesar"
|