gbc-kyc-kit 1.10.0 → 1.10.2
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 +1435 -295
- package/dist/gbc-kyc-kit.umd.js +82 -81
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React__default, { forwardRef, useEffect, useReducer, useState, useRef, isValidElement, cloneElement, useLayoutEffect, createElement, useContext, useCallback } from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import React__default$1, { forwardRef, useEffect, useReducer, useState, useRef, isValidElement, cloneElement, useLayoutEffect, createElement, useContext, useCallback } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import ReactDOM__default from "react-dom";
|
|
5
5
|
var style$2 = "";
|
|
@@ -3075,11 +3075,11 @@ var main$1 = { exports: {} };
|
|
|
3075
3075
|
}
|
|
3076
3076
|
function sa() {
|
|
3077
3077
|
}
|
|
3078
|
-
function
|
|
3078
|
+
function ua2(e5, t5, n4) {
|
|
3079
3079
|
var r4;
|
|
3080
3080
|
if (t5.nodeType === Node.ELEMENT_NODE && n4(t5), r4 = "template" === t5.localName ? (t5.content || t5._content || t5).childNodes : t5.children || t5.childNodes)
|
|
3081
3081
|
for (t5 = 0; t5 < r4.length; t5++)
|
|
3082
|
-
|
|
3082
|
+
ua2(e5, r4[t5], n4);
|
|
3083
3083
|
}
|
|
3084
3084
|
function ca(e5, t5, n4) {
|
|
3085
3085
|
if (t5) {
|
|
@@ -3092,12 +3092,12 @@ var main$1 = { exports: {} };
|
|
|
3092
3092
|
}
|
|
3093
3093
|
}
|
|
3094
3094
|
function ha(e5, t5, n4) {
|
|
3095
|
-
|
|
3095
|
+
ua2(Qa, e5, function(e6) {
|
|
3096
3096
|
ca(e6, t5, true), ca(e6, n4);
|
|
3097
3097
|
});
|
|
3098
3098
|
}
|
|
3099
3099
|
function da(e5, t5) {
|
|
3100
|
-
|
|
3100
|
+
ua2(Qa, e5, function(e6) {
|
|
3101
3101
|
ca(e6, t5 || "", true);
|
|
3102
3102
|
});
|
|
3103
3103
|
}
|
|
@@ -3493,7 +3493,7 @@ var main$1 = { exports: {} };
|
|
|
3493
3493
|
if (!Wi) {
|
|
3494
3494
|
var n4 = aa(e5);
|
|
3495
3495
|
Di || "shady" === n4 || e5._domPrepared || (e5._domPrepared = true, function(e6, t6) {
|
|
3496
|
-
|
|
3496
|
+
ua2(Qa, e6, function(e7) {
|
|
3497
3497
|
ca(e7, t6 || "");
|
|
3498
3498
|
});
|
|
3499
3499
|
}(e5.content, t5));
|
|
@@ -6580,7 +6580,7 @@ var main$1 = { exports: {} };
|
|
|
6580
6580
|
var t4 = ia(na.current), n4 = ce(t4, e4.type);
|
|
6581
6581
|
t4 !== n4 && (Oo(ra, e4), Oo(na, n4));
|
|
6582
6582
|
}
|
|
6583
|
-
function
|
|
6583
|
+
function ua2(e4) {
|
|
6584
6584
|
ra.current === e4 && (xo(na), xo(ra));
|
|
6585
6585
|
}
|
|
6586
6586
|
var ca = Qo(0);
|
|
@@ -7300,7 +7300,7 @@ var main$1 = { exports: {} };
|
|
|
7300
7300
|
case 3:
|
|
7301
7301
|
return r4 = t4.stateNode, la(), xo(Bo), xo(jo), fa(), r4.pendingContext && (r4.context = r4.pendingContext, r4.pendingContext = null), null !== e4 && null !== e4.child || (gi(t4) ? t4.flags |= 4 : null === e4 || e4.memoizedState.isDehydrated && 0 == (256 & t4.flags) || (t4.flags |= 1024, null !== si && (uu(si), si = null))), Dl(e4, t4), ql(t4), null;
|
|
7302
7302
|
case 5:
|
|
7303
|
-
|
|
7303
|
+
ua2(t4);
|
|
7304
7304
|
var o3 = ia(oa.current);
|
|
7305
7305
|
if (n4 = t4.type, null !== e4 && null != t4.stateNode)
|
|
7306
7306
|
Rl(e4, t4, n4, r4, o3), e4.ref !== t4.ref && (t4.flags |= 512, t4.flags |= 2097152);
|
|
@@ -7536,7 +7536,7 @@ var main$1 = { exports: {} };
|
|
|
7536
7536
|
case 3:
|
|
7537
7537
|
return la(), xo(Bo), xo(jo), fa(), 0 != (65536 & (e4 = t4.flags)) && 0 == (128 & e4) ? (t4.flags = -65537 & e4 | 128, t4) : null;
|
|
7538
7538
|
case 5:
|
|
7539
|
-
return
|
|
7539
|
+
return ua2(t4), null;
|
|
7540
7540
|
case 13:
|
|
7541
7541
|
if (xo(ca), null !== (e4 = t4.memoizedState) && null !== e4.dehydrated) {
|
|
7542
7542
|
if (null === t4.alternate)
|
|
@@ -7642,7 +7642,7 @@ var main$1 = { exports: {} };
|
|
|
7642
7642
|
Qu(e4, t4, r4);
|
|
7643
7643
|
}
|
|
7644
7644
|
}
|
|
7645
|
-
var
|
|
7645
|
+
var os2 = false;
|
|
7646
7646
|
function is(e4, t4, n4) {
|
|
7647
7647
|
var r4 = t4.updateQueue;
|
|
7648
7648
|
if (null !== (r4 = null !== r4 ? r4.lastEffect : null)) {
|
|
@@ -8426,7 +8426,7 @@ var main$1 = { exports: {} };
|
|
|
8426
8426
|
la(), xo(Bo), xo(jo), fa();
|
|
8427
8427
|
break;
|
|
8428
8428
|
case 5:
|
|
8429
|
-
|
|
8429
|
+
ua2(r4);
|
|
8430
8430
|
break;
|
|
8431
8431
|
case 4:
|
|
8432
8432
|
la();
|
|
@@ -8694,7 +8694,7 @@ var main$1 = { exports: {} };
|
|
|
8694
8694
|
}
|
|
8695
8695
|
ts = t6.return;
|
|
8696
8696
|
}
|
|
8697
|
-
p3 =
|
|
8697
|
+
p3 = os2, os2 = false;
|
|
8698
8698
|
}(e5, n5), Is(n5, e5), Cr(ro), Ht = !!no, ro = no = null, e5.current = n5, Es(n5, e5, o4), _e(), js = s2, Et = l3, Ls.transition = i2;
|
|
8699
8699
|
} else
|
|
8700
8700
|
e5.current = n5;
|
|
@@ -16917,8 +16917,8 @@ const INPUT_VALIDATION_RULES = {
|
|
|
16917
16917
|
required: "required",
|
|
16918
16918
|
validate: "validate"
|
|
16919
16919
|
};
|
|
16920
|
-
const HookFormContext = React__default.createContext(null);
|
|
16921
|
-
const useFormContext = () => React__default.useContext(HookFormContext);
|
|
16920
|
+
const HookFormContext = React__default$1.createContext(null);
|
|
16921
|
+
const useFormContext = () => React__default$1.useContext(HookFormContext);
|
|
16922
16922
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
16923
16923
|
const result = {
|
|
16924
16924
|
defaultValues: control._defaultValues
|
|
@@ -16946,9 +16946,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
|
|
|
16946
16946
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
16947
16947
|
var shouldSubscribeByName = (name, signalName, exact) => exact && signalName ? name === signalName : !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
16948
16948
|
function useSubscribe(props) {
|
|
16949
|
-
const _props = React__default.useRef(props);
|
|
16949
|
+
const _props = React__default$1.useRef(props);
|
|
16950
16950
|
_props.current = props;
|
|
16951
|
-
React__default.useEffect(() => {
|
|
16951
|
+
React__default$1.useEffect(() => {
|
|
16952
16952
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
16953
16953
|
next: _props.current.next
|
|
16954
16954
|
});
|
|
@@ -16960,9 +16960,9 @@ function useSubscribe(props) {
|
|
|
16960
16960
|
function useFormState(props) {
|
|
16961
16961
|
const methods = useFormContext();
|
|
16962
16962
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
16963
|
-
const [formState, updateFormState] = React__default.useState(control._formState);
|
|
16964
|
-
const _mounted = React__default.useRef(true);
|
|
16965
|
-
const _localProxyFormState = React__default.useRef({
|
|
16963
|
+
const [formState, updateFormState] = React__default$1.useState(control._formState);
|
|
16964
|
+
const _mounted = React__default$1.useRef(true);
|
|
16965
|
+
const _localProxyFormState = React__default$1.useRef({
|
|
16966
16966
|
isDirty: false,
|
|
16967
16967
|
isLoading: false,
|
|
16968
16968
|
dirtyFields: false,
|
|
@@ -16971,7 +16971,7 @@ function useFormState(props) {
|
|
|
16971
16971
|
isValid: false,
|
|
16972
16972
|
errors: false
|
|
16973
16973
|
});
|
|
16974
|
-
const _name = React__default.useRef(name);
|
|
16974
|
+
const _name = React__default$1.useRef(name);
|
|
16975
16975
|
_name.current = name;
|
|
16976
16976
|
useSubscribe({
|
|
16977
16977
|
disabled,
|
|
@@ -16981,7 +16981,7 @@ function useFormState(props) {
|
|
|
16981
16981
|
}),
|
|
16982
16982
|
subject: control._subjects.state
|
|
16983
16983
|
});
|
|
16984
|
-
React__default.useEffect(() => {
|
|
16984
|
+
React__default$1.useEffect(() => {
|
|
16985
16985
|
_mounted.current = true;
|
|
16986
16986
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
16987
16987
|
return () => {
|
|
@@ -17005,7 +17005,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) =>
|
|
|
17005
17005
|
function useWatch(props) {
|
|
17006
17006
|
const methods = useFormContext();
|
|
17007
17007
|
const { control = methods.control, name, defaultValue, disabled, exact } = props || {};
|
|
17008
|
-
const _name = React__default.useRef(name);
|
|
17008
|
+
const _name = React__default$1.useRef(name);
|
|
17009
17009
|
_name.current = name;
|
|
17010
17010
|
useSubscribe({
|
|
17011
17011
|
disabled,
|
|
@@ -17016,8 +17016,8 @@ function useWatch(props) {
|
|
|
17016
17016
|
}
|
|
17017
17017
|
}
|
|
17018
17018
|
});
|
|
17019
|
-
const [value, updateValue] = React__default.useState(control._getWatch(name, defaultValue));
|
|
17020
|
-
React__default.useEffect(() => control._removeUnmounted());
|
|
17019
|
+
const [value, updateValue] = React__default$1.useState(control._getWatch(name, defaultValue));
|
|
17020
|
+
React__default$1.useEffect(() => control._removeUnmounted());
|
|
17021
17021
|
return value;
|
|
17022
17022
|
}
|
|
17023
17023
|
var isKey$4 = (value) => /^\w*$/.test(value);
|
|
@@ -17053,12 +17053,12 @@ function useController(props) {
|
|
|
17053
17053
|
control,
|
|
17054
17054
|
name
|
|
17055
17055
|
});
|
|
17056
|
-
const _registerProps = React__default.useRef(control.register(name, {
|
|
17056
|
+
const _registerProps = React__default$1.useRef(control.register(name, {
|
|
17057
17057
|
...props.rules,
|
|
17058
17058
|
value
|
|
17059
17059
|
}));
|
|
17060
17060
|
_registerProps.current = control.register(name, props.rules);
|
|
17061
|
-
React__default.useEffect(() => {
|
|
17061
|
+
React__default$1.useEffect(() => {
|
|
17062
17062
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17063
17063
|
const updateMounted = (name2, value2) => {
|
|
17064
17064
|
const field = get$2(control._fields, name2);
|
|
@@ -17082,14 +17082,14 @@ function useController(props) {
|
|
|
17082
17082
|
field: {
|
|
17083
17083
|
name,
|
|
17084
17084
|
value,
|
|
17085
|
-
onChange: React__default.useCallback((event) => _registerProps.current.onChange({
|
|
17085
|
+
onChange: React__default$1.useCallback((event) => _registerProps.current.onChange({
|
|
17086
17086
|
target: {
|
|
17087
17087
|
value: getEventValue(event),
|
|
17088
17088
|
name
|
|
17089
17089
|
},
|
|
17090
17090
|
type: EVENTS.CHANGE
|
|
17091
17091
|
}), [name]),
|
|
17092
|
-
onBlur: React__default.useCallback(() => _registerProps.current.onBlur({
|
|
17092
|
+
onBlur: React__default$1.useCallback(() => _registerProps.current.onBlur({
|
|
17093
17093
|
target: {
|
|
17094
17094
|
value: get$2(control._formValues, name),
|
|
17095
17095
|
name
|
|
@@ -18276,9 +18276,9 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18276
18276
|
};
|
|
18277
18277
|
}
|
|
18278
18278
|
function useForm(props = {}) {
|
|
18279
|
-
const _formControl = React__default.useRef();
|
|
18280
|
-
const _values = React__default.useRef();
|
|
18281
|
-
const [formState, updateFormState] = React__default.useState({
|
|
18279
|
+
const _formControl = React__default$1.useRef();
|
|
18280
|
+
const _values = React__default$1.useRef();
|
|
18281
|
+
const [formState, updateFormState] = React__default$1.useState({
|
|
18282
18282
|
isDirty: false,
|
|
18283
18283
|
isValidating: false,
|
|
18284
18284
|
isLoading: isFunction$3(props.defaultValues),
|
|
@@ -18308,7 +18308,7 @@ function useForm(props = {}) {
|
|
|
18308
18308
|
}
|
|
18309
18309
|
}
|
|
18310
18310
|
});
|
|
18311
|
-
React__default.useEffect(() => {
|
|
18311
|
+
React__default$1.useEffect(() => {
|
|
18312
18312
|
if (props.values && !deepEqual(props.values, _values.current)) {
|
|
18313
18313
|
control._reset(props.values, control._options.resetOptions);
|
|
18314
18314
|
_values.current = props.values;
|
|
@@ -18316,7 +18316,7 @@ function useForm(props = {}) {
|
|
|
18316
18316
|
control._resetDefaultValues();
|
|
18317
18317
|
}
|
|
18318
18318
|
}, [props.values, control]);
|
|
18319
|
-
React__default.useEffect(() => {
|
|
18319
|
+
React__default$1.useEffect(() => {
|
|
18320
18320
|
if (!control._state.mount) {
|
|
18321
18321
|
control._updateValid();
|
|
18322
18322
|
control._state.mount = true;
|
|
@@ -19028,8 +19028,8 @@ class Condition {
|
|
|
19028
19028
|
function toArray(value) {
|
|
19029
19029
|
return value == null ? [] : [].concat(value);
|
|
19030
19030
|
}
|
|
19031
|
-
function _extends$
|
|
19032
|
-
_extends$
|
|
19031
|
+
function _extends$5() {
|
|
19032
|
+
_extends$5 = Object.assign || function(target) {
|
|
19033
19033
|
for (var i = 1; i < arguments.length; i++) {
|
|
19034
19034
|
var source2 = arguments[i];
|
|
19035
19035
|
for (var key in source2) {
|
|
@@ -19040,14 +19040,14 @@ function _extends$4() {
|
|
|
19040
19040
|
}
|
|
19041
19041
|
return target;
|
|
19042
19042
|
};
|
|
19043
|
-
return _extends$
|
|
19043
|
+
return _extends$5.apply(this, arguments);
|
|
19044
19044
|
}
|
|
19045
19045
|
let strReg = /\$\{\s*(\w+)\s*\}/g;
|
|
19046
19046
|
class ValidationError extends Error {
|
|
19047
19047
|
static formatError(message, params) {
|
|
19048
19048
|
const path = params.label || params.path || "this";
|
|
19049
19049
|
if (path !== params.path)
|
|
19050
|
-
params = _extends$
|
|
19050
|
+
params = _extends$5({}, params, {
|
|
19051
19051
|
path
|
|
19052
19052
|
});
|
|
19053
19053
|
if (typeof message === "string")
|
|
@@ -19150,8 +19150,8 @@ var defineProperty$1 = function() {
|
|
|
19150
19150
|
} catch (e2) {
|
|
19151
19151
|
}
|
|
19152
19152
|
}();
|
|
19153
|
-
var _defineProperty = defineProperty$1;
|
|
19154
|
-
var defineProperty = _defineProperty;
|
|
19153
|
+
var _defineProperty$1 = defineProperty$1;
|
|
19154
|
+
var defineProperty = _defineProperty$1;
|
|
19155
19155
|
function baseAssignValue$2(object2, key, value) {
|
|
19156
19156
|
if (key == "__proto__" && defineProperty) {
|
|
19157
19157
|
defineProperty(object2, key, {
|
|
@@ -19988,8 +19988,8 @@ class Reference {
|
|
|
19988
19988
|
}
|
|
19989
19989
|
}
|
|
19990
19990
|
Reference.prototype.__isYupRef = true;
|
|
19991
|
-
function _extends$
|
|
19992
|
-
_extends$
|
|
19991
|
+
function _extends$4() {
|
|
19992
|
+
_extends$4 = Object.assign || function(target) {
|
|
19993
19993
|
for (var i = 1; i < arguments.length; i++) {
|
|
19994
19994
|
var source2 = arguments[i];
|
|
19995
19995
|
for (var key in source2) {
|
|
@@ -20000,9 +20000,9 @@ function _extends$3() {
|
|
|
20000
20000
|
}
|
|
20001
20001
|
return target;
|
|
20002
20002
|
};
|
|
20003
|
-
return _extends$
|
|
20003
|
+
return _extends$4.apply(this, arguments);
|
|
20004
20004
|
}
|
|
20005
|
-
function _objectWithoutPropertiesLoose$
|
|
20005
|
+
function _objectWithoutPropertiesLoose$2(source2, excluded) {
|
|
20006
20006
|
if (source2 == null)
|
|
20007
20007
|
return {};
|
|
20008
20008
|
var target = {};
|
|
@@ -20025,7 +20025,7 @@ function createValidation(config2) {
|
|
|
20025
20025
|
options,
|
|
20026
20026
|
originalValue,
|
|
20027
20027
|
sync
|
|
20028
|
-
} = _ref, rest = _objectWithoutPropertiesLoose$
|
|
20028
|
+
} = _ref, rest = _objectWithoutPropertiesLoose$2(_ref, ["value", "path", "label", "options", "originalValue", "sync"]);
|
|
20029
20029
|
const {
|
|
20030
20030
|
name,
|
|
20031
20031
|
test,
|
|
@@ -20040,7 +20040,7 @@ function createValidation(config2) {
|
|
|
20040
20040
|
return Reference.isRef(item) ? item.getValue(value, parent, context) : item;
|
|
20041
20041
|
}
|
|
20042
20042
|
function createError(overrides = {}) {
|
|
20043
|
-
const nextParams = mapValues_1(_extends$
|
|
20043
|
+
const nextParams = mapValues_1(_extends$4({
|
|
20044
20044
|
value,
|
|
20045
20045
|
originalValue,
|
|
20046
20046
|
label,
|
|
@@ -20050,7 +20050,7 @@ function createValidation(config2) {
|
|
|
20050
20050
|
error.params = nextParams;
|
|
20051
20051
|
return error;
|
|
20052
20052
|
}
|
|
20053
|
-
let ctx = _extends$
|
|
20053
|
+
let ctx = _extends$4({
|
|
20054
20054
|
path,
|
|
20055
20055
|
parent,
|
|
20056
20056
|
type: name,
|
|
@@ -20181,8 +20181,8 @@ class ReferenceSet {
|
|
|
20181
20181
|
return next2;
|
|
20182
20182
|
}
|
|
20183
20183
|
}
|
|
20184
|
-
function _extends$
|
|
20185
|
-
_extends$
|
|
20184
|
+
function _extends$3() {
|
|
20185
|
+
_extends$3 = Object.assign || function(target) {
|
|
20186
20186
|
for (var i = 1; i < arguments.length; i++) {
|
|
20187
20187
|
var source2 = arguments[i];
|
|
20188
20188
|
for (var key in source2) {
|
|
@@ -20193,7 +20193,7 @@ function _extends$2() {
|
|
|
20193
20193
|
}
|
|
20194
20194
|
return target;
|
|
20195
20195
|
};
|
|
20196
|
-
return _extends$
|
|
20196
|
+
return _extends$3.apply(this, arguments);
|
|
20197
20197
|
}
|
|
20198
20198
|
class BaseSchema {
|
|
20199
20199
|
constructor(options) {
|
|
@@ -20213,7 +20213,7 @@ class BaseSchema {
|
|
|
20213
20213
|
this.typeError(mixed.notType);
|
|
20214
20214
|
});
|
|
20215
20215
|
this.type = (options == null ? void 0 : options.type) || "mixed";
|
|
20216
|
-
this.spec = _extends$
|
|
20216
|
+
this.spec = _extends$3({
|
|
20217
20217
|
strip: false,
|
|
20218
20218
|
strict: false,
|
|
20219
20219
|
abortEarly: true,
|
|
@@ -20241,12 +20241,12 @@ class BaseSchema {
|
|
|
20241
20241
|
next2._blacklistError = this._blacklistError;
|
|
20242
20242
|
next2._whitelist = this._whitelist.clone();
|
|
20243
20243
|
next2._blacklist = this._blacklist.clone();
|
|
20244
|
-
next2.exclusiveTests = _extends$
|
|
20244
|
+
next2.exclusiveTests = _extends$3({}, this.exclusiveTests);
|
|
20245
20245
|
next2.deps = [...this.deps];
|
|
20246
20246
|
next2.conditions = [...this.conditions];
|
|
20247
20247
|
next2.tests = [...this.tests];
|
|
20248
20248
|
next2.transforms = [...this.transforms];
|
|
20249
|
-
next2.spec = clone(_extends$
|
|
20249
|
+
next2.spec = clone(_extends$3({}, this.spec, spec));
|
|
20250
20250
|
return next2;
|
|
20251
20251
|
}
|
|
20252
20252
|
label(label) {
|
|
@@ -20275,7 +20275,7 @@ class BaseSchema {
|
|
|
20275
20275
|
throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema.type}`);
|
|
20276
20276
|
let base = this;
|
|
20277
20277
|
let combined = schema.clone();
|
|
20278
|
-
const mergedSpec = _extends$
|
|
20278
|
+
const mergedSpec = _extends$3({}, base.spec, combined.spec);
|
|
20279
20279
|
combined.spec = mergedSpec;
|
|
20280
20280
|
combined._typeError || (combined._typeError = base._typeError);
|
|
20281
20281
|
combined._whitelistError || (combined._whitelistError = base._whitelistError);
|
|
@@ -20309,7 +20309,7 @@ class BaseSchema {
|
|
|
20309
20309
|
return schema;
|
|
20310
20310
|
}
|
|
20311
20311
|
cast(value, options = {}) {
|
|
20312
|
-
let resolvedSchema = this.resolve(_extends$
|
|
20312
|
+
let resolvedSchema = this.resolve(_extends$3({
|
|
20313
20313
|
value
|
|
20314
20314
|
}, options));
|
|
20315
20315
|
let result = resolvedSchema._cast(value, options);
|
|
@@ -20341,7 +20341,7 @@ attempted value: ${formattedValue}
|
|
|
20341
20341
|
} = options;
|
|
20342
20342
|
let value = _value;
|
|
20343
20343
|
if (!strict) {
|
|
20344
|
-
value = this._cast(value, _extends$
|
|
20344
|
+
value = this._cast(value, _extends$3({
|
|
20345
20345
|
assert: false
|
|
20346
20346
|
}, options));
|
|
20347
20347
|
}
|
|
@@ -20384,7 +20384,7 @@ attempted value: ${formattedValue}
|
|
|
20384
20384
|
});
|
|
20385
20385
|
}
|
|
20386
20386
|
validate(value, options, maybeCb) {
|
|
20387
|
-
let schema = this.resolve(_extends$
|
|
20387
|
+
let schema = this.resolve(_extends$3({}, options, {
|
|
20388
20388
|
value
|
|
20389
20389
|
}));
|
|
20390
20390
|
return typeof maybeCb === "function" ? schema._validate(value, options, maybeCb) : new Promise((resolve, reject) => schema._validate(value, options, (err, value2) => {
|
|
@@ -20395,11 +20395,11 @@ attempted value: ${formattedValue}
|
|
|
20395
20395
|
}));
|
|
20396
20396
|
}
|
|
20397
20397
|
validateSync(value, options) {
|
|
20398
|
-
let schema = this.resolve(_extends$
|
|
20398
|
+
let schema = this.resolve(_extends$3({}, options, {
|
|
20399
20399
|
value
|
|
20400
20400
|
}));
|
|
20401
20401
|
let result;
|
|
20402
|
-
schema._validate(value, _extends$
|
|
20402
|
+
schema._validate(value, _extends$3({}, options, {
|
|
20403
20403
|
sync: true
|
|
20404
20404
|
}), (err, value2) => {
|
|
20405
20405
|
if (err)
|
|
@@ -20652,7 +20652,7 @@ for (const method of ["validate", "validateSync"])
|
|
|
20652
20652
|
parentPath,
|
|
20653
20653
|
schema
|
|
20654
20654
|
} = getIn(this, path, value, options.context);
|
|
20655
|
-
return schema[method](parent && parent[parentPath], _extends$
|
|
20655
|
+
return schema[method](parent && parent[parentPath], _extends$3({}, options, {
|
|
20656
20656
|
parent,
|
|
20657
20657
|
path
|
|
20658
20658
|
}));
|
|
@@ -21365,8 +21365,8 @@ function sortByKeyOrder(keys2) {
|
|
|
21365
21365
|
return findIndex(keys2, a) - findIndex(keys2, b2);
|
|
21366
21366
|
};
|
|
21367
21367
|
}
|
|
21368
|
-
function _extends$
|
|
21369
|
-
_extends$
|
|
21368
|
+
function _extends$2() {
|
|
21369
|
+
_extends$2 = Object.assign || function(target) {
|
|
21370
21370
|
for (var i = 1; i < arguments.length; i++) {
|
|
21371
21371
|
var source2 = arguments[i];
|
|
21372
21372
|
for (var key in source2) {
|
|
@@ -21377,7 +21377,7 @@ function _extends$1() {
|
|
|
21377
21377
|
}
|
|
21378
21378
|
return target;
|
|
21379
21379
|
};
|
|
21380
|
-
return _extends$
|
|
21380
|
+
return _extends$2.apply(this, arguments);
|
|
21381
21381
|
}
|
|
21382
21382
|
let isObject = (obj) => Object.prototype.toString.call(obj) === "[object Object]";
|
|
21383
21383
|
function unknown(ctx, value) {
|
|
@@ -21426,7 +21426,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
21426
21426
|
let strip = (_options$stripUnknown = options.stripUnknown) != null ? _options$stripUnknown : this.spec.noUnknown;
|
|
21427
21427
|
let props = this._nodes.concat(Object.keys(value).filter((v2) => this._nodes.indexOf(v2) === -1));
|
|
21428
21428
|
let intermediateValue = {};
|
|
21429
|
-
let innerOptions = _extends$
|
|
21429
|
+
let innerOptions = _extends$2({}, options, {
|
|
21430
21430
|
parent: intermediateValue,
|
|
21431
21431
|
__validating: options.__validating || false
|
|
21432
21432
|
});
|
|
@@ -21494,7 +21494,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
21494
21494
|
let path = key.indexOf(".") === -1 ? (opts.path ? `${opts.path}.` : "") + key : `${opts.path || ""}["${key}"]`;
|
|
21495
21495
|
let field = this.fields[key];
|
|
21496
21496
|
if (field && "validate" in field) {
|
|
21497
|
-
field.validate(value[key], _extends$
|
|
21497
|
+
field.validate(value[key], _extends$2({}, opts, {
|
|
21498
21498
|
path,
|
|
21499
21499
|
from: from2,
|
|
21500
21500
|
strict: true,
|
|
@@ -21518,7 +21518,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
21518
21518
|
}
|
|
21519
21519
|
clone(spec) {
|
|
21520
21520
|
const next2 = super.clone(spec);
|
|
21521
|
-
next2.fields = _extends$
|
|
21521
|
+
next2.fields = _extends$2({}, this.fields);
|
|
21522
21522
|
next2._nodes = this._nodes;
|
|
21523
21523
|
next2._excludedEdges = this._excludedEdges;
|
|
21524
21524
|
next2._sortErrors = this._sortErrors;
|
|
@@ -21594,7 +21594,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
21594
21594
|
return obj;
|
|
21595
21595
|
let newObj = obj;
|
|
21596
21596
|
if (has_1(obj, from2)) {
|
|
21597
|
-
newObj = _extends$
|
|
21597
|
+
newObj = _extends$2({}, obj);
|
|
21598
21598
|
if (!alias)
|
|
21599
21599
|
delete newObj[from2];
|
|
21600
21600
|
newObj[to] = fromGetter(obj);
|
|
@@ -21745,7 +21745,7 @@ function h(e2) {
|
|
|
21745
21745
|
t2.removeEventListener("animationend", e4), l2 ? g(t2, m2, c) : m2();
|
|
21746
21746
|
};
|
|
21747
21747
|
h2 || (p2 ? e4() : (T2.current = 1, t2.className += ` ${v2}`, t2.addEventListener("animationend", e4)));
|
|
21748
|
-
}, [h2]), React__default.createElement(React__default.Fragment, null, u2);
|
|
21748
|
+
}, [h2]), React__default$1.createElement(React__default$1.Fragment, null, u2);
|
|
21749
21749
|
};
|
|
21750
21750
|
}
|
|
21751
21751
|
function y(t2, e2) {
|
|
@@ -21771,17 +21771,17 @@ const v = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map(
|
|
|
21771
21771
|
});
|
|
21772
21772
|
} }, T = (e2) => {
|
|
21773
21773
|
let { theme: n2, type: o2, ...s } = e2;
|
|
21774
|
-
return React__default.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: "colored" === n2 ? "currentColor" : `var(--toastify-icon-color-${o2})`, ...s });
|
|
21774
|
+
return React__default$1.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: "colored" === n2 ? "currentColor" : `var(--toastify-icon-color-${o2})`, ...s });
|
|
21775
21775
|
}, E = { info: function(e2) {
|
|
21776
|
-
return React__default.createElement(T, { ...e2 }, React__default.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
21776
|
+
return React__default$1.createElement(T, { ...e2 }, React__default$1.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
21777
21777
|
}, warning: function(e2) {
|
|
21778
|
-
return React__default.createElement(T, { ...e2 }, React__default.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
21778
|
+
return React__default$1.createElement(T, { ...e2 }, React__default$1.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
21779
21779
|
}, success: function(e2) {
|
|
21780
|
-
return React__default.createElement(T, { ...e2 }, React__default.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
21780
|
+
return React__default$1.createElement(T, { ...e2 }, React__default$1.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
21781
21781
|
}, error: function(e2) {
|
|
21782
|
-
return React__default.createElement(T, { ...e2 }, React__default.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
21782
|
+
return React__default$1.createElement(T, { ...e2 }, React__default$1.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
21783
21783
|
}, spinner: function() {
|
|
21784
|
-
return React__default.createElement("div", { className: "Toastify__spinner" });
|
|
21784
|
+
return React__default$1.createElement("div", { className: "Toastify__spinner" });
|
|
21785
21785
|
} };
|
|
21786
21786
|
function C(t2) {
|
|
21787
21787
|
const [, o2] = useReducer((t3) => t3 + 1, 0), [l2, c] = useState([]), g2 = useRef(null), h2 = useRef(/* @__PURE__ */ new Map()).current, T2 = (t3) => -1 !== l2.indexOf(t3), C2 = useRef({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: t2, containerId: null, isToastActive: T2, getToast: (t3) => h2.get(t3) }).current;
|
|
@@ -21909,23 +21909,23 @@ function _(t2) {
|
|
|
21909
21909
|
}
|
|
21910
21910
|
function L(e2) {
|
|
21911
21911
|
let { closeToast: n2, theme: o2, ariaLabel: s = "close" } = e2;
|
|
21912
|
-
return React__default.createElement("button", { className: `Toastify__close-button Toastify__close-button--${o2}`, type: "button", onClick: (t2) => {
|
|
21912
|
+
return React__default$1.createElement("button", { className: `Toastify__close-button Toastify__close-button--${o2}`, type: "button", onClick: (t2) => {
|
|
21913
21913
|
t2.stopPropagation(), n2(t2);
|
|
21914
|
-
}, "aria-label": s }, React__default.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, React__default.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
21914
|
+
}, "aria-label": s }, React__default$1.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, React__default$1.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
21915
21915
|
}
|
|
21916
21916
|
function O(e2) {
|
|
21917
21917
|
let { delay: n2, isRunning: o2, closeToast: s, type: a = "default", hide: r2, className: i, style: l2, controlledProgress: u2, progress: d2, rtl: m2, isIn: f2, theme: g2 } = e2;
|
|
21918
21918
|
const h2 = r2 || u2 && 0 === d2, y2 = { ...l2, animationDuration: `${n2}ms`, animationPlayState: o2 ? "running" : "paused", opacity: h2 ? 0 : 1 };
|
|
21919
21919
|
u2 && (y2.transform = `scaleX(${d2})`);
|
|
21920
21920
|
const v2 = clsx$1("Toastify__progress-bar", u2 ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${g2}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": m2 }), T2 = p$1(i) ? i({ rtl: m2, type: a, defaultClassName: v2 }) : clsx$1(v2, i);
|
|
21921
|
-
return React__default.createElement("div", { role: "progressbar", "aria-hidden": h2 ? "true" : "false", "aria-label": "notification timer", className: T2, style: y2, [u2 && d2 >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: u2 && d2 < 1 ? null : () => {
|
|
21921
|
+
return React__default$1.createElement("div", { role: "progressbar", "aria-hidden": h2 ? "true" : "false", "aria-label": "notification timer", className: T2, style: y2, [u2 && d2 >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: u2 && d2 < 1 ? null : () => {
|
|
21922
21922
|
f2 && s();
|
|
21923
21923
|
} });
|
|
21924
21924
|
}
|
|
21925
21925
|
const N = (n2) => {
|
|
21926
21926
|
const { isRunning: o2, preventExitTransition: s, toastRef: r2, eventHandlers: i } = _(n2), { closeButton: l2, children: u2, autoClose: d2, onClick: m2, type: f2, hideProgressBar: g2, closeToast: h2, transition: y2, position: v2, className: T2, style: E2, bodyClassName: C2, bodyStyle: b2, progressClassName: I2, progressStyle: N2, updateId: M2, role: R2, progress: w, rtl: x, toastId: $, deleteToast: k2, isIn: P2, isLoading: B2, iconOut: D2, closeOnClick: A2, theme: z2 } = n2, F2 = clsx$1("Toastify__toast", `Toastify__toast-theme--${z2}`, `Toastify__toast--${f2}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": A2 }), H2 = p$1(T2) ? T2({ rtl: x, position: v2, type: f2, defaultClassName: F2 }) : clsx$1(F2, T2), S2 = !!w || !d2, q2 = { closeToast: h2, type: f2, theme: z2 };
|
|
21927
21927
|
let Q2 = null;
|
|
21928
|
-
return false === l2 || (Q2 = p$1(l2) ? l2(q2) : isValidElement(l2) ? cloneElement(l2, q2) : L(q2)), React__default.createElement(y2, { isIn: P2, done: k2, position: v2, preventExitTransition: s, nodeRef: r2 }, React__default.createElement("div", { id: $, onClick: m2, className: H2, ...i, style: E2, ref: r2 }, React__default.createElement("div", { ...P2 && { role: R2 }, className: p$1(C2) ? C2({ type: f2 }) : clsx$1("Toastify__toast-body", C2), style: b2 }, null != D2 && React__default.createElement("div", { className: clsx$1("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B2 }) }, D2), React__default.createElement("div", null, u2)), Q2, React__default.createElement(O, { ...M2 && !S2 ? { key: `pb-${M2}` } : {}, rtl: x, theme: z2, delay: d2, isRunning: o2, isIn: P2, closeToast: h2, hide: g2, type: f2, style: N2, className: I2, controlledProgress: S2, progress: w || 0 })));
|
|
21928
|
+
return false === l2 || (Q2 = p$1(l2) ? l2(q2) : isValidElement(l2) ? cloneElement(l2, q2) : L(q2)), React__default$1.createElement(y2, { isIn: P2, done: k2, position: v2, preventExitTransition: s, nodeRef: r2 }, React__default$1.createElement("div", { id: $, onClick: m2, className: H2, ...i, style: E2, ref: r2 }, React__default$1.createElement("div", { ...P2 && { role: R2 }, className: p$1(C2) ? C2({ type: f2 }) : clsx$1("Toastify__toast-body", C2), style: b2 }, null != D2 && React__default$1.createElement("div", { className: clsx$1("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B2 }) }, D2), React__default$1.createElement("div", null, u2)), Q2, React__default$1.createElement(O, { ...M2 && !S2 ? { key: `pb-${M2}` } : {}, rtl: x, theme: z2, delay: d2, isRunning: o2, isIn: P2, closeToast: h2, hide: g2, type: f2, style: N2, className: I2, controlledProgress: S2, progress: w || 0 })));
|
|
21929
21929
|
}, M = function(t2, e2) {
|
|
21930
21930
|
return void 0 === e2 && (e2 = false), { enter: `Toastify--animate Toastify__${t2}-enter`, exit: `Toastify--animate Toastify__${t2}-exit`, appendPosition: e2 };
|
|
21931
21931
|
}, R = h(M("bounce", true));
|
|
@@ -21940,11 +21940,11 @@ const k$1 = forwardRef((e2, n2) => {
|
|
|
21940
21940
|
}
|
|
21941
21941
|
return useEffect(() => {
|
|
21942
21942
|
n2 && (n2.current = a.current);
|
|
21943
|
-
}, []), React__default.createElement("div", { ref: a, className: "Toastify", id: d2 }, o2((e3, n3) => {
|
|
21943
|
+
}, []), React__default$1.createElement("div", { ref: a, className: "Toastify", id: d2 }, o2((e3, n3) => {
|
|
21944
21944
|
const o3 = n3.length ? { ...l2 } : { ...l2, pointerEvents: "none" };
|
|
21945
|
-
return React__default.createElement("div", { className: f2(e3), style: o3, key: `container-${e3}` }, n3.map((e4, o4) => {
|
|
21945
|
+
return React__default$1.createElement("div", { className: f2(e3), style: o3, key: `container-${e3}` }, n3.map((e4, o4) => {
|
|
21946
21946
|
let { content: s, props: a2 } = e4;
|
|
21947
|
-
return React__default.createElement(N, { ...a2, isIn: r2(a2.toastId), style: { ...a2.style, "--nth": o4 + 1, "--len": n3.length }, key: `toast-${a2.key}` }, s);
|
|
21947
|
+
return React__default$1.createElement(N, { ...a2, isIn: r2(a2.toastId), style: { ...a2.style, "--nth": o4 + 1, "--len": n3.length }, key: `toast-${a2.key}` }, s);
|
|
21948
21948
|
}));
|
|
21949
21949
|
}));
|
|
21950
21950
|
});
|
|
@@ -22081,7 +22081,7 @@ function isEmpty$2(val) {
|
|
|
22081
22081
|
}
|
|
22082
22082
|
return false;
|
|
22083
22083
|
}
|
|
22084
|
-
var lib = isEmpty$2;
|
|
22084
|
+
var lib$1 = isEmpty$2;
|
|
22085
22085
|
const fetchCheckIp = async (inProduction) => {
|
|
22086
22086
|
const parseReq = {
|
|
22087
22087
|
method: "GET",
|
|
@@ -22237,7 +22237,7 @@ const BlackListController = (clientId, authorize, eventId, inProduction, country
|
|
|
22237
22237
|
clientId,
|
|
22238
22238
|
geolocation
|
|
22239
22239
|
});
|
|
22240
|
-
if (!lib(match2)) {
|
|
22240
|
+
if (!lib$1(match2)) {
|
|
22241
22241
|
setListMatch(match2[0]);
|
|
22242
22242
|
setMessage(alertMessage ? alertMessage : message2);
|
|
22243
22243
|
} else {
|
|
@@ -22293,7 +22293,7 @@ var reactJsxRuntime_production_min = {};
|
|
|
22293
22293
|
* This source code is licensed under the MIT license found in the
|
|
22294
22294
|
* LICENSE file in the root directory of this source tree.
|
|
22295
22295
|
*/
|
|
22296
|
-
var f = React__default, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
22296
|
+
var f = React__default$1, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
22297
22297
|
function q(c, a, g2) {
|
|
22298
22298
|
var b2, d2 = {}, e2 = null, h2 = null;
|
|
22299
22299
|
void 0 !== g2 && (e2 = "" + g2);
|
|
@@ -23422,7 +23422,7 @@ function ListsAccordion({
|
|
|
23422
23422
|
let country = "";
|
|
23423
23423
|
list.map((detail) => {
|
|
23424
23424
|
let countryData = getCountry(detail);
|
|
23425
|
-
if (!lib(countryData)) {
|
|
23425
|
+
if (!lib$1(countryData)) {
|
|
23426
23426
|
country = countryData;
|
|
23427
23427
|
}
|
|
23428
23428
|
});
|
|
@@ -23456,7 +23456,7 @@ function ListsAccordion({
|
|
|
23456
23456
|
children: [/* @__PURE__ */ jsx("b", {
|
|
23457
23457
|
children: "Lista: "
|
|
23458
23458
|
}), list[0]]
|
|
23459
|
-
}), !lib(country) && /* @__PURE__ */ jsxs("div", {
|
|
23459
|
+
}), !lib$1(country) && /* @__PURE__ */ jsxs("div", {
|
|
23460
23460
|
className: "me-3",
|
|
23461
23461
|
children: [/* @__PURE__ */ jsx("b", {
|
|
23462
23462
|
children: "Pa\xEDs: "
|
|
@@ -23607,8 +23607,8 @@ const grey = {
|
|
|
23607
23607
|
A700: "#616161"
|
|
23608
23608
|
};
|
|
23609
23609
|
var grey$1 = grey;
|
|
23610
|
-
function _extends() {
|
|
23611
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
23610
|
+
function _extends$1() {
|
|
23611
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
23612
23612
|
for (var i = 1; i < arguments.length; i++) {
|
|
23613
23613
|
var source2 = arguments[i];
|
|
23614
23614
|
for (var key in source2) {
|
|
@@ -23619,7 +23619,7 @@ function _extends() {
|
|
|
23619
23619
|
}
|
|
23620
23620
|
return target;
|
|
23621
23621
|
};
|
|
23622
|
-
return _extends.apply(this, arguments);
|
|
23622
|
+
return _extends$1.apply(this, arguments);
|
|
23623
23623
|
}
|
|
23624
23624
|
function isPlainObject(item) {
|
|
23625
23625
|
return item !== null && typeof item === "object" && item.constructor === Object;
|
|
@@ -23637,7 +23637,7 @@ function deepClone(source2) {
|
|
|
23637
23637
|
function deepmerge(target, source2, options = {
|
|
23638
23638
|
clone: true
|
|
23639
23639
|
}) {
|
|
23640
|
-
const output = options.clone ? _extends({}, target) : target;
|
|
23640
|
+
const output = options.clone ? _extends$1({}, target) : target;
|
|
23641
23641
|
if (isPlainObject(target) && isPlainObject(source2)) {
|
|
23642
23642
|
Object.keys(source2).forEach((key) => {
|
|
23643
23643
|
if (key === "__proto__") {
|
|
@@ -23677,13 +23677,13 @@ function setRef(ref, value) {
|
|
|
23677
23677
|
ref.current = value;
|
|
23678
23678
|
}
|
|
23679
23679
|
}
|
|
23680
|
-
const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
23680
|
+
const useEnhancedEffect = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
|
|
23681
23681
|
var useEnhancedEffect$1 = useEnhancedEffect;
|
|
23682
23682
|
let globalId = 0;
|
|
23683
23683
|
function useGlobalId(idOverride) {
|
|
23684
|
-
const [defaultId, setDefaultId] = React.useState(idOverride);
|
|
23684
|
+
const [defaultId, setDefaultId] = React$1.useState(idOverride);
|
|
23685
23685
|
const id = idOverride || defaultId;
|
|
23686
|
-
React.useEffect(() => {
|
|
23686
|
+
React$1.useEffect(() => {
|
|
23687
23687
|
if (defaultId == null) {
|
|
23688
23688
|
globalId += 1;
|
|
23689
23689
|
setDefaultId(`mui-${globalId}`);
|
|
@@ -23691,7 +23691,7 @@ function useGlobalId(idOverride) {
|
|
|
23691
23691
|
}, [defaultId]);
|
|
23692
23692
|
return id;
|
|
23693
23693
|
}
|
|
23694
|
-
const maybeReactUseId = React["useId".toString()];
|
|
23694
|
+
const maybeReactUseId = React$1["useId".toString()];
|
|
23695
23695
|
function useId(idOverride) {
|
|
23696
23696
|
if (maybeReactUseId !== void 0) {
|
|
23697
23697
|
const reactId = maybeReactUseId();
|
|
@@ -23707,10 +23707,10 @@ function useControlled({
|
|
|
23707
23707
|
}) {
|
|
23708
23708
|
const {
|
|
23709
23709
|
current: isControlled
|
|
23710
|
-
} = React.useRef(controlled !== void 0);
|
|
23711
|
-
const [valueState, setValue] = React.useState(defaultProp);
|
|
23710
|
+
} = React$1.useRef(controlled !== void 0);
|
|
23711
|
+
const [valueState, setValue] = React$1.useState(defaultProp);
|
|
23712
23712
|
const value = isControlled ? controlled : valueState;
|
|
23713
|
-
const setValueIfUncontrolled = React.useCallback((newValue) => {
|
|
23713
|
+
const setValueIfUncontrolled = React$1.useCallback((newValue) => {
|
|
23714
23714
|
if (!isControlled) {
|
|
23715
23715
|
setValue(newValue);
|
|
23716
23716
|
}
|
|
@@ -23718,14 +23718,14 @@ function useControlled({
|
|
|
23718
23718
|
return [value, setValueIfUncontrolled];
|
|
23719
23719
|
}
|
|
23720
23720
|
function useEventCallback(fn2) {
|
|
23721
|
-
const ref = React.useRef(fn2);
|
|
23721
|
+
const ref = React$1.useRef(fn2);
|
|
23722
23722
|
useEnhancedEffect$1(() => {
|
|
23723
23723
|
ref.current = fn2;
|
|
23724
23724
|
});
|
|
23725
|
-
return React.useCallback((...args) => (0, ref.current)(...args), []);
|
|
23725
|
+
return React$1.useCallback((...args) => (0, ref.current)(...args), []);
|
|
23726
23726
|
}
|
|
23727
23727
|
function useForkRef(...refs) {
|
|
23728
|
-
return React.useMemo(() => {
|
|
23728
|
+
return React$1.useMemo(() => {
|
|
23729
23729
|
if (refs.every((ref) => ref == null)) {
|
|
23730
23730
|
return null;
|
|
23731
23731
|
}
|
|
@@ -23804,12 +23804,12 @@ function isFocusVisible(event) {
|
|
|
23804
23804
|
return hadKeyboardEvent || focusTriggersKeyboardModality(target);
|
|
23805
23805
|
}
|
|
23806
23806
|
function useIsFocusVisible() {
|
|
23807
|
-
const ref = React.useCallback((node2) => {
|
|
23807
|
+
const ref = React$1.useCallback((node2) => {
|
|
23808
23808
|
if (node2 != null) {
|
|
23809
23809
|
prepare(node2.ownerDocument);
|
|
23810
23810
|
}
|
|
23811
23811
|
}, []);
|
|
23812
|
-
const isFocusVisibleRef = React.useRef(false);
|
|
23812
|
+
const isFocusVisibleRef = React$1.useRef(false);
|
|
23813
23813
|
function handleBlurVisible() {
|
|
23814
23814
|
if (isFocusVisibleRef.current) {
|
|
23815
23815
|
hadFocusVisibleRecently = true;
|
|
@@ -23837,10 +23837,10 @@ function useIsFocusVisible() {
|
|
|
23837
23837
|
};
|
|
23838
23838
|
}
|
|
23839
23839
|
function resolveProps(defaultProps, props) {
|
|
23840
|
-
const output = _extends({}, props);
|
|
23840
|
+
const output = _extends$1({}, props);
|
|
23841
23841
|
Object.keys(defaultProps).forEach((propName) => {
|
|
23842
23842
|
if (propName.toString().match(/^(components|slots)$/)) {
|
|
23843
|
-
output[propName] = _extends({}, defaultProps[propName], output[propName]);
|
|
23843
|
+
output[propName] = _extends$1({}, defaultProps[propName], output[propName]);
|
|
23844
23844
|
} else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
23845
23845
|
const defaultSlotProps = defaultProps[propName] || {};
|
|
23846
23846
|
const slotProps = props[propName];
|
|
@@ -23850,7 +23850,7 @@ function resolveProps(defaultProps, props) {
|
|
|
23850
23850
|
} else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {
|
|
23851
23851
|
output[propName] = slotProps;
|
|
23852
23852
|
} else {
|
|
23853
|
-
output[propName] = _extends({}, slotProps);
|
|
23853
|
+
output[propName] = _extends$1({}, slotProps);
|
|
23854
23854
|
Object.keys(defaultSlotProps).forEach((slotPropName) => {
|
|
23855
23855
|
output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
|
|
23856
23856
|
});
|
|
@@ -23923,7 +23923,7 @@ function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui")
|
|
|
23923
23923
|
return result;
|
|
23924
23924
|
}
|
|
23925
23925
|
var THEME_ID = "$$material";
|
|
23926
|
-
function _objectWithoutPropertiesLoose(source2, excluded) {
|
|
23926
|
+
function _objectWithoutPropertiesLoose$1(source2, excluded) {
|
|
23927
23927
|
if (source2 == null)
|
|
23928
23928
|
return {};
|
|
23929
23929
|
var target = {};
|
|
@@ -24668,7 +24668,7 @@ var createCache = function createCache2(options) {
|
|
|
24668
24668
|
cache.sheet.hydrate(nodesToHydrate);
|
|
24669
24669
|
return cache;
|
|
24670
24670
|
};
|
|
24671
|
-
var isBrowser = true;
|
|
24671
|
+
var isBrowser$1 = true;
|
|
24672
24672
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
24673
24673
|
var rawClassName = "";
|
|
24674
24674
|
classNames.split(" ").forEach(function(className) {
|
|
@@ -24682,7 +24682,7 @@ function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
|
24682
24682
|
}
|
|
24683
24683
|
var registerStyles = function registerStyles2(cache, serialized, isStringTag2) {
|
|
24684
24684
|
var className = cache.key + "-" + serialized.name;
|
|
24685
|
-
if ((isStringTag2 === false || isBrowser === false) && cache.registered[className] === void 0) {
|
|
24685
|
+
if ((isStringTag2 === false || isBrowser$1 === false) && cache.registered[className] === void 0) {
|
|
24686
24686
|
cache.registered[className] = serialized.styles;
|
|
24687
24687
|
}
|
|
24688
24688
|
};
|
|
@@ -24934,9 +24934,9 @@ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
|
|
|
24934
24934
|
var syncFallback = function syncFallback2(create2) {
|
|
24935
24935
|
return create2();
|
|
24936
24936
|
};
|
|
24937
|
-
var useInsertionEffect = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
|
|
24937
|
+
var useInsertionEffect = React$1["useInsertionEffect"] ? React$1["useInsertionEffect"] : false;
|
|
24938
24938
|
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
|
|
24939
|
-
var EmotionCacheContext = /* @__PURE__ */ React.createContext(
|
|
24939
|
+
var EmotionCacheContext = /* @__PURE__ */ React$1.createContext(
|
|
24940
24940
|
typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({
|
|
24941
24941
|
key: "css"
|
|
24942
24942
|
}) : null
|
|
@@ -24948,7 +24948,7 @@ var withEmotionCache = function withEmotionCache2(func) {
|
|
|
24948
24948
|
return func(props, cache, ref);
|
|
24949
24949
|
});
|
|
24950
24950
|
};
|
|
24951
|
-
var ThemeContext = /* @__PURE__ */ React.createContext({});
|
|
24951
|
+
var ThemeContext = /* @__PURE__ */ React$1.createContext({});
|
|
24952
24952
|
var testOmitPropsOnStringTag = isPropValid;
|
|
24953
24953
|
var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
|
|
24954
24954
|
return key !== "theme";
|
|
@@ -25015,7 +25015,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
25015
25015
|
for (var key in props) {
|
|
25016
25016
|
mergedProps[key] = props[key];
|
|
25017
25017
|
}
|
|
25018
|
-
mergedProps.theme = React.useContext(ThemeContext);
|
|
25018
|
+
mergedProps.theme = React$1.useContext(ThemeContext);
|
|
25019
25019
|
}
|
|
25020
25020
|
if (typeof props.className === "string") {
|
|
25021
25021
|
className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
|
|
@@ -25038,11 +25038,11 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
25038
25038
|
}
|
|
25039
25039
|
newProps.className = className;
|
|
25040
25040
|
newProps.ref = ref;
|
|
25041
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Insertion, {
|
|
25041
|
+
return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Insertion, {
|
|
25042
25042
|
cache,
|
|
25043
25043
|
serialized,
|
|
25044
25044
|
isStringTag: typeof FinalTag === "string"
|
|
25045
|
-
}), /* @__PURE__ */ React.createElement(FinalTag, newProps));
|
|
25045
|
+
}), /* @__PURE__ */ React$1.createElement(FinalTag, newProps));
|
|
25046
25046
|
});
|
|
25047
25047
|
Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
|
|
25048
25048
|
Styled.defaultProps = tag.defaultProps;
|
|
@@ -25059,7 +25059,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
25059
25059
|
}
|
|
25060
25060
|
});
|
|
25061
25061
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
25062
|
-
return createStyled(nextTag, _extends({}, options, nextOptions, {
|
|
25062
|
+
return createStyled(nextTag, _extends$1({}, options, nextOptions, {
|
|
25063
25063
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
25064
25064
|
})).apply(void 0, styles2);
|
|
25065
25065
|
};
|
|
@@ -25230,7 +25230,7 @@ const sortBreakpointsValues = (values2) => {
|
|
|
25230
25230
|
})) || [];
|
|
25231
25231
|
breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
|
|
25232
25232
|
return breakpointsAsArray.reduce((acc, obj) => {
|
|
25233
|
-
return _extends({}, acc, {
|
|
25233
|
+
return _extends$1({}, acc, {
|
|
25234
25234
|
[obj.key]: obj.val
|
|
25235
25235
|
});
|
|
25236
25236
|
}, {});
|
|
@@ -25246,7 +25246,7 @@ function createBreakpoints(breakpoints) {
|
|
|
25246
25246
|
},
|
|
25247
25247
|
unit = "px",
|
|
25248
25248
|
step = 5
|
|
25249
|
-
} = breakpoints, other = _objectWithoutPropertiesLoose(breakpoints, _excluded$h);
|
|
25249
|
+
} = breakpoints, other = _objectWithoutPropertiesLoose$1(breakpoints, _excluded$h);
|
|
25250
25250
|
const sortedValues = sortBreakpointsValues(values2);
|
|
25251
25251
|
const keys2 = Object.keys(sortedValues);
|
|
25252
25252
|
function up(key) {
|
|
@@ -25277,7 +25277,7 @@ function createBreakpoints(breakpoints) {
|
|
|
25277
25277
|
}
|
|
25278
25278
|
return between(key, keys2[keys2.indexOf(key) + 1]).replace("@media", "@media not all and");
|
|
25279
25279
|
}
|
|
25280
|
-
return _extends({
|
|
25280
|
+
return _extends$1({
|
|
25281
25281
|
keys: keys2,
|
|
25282
25282
|
values: sortedValues,
|
|
25283
25283
|
up,
|
|
@@ -26155,21 +26155,21 @@ function createTheme$1(options = {}, ...args) {
|
|
|
26155
26155
|
palette: paletteInput = {},
|
|
26156
26156
|
spacing: spacingInput,
|
|
26157
26157
|
shape: shapeInput = {}
|
|
26158
|
-
} = options, other = _objectWithoutPropertiesLoose(options, _excluded$g);
|
|
26158
|
+
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$g);
|
|
26159
26159
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
26160
26160
|
const spacing = createSpacing(spacingInput);
|
|
26161
26161
|
let muiTheme = deepmerge({
|
|
26162
26162
|
breakpoints,
|
|
26163
26163
|
direction: "ltr",
|
|
26164
26164
|
components: {},
|
|
26165
|
-
palette: _extends({
|
|
26165
|
+
palette: _extends$1({
|
|
26166
26166
|
mode: "light"
|
|
26167
26167
|
}, paletteInput),
|
|
26168
26168
|
spacing,
|
|
26169
|
-
shape: _extends({}, shape$1, shapeInput)
|
|
26169
|
+
shape: _extends$1({}, shape$1, shapeInput)
|
|
26170
26170
|
}, other);
|
|
26171
26171
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
26172
|
-
muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
|
26172
|
+
muiTheme.unstable_sxConfig = _extends$1({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
|
26173
26173
|
muiTheme.unstable_sx = function sx(props) {
|
|
26174
26174
|
return styleFunctionSx$1({
|
|
26175
26175
|
sx: props,
|
|
@@ -26182,7 +26182,7 @@ function isObjectEmpty(obj) {
|
|
|
26182
26182
|
return Object.keys(obj).length === 0;
|
|
26183
26183
|
}
|
|
26184
26184
|
function useTheme$2(defaultTheme2 = null) {
|
|
26185
|
-
const contextTheme = React.useContext(ThemeContext);
|
|
26185
|
+
const contextTheme = React$1.useContext(ThemeContext);
|
|
26186
26186
|
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
|
|
26187
26187
|
}
|
|
26188
26188
|
const systemDefaultTheme$1 = createTheme$1();
|
|
@@ -26209,7 +26209,7 @@ const splitProps = (props) => {
|
|
|
26209
26209
|
function extendSxProp(props) {
|
|
26210
26210
|
const {
|
|
26211
26211
|
sx: inSx
|
|
26212
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
26212
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$f);
|
|
26213
26213
|
const {
|
|
26214
26214
|
systemProps,
|
|
26215
26215
|
otherProps
|
|
@@ -26223,12 +26223,12 @@ function extendSxProp(props) {
|
|
|
26223
26223
|
if (!isPlainObject(result)) {
|
|
26224
26224
|
return systemProps;
|
|
26225
26225
|
}
|
|
26226
|
-
return _extends({}, systemProps, result);
|
|
26226
|
+
return _extends$1({}, systemProps, result);
|
|
26227
26227
|
};
|
|
26228
26228
|
} else {
|
|
26229
|
-
finalSx = _extends({}, systemProps, inSx);
|
|
26229
|
+
finalSx = _extends$1({}, systemProps, inSx);
|
|
26230
26230
|
}
|
|
26231
|
-
return _extends({}, otherProps, {
|
|
26231
|
+
return _extends$1({}, otherProps, {
|
|
26232
26232
|
sx: finalSx
|
|
26233
26233
|
});
|
|
26234
26234
|
}
|
|
@@ -26261,13 +26261,13 @@ function createBox(options = {}) {
|
|
|
26261
26261
|
const BoxRoot = styled$2("div", {
|
|
26262
26262
|
shouldForwardProp: (prop) => prop !== "theme" && prop !== "sx" && prop !== "as"
|
|
26263
26263
|
})(styleFunctionSx$1);
|
|
26264
|
-
const Box2 = /* @__PURE__ */ React.forwardRef(function Box3(inProps, ref) {
|
|
26264
|
+
const Box2 = /* @__PURE__ */ React$1.forwardRef(function Box3(inProps, ref) {
|
|
26265
26265
|
const theme = useTheme$1(defaultTheme2);
|
|
26266
26266
|
const _extendSxProp = extendSxProp(inProps), {
|
|
26267
26267
|
className,
|
|
26268
26268
|
component = "div"
|
|
26269
|
-
} = _extendSxProp, other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$e);
|
|
26270
|
-
return /* @__PURE__ */ jsx(BoxRoot, _extends({
|
|
26269
|
+
} = _extendSxProp, other = _objectWithoutPropertiesLoose$1(_extendSxProp, _excluded$e);
|
|
26270
|
+
return /* @__PURE__ */ jsx(BoxRoot, _extends$1({
|
|
26271
26271
|
as: component,
|
|
26272
26272
|
ref,
|
|
26273
26273
|
className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
|
@@ -26283,7 +26283,7 @@ function isEmpty$1(string2) {
|
|
|
26283
26283
|
function propsToClassKey(props) {
|
|
26284
26284
|
const {
|
|
26285
26285
|
variant
|
|
26286
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
26286
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$d);
|
|
26287
26287
|
let classKey = variant || "";
|
|
26288
26288
|
Object.keys(other).sort().forEach((key) => {
|
|
26289
26289
|
if (key === "color") {
|
|
@@ -26372,8 +26372,8 @@ function createStyled2(input = {}) {
|
|
|
26372
26372
|
slotShouldForwardProp = shouldForwardProp
|
|
26373
26373
|
} = input;
|
|
26374
26374
|
const systemSx = (props) => {
|
|
26375
|
-
return styleFunctionSx$1(_extends({}, props, {
|
|
26376
|
-
theme: resolveTheme(_extends({}, props, {
|
|
26375
|
+
return styleFunctionSx$1(_extends$1({}, props, {
|
|
26376
|
+
theme: resolveTheme(_extends$1({}, props, {
|
|
26377
26377
|
defaultTheme: defaultTheme2,
|
|
26378
26378
|
themeId
|
|
26379
26379
|
}))
|
|
@@ -26388,7 +26388,7 @@ function createStyled2(input = {}) {
|
|
|
26388
26388
|
skipVariantsResolver: inputSkipVariantsResolver,
|
|
26389
26389
|
skipSx: inputSkipSx,
|
|
26390
26390
|
overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
|
|
26391
|
-
} = inputOptions, options = _objectWithoutPropertiesLoose(inputOptions, _excluded$c);
|
|
26391
|
+
} = inputOptions, options = _objectWithoutPropertiesLoose$1(inputOptions, _excluded$c);
|
|
26392
26392
|
const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false;
|
|
26393
26393
|
const skipSx = inputSkipSx || false;
|
|
26394
26394
|
let label;
|
|
@@ -26400,15 +26400,15 @@ function createStyled2(input = {}) {
|
|
|
26400
26400
|
} else if (isStringTag(tag)) {
|
|
26401
26401
|
shouldForwardPropOption = void 0;
|
|
26402
26402
|
}
|
|
26403
|
-
const defaultStyledResolver = styled$2(tag, _extends({
|
|
26403
|
+
const defaultStyledResolver = styled$2(tag, _extends$1({
|
|
26404
26404
|
shouldForwardProp: shouldForwardPropOption,
|
|
26405
26405
|
label
|
|
26406
26406
|
}, options));
|
|
26407
26407
|
const muiStyledResolver = (styleArg, ...expressions) => {
|
|
26408
26408
|
const expressionsWithDefaultTheme = expressions ? expressions.map((stylesArg) => {
|
|
26409
26409
|
return typeof stylesArg === "function" && stylesArg.__emotion_real !== stylesArg ? (props) => {
|
|
26410
|
-
return stylesArg(_extends({}, props, {
|
|
26411
|
-
theme: resolveTheme(_extends({}, props, {
|
|
26410
|
+
return stylesArg(_extends$1({}, props, {
|
|
26411
|
+
theme: resolveTheme(_extends$1({}, props, {
|
|
26412
26412
|
defaultTheme: defaultTheme2,
|
|
26413
26413
|
themeId
|
|
26414
26414
|
}))
|
|
@@ -26418,7 +26418,7 @@ function createStyled2(input = {}) {
|
|
|
26418
26418
|
let transformedStyleArg = styleArg;
|
|
26419
26419
|
if (componentName && overridesResolver) {
|
|
26420
26420
|
expressionsWithDefaultTheme.push((props) => {
|
|
26421
|
-
const theme = resolveTheme(_extends({}, props, {
|
|
26421
|
+
const theme = resolveTheme(_extends$1({}, props, {
|
|
26422
26422
|
defaultTheme: defaultTheme2,
|
|
26423
26423
|
themeId
|
|
26424
26424
|
}));
|
|
@@ -26426,7 +26426,7 @@ function createStyled2(input = {}) {
|
|
|
26426
26426
|
if (styleOverrides) {
|
|
26427
26427
|
const resolvedStyleOverrides = {};
|
|
26428
26428
|
Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
|
|
26429
|
-
resolvedStyleOverrides[slotKey] = typeof slotStyle === "function" ? slotStyle(_extends({}, props, {
|
|
26429
|
+
resolvedStyleOverrides[slotKey] = typeof slotStyle === "function" ? slotStyle(_extends$1({}, props, {
|
|
26430
26430
|
theme
|
|
26431
26431
|
})) : slotStyle;
|
|
26432
26432
|
});
|
|
@@ -26437,7 +26437,7 @@ function createStyled2(input = {}) {
|
|
|
26437
26437
|
}
|
|
26438
26438
|
if (componentName && !skipVariantsResolver) {
|
|
26439
26439
|
expressionsWithDefaultTheme.push((props) => {
|
|
26440
|
-
const theme = resolveTheme(_extends({}, props, {
|
|
26440
|
+
const theme = resolveTheme(_extends$1({}, props, {
|
|
26441
26441
|
defaultTheme: defaultTheme2,
|
|
26442
26442
|
themeId
|
|
26443
26443
|
}));
|
|
@@ -26453,8 +26453,8 @@ function createStyled2(input = {}) {
|
|
|
26453
26453
|
transformedStyleArg = [...styleArg, ...placeholders];
|
|
26454
26454
|
transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
|
|
26455
26455
|
} else if (typeof styleArg === "function" && styleArg.__emotion_real !== styleArg) {
|
|
26456
|
-
transformedStyleArg = (props) => styleArg(_extends({}, props, {
|
|
26457
|
-
theme: resolveTheme(_extends({}, props, {
|
|
26456
|
+
transformedStyleArg = (props) => styleArg(_extends$1({}, props, {
|
|
26457
|
+
theme: resolveTheme(_extends$1({}, props, {
|
|
26458
26458
|
defaultTheme: defaultTheme2,
|
|
26459
26459
|
themeId
|
|
26460
26460
|
}))
|
|
@@ -26647,7 +26647,7 @@ function lighten(color2, coefficient) {
|
|
|
26647
26647
|
return recomposeColor(color2);
|
|
26648
26648
|
}
|
|
26649
26649
|
function createMixins(breakpoints, mixins) {
|
|
26650
|
-
return _extends({
|
|
26650
|
+
return _extends$1({
|
|
26651
26651
|
toolbar: {
|
|
26652
26652
|
minHeight: 56,
|
|
26653
26653
|
[breakpoints.up("xs")]: {
|
|
@@ -26815,7 +26815,7 @@ function createPalette(palette) {
|
|
|
26815
26815
|
mode = "light",
|
|
26816
26816
|
contrastThreshold = 3,
|
|
26817
26817
|
tonalOffset = 0.2
|
|
26818
|
-
} = palette, other = _objectWithoutPropertiesLoose(palette, _excluded$b);
|
|
26818
|
+
} = palette, other = _objectWithoutPropertiesLoose$1(palette, _excluded$b);
|
|
26819
26819
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
26820
26820
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
26821
26821
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -26833,7 +26833,7 @@ function createPalette(palette) {
|
|
|
26833
26833
|
lightShade = 300,
|
|
26834
26834
|
darkShade = 700
|
|
26835
26835
|
}) => {
|
|
26836
|
-
color2 = _extends({}, color2);
|
|
26836
|
+
color2 = _extends$1({}, color2);
|
|
26837
26837
|
if (!color2.main && color2[mainShade]) {
|
|
26838
26838
|
color2.main = color2[mainShade];
|
|
26839
26839
|
}
|
|
@@ -26854,8 +26854,8 @@ function createPalette(palette) {
|
|
|
26854
26854
|
dark,
|
|
26855
26855
|
light
|
|
26856
26856
|
};
|
|
26857
|
-
const paletteOutput = deepmerge(_extends({
|
|
26858
|
-
common: _extends({}, common$1),
|
|
26857
|
+
const paletteOutput = deepmerge(_extends$1({
|
|
26858
|
+
common: _extends$1({}, common$1),
|
|
26859
26859
|
mode,
|
|
26860
26860
|
primary: augmentColor({
|
|
26861
26861
|
color: primary,
|
|
@@ -26911,10 +26911,10 @@ function createTypography(palette, typography) {
|
|
|
26911
26911
|
htmlFontSize = 16,
|
|
26912
26912
|
allVariants,
|
|
26913
26913
|
pxToRem: pxToRem2
|
|
26914
|
-
} = _ref, other = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
26914
|
+
} = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$a);
|
|
26915
26915
|
const coef = fontSize2 / 14;
|
|
26916
26916
|
const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
|
|
26917
|
-
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({
|
|
26917
|
+
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$1({
|
|
26918
26918
|
fontFamily: fontFamily2,
|
|
26919
26919
|
fontWeight,
|
|
26920
26920
|
fontSize: pxToRem(size),
|
|
@@ -26944,7 +26944,7 @@ function createTypography(palette, typography) {
|
|
|
26944
26944
|
letterSpacing: "inherit"
|
|
26945
26945
|
}
|
|
26946
26946
|
};
|
|
26947
|
-
return deepmerge(_extends({
|
|
26947
|
+
return deepmerge(_extends$1({
|
|
26948
26948
|
htmlFontSize,
|
|
26949
26949
|
pxToRem,
|
|
26950
26950
|
fontFamily: fontFamily2,
|
|
@@ -26992,18 +26992,18 @@ function getAutoHeightDuration(height2) {
|
|
|
26992
26992
|
return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
|
|
26993
26993
|
}
|
|
26994
26994
|
function createTransitions(inputTransitions) {
|
|
26995
|
-
const mergedEasing = _extends({}, easing, inputTransitions.easing);
|
|
26996
|
-
const mergedDuration = _extends({}, duration, inputTransitions.duration);
|
|
26995
|
+
const mergedEasing = _extends$1({}, easing, inputTransitions.easing);
|
|
26996
|
+
const mergedDuration = _extends$1({}, duration, inputTransitions.duration);
|
|
26997
26997
|
const create2 = (props = ["all"], options = {}) => {
|
|
26998
26998
|
const {
|
|
26999
26999
|
duration: durationOption = mergedDuration.standard,
|
|
27000
27000
|
easing: easingOption = mergedEasing.easeInOut,
|
|
27001
27001
|
delay = 0
|
|
27002
27002
|
} = options;
|
|
27003
|
-
_objectWithoutPropertiesLoose(options, _excluded$9);
|
|
27003
|
+
_objectWithoutPropertiesLoose$1(options, _excluded$9);
|
|
27004
27004
|
return (Array.isArray(props) ? props : [props]).map((animatedProp) => `${animatedProp} ${typeof durationOption === "string" ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === "string" ? delay : formatMs(delay)}`).join(",");
|
|
27005
27005
|
};
|
|
27006
|
-
return _extends({
|
|
27006
|
+
return _extends$1({
|
|
27007
27007
|
getAutoHeightDuration,
|
|
27008
27008
|
create: create2
|
|
27009
27009
|
}, inputTransitions, {
|
|
@@ -27029,7 +27029,7 @@ function createTheme(options = {}, ...args) {
|
|
|
27029
27029
|
palette: paletteInput = {},
|
|
27030
27030
|
transitions: transitionsInput = {},
|
|
27031
27031
|
typography: typographyInput = {}
|
|
27032
|
-
} = options, other = _objectWithoutPropertiesLoose(options, _excluded$8);
|
|
27032
|
+
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$8);
|
|
27033
27033
|
if (options.vars) {
|
|
27034
27034
|
throw new Error(formatMuiErrorMessage(18));
|
|
27035
27035
|
}
|
|
@@ -27041,11 +27041,11 @@ function createTheme(options = {}, ...args) {
|
|
|
27041
27041
|
shadows: shadows$1.slice(),
|
|
27042
27042
|
typography: createTypography(palette, typographyInput),
|
|
27043
27043
|
transitions: createTransitions(transitionsInput),
|
|
27044
|
-
zIndex: _extends({}, zIndex$1)
|
|
27044
|
+
zIndex: _extends$1({}, zIndex$1)
|
|
27045
27045
|
});
|
|
27046
27046
|
muiTheme = deepmerge(muiTheme, other);
|
|
27047
27047
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
27048
|
-
muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
|
27048
|
+
muiTheme.unstable_sxConfig = _extends$1({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
|
27049
27049
|
muiTheme.unstable_sx = function sx(props) {
|
|
27050
27050
|
return styleFunctionSx$1({
|
|
27051
27051
|
sx: props,
|
|
@@ -27131,7 +27131,7 @@ const SvgIconRoot = styled$1("svg", {
|
|
|
27131
27131
|
}[ownerState.color]
|
|
27132
27132
|
};
|
|
27133
27133
|
});
|
|
27134
|
-
const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
|
|
27134
|
+
const SvgIcon = /* @__PURE__ */ React$1.forwardRef(function SvgIcon2(inProps, ref) {
|
|
27135
27135
|
const props = useThemeProps({
|
|
27136
27136
|
props: inProps,
|
|
27137
27137
|
name: "MuiSvgIcon"
|
|
@@ -27146,9 +27146,9 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
|
|
|
27146
27146
|
inheritViewBox = false,
|
|
27147
27147
|
titleAccess,
|
|
27148
27148
|
viewBox = "0 0 24 24"
|
|
27149
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
27150
|
-
const hasSvgAsChild = /* @__PURE__ */ React.isValidElement(children) && children.type === "svg";
|
|
27151
|
-
const ownerState = _extends({}, props, {
|
|
27149
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$7);
|
|
27150
|
+
const hasSvgAsChild = /* @__PURE__ */ React$1.isValidElement(children) && children.type === "svg";
|
|
27151
|
+
const ownerState = _extends$1({}, props, {
|
|
27152
27152
|
color: color2,
|
|
27153
27153
|
component,
|
|
27154
27154
|
fontSize: fontSize2,
|
|
@@ -27162,7 +27162,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
|
|
|
27162
27162
|
more.viewBox = viewBox;
|
|
27163
27163
|
}
|
|
27164
27164
|
const classes = useUtilityClasses$3(ownerState);
|
|
27165
|
-
return /* @__PURE__ */ jsxs(SvgIconRoot, _extends({
|
|
27165
|
+
return /* @__PURE__ */ jsxs(SvgIconRoot, _extends$1({
|
|
27166
27166
|
as: component,
|
|
27167
27167
|
className: clsx(classes.root, className),
|
|
27168
27168
|
focusable: "false",
|
|
@@ -27181,7 +27181,7 @@ SvgIcon.muiName = "SvgIcon";
|
|
|
27181
27181
|
var SvgIcon$1 = SvgIcon;
|
|
27182
27182
|
function createSvgIcon(path, displayName) {
|
|
27183
27183
|
function Component(props, ref) {
|
|
27184
|
-
return /* @__PURE__ */ jsx(SvgIcon$1, _extends({
|
|
27184
|
+
return /* @__PURE__ */ jsx(SvgIcon$1, _extends$1({
|
|
27185
27185
|
"data-testid": `${displayName}Icon`,
|
|
27186
27186
|
ref
|
|
27187
27187
|
}, props, {
|
|
@@ -27189,24 +27189,24 @@ function createSvgIcon(path, displayName) {
|
|
|
27189
27189
|
}));
|
|
27190
27190
|
}
|
|
27191
27191
|
Component.muiName = SvgIcon$1.muiName;
|
|
27192
|
-
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component));
|
|
27192
|
+
return /* @__PURE__ */ React$1.memo(/* @__PURE__ */ React$1.forwardRef(Component));
|
|
27193
27193
|
}
|
|
27194
|
-
function _setPrototypeOf(o2, p2) {
|
|
27195
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
27194
|
+
function _setPrototypeOf$1(o2, p2) {
|
|
27195
|
+
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
27196
27196
|
o3.__proto__ = p3;
|
|
27197
27197
|
return o3;
|
|
27198
27198
|
};
|
|
27199
|
-
return _setPrototypeOf(o2, p2);
|
|
27199
|
+
return _setPrototypeOf$1(o2, p2);
|
|
27200
27200
|
}
|
|
27201
27201
|
function _inheritsLoose(subClass, superClass) {
|
|
27202
27202
|
subClass.prototype = Object.create(superClass.prototype);
|
|
27203
27203
|
subClass.prototype.constructor = subClass;
|
|
27204
|
-
_setPrototypeOf(subClass, superClass);
|
|
27204
|
+
_setPrototypeOf$1(subClass, superClass);
|
|
27205
27205
|
}
|
|
27206
27206
|
var config = {
|
|
27207
27207
|
disabled: false
|
|
27208
27208
|
};
|
|
27209
|
-
var TransitionGroupContext = React__default.createContext(null);
|
|
27209
|
+
var TransitionGroupContext = React__default$1.createContext(null);
|
|
27210
27210
|
var forceReflow = function forceReflow2(node2) {
|
|
27211
27211
|
return node2.scrollTop;
|
|
27212
27212
|
};
|
|
@@ -27431,13 +27431,13 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
27431
27431
|
_this$props.onExiting;
|
|
27432
27432
|
_this$props.onExited;
|
|
27433
27433
|
_this$props.nodeRef;
|
|
27434
|
-
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
27435
|
-
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
27434
|
+
var childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
27435
|
+
return /* @__PURE__ */ React__default$1.createElement(TransitionGroupContext.Provider, {
|
|
27436
27436
|
value: null
|
|
27437
|
-
}, typeof children === "function" ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps));
|
|
27437
|
+
}, typeof children === "function" ? children(status, childProps) : React__default$1.cloneElement(React__default$1.Children.only(children), childProps));
|
|
27438
27438
|
};
|
|
27439
27439
|
return Transition2;
|
|
27440
|
-
}(React__default.Component);
|
|
27440
|
+
}(React__default$1.Component);
|
|
27441
27441
|
Transition.contextType = TransitionGroupContext;
|
|
27442
27442
|
Transition.propTypes = {};
|
|
27443
27443
|
function noop() {
|
|
@@ -27507,7 +27507,7 @@ const TypographyRoot = styled$1("span", {
|
|
|
27507
27507
|
})(({
|
|
27508
27508
|
theme,
|
|
27509
27509
|
ownerState
|
|
27510
|
-
}) => _extends({
|
|
27510
|
+
}) => _extends$1({
|
|
27511
27511
|
margin: 0
|
|
27512
27512
|
}, ownerState.variant === "inherit" && {
|
|
27513
27513
|
font: "inherit"
|
|
@@ -27545,13 +27545,13 @@ const colorTransformations = {
|
|
|
27545
27545
|
const transformDeprecatedColors = (color2) => {
|
|
27546
27546
|
return colorTransformations[color2] || color2;
|
|
27547
27547
|
};
|
|
27548
|
-
const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
|
|
27548
|
+
const Typography = /* @__PURE__ */ React$1.forwardRef(function Typography2(inProps, ref) {
|
|
27549
27549
|
const themeProps = useThemeProps({
|
|
27550
27550
|
props: inProps,
|
|
27551
27551
|
name: "MuiTypography"
|
|
27552
27552
|
});
|
|
27553
27553
|
const color2 = transformDeprecatedColors(themeProps.color);
|
|
27554
|
-
const props = extendSxProp(_extends({}, themeProps, {
|
|
27554
|
+
const props = extendSxProp(_extends$1({}, themeProps, {
|
|
27555
27555
|
color: color2
|
|
27556
27556
|
}));
|
|
27557
27557
|
const {
|
|
@@ -27563,8 +27563,8 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
|
|
|
27563
27563
|
paragraph = false,
|
|
27564
27564
|
variant = "body1",
|
|
27565
27565
|
variantMapping = defaultVariantMapping
|
|
27566
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
27567
|
-
const ownerState = _extends({}, props, {
|
|
27566
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$6);
|
|
27567
|
+
const ownerState = _extends$1({}, props, {
|
|
27568
27568
|
align,
|
|
27569
27569
|
color: color2,
|
|
27570
27570
|
className,
|
|
@@ -27577,7 +27577,7 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
|
|
|
27577
27577
|
});
|
|
27578
27578
|
const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
27579
27579
|
const classes = useUtilityClasses$2(ownerState);
|
|
27580
|
-
return /* @__PURE__ */ jsx(TypographyRoot, _extends({
|
|
27580
|
+
return /* @__PURE__ */ jsx(TypographyRoot, _extends$1({
|
|
27581
27581
|
as: Component,
|
|
27582
27582
|
ref,
|
|
27583
27583
|
ownerState,
|
|
@@ -27592,18 +27592,18 @@ function appendOwnerState(elementType, otherProps, ownerState) {
|
|
|
27592
27592
|
if (elementType === void 0 || isHostComponent(elementType)) {
|
|
27593
27593
|
return otherProps;
|
|
27594
27594
|
}
|
|
27595
|
-
return _extends({}, otherProps, {
|
|
27596
|
-
ownerState: _extends({}, otherProps.ownerState, ownerState)
|
|
27595
|
+
return _extends$1({}, otherProps, {
|
|
27596
|
+
ownerState: _extends$1({}, otherProps.ownerState, ownerState)
|
|
27597
27597
|
});
|
|
27598
27598
|
}
|
|
27599
27599
|
const defaultContextValue = {
|
|
27600
27600
|
disableDefaultClasses: false
|
|
27601
27601
|
};
|
|
27602
|
-
const ClassNameConfiguratorContext = /* @__PURE__ */ React.createContext(defaultContextValue);
|
|
27602
|
+
const ClassNameConfiguratorContext = /* @__PURE__ */ React$1.createContext(defaultContextValue);
|
|
27603
27603
|
function useClassNamesOverride(generateUtilityClass2) {
|
|
27604
27604
|
const {
|
|
27605
27605
|
disableDefaultClasses
|
|
27606
|
-
} = React.useContext(ClassNameConfiguratorContext);
|
|
27606
|
+
} = React$1.useContext(ClassNameConfiguratorContext);
|
|
27607
27607
|
return (slot) => {
|
|
27608
27608
|
if (disableDefaultClasses) {
|
|
27609
27609
|
return "";
|
|
@@ -27647,8 +27647,8 @@ function mergeSlotProps(parameters) {
|
|
|
27647
27647
|
} = parameters;
|
|
27648
27648
|
if (!getSlotProps) {
|
|
27649
27649
|
const joinedClasses2 = clsx(externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className, className, additionalProps == null ? void 0 : additionalProps.className);
|
|
27650
|
-
const mergedStyle2 = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
27651
|
-
const props2 = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);
|
|
27650
|
+
const mergedStyle2 = _extends$1({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
27651
|
+
const props2 = _extends$1({}, additionalProps, externalForwardedProps, externalSlotProps);
|
|
27652
27652
|
if (joinedClasses2.length > 0) {
|
|
27653
27653
|
props2.className = joinedClasses2;
|
|
27654
27654
|
}
|
|
@@ -27660,13 +27660,13 @@ function mergeSlotProps(parameters) {
|
|
|
27660
27660
|
internalRef: void 0
|
|
27661
27661
|
};
|
|
27662
27662
|
}
|
|
27663
|
-
const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));
|
|
27663
|
+
const eventHandlers = extractEventHandlers(_extends$1({}, externalForwardedProps, externalSlotProps));
|
|
27664
27664
|
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
|
27665
27665
|
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
|
27666
27666
|
const internalSlotProps = getSlotProps(eventHandlers);
|
|
27667
27667
|
const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
27668
|
-
const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
27669
|
-
const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);
|
|
27668
|
+
const mergedStyle = _extends$1({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
27669
|
+
const props = _extends$1({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);
|
|
27670
27670
|
if (joinedClasses.length > 0) {
|
|
27671
27671
|
props.className = joinedClasses;
|
|
27672
27672
|
}
|
|
@@ -27686,16 +27686,16 @@ function useSlotProps(parameters) {
|
|
|
27686
27686
|
externalSlotProps,
|
|
27687
27687
|
ownerState,
|
|
27688
27688
|
skipResolvingSlotProps = false
|
|
27689
|
-
} = parameters, rest = _objectWithoutPropertiesLoose(parameters, _excluded$5);
|
|
27689
|
+
} = parameters, rest = _objectWithoutPropertiesLoose$1(parameters, _excluded$5);
|
|
27690
27690
|
const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
|
|
27691
27691
|
const {
|
|
27692
27692
|
props: mergedProps,
|
|
27693
27693
|
internalRef
|
|
27694
|
-
} = mergeSlotProps(_extends({}, rest, {
|
|
27694
|
+
} = mergeSlotProps(_extends$1({}, rest, {
|
|
27695
27695
|
externalSlotProps: resolvedComponentsProps
|
|
27696
27696
|
}));
|
|
27697
27697
|
const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);
|
|
27698
|
-
const props = appendOwnerState(elementType, _extends({}, mergedProps, {
|
|
27698
|
+
const props = appendOwnerState(elementType, _extends$1({}, mergedProps, {
|
|
27699
27699
|
ref
|
|
27700
27700
|
}), ownerState);
|
|
27701
27701
|
return props;
|
|
@@ -27925,9 +27925,9 @@ function getTrueOffsetParent(element) {
|
|
|
27925
27925
|
return element.offsetParent;
|
|
27926
27926
|
}
|
|
27927
27927
|
function getContainingBlock(element) {
|
|
27928
|
-
var
|
|
27929
|
-
var
|
|
27930
|
-
if (
|
|
27928
|
+
var isFirefox2 = /firefox/i.test(getUAString());
|
|
27929
|
+
var isIE2 = /Trident/i.test(getUAString());
|
|
27930
|
+
if (isIE2 && isHTMLElement$1(element)) {
|
|
27931
27931
|
var elementCss = getComputedStyle$1(element);
|
|
27932
27932
|
if (elementCss.position === "fixed") {
|
|
27933
27933
|
return null;
|
|
@@ -27939,7 +27939,7 @@ function getContainingBlock(element) {
|
|
|
27939
27939
|
}
|
|
27940
27940
|
while (isHTMLElement$1(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
|
|
27941
27941
|
var css = getComputedStyle$1(currentNode);
|
|
27942
|
-
if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 ||
|
|
27942
|
+
if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox2 && css.willChange === "filter" || isFirefox2 && css.filter && css.filter !== "none") {
|
|
27943
27943
|
return currentNode;
|
|
27944
27944
|
} else {
|
|
27945
27945
|
currentNode = currentNode.parentNode;
|
|
@@ -29022,14 +29022,14 @@ var createPopper = /* @__PURE__ */ popperGenerator({
|
|
|
29022
29022
|
function getContainer(container) {
|
|
29023
29023
|
return typeof container === "function" ? container() : container;
|
|
29024
29024
|
}
|
|
29025
|
-
const Portal = /* @__PURE__ */ React.forwardRef(function Portal2(props, forwardedRef) {
|
|
29025
|
+
const Portal = /* @__PURE__ */ React$1.forwardRef(function Portal2(props, forwardedRef) {
|
|
29026
29026
|
const {
|
|
29027
29027
|
children,
|
|
29028
29028
|
container,
|
|
29029
29029
|
disablePortal = false
|
|
29030
29030
|
} = props;
|
|
29031
|
-
const [mountNode, setMountNode] = React.useState(null);
|
|
29032
|
-
const handleRef = useForkRef(/* @__PURE__ */ React.isValidElement(children) ? children.ref : null, forwardedRef);
|
|
29031
|
+
const [mountNode, setMountNode] = React$1.useState(null);
|
|
29032
|
+
const handleRef = useForkRef(/* @__PURE__ */ React$1.isValidElement(children) ? children.ref : null, forwardedRef);
|
|
29033
29033
|
useEnhancedEffect$1(() => {
|
|
29034
29034
|
if (!disablePortal) {
|
|
29035
29035
|
setMountNode(getContainer(container) || document.body);
|
|
@@ -29045,17 +29045,17 @@ const Portal = /* @__PURE__ */ React.forwardRef(function Portal2(props, forwarde
|
|
|
29045
29045
|
return void 0;
|
|
29046
29046
|
}, [forwardedRef, mountNode, disablePortal]);
|
|
29047
29047
|
if (disablePortal) {
|
|
29048
|
-
if (/* @__PURE__ */ React.isValidElement(children)) {
|
|
29048
|
+
if (/* @__PURE__ */ React$1.isValidElement(children)) {
|
|
29049
29049
|
const newProps = {
|
|
29050
29050
|
ref: handleRef
|
|
29051
29051
|
};
|
|
29052
|
-
return /* @__PURE__ */ React.cloneElement(children, newProps);
|
|
29052
|
+
return /* @__PURE__ */ React$1.cloneElement(children, newProps);
|
|
29053
29053
|
}
|
|
29054
|
-
return /* @__PURE__ */ jsx(React.Fragment, {
|
|
29054
|
+
return /* @__PURE__ */ jsx(React$1.Fragment, {
|
|
29055
29055
|
children
|
|
29056
29056
|
});
|
|
29057
29057
|
}
|
|
29058
|
-
return /* @__PURE__ */ jsx(React.Fragment, {
|
|
29058
|
+
return /* @__PURE__ */ jsx(React$1.Fragment, {
|
|
29059
29059
|
children: mountNode ? /* @__PURE__ */ ReactDOM.createPortal(children, mountNode) : mountNode
|
|
29060
29060
|
});
|
|
29061
29061
|
});
|
|
@@ -29094,7 +29094,7 @@ const useUtilityClasses$1 = () => {
|
|
|
29094
29094
|
return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));
|
|
29095
29095
|
};
|
|
29096
29096
|
const defaultPopperOptions = {};
|
|
29097
|
-
const PopperTooltip = /* @__PURE__ */ React.forwardRef(function PopperTooltip2(props, forwardedRef) {
|
|
29097
|
+
const PopperTooltip = /* @__PURE__ */ React$1.forwardRef(function PopperTooltip2(props, forwardedRef) {
|
|
29098
29098
|
var _slots$root;
|
|
29099
29099
|
const {
|
|
29100
29100
|
anchorEl,
|
|
@@ -29109,25 +29109,25 @@ const PopperTooltip = /* @__PURE__ */ React.forwardRef(function PopperTooltip2(p
|
|
|
29109
29109
|
slotProps = {},
|
|
29110
29110
|
slots = {},
|
|
29111
29111
|
TransitionProps
|
|
29112
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
29113
|
-
const tooltipRef = React.useRef(null);
|
|
29112
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$4);
|
|
29113
|
+
const tooltipRef = React$1.useRef(null);
|
|
29114
29114
|
const ownRef = useForkRef(tooltipRef, forwardedRef);
|
|
29115
|
-
const popperRef = React.useRef(null);
|
|
29115
|
+
const popperRef = React$1.useRef(null);
|
|
29116
29116
|
const handlePopperRef = useForkRef(popperRef, popperRefProp);
|
|
29117
|
-
const handlePopperRefRef = React.useRef(handlePopperRef);
|
|
29117
|
+
const handlePopperRefRef = React$1.useRef(handlePopperRef);
|
|
29118
29118
|
useEnhancedEffect$1(() => {
|
|
29119
29119
|
handlePopperRefRef.current = handlePopperRef;
|
|
29120
29120
|
}, [handlePopperRef]);
|
|
29121
|
-
React.useImperativeHandle(popperRefProp, () => popperRef.current, []);
|
|
29121
|
+
React$1.useImperativeHandle(popperRefProp, () => popperRef.current, []);
|
|
29122
29122
|
const rtlPlacement = flipPlacement(initialPlacement, direction);
|
|
29123
|
-
const [placement, setPlacement] = React.useState(rtlPlacement);
|
|
29124
|
-
const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));
|
|
29125
|
-
React.useEffect(() => {
|
|
29123
|
+
const [placement, setPlacement] = React$1.useState(rtlPlacement);
|
|
29124
|
+
const [resolvedAnchorElement, setResolvedAnchorElement] = React$1.useState(resolveAnchorEl(anchorEl));
|
|
29125
|
+
React$1.useEffect(() => {
|
|
29126
29126
|
if (popperRef.current) {
|
|
29127
29127
|
popperRef.current.forceUpdate();
|
|
29128
29128
|
}
|
|
29129
29129
|
});
|
|
29130
|
-
React.useEffect(() => {
|
|
29130
|
+
React$1.useEffect(() => {
|
|
29131
29131
|
if (anchorEl) {
|
|
29132
29132
|
setResolvedAnchorElement(resolveAnchorEl(anchorEl));
|
|
29133
29133
|
}
|
|
@@ -29165,7 +29165,7 @@ const PopperTooltip = /* @__PURE__ */ React.forwardRef(function PopperTooltip2(p
|
|
|
29165
29165
|
if (popperOptions && popperOptions.modifiers != null) {
|
|
29166
29166
|
popperModifiers = popperModifiers.concat(popperOptions.modifiers);
|
|
29167
29167
|
}
|
|
29168
|
-
const popper2 = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({
|
|
29168
|
+
const popper2 = createPopper(resolvedAnchorElement, tooltipRef.current, _extends$1({
|
|
29169
29169
|
placement: rtlPlacement
|
|
29170
29170
|
}, popperOptions, {
|
|
29171
29171
|
modifiers: popperModifiers
|
|
@@ -29195,11 +29195,11 @@ const PopperTooltip = /* @__PURE__ */ React.forwardRef(function PopperTooltip2(p
|
|
|
29195
29195
|
ownerState: props,
|
|
29196
29196
|
className: classes.root
|
|
29197
29197
|
});
|
|
29198
|
-
return /* @__PURE__ */ jsx(Root, _extends({}, rootProps, {
|
|
29198
|
+
return /* @__PURE__ */ jsx(Root, _extends$1({}, rootProps, {
|
|
29199
29199
|
children: typeof children === "function" ? children(childProps) : children
|
|
29200
29200
|
}));
|
|
29201
29201
|
});
|
|
29202
|
-
const Popper$2 = /* @__PURE__ */ React.forwardRef(function Popper(props, forwardedRef) {
|
|
29202
|
+
const Popper$2 = /* @__PURE__ */ React$1.forwardRef(function Popper(props, forwardedRef) {
|
|
29203
29203
|
const {
|
|
29204
29204
|
anchorEl,
|
|
29205
29205
|
children,
|
|
@@ -29216,8 +29216,8 @@ const Popper$2 = /* @__PURE__ */ React.forwardRef(function Popper(props, forward
|
|
|
29216
29216
|
transition = false,
|
|
29217
29217
|
slotProps = {},
|
|
29218
29218
|
slots = {}
|
|
29219
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
29220
|
-
const [exited, setExited] = React.useState(true);
|
|
29219
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded2);
|
|
29220
|
+
const [exited, setExited] = React$1.useState(true);
|
|
29221
29221
|
const handleEnter = () => {
|
|
29222
29222
|
setExited(false);
|
|
29223
29223
|
};
|
|
@@ -29243,7 +29243,7 @@ const Popper$2 = /* @__PURE__ */ React.forwardRef(function Popper(props, forward
|
|
|
29243
29243
|
return /* @__PURE__ */ jsx(Portal, {
|
|
29244
29244
|
disablePortal,
|
|
29245
29245
|
container,
|
|
29246
|
-
children: /* @__PURE__ */ jsx(PopperTooltip, _extends({
|
|
29246
|
+
children: /* @__PURE__ */ jsx(PopperTooltip, _extends$1({
|
|
29247
29247
|
anchorEl,
|
|
29248
29248
|
direction,
|
|
29249
29249
|
disablePortal,
|
|
@@ -29256,7 +29256,7 @@ const Popper$2 = /* @__PURE__ */ React.forwardRef(function Popper(props, forward
|
|
|
29256
29256
|
slotProps,
|
|
29257
29257
|
slots
|
|
29258
29258
|
}, other, {
|
|
29259
|
-
style: _extends({
|
|
29259
|
+
style: _extends$1({
|
|
29260
29260
|
position: "fixed",
|
|
29261
29261
|
top: 0,
|
|
29262
29262
|
left: 0,
|
|
@@ -29273,7 +29273,7 @@ const PopperRoot = styled$1(Popper$2, {
|
|
|
29273
29273
|
slot: "Root",
|
|
29274
29274
|
overridesResolver: (props, styles2) => styles2.root
|
|
29275
29275
|
})({});
|
|
29276
|
-
const Popper2 = /* @__PURE__ */ React.forwardRef(function Popper3(inProps, ref) {
|
|
29276
|
+
const Popper2 = /* @__PURE__ */ React$1.forwardRef(function Popper3(inProps, ref) {
|
|
29277
29277
|
var _slots$root;
|
|
29278
29278
|
const theme = useTheme$2();
|
|
29279
29279
|
const props = useThemeProps({
|
|
@@ -29296,9 +29296,9 @@ const Popper2 = /* @__PURE__ */ React.forwardRef(function Popper3(inProps, ref)
|
|
|
29296
29296
|
transition,
|
|
29297
29297
|
slots,
|
|
29298
29298
|
slotProps
|
|
29299
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
29299
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$3);
|
|
29300
29300
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
29301
|
-
const otherProps = _extends({
|
|
29301
|
+
const otherProps = _extends$1({
|
|
29302
29302
|
anchorEl,
|
|
29303
29303
|
container,
|
|
29304
29304
|
disablePortal,
|
|
@@ -29310,7 +29310,7 @@ const Popper2 = /* @__PURE__ */ React.forwardRef(function Popper3(inProps, ref)
|
|
|
29310
29310
|
popperRef,
|
|
29311
29311
|
transition
|
|
29312
29312
|
}, other);
|
|
29313
|
-
return /* @__PURE__ */ jsx(PopperRoot, _extends({
|
|
29313
|
+
return /* @__PURE__ */ jsx(PopperRoot, _extends$1({
|
|
29314
29314
|
as: component,
|
|
29315
29315
|
direction: theme == null ? void 0 : theme.direction,
|
|
29316
29316
|
slots: {
|
|
@@ -29331,7 +29331,7 @@ const styles$1 = {
|
|
|
29331
29331
|
opacity: 1
|
|
29332
29332
|
}
|
|
29333
29333
|
};
|
|
29334
|
-
const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
29334
|
+
const Fade = /* @__PURE__ */ React$1.forwardRef(function Fade2(props, ref) {
|
|
29335
29335
|
const theme = useTheme();
|
|
29336
29336
|
const defaultTimeout = {
|
|
29337
29337
|
enter: theme.transitions.duration.enteringScreen,
|
|
@@ -29352,8 +29352,8 @@ const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
|
29352
29352
|
style: style2,
|
|
29353
29353
|
timeout = defaultTimeout,
|
|
29354
29354
|
TransitionComponent = Transition$1
|
|
29355
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
29356
|
-
const nodeRef = React.useRef(null);
|
|
29355
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$2);
|
|
29356
|
+
const nodeRef = React$1.useRef(null);
|
|
29357
29357
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
29358
29358
|
const normalizedTransitionCallback = (callback) => (maybeIsAppearing) => {
|
|
29359
29359
|
if (callback) {
|
|
@@ -29403,7 +29403,7 @@ const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
|
29403
29403
|
addEndListener(nodeRef.current, next2);
|
|
29404
29404
|
}
|
|
29405
29405
|
};
|
|
29406
|
-
return /* @__PURE__ */ jsx(TransitionComponent, _extends({
|
|
29406
|
+
return /* @__PURE__ */ jsx(TransitionComponent, _extends$1({
|
|
29407
29407
|
appear,
|
|
29408
29408
|
in: inProp,
|
|
29409
29409
|
nodeRef,
|
|
@@ -29417,8 +29417,8 @@ const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
|
29417
29417
|
timeout
|
|
29418
29418
|
}, other, {
|
|
29419
29419
|
children: (state, childProps) => {
|
|
29420
|
-
return /* @__PURE__ */ React.cloneElement(children, _extends({
|
|
29421
|
-
style: _extends({
|
|
29420
|
+
return /* @__PURE__ */ React$1.cloneElement(children, _extends$1({
|
|
29421
|
+
style: _extends$1({
|
|
29422
29422
|
opacity: 0,
|
|
29423
29423
|
visibility: state === "exited" && !inProp ? "hidden" : void 0
|
|
29424
29424
|
}, styles$1[state], style2, children.props.style),
|
|
@@ -29451,7 +29451,7 @@ const styles = {
|
|
|
29451
29451
|
}
|
|
29452
29452
|
};
|
|
29453
29453
|
const isWebKit154 = typeof navigator !== "undefined" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent);
|
|
29454
|
-
const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
29454
|
+
const Grow = /* @__PURE__ */ React$1.forwardRef(function Grow2(props, ref) {
|
|
29455
29455
|
const {
|
|
29456
29456
|
addEndListener,
|
|
29457
29457
|
appear = true,
|
|
@@ -29467,11 +29467,11 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
29467
29467
|
style: style2,
|
|
29468
29468
|
timeout = "auto",
|
|
29469
29469
|
TransitionComponent = Transition$1
|
|
29470
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
29471
|
-
const timer = React.useRef();
|
|
29472
|
-
const autoTimeout = React.useRef();
|
|
29470
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1);
|
|
29471
|
+
const timer = React$1.useRef();
|
|
29472
|
+
const autoTimeout = React$1.useRef();
|
|
29473
29473
|
const theme = useTheme();
|
|
29474
|
-
const nodeRef = React.useRef(null);
|
|
29474
|
+
const nodeRef = React$1.useRef(null);
|
|
29475
29475
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
29476
29476
|
const normalizedTransitionCallback = (callback) => (maybeIsAppearing) => {
|
|
29477
29477
|
if (callback) {
|
|
@@ -29560,12 +29560,12 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
29560
29560
|
addEndListener(nodeRef.current, next2);
|
|
29561
29561
|
}
|
|
29562
29562
|
};
|
|
29563
|
-
React.useEffect(() => {
|
|
29563
|
+
React$1.useEffect(() => {
|
|
29564
29564
|
return () => {
|
|
29565
29565
|
clearTimeout(timer.current);
|
|
29566
29566
|
};
|
|
29567
29567
|
}, []);
|
|
29568
|
-
return /* @__PURE__ */ jsx(TransitionComponent, _extends({
|
|
29568
|
+
return /* @__PURE__ */ jsx(TransitionComponent, _extends$1({
|
|
29569
29569
|
appear,
|
|
29570
29570
|
in: inProp,
|
|
29571
29571
|
nodeRef,
|
|
@@ -29579,8 +29579,8 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
29579
29579
|
timeout: timeout === "auto" ? null : timeout
|
|
29580
29580
|
}, other, {
|
|
29581
29581
|
children: (state, childProps) => {
|
|
29582
|
-
return /* @__PURE__ */ React.cloneElement(children, _extends({
|
|
29583
|
-
style: _extends({
|
|
29582
|
+
return /* @__PURE__ */ React$1.cloneElement(children, _extends$1({
|
|
29583
|
+
style: _extends$1({
|
|
29584
29584
|
opacity: 0,
|
|
29585
29585
|
transform: getScale(0.75),
|
|
29586
29586
|
visibility: state === "exited" && !inProp ? "hidden" : void 0
|
|
@@ -29629,7 +29629,7 @@ const TooltipPopper = styled$1(Popper$1, {
|
|
|
29629
29629
|
theme,
|
|
29630
29630
|
ownerState,
|
|
29631
29631
|
open
|
|
29632
|
-
}) => _extends({
|
|
29632
|
+
}) => _extends$1({
|
|
29633
29633
|
zIndex: (theme.vars || theme).zIndex.tooltip,
|
|
29634
29634
|
pointerEvents: "none"
|
|
29635
29635
|
}, !ownerState.disableInteractive && {
|
|
@@ -29651,7 +29651,7 @@ const TooltipPopper = styled$1(Popper$1, {
|
|
|
29651
29651
|
transformOrigin: "100% 0"
|
|
29652
29652
|
}
|
|
29653
29653
|
},
|
|
29654
|
-
[`&[data-popper-placement*="right"] .${tooltipClasses$1.arrow}`]: _extends({}, !ownerState.isRtl ? {
|
|
29654
|
+
[`&[data-popper-placement*="right"] .${tooltipClasses$1.arrow}`]: _extends$1({}, !ownerState.isRtl ? {
|
|
29655
29655
|
left: 0,
|
|
29656
29656
|
marginLeft: "-0.71em"
|
|
29657
29657
|
} : {
|
|
@@ -29664,7 +29664,7 @@ const TooltipPopper = styled$1(Popper$1, {
|
|
|
29664
29664
|
transformOrigin: "100% 100%"
|
|
29665
29665
|
}
|
|
29666
29666
|
}),
|
|
29667
|
-
[`&[data-popper-placement*="left"] .${tooltipClasses$1.arrow}`]: _extends({}, !ownerState.isRtl ? {
|
|
29667
|
+
[`&[data-popper-placement*="left"] .${tooltipClasses$1.arrow}`]: _extends$1({}, !ownerState.isRtl ? {
|
|
29668
29668
|
right: 0,
|
|
29669
29669
|
marginRight: "-0.71em"
|
|
29670
29670
|
} : {
|
|
@@ -29690,7 +29690,7 @@ const TooltipTooltip = styled$1("div", {
|
|
|
29690
29690
|
})(({
|
|
29691
29691
|
theme,
|
|
29692
29692
|
ownerState
|
|
29693
|
-
}) => _extends({
|
|
29693
|
+
}) => _extends$1({
|
|
29694
29694
|
backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),
|
|
29695
29695
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
29696
29696
|
color: (theme.vars || theme).palette.common.white,
|
|
@@ -29710,35 +29710,35 @@ const TooltipTooltip = styled$1("div", {
|
|
|
29710
29710
|
lineHeight: `${round(16 / 14)}em`,
|
|
29711
29711
|
fontWeight: theme.typography.fontWeightRegular
|
|
29712
29712
|
}, {
|
|
29713
|
-
[`.${tooltipClasses$1.popper}[data-popper-placement*="left"] &`]: _extends({
|
|
29713
|
+
[`.${tooltipClasses$1.popper}[data-popper-placement*="left"] &`]: _extends$1({
|
|
29714
29714
|
transformOrigin: "right center"
|
|
29715
|
-
}, !ownerState.isRtl ? _extends({
|
|
29715
|
+
}, !ownerState.isRtl ? _extends$1({
|
|
29716
29716
|
marginRight: "14px"
|
|
29717
29717
|
}, ownerState.touch && {
|
|
29718
29718
|
marginRight: "24px"
|
|
29719
|
-
}) : _extends({
|
|
29719
|
+
}) : _extends$1({
|
|
29720
29720
|
marginLeft: "14px"
|
|
29721
29721
|
}, ownerState.touch && {
|
|
29722
29722
|
marginLeft: "24px"
|
|
29723
29723
|
})),
|
|
29724
|
-
[`.${tooltipClasses$1.popper}[data-popper-placement*="right"] &`]: _extends({
|
|
29724
|
+
[`.${tooltipClasses$1.popper}[data-popper-placement*="right"] &`]: _extends$1({
|
|
29725
29725
|
transformOrigin: "left center"
|
|
29726
|
-
}, !ownerState.isRtl ? _extends({
|
|
29726
|
+
}, !ownerState.isRtl ? _extends$1({
|
|
29727
29727
|
marginLeft: "14px"
|
|
29728
29728
|
}, ownerState.touch && {
|
|
29729
29729
|
marginLeft: "24px"
|
|
29730
|
-
}) : _extends({
|
|
29730
|
+
}) : _extends$1({
|
|
29731
29731
|
marginRight: "14px"
|
|
29732
29732
|
}, ownerState.touch && {
|
|
29733
29733
|
marginRight: "24px"
|
|
29734
29734
|
})),
|
|
29735
|
-
[`.${tooltipClasses$1.popper}[data-popper-placement*="top"] &`]: _extends({
|
|
29735
|
+
[`.${tooltipClasses$1.popper}[data-popper-placement*="top"] &`]: _extends$1({
|
|
29736
29736
|
transformOrigin: "center bottom",
|
|
29737
29737
|
marginBottom: "14px"
|
|
29738
29738
|
}, ownerState.touch && {
|
|
29739
29739
|
marginBottom: "24px"
|
|
29740
29740
|
}),
|
|
29741
|
-
[`.${tooltipClasses$1.popper}[data-popper-placement*="bottom"] &`]: _extends({
|
|
29741
|
+
[`.${tooltipClasses$1.popper}[data-popper-placement*="bottom"] &`]: _extends$1({
|
|
29742
29742
|
transformOrigin: "center top",
|
|
29743
29743
|
marginTop: "14px"
|
|
29744
29744
|
}, ownerState.touch && {
|
|
@@ -29782,7 +29782,7 @@ function composeEventHandler(handler, eventHandler) {
|
|
|
29782
29782
|
handler(event);
|
|
29783
29783
|
};
|
|
29784
29784
|
}
|
|
29785
|
-
const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref) {
|
|
29785
|
+
const Tooltip = /* @__PURE__ */ React$1.forwardRef(function Tooltip2(inProps, ref) {
|
|
29786
29786
|
var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;
|
|
29787
29787
|
const props = useThemeProps({
|
|
29788
29788
|
props: inProps,
|
|
@@ -29816,20 +29816,20 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
29816
29816
|
title,
|
|
29817
29817
|
TransitionComponent: TransitionComponentProp = Grow$1,
|
|
29818
29818
|
TransitionProps
|
|
29819
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
29820
|
-
const children = /* @__PURE__ */ React.isValidElement(childrenProp) ? childrenProp : /* @__PURE__ */ jsx("span", {
|
|
29819
|
+
} = props, other = _objectWithoutPropertiesLoose$1(props, _excluded);
|
|
29820
|
+
const children = /* @__PURE__ */ React$1.isValidElement(childrenProp) ? childrenProp : /* @__PURE__ */ jsx("span", {
|
|
29821
29821
|
children: childrenProp
|
|
29822
29822
|
});
|
|
29823
29823
|
const theme = useTheme();
|
|
29824
29824
|
const isRtl = theme.direction === "rtl";
|
|
29825
|
-
const [childNode, setChildNode] = React.useState();
|
|
29826
|
-
const [arrowRef, setArrowRef] = React.useState(null);
|
|
29827
|
-
const ignoreNonTouchEvents = React.useRef(false);
|
|
29825
|
+
const [childNode, setChildNode] = React$1.useState();
|
|
29826
|
+
const [arrowRef, setArrowRef] = React$1.useState(null);
|
|
29827
|
+
const ignoreNonTouchEvents = React$1.useRef(false);
|
|
29828
29828
|
const disableInteractive = disableInteractiveProp || followCursor;
|
|
29829
|
-
const closeTimer = React.useRef();
|
|
29830
|
-
const enterTimer = React.useRef();
|
|
29831
|
-
const leaveTimer = React.useRef();
|
|
29832
|
-
const touchTimer = React.useRef();
|
|
29829
|
+
const closeTimer = React$1.useRef();
|
|
29830
|
+
const enterTimer = React$1.useRef();
|
|
29831
|
+
const leaveTimer = React$1.useRef();
|
|
29832
|
+
const touchTimer = React$1.useRef();
|
|
29833
29833
|
const [openState, setOpenState] = useControlled({
|
|
29834
29834
|
controlled: openProp,
|
|
29835
29835
|
default: false,
|
|
@@ -29838,15 +29838,15 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
29838
29838
|
});
|
|
29839
29839
|
let open = openState;
|
|
29840
29840
|
const id = useId(idProp);
|
|
29841
|
-
const prevUserSelect = React.useRef();
|
|
29842
|
-
const stopTouchInteraction = React.useCallback(() => {
|
|
29841
|
+
const prevUserSelect = React$1.useRef();
|
|
29842
|
+
const stopTouchInteraction = React$1.useCallback(() => {
|
|
29843
29843
|
if (prevUserSelect.current !== void 0) {
|
|
29844
29844
|
document.body.style.WebkitUserSelect = prevUserSelect.current;
|
|
29845
29845
|
prevUserSelect.current = void 0;
|
|
29846
29846
|
}
|
|
29847
29847
|
clearTimeout(touchTimer.current);
|
|
29848
29848
|
}, []);
|
|
29849
|
-
React.useEffect(() => {
|
|
29849
|
+
React$1.useEffect(() => {
|
|
29850
29850
|
return () => {
|
|
29851
29851
|
clearTimeout(closeTimer.current);
|
|
29852
29852
|
clearTimeout(enterTimer.current);
|
|
@@ -29908,7 +29908,7 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
29908
29908
|
onFocus: handleFocusVisible,
|
|
29909
29909
|
ref: focusVisibleRef
|
|
29910
29910
|
} = useIsFocusVisible();
|
|
29911
|
-
const [, setChildIsFocusVisible] = React.useState(false);
|
|
29911
|
+
const [, setChildIsFocusVisible] = React$1.useState(false);
|
|
29912
29912
|
const handleBlur = (event) => {
|
|
29913
29913
|
handleBlurVisible(event);
|
|
29914
29914
|
if (isFocusVisibleRef.current === false) {
|
|
@@ -29957,7 +29957,7 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
29957
29957
|
handleClose(event);
|
|
29958
29958
|
}, leaveTouchDelay);
|
|
29959
29959
|
};
|
|
29960
|
-
React.useEffect(() => {
|
|
29960
|
+
React$1.useEffect(() => {
|
|
29961
29961
|
if (!open) {
|
|
29962
29962
|
return void 0;
|
|
29963
29963
|
}
|
|
@@ -29975,7 +29975,7 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
29975
29975
|
if (!title && title !== 0) {
|
|
29976
29976
|
open = false;
|
|
29977
29977
|
}
|
|
29978
|
-
const popperRef = React.useRef();
|
|
29978
|
+
const popperRef = React$1.useRef();
|
|
29979
29979
|
const handleMouseMove = (event) => {
|
|
29980
29980
|
const childrenProps2 = children.props;
|
|
29981
29981
|
if (childrenProps2.onMouseMove) {
|
|
@@ -29998,7 +29998,7 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
29998
29998
|
nameOrDescProps["aria-label"] = titleIsString ? title : null;
|
|
29999
29999
|
nameOrDescProps["aria-labelledby"] = open && !titleIsString ? id : null;
|
|
30000
30000
|
}
|
|
30001
|
-
const childrenProps = _extends({}, nameOrDescProps, other, children.props, {
|
|
30001
|
+
const childrenProps = _extends$1({}, nameOrDescProps, other, children.props, {
|
|
30002
30002
|
className: clsx(other.className, children.props.className),
|
|
30003
30003
|
onTouchStart: detectTouchStart,
|
|
30004
30004
|
ref: handleRef
|
|
@@ -30026,7 +30026,7 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
30026
30026
|
interactiveWrapperListeners.onBlur = handleBlur;
|
|
30027
30027
|
}
|
|
30028
30028
|
}
|
|
30029
|
-
const popperOptions = React.useMemo(() => {
|
|
30029
|
+
const popperOptions = React$1.useMemo(() => {
|
|
30030
30030
|
var _PopperProps$popperOp;
|
|
30031
30031
|
let tooltipModifiers = [{
|
|
30032
30032
|
name: "arrow",
|
|
@@ -30039,11 +30039,11 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
30039
30039
|
if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {
|
|
30040
30040
|
tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);
|
|
30041
30041
|
}
|
|
30042
|
-
return _extends({}, PopperProps.popperOptions, {
|
|
30042
|
+
return _extends$1({}, PopperProps.popperOptions, {
|
|
30043
30043
|
modifiers: tooltipModifiers
|
|
30044
30044
|
});
|
|
30045
30045
|
}, [arrowRef, PopperProps]);
|
|
30046
|
-
const ownerState = _extends({}, props, {
|
|
30046
|
+
const ownerState = _extends$1({}, props, {
|
|
30047
30047
|
isRtl,
|
|
30048
30048
|
arrow: arrow2,
|
|
30049
30049
|
disableInteractive,
|
|
@@ -30056,18 +30056,18 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
30056
30056
|
const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow$1;
|
|
30057
30057
|
const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;
|
|
30058
30058
|
const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;
|
|
30059
|
-
const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {
|
|
30059
|
+
const popperProps = appendOwnerState(PopperComponent, _extends$1({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {
|
|
30060
30060
|
className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)
|
|
30061
30061
|
}), ownerState);
|
|
30062
|
-
const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);
|
|
30063
|
-
const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {
|
|
30062
|
+
const transitionProps = appendOwnerState(TransitionComponent, _extends$1({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);
|
|
30063
|
+
const tooltipProps = appendOwnerState(TooltipComponent, _extends$1({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {
|
|
30064
30064
|
className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)
|
|
30065
30065
|
}), ownerState);
|
|
30066
|
-
const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {
|
|
30066
|
+
const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends$1({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {
|
|
30067
30067
|
className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)
|
|
30068
30068
|
}), ownerState);
|
|
30069
|
-
return /* @__PURE__ */ jsxs(React.Fragment, {
|
|
30070
|
-
children: [/* @__PURE__ */ React.cloneElement(children, childrenProps), /* @__PURE__ */ jsx(PopperComponent, _extends({
|
|
30069
|
+
return /* @__PURE__ */ jsxs(React$1.Fragment, {
|
|
30070
|
+
children: [/* @__PURE__ */ React$1.cloneElement(children, childrenProps), /* @__PURE__ */ jsx(PopperComponent, _extends$1({
|
|
30071
30071
|
as: PopperComponentProp != null ? PopperComponentProp : Popper$1,
|
|
30072
30072
|
placement,
|
|
30073
30073
|
anchorEl: followCursor ? {
|
|
@@ -30088,11 +30088,11 @@ const Tooltip = /* @__PURE__ */ React.forwardRef(function Tooltip2(inProps, ref)
|
|
|
30088
30088
|
popperOptions,
|
|
30089
30089
|
children: ({
|
|
30090
30090
|
TransitionProps: TransitionPropsInner
|
|
30091
|
-
}) => /* @__PURE__ */ jsx(TransitionComponent, _extends({
|
|
30091
|
+
}) => /* @__PURE__ */ jsx(TransitionComponent, _extends$1({
|
|
30092
30092
|
timeout: theme.transitions.duration.shorter
|
|
30093
30093
|
}, TransitionPropsInner, transitionProps, {
|
|
30094
|
-
children: /* @__PURE__ */ jsxs(TooltipComponent, _extends({}, tooltipProps, {
|
|
30095
|
-
children: [title, arrow2 ? /* @__PURE__ */ jsx(ArrowComponent, _extends({}, tooltipArrowProps, {
|
|
30094
|
+
children: /* @__PURE__ */ jsxs(TooltipComponent, _extends$1({}, tooltipProps, {
|
|
30095
|
+
children: [title, arrow2 ? /* @__PURE__ */ jsx(ArrowComponent, _extends$1({}, tooltipArrowProps, {
|
|
30096
30096
|
ref: setArrowRef
|
|
30097
30097
|
})) : null]
|
|
30098
30098
|
}))
|
|
@@ -30210,15 +30210,15 @@ function BlackList({
|
|
|
30210
30210
|
className: "header-component",
|
|
30211
30211
|
children: [/* @__PURE__ */ jsx("h4", {
|
|
30212
30212
|
children: "Lista de sanciones y PEP's"
|
|
30213
|
-
}), !lib(status) ? /* @__PURE__ */ jsx(StatusComponent, {
|
|
30213
|
+
}), !lib$1(status) ? /* @__PURE__ */ jsx(StatusComponent, {
|
|
30214
30214
|
status,
|
|
30215
30215
|
message: message.message ? message.message : message
|
|
30216
30216
|
}) : /* @__PURE__ */ jsx("p", {
|
|
30217
30217
|
children: "Ingrese al menos el primer nombre y apellido de la persona a consultar."
|
|
30218
30218
|
})]
|
|
30219
|
-
}), !lib(listMatch) && /* @__PURE__ */ jsx(ListsAccordion, {
|
|
30219
|
+
}), !lib$1(listMatch) && /* @__PURE__ */ jsx(ListsAccordion, {
|
|
30220
30220
|
lists: listMatch
|
|
30221
|
-
}), lib(status) && /* @__PURE__ */ jsxs(Fragment, {
|
|
30221
|
+
}), lib$1(status) && /* @__PURE__ */ jsxs(Fragment, {
|
|
30222
30222
|
children: [/* @__PURE__ */ jsx(CustomInputForm, {
|
|
30223
30223
|
type: "text",
|
|
30224
30224
|
name: "first_name",
|
|
@@ -30549,13 +30549,13 @@ function DocumentReader({
|
|
|
30549
30549
|
className: "header-component",
|
|
30550
30550
|
children: [/* @__PURE__ */ jsx("h4", {
|
|
30551
30551
|
children: "Lectura del documento"
|
|
30552
|
-
}), !lib(status) ? /* @__PURE__ */ jsx(StatusComponent, {
|
|
30552
|
+
}), !lib$1(status) ? /* @__PURE__ */ jsx(StatusComponent, {
|
|
30553
30553
|
status,
|
|
30554
30554
|
message
|
|
30555
30555
|
}) : /* @__PURE__ */ jsx("p", {
|
|
30556
30556
|
children: "Utilice la c\xE1mara de su dispositivo para capturar una foto de su documento de identidad."
|
|
30557
30557
|
})]
|
|
30558
|
-
}), lib(status) && /* @__PURE__ */ jsxs("div", {
|
|
30558
|
+
}), lib$1(status) && /* @__PURE__ */ jsxs("div", {
|
|
30559
30559
|
className: `body-id-doc ${dualMode && docImage.firstImage ? "ready" : ""}`,
|
|
30560
30560
|
children: [/* @__PURE__ */ jsxs("label", {
|
|
30561
30561
|
className: "upload-document front",
|
|
@@ -30609,7 +30609,7 @@ function DocumentReader({
|
|
|
30609
30609
|
label: "Cargar reverso del documento",
|
|
30610
30610
|
onChange: () => setDualMode(!dualMode)
|
|
30611
30611
|
})
|
|
30612
|
-
}), !dualMode && !base64.secondImage && base64.firstImage && lib(status) && /* @__PURE__ */ jsx(CustomButton, {
|
|
30612
|
+
}), !dualMode && !base64.secondImage && base64.firstImage && lib$1(status) && /* @__PURE__ */ jsx(CustomButton, {
|
|
30613
30613
|
type: "submit",
|
|
30614
30614
|
children: "Procesar"
|
|
30615
30615
|
})]
|
|
@@ -30783,7 +30783,7 @@ var dummyImage = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw0
|
|
|
30783
30783
|
var reactWebcam = { exports: {} };
|
|
30784
30784
|
(function(module, exports) {
|
|
30785
30785
|
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
30786
|
-
module.exports = factory(React__default);
|
|
30786
|
+
module.exports = factory(React__default$1);
|
|
30787
30787
|
})(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_react__) {
|
|
30788
30788
|
return function(modules) {
|
|
30789
30789
|
var installedModules = {};
|
|
@@ -31233,17 +31233,17 @@ function FaceMatch({
|
|
|
31233
31233
|
className: "header-component",
|
|
31234
31234
|
children: [/* @__PURE__ */ jsx("h4", {
|
|
31235
31235
|
children: "Comparaci\xF3n de rostro"
|
|
31236
|
-
}), !lib(status) ? /* @__PURE__ */ jsx(StatusComponent, {
|
|
31236
|
+
}), !lib$1(status) ? /* @__PURE__ */ jsx(StatusComponent, {
|
|
31237
31237
|
status,
|
|
31238
31238
|
message
|
|
31239
31239
|
}) : /* @__PURE__ */ jsx("p", {
|
|
31240
31240
|
children: "Utilice la c\xE1mara de su dispositivo para capturar una selfie."
|
|
31241
31241
|
})]
|
|
31242
|
-
}), lib(status) && /* @__PURE__ */ jsxs("div", {
|
|
31242
|
+
}), lib$1(status) && /* @__PURE__ */ jsxs("div", {
|
|
31243
31243
|
className: "pics-container",
|
|
31244
31244
|
children: [/* @__PURE__ */ jsx("div", {
|
|
31245
31245
|
className: "box-image",
|
|
31246
|
-
children: lib(picBase64) ? /* @__PURE__ */ jsxs("div", {
|
|
31246
|
+
children: lib$1(picBase64) ? /* @__PURE__ */ jsxs("div", {
|
|
31247
31247
|
className: "upload-document without-image",
|
|
31248
31248
|
style: {
|
|
31249
31249
|
backgroundImage: `url(${dummyImage})`
|
|
@@ -31269,7 +31269,7 @@ function FaceMatch({
|
|
|
31269
31269
|
backgroundImage: `url(${dummyImage})`
|
|
31270
31270
|
},
|
|
31271
31271
|
children: [/* @__PURE__ */ jsx(CloudUploadIcon, {}), /* @__PURE__ */ jsx("p", {
|
|
31272
|
-
children: lib(docImage) ? "Tomar selfie" : docImage
|
|
31272
|
+
children: lib$1(docImage) ? "Tomar selfie" : docImage
|
|
31273
31273
|
}), /* @__PURE__ */ jsx("input", {
|
|
31274
31274
|
hidden: true,
|
|
31275
31275
|
accept: "image/*",
|
|
@@ -31350,14 +31350,15 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
|
|
|
31350
31350
|
const [data2, setData] = useState({});
|
|
31351
31351
|
const [similarity, setSimilarity] = useState(0);
|
|
31352
31352
|
const listener = (event) => {
|
|
31353
|
+
var _a, _b;
|
|
31353
31354
|
if (event.detail) {
|
|
31354
|
-
if (event.detail.action === "PROCESS_FINISHED" && event.detail.data.response.code == 0) {
|
|
31355
|
+
if (event.detail.action === "PROCESS_FINISHED" && ((_b = (_a = event.detail.data) == null ? void 0 : _a.response) == null ? void 0 : _b.code) == 0) {
|
|
31355
31356
|
setData(event.detail.data.response);
|
|
31356
31357
|
}
|
|
31357
31358
|
}
|
|
31358
31359
|
};
|
|
31359
31360
|
useEffect(() => {
|
|
31360
|
-
if (!lib(data2)) {
|
|
31361
|
+
if (!lib$1(data2)) {
|
|
31361
31362
|
onSendSubmitLiveness();
|
|
31362
31363
|
}
|
|
31363
31364
|
}, [data2]);
|
|
@@ -31475,6 +31476,1145 @@ const CustomSpinnerProgress = () => {
|
|
|
31475
31476
|
})
|
|
31476
31477
|
});
|
|
31477
31478
|
};
|
|
31479
|
+
var lib = {};
|
|
31480
|
+
var uaParser_min = { exports: {} };
|
|
31481
|
+
(function(module, exports) {
|
|
31482
|
+
(function(window2, undefined$1) {
|
|
31483
|
+
var LIBVERSION = "1.0.35", EMPTY = "", UNKNOWN = "?", FUNC_TYPE = "function", UNDEF_TYPE = "undefined", OBJ_TYPE = "object", STR_TYPE = "string", MAJOR = "major", MODEL = "model", NAME = "name", TYPE = "type", VENDOR = "vendor", VERSION2 = "version", ARCHITECTURE = "architecture", CONSOLE = "console", MOBILE = "mobile", TABLET = "tablet", SMARTTV = "smarttv", WEARABLE = "wearable", EMBEDDED = "embedded", UA_MAX_LENGTH = 350;
|
|
31484
|
+
var AMAZON = "Amazon", APPLE = "Apple", ASUS = "ASUS", BLACKBERRY = "BlackBerry", BROWSER = "Browser", CHROME = "Chrome", EDGE = "Edge", FIREFOX = "Firefox", GOOGLE = "Google", HUAWEI = "Huawei", LG = "LG", MICROSOFT = "Microsoft", MOTOROLA = "Motorola", OPERA = "Opera", SAMSUNG = "Samsung", SHARP = "Sharp", SONY = "Sony", XIAOMI = "Xiaomi", ZEBRA = "Zebra", FACEBOOK = "Facebook", CHROMIUM_OS = "Chromium OS", MAC_OS = "Mac OS";
|
|
31485
|
+
var extend2 = function(regexes2, extensions) {
|
|
31486
|
+
var mergedRegexes = {};
|
|
31487
|
+
for (var i in regexes2) {
|
|
31488
|
+
if (extensions[i] && extensions[i].length % 2 === 0) {
|
|
31489
|
+
mergedRegexes[i] = extensions[i].concat(regexes2[i]);
|
|
31490
|
+
} else {
|
|
31491
|
+
mergedRegexes[i] = regexes2[i];
|
|
31492
|
+
}
|
|
31493
|
+
}
|
|
31494
|
+
return mergedRegexes;
|
|
31495
|
+
}, enumerize = function(arr) {
|
|
31496
|
+
var enums = {};
|
|
31497
|
+
for (var i = 0; i < arr.length; i++) {
|
|
31498
|
+
enums[arr[i].toUpperCase()] = arr[i];
|
|
31499
|
+
}
|
|
31500
|
+
return enums;
|
|
31501
|
+
}, has2 = function(str1, str2) {
|
|
31502
|
+
return typeof str1 === STR_TYPE ? lowerize(str2).indexOf(lowerize(str1)) !== -1 : false;
|
|
31503
|
+
}, lowerize = function(str) {
|
|
31504
|
+
return str.toLowerCase();
|
|
31505
|
+
}, majorize = function(version) {
|
|
31506
|
+
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$1;
|
|
31507
|
+
}, trim2 = function(str, len) {
|
|
31508
|
+
if (typeof str === STR_TYPE) {
|
|
31509
|
+
str = str.replace(/^\s\s*/, EMPTY);
|
|
31510
|
+
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
31511
|
+
}
|
|
31512
|
+
};
|
|
31513
|
+
var rgxMapper = function(ua2, arrays) {
|
|
31514
|
+
var i = 0, j, k2, p2, q2, matches, match2;
|
|
31515
|
+
while (i < arrays.length && !matches) {
|
|
31516
|
+
var regex = arrays[i], props = arrays[i + 1];
|
|
31517
|
+
j = k2 = 0;
|
|
31518
|
+
while (j < regex.length && !matches) {
|
|
31519
|
+
if (!regex[j]) {
|
|
31520
|
+
break;
|
|
31521
|
+
}
|
|
31522
|
+
matches = regex[j++].exec(ua2);
|
|
31523
|
+
if (!!matches) {
|
|
31524
|
+
for (p2 = 0; p2 < props.length; p2++) {
|
|
31525
|
+
match2 = matches[++k2];
|
|
31526
|
+
q2 = props[p2];
|
|
31527
|
+
if (typeof q2 === OBJ_TYPE && q2.length > 0) {
|
|
31528
|
+
if (q2.length === 2) {
|
|
31529
|
+
if (typeof q2[1] == FUNC_TYPE) {
|
|
31530
|
+
this[q2[0]] = q2[1].call(this, match2);
|
|
31531
|
+
} else {
|
|
31532
|
+
this[q2[0]] = q2[1];
|
|
31533
|
+
}
|
|
31534
|
+
} else if (q2.length === 3) {
|
|
31535
|
+
if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
|
|
31536
|
+
this[q2[0]] = match2 ? q2[1].call(this, match2, q2[2]) : undefined$1;
|
|
31537
|
+
} else {
|
|
31538
|
+
this[q2[0]] = match2 ? match2.replace(q2[1], q2[2]) : undefined$1;
|
|
31539
|
+
}
|
|
31540
|
+
} else if (q2.length === 4) {
|
|
31541
|
+
this[q2[0]] = match2 ? q2[3].call(this, match2.replace(q2[1], q2[2])) : undefined$1;
|
|
31542
|
+
}
|
|
31543
|
+
} else {
|
|
31544
|
+
this[q2] = match2 ? match2 : undefined$1;
|
|
31545
|
+
}
|
|
31546
|
+
}
|
|
31547
|
+
}
|
|
31548
|
+
}
|
|
31549
|
+
i += 2;
|
|
31550
|
+
}
|
|
31551
|
+
}, strMapper = function(str, map2) {
|
|
31552
|
+
for (var i in map2) {
|
|
31553
|
+
if (typeof map2[i] === OBJ_TYPE && map2[i].length > 0) {
|
|
31554
|
+
for (var j = 0; j < map2[i].length; j++) {
|
|
31555
|
+
if (has2(map2[i][j], str)) {
|
|
31556
|
+
return i === UNKNOWN ? undefined$1 : i;
|
|
31557
|
+
}
|
|
31558
|
+
}
|
|
31559
|
+
} else if (has2(map2[i], str)) {
|
|
31560
|
+
return i === UNKNOWN ? undefined$1 : i;
|
|
31561
|
+
}
|
|
31562
|
+
}
|
|
31563
|
+
return str;
|
|
31564
|
+
};
|
|
31565
|
+
var oldSafariMap = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, windowsVersionMap = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" };
|
|
31566
|
+
var regexes = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [VERSION2, [NAME, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [VERSION2, [NAME, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [NAME, VERSION2], [/opios[\/ ]+([\w\.]+)/i], [VERSION2, [NAME, OPERA + " Mini"]], [/\bopr\/([\w\.]+)/i], [VERSION2, [NAME, OPERA]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [NAME, VERSION2], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [VERSION2, [NAME, "UC" + BROWSER]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [VERSION2, [NAME, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [VERSION2, [NAME, "WeChat"]], [/konqueror\/([\w\.]+)/i], [VERSION2, [NAME, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [VERSION2, [NAME, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [VERSION2, [NAME, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[NAME, /(.+)/, "$1 Secure " + BROWSER], VERSION2], [/\bfocus\/([\w\.]+)/i], [VERSION2, [NAME, FIREFOX + " Focus"]], [/\bopt\/([\w\.]+)/i], [VERSION2, [NAME, OPERA + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [VERSION2, [NAME, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [VERSION2, [NAME, "Dolphin"]], [/coast\/([\w\.]+)/i], [VERSION2, [NAME, OPERA + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [VERSION2, [NAME, "MIUI " + BROWSER]], [/fxios\/([-\w\.]+)/i], [VERSION2, [NAME, FIREFOX]], [/\bqihu|(qi?ho?o?|360)browser/i], [[NAME, "360 " + BROWSER]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[NAME, /(.+)/, "$1 " + BROWSER], VERSION2], [/(comodo_dragon)\/([\w\.]+)/i], [[NAME, /_/g, " "], VERSION2], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [NAME, VERSION2], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [NAME], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[NAME, FACEBOOK], VERSION2], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [NAME, VERSION2], [/\bgsa\/([\w\.]+) .*safari\//i], [VERSION2, [NAME, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [VERSION2, [NAME, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [VERSION2, [NAME, CHROME + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[NAME, CHROME + " WebView"], VERSION2], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [VERSION2, [NAME, "Android " + BROWSER]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [NAME, VERSION2], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [VERSION2, [NAME, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [VERSION2, NAME], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [NAME, [VERSION2, strMapper, oldSafariMap]], [/(webkit|khtml)\/([\w\.]+)/i], [NAME, VERSION2], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[NAME, "Netscape"], VERSION2], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [VERSION2, [NAME, FIREFOX + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [NAME, VERSION2], [/(cobalt)\/([\w\.]+)/i], [NAME, [VERSION2, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[ARCHITECTURE, "amd64"]], [/(ia32(?=;))/i], [[ARCHITECTURE, lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[ARCHITECTURE, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[ARCHITECTURE, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[ARCHITECTURE, "armhf"]], [/windows (ce|mobile); ppc;/i], [[ARCHITECTURE, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[ARCHITECTURE, /ower/, EMPTY, lowerize]], [/(sun4\w)[;\)]/i], [[ARCHITECTURE, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[ARCHITECTURE, lowerize]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [MODEL, [VENDOR, SAMSUNG], [TYPE, TABLET]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [MODEL, [VENDOR, SAMSUNG], [TYPE, MOBILE]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [MODEL, [VENDOR, APPLE], [TYPE, MOBILE]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [MODEL, [VENDOR, APPLE], [TYPE, TABLET]], [/(macintosh);/i], [MODEL, [VENDOR, APPLE]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [MODEL, [VENDOR, SHARP], [TYPE, MOBILE]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [MODEL, [VENDOR, HUAWEI], [TYPE, TABLET]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [MODEL, [VENDOR, HUAWEI], [TYPE, MOBILE]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[MODEL, /_/g, " "], [VENDOR, XIAOMI], [TYPE, MOBILE]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[MODEL, /_/g, " "], [VENDOR, XIAOMI], [TYPE, TABLET]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [MODEL, [VENDOR, "OPPO"], [TYPE, MOBILE]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [MODEL, [VENDOR, "Vivo"], [TYPE, MOBILE]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [MODEL, [VENDOR, "Realme"], [TYPE, MOBILE]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [MODEL, [VENDOR, MOTOROLA], [TYPE, MOBILE]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [MODEL, [VENDOR, MOTOROLA], [TYPE, TABLET]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [MODEL, [VENDOR, LG], [TYPE, TABLET]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [MODEL, [VENDOR, LG], [TYPE, MOBILE]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [MODEL, [VENDOR, "Lenovo"], [TYPE, TABLET]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[MODEL, /_/g, " "], [VENDOR, "Nokia"], [TYPE, MOBILE]], [/(pixel c)\b/i], [MODEL, [VENDOR, GOOGLE], [TYPE, TABLET]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [MODEL, [VENDOR, GOOGLE], [TYPE, MOBILE]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [MODEL, [VENDOR, SONY], [TYPE, MOBILE]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[MODEL, "Xperia Tablet"], [VENDOR, SONY], [TYPE, TABLET]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [MODEL, [VENDOR, "OnePlus"], [TYPE, MOBILE]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [MODEL, [VENDOR, AMAZON], [TYPE, TABLET]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[MODEL, /(.+)/g, "Fire Phone $1"], [VENDOR, AMAZON], [TYPE, MOBILE]], [/(playbook);[-\w\),; ]+(rim)/i], [MODEL, VENDOR, [TYPE, TABLET]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [MODEL, [VENDOR, BLACKBERRY], [TYPE, MOBILE]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [MODEL, [VENDOR, ASUS], [TYPE, TABLET]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [MODEL, [VENDOR, ASUS], [TYPE, MOBILE]], [/(nexus 9)/i], [MODEL, [VENDOR, "HTC"], [TYPE, TABLET]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [VENDOR, [MODEL, /_/g, " "], [TYPE, MOBILE]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [MODEL, [VENDOR, "Acer"], [TYPE, TABLET]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [MODEL, [VENDOR, "Meizu"], [TYPE, MOBILE]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [VENDOR, MODEL, [TYPE, MOBILE]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [VENDOR, MODEL, [TYPE, TABLET]], [/(surface duo)/i], [MODEL, [VENDOR, MICROSOFT], [TYPE, TABLET]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [MODEL, [VENDOR, "Fairphone"], [TYPE, MOBILE]], [/(u304aa)/i], [MODEL, [VENDOR, "AT&T"], [TYPE, MOBILE]], [/\bsie-(\w*)/i], [MODEL, [VENDOR, "Siemens"], [TYPE, MOBILE]], [/\b(rct\w+) b/i], [MODEL, [VENDOR, "RCA"], [TYPE, TABLET]], [/\b(venue[\d ]{2,7}) b/i], [MODEL, [VENDOR, "Dell"], [TYPE, TABLET]], [/\b(q(?:mv|ta)\w+) b/i], [MODEL, [VENDOR, "Verizon"], [TYPE, TABLET]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [MODEL, [VENDOR, "Barnes & Noble"], [TYPE, TABLET]], [/\b(tm\d{3}\w+) b/i], [MODEL, [VENDOR, "NuVision"], [TYPE, TABLET]], [/\b(k88) b/i], [MODEL, [VENDOR, "ZTE"], [TYPE, TABLET]], [/\b(nx\d{3}j) b/i], [MODEL, [VENDOR, "ZTE"], [TYPE, MOBILE]], [/\b(gen\d{3}) b.+49h/i], [MODEL, [VENDOR, "Swiss"], [TYPE, MOBILE]], [/\b(zur\d{3}) b/i], [MODEL, [VENDOR, "Swiss"], [TYPE, TABLET]], [/\b((zeki)?tb.*\b) b/i], [MODEL, [VENDOR, "Zeki"], [TYPE, TABLET]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[VENDOR, "Dragon Touch"], MODEL, [TYPE, TABLET]], [/\b(ns-?\w{0,9}) b/i], [MODEL, [VENDOR, "Insignia"], [TYPE, TABLET]], [/\b((nxa|next)-?\w{0,9}) b/i], [MODEL, [VENDOR, "NextBook"], [TYPE, TABLET]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[VENDOR, "Voice"], MODEL, [TYPE, MOBILE]], [/\b(lvtel\-)?(v1[12]) b/i], [[VENDOR, "LvTel"], MODEL, [TYPE, MOBILE]], [/\b(ph-1) /i], [MODEL, [VENDOR, "Essential"], [TYPE, MOBILE]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [MODEL, [VENDOR, "Envizen"], [TYPE, TABLET]], [/\b(trio[-\w\. ]+) b/i], [MODEL, [VENDOR, "MachSpeed"], [TYPE, TABLET]], [/\btu_(1491) b/i], [MODEL, [VENDOR, "Rotor"], [TYPE, TABLET]], [/(shield[\w ]+) b/i], [MODEL, [VENDOR, "Nvidia"], [TYPE, TABLET]], [/(sprint) (\w+)/i], [VENDOR, MODEL, [TYPE, MOBILE]], [/(kin\.[onetw]{3})/i], [[MODEL, /\./g, " "], [VENDOR, MICROSOFT], [TYPE, MOBILE]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [MODEL, [VENDOR, ZEBRA], [TYPE, TABLET]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [MODEL, [VENDOR, ZEBRA], [TYPE, MOBILE]], [/smart-tv.+(samsung)/i], [VENDOR, [TYPE, SMARTTV]], [/hbbtv.+maple;(\d+)/i], [[MODEL, /^/, "SmartTV"], [VENDOR, SAMSUNG], [TYPE, SMARTTV]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[VENDOR, LG], [TYPE, SMARTTV]], [/(apple) ?tv/i], [VENDOR, [MODEL, APPLE + " TV"], [TYPE, SMARTTV]], [/crkey/i], [[MODEL, CHROME + "cast"], [VENDOR, GOOGLE], [TYPE, SMARTTV]], [/droid.+aft(\w)( bui|\))/i], [MODEL, [VENDOR, AMAZON], [TYPE, SMARTTV]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [MODEL, [VENDOR, SHARP], [TYPE, SMARTTV]], [/(bravia[\w ]+)( bui|\))/i], [MODEL, [VENDOR, SONY], [TYPE, SMARTTV]], [/(mitv-\w{5}) bui/i], [MODEL, [VENDOR, XIAOMI], [TYPE, SMARTTV]], [/Hbbtv.*(technisat) (.*);/i], [VENDOR, MODEL, [TYPE, SMARTTV]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[VENDOR, trim2], [MODEL, trim2], [TYPE, SMARTTV]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[TYPE, SMARTTV]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [VENDOR, MODEL, [TYPE, CONSOLE]], [/droid.+; (shield) bui/i], [MODEL, [VENDOR, "Nvidia"], [TYPE, CONSOLE]], [/(playstation [345portablevi]+)/i], [MODEL, [VENDOR, SONY], [TYPE, CONSOLE]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [MODEL, [VENDOR, MICROSOFT], [TYPE, CONSOLE]], [/((pebble))app/i], [VENDOR, MODEL, [TYPE, WEARABLE]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [MODEL, [VENDOR, APPLE], [TYPE, WEARABLE]], [/droid.+; (glass) \d/i], [MODEL, [VENDOR, GOOGLE], [TYPE, WEARABLE]], [/droid.+; (wt63?0{2,3})\)/i], [MODEL, [VENDOR, ZEBRA], [TYPE, WEARABLE]], [/(quest( 2| pro)?)/i], [MODEL, [VENDOR, FACEBOOK], [TYPE, WEARABLE]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [VENDOR, [TYPE, EMBEDDED]], [/(aeobc)\b/i], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [MODEL, [TYPE, MOBILE]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [MODEL, [TYPE, TABLET]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[TYPE, TABLET]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[TYPE, MOBILE]], [/(android[-\w\. ]{0,9});.+buil/i], [MODEL, [VENDOR, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [VERSION2, [NAME, EDGE + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [VERSION2, [NAME, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [NAME, VERSION2], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [VERSION2, NAME]], os: [[/microsoft (windows) (vista|xp)/i], [NAME, VERSION2], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [NAME, [VERSION2, strMapper, windowsVersionMap]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[NAME, "Windows"], [VERSION2, strMapper, windowsVersionMap]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[VERSION2, /_/g, "."], [NAME, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[NAME, MAC_OS], [VERSION2, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [VERSION2, NAME], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [NAME, VERSION2], [/\(bb(10);/i], [VERSION2, [NAME, BLACKBERRY]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [VERSION2, [NAME, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [VERSION2, [NAME, FIREFOX + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [VERSION2, [NAME, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [VERSION2, [NAME, "watchOS"]], [/crkey\/([\d\.]+)/i], [VERSION2, [NAME, CHROME + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[NAME, CHROMIUM_OS], VERSION2], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [NAME, VERSION2], [/(sunos) ?([\w\.\d]*)/i], [[NAME, "Solaris"], VERSION2], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [NAME, VERSION2]] };
|
|
31567
|
+
var UAParser2 = function(ua2, extensions) {
|
|
31568
|
+
if (typeof ua2 === OBJ_TYPE) {
|
|
31569
|
+
extensions = ua2;
|
|
31570
|
+
ua2 = undefined$1;
|
|
31571
|
+
}
|
|
31572
|
+
if (!(this instanceof UAParser2)) {
|
|
31573
|
+
return new UAParser2(ua2, extensions).getResult();
|
|
31574
|
+
}
|
|
31575
|
+
var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined$1;
|
|
31576
|
+
var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
|
|
31577
|
+
var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined$1;
|
|
31578
|
+
var _rgxmap = extensions ? extend2(regexes, extensions) : regexes;
|
|
31579
|
+
var _isSelfNav = _navigator && _navigator.userAgent == _ua;
|
|
31580
|
+
this.getBrowser = function() {
|
|
31581
|
+
var _browser = {};
|
|
31582
|
+
_browser[NAME] = undefined$1;
|
|
31583
|
+
_browser[VERSION2] = undefined$1;
|
|
31584
|
+
rgxMapper.call(_browser, _ua, _rgxmap.browser);
|
|
31585
|
+
_browser[MAJOR] = majorize(_browser[VERSION2]);
|
|
31586
|
+
if (_isSelfNav && _navigator && _navigator.brave && typeof _navigator.brave.isBrave == FUNC_TYPE) {
|
|
31587
|
+
_browser[NAME] = "Brave";
|
|
31588
|
+
}
|
|
31589
|
+
return _browser;
|
|
31590
|
+
};
|
|
31591
|
+
this.getCPU = function() {
|
|
31592
|
+
var _cpu = {};
|
|
31593
|
+
_cpu[ARCHITECTURE] = undefined$1;
|
|
31594
|
+
rgxMapper.call(_cpu, _ua, _rgxmap.cpu);
|
|
31595
|
+
return _cpu;
|
|
31596
|
+
};
|
|
31597
|
+
this.getDevice = function() {
|
|
31598
|
+
var _device = {};
|
|
31599
|
+
_device[VENDOR] = undefined$1;
|
|
31600
|
+
_device[MODEL] = undefined$1;
|
|
31601
|
+
_device[TYPE] = undefined$1;
|
|
31602
|
+
rgxMapper.call(_device, _ua, _rgxmap.device);
|
|
31603
|
+
if (_isSelfNav && !_device[TYPE] && _uach && _uach.mobile) {
|
|
31604
|
+
_device[TYPE] = MOBILE;
|
|
31605
|
+
}
|
|
31606
|
+
if (_isSelfNav && _device[MODEL] == "Macintosh" && _navigator && typeof _navigator.standalone !== UNDEF_TYPE && _navigator.maxTouchPoints && _navigator.maxTouchPoints > 2) {
|
|
31607
|
+
_device[MODEL] = "iPad";
|
|
31608
|
+
_device[TYPE] = TABLET;
|
|
31609
|
+
}
|
|
31610
|
+
return _device;
|
|
31611
|
+
};
|
|
31612
|
+
this.getEngine = function() {
|
|
31613
|
+
var _engine = {};
|
|
31614
|
+
_engine[NAME] = undefined$1;
|
|
31615
|
+
_engine[VERSION2] = undefined$1;
|
|
31616
|
+
rgxMapper.call(_engine, _ua, _rgxmap.engine);
|
|
31617
|
+
return _engine;
|
|
31618
|
+
};
|
|
31619
|
+
this.getOS = function() {
|
|
31620
|
+
var _os = {};
|
|
31621
|
+
_os[NAME] = undefined$1;
|
|
31622
|
+
_os[VERSION2] = undefined$1;
|
|
31623
|
+
rgxMapper.call(_os, _ua, _rgxmap.os);
|
|
31624
|
+
if (_isSelfNav && !_os[NAME] && _uach && _uach.platform != "Unknown") {
|
|
31625
|
+
_os[NAME] = _uach.platform.replace(/chrome os/i, CHROMIUM_OS).replace(/macos/i, MAC_OS);
|
|
31626
|
+
}
|
|
31627
|
+
return _os;
|
|
31628
|
+
};
|
|
31629
|
+
this.getResult = function() {
|
|
31630
|
+
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
31631
|
+
};
|
|
31632
|
+
this.getUA = function() {
|
|
31633
|
+
return _ua;
|
|
31634
|
+
};
|
|
31635
|
+
this.setUA = function(ua3) {
|
|
31636
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim2(ua3, UA_MAX_LENGTH) : ua3;
|
|
31637
|
+
return this;
|
|
31638
|
+
};
|
|
31639
|
+
this.setUA(_ua);
|
|
31640
|
+
return this;
|
|
31641
|
+
};
|
|
31642
|
+
UAParser2.VERSION = LIBVERSION;
|
|
31643
|
+
UAParser2.BROWSER = enumerize([NAME, VERSION2, MAJOR]);
|
|
31644
|
+
UAParser2.CPU = enumerize([ARCHITECTURE]);
|
|
31645
|
+
UAParser2.DEVICE = enumerize([MODEL, VENDOR, TYPE, CONSOLE, MOBILE, SMARTTV, TABLET, WEARABLE, EMBEDDED]);
|
|
31646
|
+
UAParser2.ENGINE = UAParser2.OS = enumerize([NAME, VERSION2]);
|
|
31647
|
+
{
|
|
31648
|
+
if (module.exports) {
|
|
31649
|
+
exports = module.exports = UAParser2;
|
|
31650
|
+
}
|
|
31651
|
+
exports.UAParser = UAParser2;
|
|
31652
|
+
}
|
|
31653
|
+
var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
|
|
31654
|
+
if ($ && !$.ua) {
|
|
31655
|
+
var parser = new UAParser2();
|
|
31656
|
+
$.ua = parser.getResult();
|
|
31657
|
+
$.ua.get = function() {
|
|
31658
|
+
return parser.getUA();
|
|
31659
|
+
};
|
|
31660
|
+
$.ua.set = function(ua2) {
|
|
31661
|
+
parser.setUA(ua2);
|
|
31662
|
+
var result = parser.getResult();
|
|
31663
|
+
for (var prop in result) {
|
|
31664
|
+
$.ua[prop] = result[prop];
|
|
31665
|
+
}
|
|
31666
|
+
};
|
|
31667
|
+
}
|
|
31668
|
+
})(typeof window === "object" ? window : commonjsGlobal);
|
|
31669
|
+
})(uaParser_min, uaParser_min.exports);
|
|
31670
|
+
Object.defineProperty(lib, "__esModule", {
|
|
31671
|
+
value: true
|
|
31672
|
+
});
|
|
31673
|
+
function _interopDefault(ex) {
|
|
31674
|
+
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
31675
|
+
}
|
|
31676
|
+
var React = React__default$1;
|
|
31677
|
+
var React__default = _interopDefault(React);
|
|
31678
|
+
var UAParser = uaParser_min.exports;
|
|
31679
|
+
var ClientUAInstance = new UAParser();
|
|
31680
|
+
var browser = ClientUAInstance.getBrowser();
|
|
31681
|
+
var cpu = ClientUAInstance.getCPU();
|
|
31682
|
+
var device = ClientUAInstance.getDevice();
|
|
31683
|
+
var engine = ClientUAInstance.getEngine();
|
|
31684
|
+
var os = ClientUAInstance.getOS();
|
|
31685
|
+
var ua = ClientUAInstance.getUA();
|
|
31686
|
+
var setUa = function setUa2(userAgentString) {
|
|
31687
|
+
return ClientUAInstance.setUA(userAgentString);
|
|
31688
|
+
};
|
|
31689
|
+
var parseUserAgent = function parseUserAgent2(userAgent) {
|
|
31690
|
+
if (!userAgent) {
|
|
31691
|
+
console.error("No userAgent string was provided");
|
|
31692
|
+
return;
|
|
31693
|
+
}
|
|
31694
|
+
var UserAgentInstance = new UAParser(userAgent);
|
|
31695
|
+
return {
|
|
31696
|
+
UA: UserAgentInstance,
|
|
31697
|
+
browser: UserAgentInstance.getBrowser(),
|
|
31698
|
+
cpu: UserAgentInstance.getCPU(),
|
|
31699
|
+
device: UserAgentInstance.getDevice(),
|
|
31700
|
+
engine: UserAgentInstance.getEngine(),
|
|
31701
|
+
os: UserAgentInstance.getOS(),
|
|
31702
|
+
ua: UserAgentInstance.getUA(),
|
|
31703
|
+
setUserAgent: function setUserAgent3(userAgentString) {
|
|
31704
|
+
return UserAgentInstance.setUA(userAgentString);
|
|
31705
|
+
}
|
|
31706
|
+
};
|
|
31707
|
+
};
|
|
31708
|
+
var UAHelper = /* @__PURE__ */ Object.freeze({
|
|
31709
|
+
ClientUAInstance,
|
|
31710
|
+
browser,
|
|
31711
|
+
cpu,
|
|
31712
|
+
device,
|
|
31713
|
+
engine,
|
|
31714
|
+
os,
|
|
31715
|
+
ua,
|
|
31716
|
+
setUa,
|
|
31717
|
+
parseUserAgent
|
|
31718
|
+
});
|
|
31719
|
+
function ownKeys(object2, enumerableOnly) {
|
|
31720
|
+
var keys2 = Object.keys(object2);
|
|
31721
|
+
if (Object.getOwnPropertySymbols) {
|
|
31722
|
+
var symbols = Object.getOwnPropertySymbols(object2);
|
|
31723
|
+
if (enumerableOnly) {
|
|
31724
|
+
symbols = symbols.filter(function(sym) {
|
|
31725
|
+
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
31726
|
+
});
|
|
31727
|
+
}
|
|
31728
|
+
keys2.push.apply(keys2, symbols);
|
|
31729
|
+
}
|
|
31730
|
+
return keys2;
|
|
31731
|
+
}
|
|
31732
|
+
function _objectSpread2(target) {
|
|
31733
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31734
|
+
var source2 = arguments[i] != null ? arguments[i] : {};
|
|
31735
|
+
if (i % 2) {
|
|
31736
|
+
ownKeys(Object(source2), true).forEach(function(key) {
|
|
31737
|
+
_defineProperty(target, key, source2[key]);
|
|
31738
|
+
});
|
|
31739
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
31740
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source2));
|
|
31741
|
+
} else {
|
|
31742
|
+
ownKeys(Object(source2)).forEach(function(key) {
|
|
31743
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source2, key));
|
|
31744
|
+
});
|
|
31745
|
+
}
|
|
31746
|
+
}
|
|
31747
|
+
return target;
|
|
31748
|
+
}
|
|
31749
|
+
function _typeof(obj) {
|
|
31750
|
+
"@babel/helpers - typeof";
|
|
31751
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
31752
|
+
_typeof = function(obj2) {
|
|
31753
|
+
return typeof obj2;
|
|
31754
|
+
};
|
|
31755
|
+
} else {
|
|
31756
|
+
_typeof = function(obj2) {
|
|
31757
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
31758
|
+
};
|
|
31759
|
+
}
|
|
31760
|
+
return _typeof(obj);
|
|
31761
|
+
}
|
|
31762
|
+
function _classCallCheck(instance, Constructor) {
|
|
31763
|
+
if (!(instance instanceof Constructor)) {
|
|
31764
|
+
throw new TypeError("Cannot call a class as a function");
|
|
31765
|
+
}
|
|
31766
|
+
}
|
|
31767
|
+
function _defineProperties(target, props) {
|
|
31768
|
+
for (var i = 0; i < props.length; i++) {
|
|
31769
|
+
var descriptor = props[i];
|
|
31770
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
31771
|
+
descriptor.configurable = true;
|
|
31772
|
+
if ("value" in descriptor)
|
|
31773
|
+
descriptor.writable = true;
|
|
31774
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
31775
|
+
}
|
|
31776
|
+
}
|
|
31777
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
31778
|
+
if (protoProps)
|
|
31779
|
+
_defineProperties(Constructor.prototype, protoProps);
|
|
31780
|
+
if (staticProps)
|
|
31781
|
+
_defineProperties(Constructor, staticProps);
|
|
31782
|
+
return Constructor;
|
|
31783
|
+
}
|
|
31784
|
+
function _defineProperty(obj, key, value) {
|
|
31785
|
+
if (key in obj) {
|
|
31786
|
+
Object.defineProperty(obj, key, {
|
|
31787
|
+
value,
|
|
31788
|
+
enumerable: true,
|
|
31789
|
+
configurable: true,
|
|
31790
|
+
writable: true
|
|
31791
|
+
});
|
|
31792
|
+
} else {
|
|
31793
|
+
obj[key] = value;
|
|
31794
|
+
}
|
|
31795
|
+
return obj;
|
|
31796
|
+
}
|
|
31797
|
+
function _extends() {
|
|
31798
|
+
_extends = Object.assign || function(target) {
|
|
31799
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31800
|
+
var source2 = arguments[i];
|
|
31801
|
+
for (var key in source2) {
|
|
31802
|
+
if (Object.prototype.hasOwnProperty.call(source2, key)) {
|
|
31803
|
+
target[key] = source2[key];
|
|
31804
|
+
}
|
|
31805
|
+
}
|
|
31806
|
+
}
|
|
31807
|
+
return target;
|
|
31808
|
+
};
|
|
31809
|
+
return _extends.apply(this, arguments);
|
|
31810
|
+
}
|
|
31811
|
+
function _inherits(subClass, superClass) {
|
|
31812
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
31813
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
31814
|
+
}
|
|
31815
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
31816
|
+
constructor: {
|
|
31817
|
+
value: subClass,
|
|
31818
|
+
writable: true,
|
|
31819
|
+
configurable: true
|
|
31820
|
+
}
|
|
31821
|
+
});
|
|
31822
|
+
if (superClass)
|
|
31823
|
+
_setPrototypeOf(subClass, superClass);
|
|
31824
|
+
}
|
|
31825
|
+
function _getPrototypeOf(o2) {
|
|
31826
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
31827
|
+
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
31828
|
+
};
|
|
31829
|
+
return _getPrototypeOf(o2);
|
|
31830
|
+
}
|
|
31831
|
+
function _setPrototypeOf(o2, p2) {
|
|
31832
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
31833
|
+
o3.__proto__ = p3;
|
|
31834
|
+
return o3;
|
|
31835
|
+
};
|
|
31836
|
+
return _setPrototypeOf(o2, p2);
|
|
31837
|
+
}
|
|
31838
|
+
function _objectWithoutPropertiesLoose(source2, excluded) {
|
|
31839
|
+
if (source2 == null)
|
|
31840
|
+
return {};
|
|
31841
|
+
var target = {};
|
|
31842
|
+
var sourceKeys = Object.keys(source2);
|
|
31843
|
+
var key, i;
|
|
31844
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
31845
|
+
key = sourceKeys[i];
|
|
31846
|
+
if (excluded.indexOf(key) >= 0)
|
|
31847
|
+
continue;
|
|
31848
|
+
target[key] = source2[key];
|
|
31849
|
+
}
|
|
31850
|
+
return target;
|
|
31851
|
+
}
|
|
31852
|
+
function _objectWithoutProperties(source2, excluded) {
|
|
31853
|
+
if (source2 == null)
|
|
31854
|
+
return {};
|
|
31855
|
+
var target = _objectWithoutPropertiesLoose(source2, excluded);
|
|
31856
|
+
var key, i;
|
|
31857
|
+
if (Object.getOwnPropertySymbols) {
|
|
31858
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
31859
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
31860
|
+
key = sourceSymbolKeys[i];
|
|
31861
|
+
if (excluded.indexOf(key) >= 0)
|
|
31862
|
+
continue;
|
|
31863
|
+
if (!Object.prototype.propertyIsEnumerable.call(source2, key))
|
|
31864
|
+
continue;
|
|
31865
|
+
target[key] = source2[key];
|
|
31866
|
+
}
|
|
31867
|
+
}
|
|
31868
|
+
return target;
|
|
31869
|
+
}
|
|
31870
|
+
function _assertThisInitialized(self2) {
|
|
31871
|
+
if (self2 === void 0) {
|
|
31872
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
31873
|
+
}
|
|
31874
|
+
return self2;
|
|
31875
|
+
}
|
|
31876
|
+
function _possibleConstructorReturn(self2, call) {
|
|
31877
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
31878
|
+
return call;
|
|
31879
|
+
} else if (call !== void 0) {
|
|
31880
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
31881
|
+
}
|
|
31882
|
+
return _assertThisInitialized(self2);
|
|
31883
|
+
}
|
|
31884
|
+
function _slicedToArray(arr, i) {
|
|
31885
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
31886
|
+
}
|
|
31887
|
+
function _arrayWithHoles(arr) {
|
|
31888
|
+
if (Array.isArray(arr))
|
|
31889
|
+
return arr;
|
|
31890
|
+
}
|
|
31891
|
+
function _iterableToArrayLimit(arr, i) {
|
|
31892
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
31893
|
+
if (_i == null)
|
|
31894
|
+
return;
|
|
31895
|
+
var _arr = [];
|
|
31896
|
+
var _n = true;
|
|
31897
|
+
var _d = false;
|
|
31898
|
+
var _s, _e;
|
|
31899
|
+
try {
|
|
31900
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
31901
|
+
_arr.push(_s.value);
|
|
31902
|
+
if (i && _arr.length === i)
|
|
31903
|
+
break;
|
|
31904
|
+
}
|
|
31905
|
+
} catch (err) {
|
|
31906
|
+
_d = true;
|
|
31907
|
+
_e = err;
|
|
31908
|
+
} finally {
|
|
31909
|
+
try {
|
|
31910
|
+
if (!_n && _i["return"] != null)
|
|
31911
|
+
_i["return"]();
|
|
31912
|
+
} finally {
|
|
31913
|
+
if (_d)
|
|
31914
|
+
throw _e;
|
|
31915
|
+
}
|
|
31916
|
+
}
|
|
31917
|
+
return _arr;
|
|
31918
|
+
}
|
|
31919
|
+
function _unsupportedIterableToArray(o2, minLen) {
|
|
31920
|
+
if (!o2)
|
|
31921
|
+
return;
|
|
31922
|
+
if (typeof o2 === "string")
|
|
31923
|
+
return _arrayLikeToArray(o2, minLen);
|
|
31924
|
+
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
31925
|
+
if (n2 === "Object" && o2.constructor)
|
|
31926
|
+
n2 = o2.constructor.name;
|
|
31927
|
+
if (n2 === "Map" || n2 === "Set")
|
|
31928
|
+
return Array.from(o2);
|
|
31929
|
+
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
31930
|
+
return _arrayLikeToArray(o2, minLen);
|
|
31931
|
+
}
|
|
31932
|
+
function _arrayLikeToArray(arr, len) {
|
|
31933
|
+
if (len == null || len > arr.length)
|
|
31934
|
+
len = arr.length;
|
|
31935
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
31936
|
+
arr2[i] = arr[i];
|
|
31937
|
+
return arr2;
|
|
31938
|
+
}
|
|
31939
|
+
function _nonIterableRest() {
|
|
31940
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
31941
|
+
}
|
|
31942
|
+
var DeviceTypes = {
|
|
31943
|
+
Mobile: "mobile",
|
|
31944
|
+
Tablet: "tablet",
|
|
31945
|
+
SmartTv: "smarttv",
|
|
31946
|
+
Console: "console",
|
|
31947
|
+
Wearable: "wearable",
|
|
31948
|
+
Embedded: "embedded",
|
|
31949
|
+
Browser: void 0
|
|
31950
|
+
};
|
|
31951
|
+
var BrowserTypes = {
|
|
31952
|
+
Chrome: "Chrome",
|
|
31953
|
+
Firefox: "Firefox",
|
|
31954
|
+
Opera: "Opera",
|
|
31955
|
+
Yandex: "Yandex",
|
|
31956
|
+
Safari: "Safari",
|
|
31957
|
+
InternetExplorer: "Internet Explorer",
|
|
31958
|
+
Edge: "Edge",
|
|
31959
|
+
Chromium: "Chromium",
|
|
31960
|
+
Ie: "IE",
|
|
31961
|
+
MobileSafari: "Mobile Safari",
|
|
31962
|
+
EdgeChromium: "Edge Chromium",
|
|
31963
|
+
MIUI: "MIUI Browser",
|
|
31964
|
+
SamsungBrowser: "Samsung Browser"
|
|
31965
|
+
};
|
|
31966
|
+
var OsTypes = {
|
|
31967
|
+
IOS: "iOS",
|
|
31968
|
+
Android: "Android",
|
|
31969
|
+
WindowsPhone: "Windows Phone",
|
|
31970
|
+
Windows: "Windows",
|
|
31971
|
+
MAC_OS: "Mac OS"
|
|
31972
|
+
};
|
|
31973
|
+
var InitialDeviceTypes = {
|
|
31974
|
+
isMobile: false,
|
|
31975
|
+
isTablet: false,
|
|
31976
|
+
isBrowser: false,
|
|
31977
|
+
isSmartTV: false,
|
|
31978
|
+
isConsole: false,
|
|
31979
|
+
isWearable: false
|
|
31980
|
+
};
|
|
31981
|
+
var checkDeviceType = function checkDeviceType2(type) {
|
|
31982
|
+
switch (type) {
|
|
31983
|
+
case DeviceTypes.Mobile:
|
|
31984
|
+
return {
|
|
31985
|
+
isMobile: true
|
|
31986
|
+
};
|
|
31987
|
+
case DeviceTypes.Tablet:
|
|
31988
|
+
return {
|
|
31989
|
+
isTablet: true
|
|
31990
|
+
};
|
|
31991
|
+
case DeviceTypes.SmartTv:
|
|
31992
|
+
return {
|
|
31993
|
+
isSmartTV: true
|
|
31994
|
+
};
|
|
31995
|
+
case DeviceTypes.Console:
|
|
31996
|
+
return {
|
|
31997
|
+
isConsole: true
|
|
31998
|
+
};
|
|
31999
|
+
case DeviceTypes.Wearable:
|
|
32000
|
+
return {
|
|
32001
|
+
isWearable: true
|
|
32002
|
+
};
|
|
32003
|
+
case DeviceTypes.Browser:
|
|
32004
|
+
return {
|
|
32005
|
+
isBrowser: true
|
|
32006
|
+
};
|
|
32007
|
+
case DeviceTypes.Embedded:
|
|
32008
|
+
return {
|
|
32009
|
+
isEmbedded: true
|
|
32010
|
+
};
|
|
32011
|
+
default:
|
|
32012
|
+
return InitialDeviceTypes;
|
|
32013
|
+
}
|
|
32014
|
+
};
|
|
32015
|
+
var setUserAgent = function setUserAgent2(userAgent) {
|
|
32016
|
+
return setUa(userAgent);
|
|
32017
|
+
};
|
|
32018
|
+
var setDefaults = function setDefaults2(p2) {
|
|
32019
|
+
var d2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
32020
|
+
return p2 ? p2 : d2;
|
|
32021
|
+
};
|
|
32022
|
+
var getNavigatorInstance = function getNavigatorInstance2() {
|
|
32023
|
+
if (typeof window !== "undefined") {
|
|
32024
|
+
if (window.navigator || navigator) {
|
|
32025
|
+
return window.navigator || navigator;
|
|
32026
|
+
}
|
|
32027
|
+
}
|
|
32028
|
+
return false;
|
|
32029
|
+
};
|
|
32030
|
+
var isIOS13Check = function isIOS13Check2(type) {
|
|
32031
|
+
var nav = getNavigatorInstance();
|
|
32032
|
+
return nav && nav.platform && (nav.platform.indexOf(type) !== -1 || nav.platform === "MacIntel" && nav.maxTouchPoints > 1 && !window.MSStream);
|
|
32033
|
+
};
|
|
32034
|
+
var browserPayload = function browserPayload2(isBrowser2, browser2, engine2, os2, ua2) {
|
|
32035
|
+
return {
|
|
32036
|
+
isBrowser: isBrowser2,
|
|
32037
|
+
browserMajorVersion: setDefaults(browser2.major),
|
|
32038
|
+
browserFullVersion: setDefaults(browser2.version),
|
|
32039
|
+
browserName: setDefaults(browser2.name),
|
|
32040
|
+
engineName: setDefaults(engine2.name),
|
|
32041
|
+
engineVersion: setDefaults(engine2.version),
|
|
32042
|
+
osName: setDefaults(os2.name),
|
|
32043
|
+
osVersion: setDefaults(os2.version),
|
|
32044
|
+
userAgent: setDefaults(ua2)
|
|
32045
|
+
};
|
|
32046
|
+
};
|
|
32047
|
+
var mobilePayload = function mobilePayload2(type, device2, os2, ua2) {
|
|
32048
|
+
return _objectSpread2({}, type, {
|
|
32049
|
+
vendor: setDefaults(device2.vendor),
|
|
32050
|
+
model: setDefaults(device2.model),
|
|
32051
|
+
os: setDefaults(os2.name),
|
|
32052
|
+
osVersion: setDefaults(os2.version),
|
|
32053
|
+
ua: setDefaults(ua2)
|
|
32054
|
+
});
|
|
32055
|
+
};
|
|
32056
|
+
var smartTvPayload = function smartTvPayload2(isSmartTV2, engine2, os2, ua2) {
|
|
32057
|
+
return {
|
|
32058
|
+
isSmartTV: isSmartTV2,
|
|
32059
|
+
engineName: setDefaults(engine2.name),
|
|
32060
|
+
engineVersion: setDefaults(engine2.version),
|
|
32061
|
+
osName: setDefaults(os2.name),
|
|
32062
|
+
osVersion: setDefaults(os2.version),
|
|
32063
|
+
userAgent: setDefaults(ua2)
|
|
32064
|
+
};
|
|
32065
|
+
};
|
|
32066
|
+
var consolePayload = function consolePayload2(isConsole2, engine2, os2, ua2) {
|
|
32067
|
+
return {
|
|
32068
|
+
isConsole: isConsole2,
|
|
32069
|
+
engineName: setDefaults(engine2.name),
|
|
32070
|
+
engineVersion: setDefaults(engine2.version),
|
|
32071
|
+
osName: setDefaults(os2.name),
|
|
32072
|
+
osVersion: setDefaults(os2.version),
|
|
32073
|
+
userAgent: setDefaults(ua2)
|
|
32074
|
+
};
|
|
32075
|
+
};
|
|
32076
|
+
var wearablePayload = function wearablePayload2(isWearable2, engine2, os2, ua2) {
|
|
32077
|
+
return {
|
|
32078
|
+
isWearable: isWearable2,
|
|
32079
|
+
engineName: setDefaults(engine2.name),
|
|
32080
|
+
engineVersion: setDefaults(engine2.version),
|
|
32081
|
+
osName: setDefaults(os2.name),
|
|
32082
|
+
osVersion: setDefaults(os2.version),
|
|
32083
|
+
userAgent: setDefaults(ua2)
|
|
32084
|
+
};
|
|
32085
|
+
};
|
|
32086
|
+
var embeddedPayload = function embeddedPayload2(isEmbedded2, device2, engine2, os2, ua2) {
|
|
32087
|
+
return {
|
|
32088
|
+
isEmbedded: isEmbedded2,
|
|
32089
|
+
vendor: setDefaults(device2.vendor),
|
|
32090
|
+
model: setDefaults(device2.model),
|
|
32091
|
+
engineName: setDefaults(engine2.name),
|
|
32092
|
+
engineVersion: setDefaults(engine2.version),
|
|
32093
|
+
osName: setDefaults(os2.name),
|
|
32094
|
+
osVersion: setDefaults(os2.version),
|
|
32095
|
+
userAgent: setDefaults(ua2)
|
|
32096
|
+
};
|
|
32097
|
+
};
|
|
32098
|
+
function deviceDetect(userAgent) {
|
|
32099
|
+
var _ref = userAgent ? parseUserAgent(userAgent) : UAHelper, device2 = _ref.device, browser2 = _ref.browser, engine2 = _ref.engine, os2 = _ref.os, ua2 = _ref.ua;
|
|
32100
|
+
var type = checkDeviceType(device2.type);
|
|
32101
|
+
var isBrowser2 = type.isBrowser, isMobile2 = type.isMobile, isTablet2 = type.isTablet, isSmartTV2 = type.isSmartTV, isConsole2 = type.isConsole, isWearable2 = type.isWearable, isEmbedded2 = type.isEmbedded;
|
|
32102
|
+
if (isBrowser2) {
|
|
32103
|
+
return browserPayload(isBrowser2, browser2, engine2, os2, ua2);
|
|
32104
|
+
}
|
|
32105
|
+
if (isSmartTV2) {
|
|
32106
|
+
return smartTvPayload(isSmartTV2, engine2, os2, ua2);
|
|
32107
|
+
}
|
|
32108
|
+
if (isConsole2) {
|
|
32109
|
+
return consolePayload(isConsole2, engine2, os2, ua2);
|
|
32110
|
+
}
|
|
32111
|
+
if (isMobile2) {
|
|
32112
|
+
return mobilePayload(type, device2, os2, ua2);
|
|
32113
|
+
}
|
|
32114
|
+
if (isTablet2) {
|
|
32115
|
+
return mobilePayload(type, device2, os2, ua2);
|
|
32116
|
+
}
|
|
32117
|
+
if (isWearable2) {
|
|
32118
|
+
return wearablePayload(isWearable2, engine2, os2, ua2);
|
|
32119
|
+
}
|
|
32120
|
+
if (isEmbedded2) {
|
|
32121
|
+
return embeddedPayload(isEmbedded2, device2, engine2, os2, ua2);
|
|
32122
|
+
}
|
|
32123
|
+
}
|
|
32124
|
+
var isMobileType = function isMobileType2(_ref) {
|
|
32125
|
+
var type = _ref.type;
|
|
32126
|
+
return type === DeviceTypes.Mobile;
|
|
32127
|
+
};
|
|
32128
|
+
var isTabletType = function isTabletType2(_ref2) {
|
|
32129
|
+
var type = _ref2.type;
|
|
32130
|
+
return type === DeviceTypes.Tablet;
|
|
32131
|
+
};
|
|
32132
|
+
var isMobileAndTabletType = function isMobileAndTabletType2(_ref3) {
|
|
32133
|
+
var type = _ref3.type;
|
|
32134
|
+
return type === DeviceTypes.Mobile || type === DeviceTypes.Tablet;
|
|
32135
|
+
};
|
|
32136
|
+
var isSmartTVType = function isSmartTVType2(_ref4) {
|
|
32137
|
+
var type = _ref4.type;
|
|
32138
|
+
return type === DeviceTypes.SmartTv;
|
|
32139
|
+
};
|
|
32140
|
+
var isBrowserType = function isBrowserType2(_ref5) {
|
|
32141
|
+
var type = _ref5.type;
|
|
32142
|
+
return type === DeviceTypes.Browser;
|
|
32143
|
+
};
|
|
32144
|
+
var isWearableType = function isWearableType2(_ref6) {
|
|
32145
|
+
var type = _ref6.type;
|
|
32146
|
+
return type === DeviceTypes.Wearable;
|
|
32147
|
+
};
|
|
32148
|
+
var isConsoleType = function isConsoleType2(_ref7) {
|
|
32149
|
+
var type = _ref7.type;
|
|
32150
|
+
return type === DeviceTypes.Console;
|
|
32151
|
+
};
|
|
32152
|
+
var isEmbeddedType = function isEmbeddedType2(_ref8) {
|
|
32153
|
+
var type = _ref8.type;
|
|
32154
|
+
return type === DeviceTypes.Embedded;
|
|
32155
|
+
};
|
|
32156
|
+
var getMobileVendor = function getMobileVendor2(_ref9) {
|
|
32157
|
+
var vendor = _ref9.vendor;
|
|
32158
|
+
return setDefaults(vendor);
|
|
32159
|
+
};
|
|
32160
|
+
var getMobileModel = function getMobileModel2(_ref10) {
|
|
32161
|
+
var model = _ref10.model;
|
|
32162
|
+
return setDefaults(model);
|
|
32163
|
+
};
|
|
32164
|
+
var getDeviceType = function getDeviceType2(_ref11) {
|
|
32165
|
+
var type = _ref11.type;
|
|
32166
|
+
return setDefaults(type, "browser");
|
|
32167
|
+
};
|
|
32168
|
+
var isAndroidType = function isAndroidType2(_ref12) {
|
|
32169
|
+
var name = _ref12.name;
|
|
32170
|
+
return name === OsTypes.Android;
|
|
32171
|
+
};
|
|
32172
|
+
var isWindowsType = function isWindowsType2(_ref13) {
|
|
32173
|
+
var name = _ref13.name;
|
|
32174
|
+
return name === OsTypes.Windows;
|
|
32175
|
+
};
|
|
32176
|
+
var isMacOsType = function isMacOsType2(_ref14) {
|
|
32177
|
+
var name = _ref14.name;
|
|
32178
|
+
return name === OsTypes.MAC_OS;
|
|
32179
|
+
};
|
|
32180
|
+
var isWinPhoneType = function isWinPhoneType2(_ref15) {
|
|
32181
|
+
var name = _ref15.name;
|
|
32182
|
+
return name === OsTypes.WindowsPhone;
|
|
32183
|
+
};
|
|
32184
|
+
var isIOSType = function isIOSType2(_ref16) {
|
|
32185
|
+
var name = _ref16.name;
|
|
32186
|
+
return name === OsTypes.IOS;
|
|
32187
|
+
};
|
|
32188
|
+
var getOsVersion = function getOsVersion2(_ref17) {
|
|
32189
|
+
var version = _ref17.version;
|
|
32190
|
+
return setDefaults(version);
|
|
32191
|
+
};
|
|
32192
|
+
var getOsName = function getOsName2(_ref18) {
|
|
32193
|
+
var name = _ref18.name;
|
|
32194
|
+
return setDefaults(name);
|
|
32195
|
+
};
|
|
32196
|
+
var isChromeType = function isChromeType2(_ref19) {
|
|
32197
|
+
var name = _ref19.name;
|
|
32198
|
+
return name === BrowserTypes.Chrome;
|
|
32199
|
+
};
|
|
32200
|
+
var isFirefoxType = function isFirefoxType2(_ref20) {
|
|
32201
|
+
var name = _ref20.name;
|
|
32202
|
+
return name === BrowserTypes.Firefox;
|
|
32203
|
+
};
|
|
32204
|
+
var isChromiumType = function isChromiumType2(_ref21) {
|
|
32205
|
+
var name = _ref21.name;
|
|
32206
|
+
return name === BrowserTypes.Chromium;
|
|
32207
|
+
};
|
|
32208
|
+
var isEdgeType = function isEdgeType2(_ref22) {
|
|
32209
|
+
var name = _ref22.name;
|
|
32210
|
+
return name === BrowserTypes.Edge;
|
|
32211
|
+
};
|
|
32212
|
+
var isYandexType = function isYandexType2(_ref23) {
|
|
32213
|
+
var name = _ref23.name;
|
|
32214
|
+
return name === BrowserTypes.Yandex;
|
|
32215
|
+
};
|
|
32216
|
+
var isSafariType = function isSafariType2(_ref24) {
|
|
32217
|
+
var name = _ref24.name;
|
|
32218
|
+
return name === BrowserTypes.Safari || name === BrowserTypes.MobileSafari;
|
|
32219
|
+
};
|
|
32220
|
+
var isMobileSafariType = function isMobileSafariType2(_ref25) {
|
|
32221
|
+
var name = _ref25.name;
|
|
32222
|
+
return name === BrowserTypes.MobileSafari;
|
|
32223
|
+
};
|
|
32224
|
+
var isOperaType = function isOperaType2(_ref26) {
|
|
32225
|
+
var name = _ref26.name;
|
|
32226
|
+
return name === BrowserTypes.Opera;
|
|
32227
|
+
};
|
|
32228
|
+
var isIEType = function isIEType2(_ref27) {
|
|
32229
|
+
var name = _ref27.name;
|
|
32230
|
+
return name === BrowserTypes.InternetExplorer || name === BrowserTypes.Ie;
|
|
32231
|
+
};
|
|
32232
|
+
var isMIUIType = function isMIUIType2(_ref28) {
|
|
32233
|
+
var name = _ref28.name;
|
|
32234
|
+
return name === BrowserTypes.MIUI;
|
|
32235
|
+
};
|
|
32236
|
+
var isSamsungBrowserType = function isSamsungBrowserType2(_ref29) {
|
|
32237
|
+
var name = _ref29.name;
|
|
32238
|
+
return name === BrowserTypes.SamsungBrowser;
|
|
32239
|
+
};
|
|
32240
|
+
var getBrowserFullVersion = function getBrowserFullVersion2(_ref30) {
|
|
32241
|
+
var version = _ref30.version;
|
|
32242
|
+
return setDefaults(version);
|
|
32243
|
+
};
|
|
32244
|
+
var getBrowserVersion = function getBrowserVersion2(_ref31) {
|
|
32245
|
+
var major = _ref31.major;
|
|
32246
|
+
return setDefaults(major);
|
|
32247
|
+
};
|
|
32248
|
+
var getBrowserName = function getBrowserName2(_ref32) {
|
|
32249
|
+
var name = _ref32.name;
|
|
32250
|
+
return setDefaults(name);
|
|
32251
|
+
};
|
|
32252
|
+
var getEngineName = function getEngineName2(_ref33) {
|
|
32253
|
+
var name = _ref33.name;
|
|
32254
|
+
return setDefaults(name);
|
|
32255
|
+
};
|
|
32256
|
+
var getEngineVersion = function getEngineVersion2(_ref34) {
|
|
32257
|
+
var version = _ref34.version;
|
|
32258
|
+
return setDefaults(version);
|
|
32259
|
+
};
|
|
32260
|
+
var isElectronType = function isElectronType2() {
|
|
32261
|
+
var nav = getNavigatorInstance();
|
|
32262
|
+
var ua2 = nav && nav.userAgent && nav.userAgent.toLowerCase();
|
|
32263
|
+
return typeof ua2 === "string" ? /electron/.test(ua2) : false;
|
|
32264
|
+
};
|
|
32265
|
+
var isEdgeChromiumType = function isEdgeChromiumType2(ua2) {
|
|
32266
|
+
return typeof ua2 === "string" && ua2.indexOf("Edg/") !== -1;
|
|
32267
|
+
};
|
|
32268
|
+
var getIOS13 = function getIOS132() {
|
|
32269
|
+
var nav = getNavigatorInstance();
|
|
32270
|
+
return nav && (/iPad|iPhone|iPod/.test(nav.platform) || nav.platform === "MacIntel" && nav.maxTouchPoints > 1) && !window.MSStream;
|
|
32271
|
+
};
|
|
32272
|
+
var getIPad13 = function getIPad132() {
|
|
32273
|
+
return isIOS13Check("iPad");
|
|
32274
|
+
};
|
|
32275
|
+
var getIphone13 = function getIphone132() {
|
|
32276
|
+
return isIOS13Check("iPhone");
|
|
32277
|
+
};
|
|
32278
|
+
var getIPod13 = function getIPod132() {
|
|
32279
|
+
return isIOS13Check("iPod");
|
|
32280
|
+
};
|
|
32281
|
+
var getUseragent = function getUseragent2(userAg) {
|
|
32282
|
+
return setDefaults(userAg);
|
|
32283
|
+
};
|
|
32284
|
+
function buildSelectorsObject(options) {
|
|
32285
|
+
var _ref = options ? options : UAHelper, device2 = _ref.device, browser2 = _ref.browser, os2 = _ref.os, engine2 = _ref.engine, ua2 = _ref.ua;
|
|
32286
|
+
return {
|
|
32287
|
+
isSmartTV: isSmartTVType(device2),
|
|
32288
|
+
isConsole: isConsoleType(device2),
|
|
32289
|
+
isWearable: isWearableType(device2),
|
|
32290
|
+
isEmbedded: isEmbeddedType(device2),
|
|
32291
|
+
isMobileSafari: isMobileSafariType(browser2) || getIPad13(),
|
|
32292
|
+
isChromium: isChromiumType(browser2),
|
|
32293
|
+
isMobile: isMobileAndTabletType(device2) || getIPad13(),
|
|
32294
|
+
isMobileOnly: isMobileType(device2),
|
|
32295
|
+
isTablet: isTabletType(device2) || getIPad13(),
|
|
32296
|
+
isBrowser: isBrowserType(device2),
|
|
32297
|
+
isDesktop: isBrowserType(device2),
|
|
32298
|
+
isAndroid: isAndroidType(os2),
|
|
32299
|
+
isWinPhone: isWinPhoneType(os2),
|
|
32300
|
+
isIOS: isIOSType(os2) || getIPad13(),
|
|
32301
|
+
isChrome: isChromeType(browser2),
|
|
32302
|
+
isFirefox: isFirefoxType(browser2),
|
|
32303
|
+
isSafari: isSafariType(browser2),
|
|
32304
|
+
isOpera: isOperaType(browser2),
|
|
32305
|
+
isIE: isIEType(browser2),
|
|
32306
|
+
osVersion: getOsVersion(os2),
|
|
32307
|
+
osName: getOsName(os2),
|
|
32308
|
+
fullBrowserVersion: getBrowserFullVersion(browser2),
|
|
32309
|
+
browserVersion: getBrowserVersion(browser2),
|
|
32310
|
+
browserName: getBrowserName(browser2),
|
|
32311
|
+
mobileVendor: getMobileVendor(device2),
|
|
32312
|
+
mobileModel: getMobileModel(device2),
|
|
32313
|
+
engineName: getEngineName(engine2),
|
|
32314
|
+
engineVersion: getEngineVersion(engine2),
|
|
32315
|
+
getUA: getUseragent(ua2),
|
|
32316
|
+
isEdge: isEdgeType(browser2) || isEdgeChromiumType(ua2),
|
|
32317
|
+
isYandex: isYandexType(browser2),
|
|
32318
|
+
deviceType: getDeviceType(device2),
|
|
32319
|
+
isIOS13: getIOS13(),
|
|
32320
|
+
isIPad13: getIPad13(),
|
|
32321
|
+
isIPhone13: getIphone13(),
|
|
32322
|
+
isIPod13: getIPod13(),
|
|
32323
|
+
isElectron: isElectronType(),
|
|
32324
|
+
isEdgeChromium: isEdgeChromiumType(ua2),
|
|
32325
|
+
isLegacyEdge: isEdgeType(browser2) && !isEdgeChromiumType(ua2),
|
|
32326
|
+
isWindows: isWindowsType(os2),
|
|
32327
|
+
isMacOs: isMacOsType(os2),
|
|
32328
|
+
isMIUI: isMIUIType(browser2),
|
|
32329
|
+
isSamsungBrowser: isSamsungBrowserType(browser2)
|
|
32330
|
+
};
|
|
32331
|
+
}
|
|
32332
|
+
var isSmartTV = isSmartTVType(device);
|
|
32333
|
+
var isConsole = isConsoleType(device);
|
|
32334
|
+
var isWearable = isWearableType(device);
|
|
32335
|
+
var isEmbedded = isEmbeddedType(device);
|
|
32336
|
+
var isMobileSafari = isMobileSafariType(browser) || getIPad13();
|
|
32337
|
+
var isChromium = isChromiumType(browser);
|
|
32338
|
+
var isMobile = isMobileAndTabletType(device) || getIPad13();
|
|
32339
|
+
var isMobileOnly = isMobileType(device);
|
|
32340
|
+
var isTablet = isTabletType(device) || getIPad13();
|
|
32341
|
+
var isBrowser = isBrowserType(device);
|
|
32342
|
+
var isDesktop = isBrowserType(device);
|
|
32343
|
+
var isAndroid = isAndroidType(os);
|
|
32344
|
+
var isWinPhone = isWinPhoneType(os);
|
|
32345
|
+
var isIOS = isIOSType(os) || getIPad13();
|
|
32346
|
+
var isChrome = isChromeType(browser);
|
|
32347
|
+
var isFirefox = isFirefoxType(browser);
|
|
32348
|
+
var isSafari = isSafariType(browser);
|
|
32349
|
+
var isOpera = isOperaType(browser);
|
|
32350
|
+
var isIE = isIEType(browser);
|
|
32351
|
+
var osVersion = getOsVersion(os);
|
|
32352
|
+
var osName = getOsName(os);
|
|
32353
|
+
var fullBrowserVersion = getBrowserFullVersion(browser);
|
|
32354
|
+
var browserVersion = getBrowserVersion(browser);
|
|
32355
|
+
var browserName = getBrowserName(browser);
|
|
32356
|
+
var mobileVendor = getMobileVendor(device);
|
|
32357
|
+
var mobileModel = getMobileModel(device);
|
|
32358
|
+
var engineName = getEngineName(engine);
|
|
32359
|
+
var engineVersion = getEngineVersion(engine);
|
|
32360
|
+
var getUA = getUseragent(ua);
|
|
32361
|
+
var isEdge = isEdgeType(browser) || isEdgeChromiumType(ua);
|
|
32362
|
+
var isYandex = isYandexType(browser);
|
|
32363
|
+
var deviceType = getDeviceType(device);
|
|
32364
|
+
var isIOS13 = getIOS13();
|
|
32365
|
+
var isIPad13 = getIPad13();
|
|
32366
|
+
var isIPhone13 = getIphone13();
|
|
32367
|
+
var isIPod13 = getIPod13();
|
|
32368
|
+
var isElectron = isElectronType();
|
|
32369
|
+
var isEdgeChromium = isEdgeChromiumType(ua);
|
|
32370
|
+
var isLegacyEdge = isEdgeType(browser) && !isEdgeChromiumType(ua);
|
|
32371
|
+
var isWindows = isWindowsType(os);
|
|
32372
|
+
var isMacOs = isMacOsType(os);
|
|
32373
|
+
var isMIUI = isMIUIType(browser);
|
|
32374
|
+
var isSamsungBrowser = isSamsungBrowserType(browser);
|
|
32375
|
+
var getSelectorsByUserAgent = function getSelectorsByUserAgent2(userAgent) {
|
|
32376
|
+
if (!userAgent || typeof userAgent !== "string") {
|
|
32377
|
+
console.error("No valid user agent string was provided");
|
|
32378
|
+
return;
|
|
32379
|
+
}
|
|
32380
|
+
var _UAHelper$parseUserAg = parseUserAgent(userAgent), device2 = _UAHelper$parseUserAg.device, browser2 = _UAHelper$parseUserAg.browser, os2 = _UAHelper$parseUserAg.os, engine2 = _UAHelper$parseUserAg.engine, ua2 = _UAHelper$parseUserAg.ua;
|
|
32381
|
+
return buildSelectorsObject({
|
|
32382
|
+
device: device2,
|
|
32383
|
+
browser: browser2,
|
|
32384
|
+
os: os2,
|
|
32385
|
+
engine: engine2,
|
|
32386
|
+
ua: ua2
|
|
32387
|
+
});
|
|
32388
|
+
};
|
|
32389
|
+
var AndroidView = function AndroidView2(_ref) {
|
|
32390
|
+
var renderWithFragment = _ref.renderWithFragment, children = _ref.children, props = _objectWithoutProperties(_ref, ["renderWithFragment", "children"]);
|
|
32391
|
+
return isAndroid ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32392
|
+
};
|
|
32393
|
+
var BrowserView = function BrowserView2(_ref2) {
|
|
32394
|
+
var renderWithFragment = _ref2.renderWithFragment, children = _ref2.children, props = _objectWithoutProperties(_ref2, ["renderWithFragment", "children"]);
|
|
32395
|
+
return isBrowser ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32396
|
+
};
|
|
32397
|
+
var IEView = function IEView2(_ref3) {
|
|
32398
|
+
var renderWithFragment = _ref3.renderWithFragment, children = _ref3.children, props = _objectWithoutProperties(_ref3, ["renderWithFragment", "children"]);
|
|
32399
|
+
return isIE ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32400
|
+
};
|
|
32401
|
+
var IOSView = function IOSView2(_ref4) {
|
|
32402
|
+
var renderWithFragment = _ref4.renderWithFragment, children = _ref4.children, props = _objectWithoutProperties(_ref4, ["renderWithFragment", "children"]);
|
|
32403
|
+
return isIOS ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32404
|
+
};
|
|
32405
|
+
var MobileView = function MobileView2(_ref5) {
|
|
32406
|
+
var renderWithFragment = _ref5.renderWithFragment, children = _ref5.children, props = _objectWithoutProperties(_ref5, ["renderWithFragment", "children"]);
|
|
32407
|
+
return isMobile ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32408
|
+
};
|
|
32409
|
+
var TabletView = function TabletView2(_ref6) {
|
|
32410
|
+
var renderWithFragment = _ref6.renderWithFragment, children = _ref6.children, props = _objectWithoutProperties(_ref6, ["renderWithFragment", "children"]);
|
|
32411
|
+
return isTablet ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32412
|
+
};
|
|
32413
|
+
var WinPhoneView = function WinPhoneView2(_ref7) {
|
|
32414
|
+
var renderWithFragment = _ref7.renderWithFragment, children = _ref7.children, props = _objectWithoutProperties(_ref7, ["renderWithFragment", "children"]);
|
|
32415
|
+
return isWinPhone ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32416
|
+
};
|
|
32417
|
+
var MobileOnlyView = function MobileOnlyView2(_ref8) {
|
|
32418
|
+
var renderWithFragment = _ref8.renderWithFragment, children = _ref8.children;
|
|
32419
|
+
_ref8.viewClassName;
|
|
32420
|
+
_ref8.style;
|
|
32421
|
+
var props = _objectWithoutProperties(_ref8, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
32422
|
+
return isMobileOnly ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32423
|
+
};
|
|
32424
|
+
var SmartTVView = function SmartTVView2(_ref9) {
|
|
32425
|
+
var renderWithFragment = _ref9.renderWithFragment, children = _ref9.children, props = _objectWithoutProperties(_ref9, ["renderWithFragment", "children"]);
|
|
32426
|
+
return isSmartTV ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32427
|
+
};
|
|
32428
|
+
var ConsoleView = function ConsoleView2(_ref10) {
|
|
32429
|
+
var renderWithFragment = _ref10.renderWithFragment, children = _ref10.children, props = _objectWithoutProperties(_ref10, ["renderWithFragment", "children"]);
|
|
32430
|
+
return isConsole ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32431
|
+
};
|
|
32432
|
+
var WearableView = function WearableView2(_ref11) {
|
|
32433
|
+
var renderWithFragment = _ref11.renderWithFragment, children = _ref11.children, props = _objectWithoutProperties(_ref11, ["renderWithFragment", "children"]);
|
|
32434
|
+
return isWearable ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32435
|
+
};
|
|
32436
|
+
var CustomView = function CustomView2(_ref12) {
|
|
32437
|
+
var renderWithFragment = _ref12.renderWithFragment, children = _ref12.children;
|
|
32438
|
+
_ref12.viewClassName;
|
|
32439
|
+
_ref12.style;
|
|
32440
|
+
var condition = _ref12.condition, props = _objectWithoutProperties(_ref12, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
32441
|
+
return condition ? renderWithFragment ? React__default.createElement(React.Fragment, null, children) : React__default.createElement("div", props, children) : null;
|
|
32442
|
+
};
|
|
32443
|
+
function withOrientationChange(WrappedComponent) {
|
|
32444
|
+
return /* @__PURE__ */ function(_React$Component) {
|
|
32445
|
+
_inherits(_class, _React$Component);
|
|
32446
|
+
function _class(props) {
|
|
32447
|
+
var _this;
|
|
32448
|
+
_classCallCheck(this, _class);
|
|
32449
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(_class).call(this, props));
|
|
32450
|
+
_this.isEventListenerAdded = false;
|
|
32451
|
+
_this.handleOrientationChange = _this.handleOrientationChange.bind(_assertThisInitialized(_this));
|
|
32452
|
+
_this.onOrientationChange = _this.onOrientationChange.bind(_assertThisInitialized(_this));
|
|
32453
|
+
_this.onPageLoad = _this.onPageLoad.bind(_assertThisInitialized(_this));
|
|
32454
|
+
_this.state = {
|
|
32455
|
+
isLandscape: false,
|
|
32456
|
+
isPortrait: false
|
|
32457
|
+
};
|
|
32458
|
+
return _this;
|
|
32459
|
+
}
|
|
32460
|
+
_createClass(_class, [{
|
|
32461
|
+
key: "handleOrientationChange",
|
|
32462
|
+
value: function handleOrientationChange() {
|
|
32463
|
+
if (!this.isEventListenerAdded) {
|
|
32464
|
+
this.isEventListenerAdded = true;
|
|
32465
|
+
}
|
|
32466
|
+
var orientation = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
32467
|
+
this.setState({
|
|
32468
|
+
isPortrait: orientation === 0,
|
|
32469
|
+
isLandscape: orientation === 90
|
|
32470
|
+
});
|
|
32471
|
+
}
|
|
32472
|
+
}, {
|
|
32473
|
+
key: "onOrientationChange",
|
|
32474
|
+
value: function onOrientationChange() {
|
|
32475
|
+
this.handleOrientationChange();
|
|
32476
|
+
}
|
|
32477
|
+
}, {
|
|
32478
|
+
key: "onPageLoad",
|
|
32479
|
+
value: function onPageLoad() {
|
|
32480
|
+
this.handleOrientationChange();
|
|
32481
|
+
}
|
|
32482
|
+
}, {
|
|
32483
|
+
key: "componentDidMount",
|
|
32484
|
+
value: function componentDidMount() {
|
|
32485
|
+
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) !== void 0 && isMobile) {
|
|
32486
|
+
if (!this.isEventListenerAdded) {
|
|
32487
|
+
this.handleOrientationChange();
|
|
32488
|
+
window.addEventListener("load", this.onPageLoad, false);
|
|
32489
|
+
} else {
|
|
32490
|
+
window.removeEventListener("load", this.onPageLoad, false);
|
|
32491
|
+
}
|
|
32492
|
+
window.addEventListener("resize", this.onOrientationChange, false);
|
|
32493
|
+
}
|
|
32494
|
+
}
|
|
32495
|
+
}, {
|
|
32496
|
+
key: "componentWillUnmount",
|
|
32497
|
+
value: function componentWillUnmount() {
|
|
32498
|
+
window.removeEventListener("resize", this.onOrientationChange, false);
|
|
32499
|
+
}
|
|
32500
|
+
}, {
|
|
32501
|
+
key: "render",
|
|
32502
|
+
value: function render() {
|
|
32503
|
+
return React__default.createElement(WrappedComponent, _extends({}, this.props, {
|
|
32504
|
+
isLandscape: this.state.isLandscape,
|
|
32505
|
+
isPortrait: this.state.isPortrait
|
|
32506
|
+
}));
|
|
32507
|
+
}
|
|
32508
|
+
}]);
|
|
32509
|
+
return _class;
|
|
32510
|
+
}(React__default.Component);
|
|
32511
|
+
}
|
|
32512
|
+
function useMobileOrientation() {
|
|
32513
|
+
var _useState = React.useState(function() {
|
|
32514
|
+
var orientation = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
32515
|
+
return {
|
|
32516
|
+
isPortrait: orientation === 0,
|
|
32517
|
+
isLandscape: orientation === 90,
|
|
32518
|
+
orientation: orientation === 0 ? "portrait" : "landscape"
|
|
32519
|
+
};
|
|
32520
|
+
}), _useState2 = _slicedToArray(_useState, 2), state = _useState2[0], setState = _useState2[1];
|
|
32521
|
+
var handleOrientationChange = React.useCallback(function() {
|
|
32522
|
+
var orientation = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
32523
|
+
var next2 = {
|
|
32524
|
+
isPortrait: orientation === 0,
|
|
32525
|
+
isLandscape: orientation === 90,
|
|
32526
|
+
orientation: orientation === 0 ? "portrait" : "landscape"
|
|
32527
|
+
};
|
|
32528
|
+
state.orientation !== next2.orientation && setState(next2);
|
|
32529
|
+
}, [state.orientation]);
|
|
32530
|
+
React.useEffect(function() {
|
|
32531
|
+
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) !== void 0 && isMobile) {
|
|
32532
|
+
handleOrientationChange();
|
|
32533
|
+
window.addEventListener("load", handleOrientationChange, false);
|
|
32534
|
+
window.addEventListener("resize", handleOrientationChange, false);
|
|
32535
|
+
}
|
|
32536
|
+
return function() {
|
|
32537
|
+
window.removeEventListener("resize", handleOrientationChange, false);
|
|
32538
|
+
window.removeEventListener("load", handleOrientationChange, false);
|
|
32539
|
+
};
|
|
32540
|
+
}, [handleOrientationChange]);
|
|
32541
|
+
return state;
|
|
32542
|
+
}
|
|
32543
|
+
function useDeviceData(userAgent) {
|
|
32544
|
+
var hookUserAgent = userAgent ? userAgent : window.navigator.userAgent;
|
|
32545
|
+
return parseUserAgent(hookUserAgent);
|
|
32546
|
+
}
|
|
32547
|
+
function useDeviceSelectors(userAgent) {
|
|
32548
|
+
var hookUserAgent = userAgent ? userAgent : window.navigator.userAgent;
|
|
32549
|
+
var deviceData = useDeviceData(hookUserAgent);
|
|
32550
|
+
var selectors = buildSelectorsObject(deviceData);
|
|
32551
|
+
return [selectors, deviceData];
|
|
32552
|
+
}
|
|
32553
|
+
lib.AndroidView = AndroidView;
|
|
32554
|
+
lib.BrowserTypes = BrowserTypes;
|
|
32555
|
+
lib.BrowserView = BrowserView;
|
|
32556
|
+
lib.ConsoleView = ConsoleView;
|
|
32557
|
+
lib.CustomView = CustomView;
|
|
32558
|
+
lib.IEView = IEView;
|
|
32559
|
+
lib.IOSView = IOSView;
|
|
32560
|
+
lib.MobileOnlyView = MobileOnlyView;
|
|
32561
|
+
lib.MobileView = MobileView;
|
|
32562
|
+
lib.OsTypes = OsTypes;
|
|
32563
|
+
lib.SmartTVView = SmartTVView;
|
|
32564
|
+
lib.TabletView = TabletView;
|
|
32565
|
+
lib.WearableView = WearableView;
|
|
32566
|
+
lib.WinPhoneView = WinPhoneView;
|
|
32567
|
+
lib.browserName = browserName;
|
|
32568
|
+
lib.browserVersion = browserVersion;
|
|
32569
|
+
lib.deviceDetect = deviceDetect;
|
|
32570
|
+
lib.deviceType = deviceType;
|
|
32571
|
+
lib.engineName = engineName;
|
|
32572
|
+
lib.engineVersion = engineVersion;
|
|
32573
|
+
lib.fullBrowserVersion = fullBrowserVersion;
|
|
32574
|
+
lib.getSelectorsByUserAgent = getSelectorsByUserAgent;
|
|
32575
|
+
lib.getUA = getUA;
|
|
32576
|
+
lib.isAndroid = isAndroid;
|
|
32577
|
+
lib.isBrowser = isBrowser;
|
|
32578
|
+
lib.isChrome = isChrome;
|
|
32579
|
+
lib.isChromium = isChromium;
|
|
32580
|
+
lib.isConsole = isConsole;
|
|
32581
|
+
lib.isDesktop = isDesktop;
|
|
32582
|
+
lib.isEdge = isEdge;
|
|
32583
|
+
lib.isEdgeChromium = isEdgeChromium;
|
|
32584
|
+
lib.isElectron = isElectron;
|
|
32585
|
+
lib.isEmbedded = isEmbedded;
|
|
32586
|
+
lib.isFirefox = isFirefox;
|
|
32587
|
+
lib.isIE = isIE;
|
|
32588
|
+
lib.isIOS = isIOS;
|
|
32589
|
+
lib.isIOS13 = isIOS13;
|
|
32590
|
+
lib.isIPad13 = isIPad13;
|
|
32591
|
+
lib.isIPhone13 = isIPhone13;
|
|
32592
|
+
lib.isIPod13 = isIPod13;
|
|
32593
|
+
lib.isLegacyEdge = isLegacyEdge;
|
|
32594
|
+
lib.isMIUI = isMIUI;
|
|
32595
|
+
lib.isMacOs = isMacOs;
|
|
32596
|
+
var isMobile_1 = lib.isMobile = isMobile;
|
|
32597
|
+
lib.isMobileOnly = isMobileOnly;
|
|
32598
|
+
lib.isMobileSafari = isMobileSafari;
|
|
32599
|
+
lib.isOpera = isOpera;
|
|
32600
|
+
lib.isSafari = isSafari;
|
|
32601
|
+
lib.isSamsungBrowser = isSamsungBrowser;
|
|
32602
|
+
lib.isSmartTV = isSmartTV;
|
|
32603
|
+
lib.isTablet = isTablet;
|
|
32604
|
+
lib.isWearable = isWearable;
|
|
32605
|
+
lib.isWinPhone = isWinPhone;
|
|
32606
|
+
lib.isWindows = isWindows;
|
|
32607
|
+
lib.isYandex = isYandex;
|
|
32608
|
+
lib.mobileModel = mobileModel;
|
|
32609
|
+
lib.mobileVendor = mobileVendor;
|
|
32610
|
+
lib.osName = osName;
|
|
32611
|
+
lib.osVersion = osVersion;
|
|
32612
|
+
lib.parseUserAgent = parseUserAgent;
|
|
32613
|
+
lib.setUserAgent = setUserAgent;
|
|
32614
|
+
lib.useDeviceData = useDeviceData;
|
|
32615
|
+
lib.useDeviceSelectors = useDeviceSelectors;
|
|
32616
|
+
lib.useMobileOrientation = useMobileOrientation;
|
|
32617
|
+
lib.withOrientationChange = withOrientationChange;
|
|
31478
32618
|
function LivenessCheck({
|
|
31479
32619
|
mode,
|
|
31480
32620
|
clientId,
|
|
@@ -31539,7 +32679,7 @@ function LivenessCheck({
|
|
|
31539
32679
|
pauseOnFocusLoss: true,
|
|
31540
32680
|
draggable: true,
|
|
31541
32681
|
pauseOnHover: true
|
|
31542
|
-
}), isLoading || countryCodeAllowed !== null && !countryCode ? /* @__PURE__ */ jsx(BackDropLoader, {}) : null, !lib(status) ? /* @__PURE__ */ jsxs("div", {
|
|
32682
|
+
}), isLoading || countryCodeAllowed !== null && !countryCode ? /* @__PURE__ */ jsx(BackDropLoader, {}) : null, !lib$1(status) ? /* @__PURE__ */ jsxs("div", {
|
|
31543
32683
|
className: "sub",
|
|
31544
32684
|
children: [showBackButton(status) && /* @__PURE__ */ jsx(BackButton, {
|
|
31545
32685
|
action: clearState
|
|
@@ -31549,10 +32689,10 @@ function LivenessCheck({
|
|
|
31549
32689
|
status,
|
|
31550
32690
|
message
|
|
31551
32691
|
})]
|
|
31552
|
-
}) : lib(data2) && faceMatch || faceMatch === null ? /* @__PURE__ */ jsx("face-liveness", {
|
|
32692
|
+
}) : lib$1(data2) && faceMatch || faceMatch === null ? /* @__PURE__ */ jsx("face-liveness", {
|
|
31553
32693
|
class: "liveness"
|
|
31554
32694
|
}) : /* @__PURE__ */ jsx(Box$1, {
|
|
31555
|
-
className:
|
|
32695
|
+
className: `box-liveness ${isMobile_1 && "responsive"}`,
|
|
31556
32696
|
children: similarity === 0 ? /* @__PURE__ */ jsxs(Box$1, {
|
|
31557
32697
|
display: "flex",
|
|
31558
32698
|
flexDirection: "column",
|