sevago-sso-fe 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +230 -514
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +233 -517
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2,8 +2,9 @@ import { persistReducer, FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER, pers
|
|
|
2
2
|
import { createAsyncThunk, createSlice, configureStore, combineReducers } from "@reduxjs/toolkit";
|
|
3
3
|
import { useDispatch, useSelector } from "react-redux";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import React__default, { useMemo, createContext, useContext, useState, useEffect, useCallback, forwardRef, useImperativeHandle, createElement, Children, useRef, useLayoutEffect, Fragment, useId, useInsertionEffect, Component as Component$1 } from "react";
|
|
5
|
+
import React__default, { useMemo, createContext, useContext, useState, useEffect, useCallback, forwardRef, useImperativeHandle, createElement, Children, useRef, useLayoutEffect, Fragment as Fragment$1, useId, useInsertionEffect, Component as Component$1 } from "react";
|
|
6
6
|
import { useLocation, useNavigate, Outlet, Route, Navigate } from "react-router-dom";
|
|
7
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
8
|
import { Stack as Stack$1, styled as styled$2, TableCell, tableCellClasses, LinearProgress, linearProgressClasses, useTheme as useTheme$2, Skeleton, Box, Icon, Tooltip, tooltipClasses, Avatar, Typography, ClickAwayListener, Fade, Badge, List, ListItem, FormControl, InputLabel, RadioGroup, FormControlLabel, Radio, Menu, Divider, MenuItem, Button, IconButton, TextField, InputAdornment } from "@mui/material";
|
|
8
9
|
import { unstable_createGetCssVar, createSpacing as createSpacing$1, useTheme as useTheme$1, unstable_memoTheme, Stack as Stack$2, css, keyframes as keyframes$1 } from "@mui/system";
|
|
9
10
|
import emStyled from "@emotion/styled";
|
|
@@ -12814,323 +12815,6 @@ const useActiveSidebar = () => {
|
|
|
12814
12815
|
}, [current_access, user]);
|
|
12815
12816
|
return activeSidebar;
|
|
12816
12817
|
};
|
|
12817
|
-
var jsxRuntime = { exports: {} };
|
|
12818
|
-
var reactJsxRuntime_production = {};
|
|
12819
|
-
/**
|
|
12820
|
-
* @license React
|
|
12821
|
-
* react-jsx-runtime.production.js
|
|
12822
|
-
*
|
|
12823
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12824
|
-
*
|
|
12825
|
-
* This source code is licensed under the MIT license found in the
|
|
12826
|
-
* LICENSE file in the root directory of this source tree.
|
|
12827
|
-
*/
|
|
12828
|
-
var hasRequiredReactJsxRuntime_production;
|
|
12829
|
-
function requireReactJsxRuntime_production() {
|
|
12830
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
12831
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
12832
|
-
var REACT_ELEMENT_TYPE2 = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
12833
|
-
function jsxProd(type, config, maybeKey) {
|
|
12834
|
-
var key = null;
|
|
12835
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
12836
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
12837
|
-
if ("key" in config) {
|
|
12838
|
-
maybeKey = {};
|
|
12839
|
-
for (var propName in config)
|
|
12840
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
12841
|
-
} else maybeKey = config;
|
|
12842
|
-
config = maybeKey.ref;
|
|
12843
|
-
return {
|
|
12844
|
-
$$typeof: REACT_ELEMENT_TYPE2,
|
|
12845
|
-
type,
|
|
12846
|
-
key,
|
|
12847
|
-
ref: void 0 !== config ? config : null,
|
|
12848
|
-
props: maybeKey
|
|
12849
|
-
};
|
|
12850
|
-
}
|
|
12851
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
12852
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
12853
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
12854
|
-
return reactJsxRuntime_production;
|
|
12855
|
-
}
|
|
12856
|
-
var reactJsxRuntime_development = {};
|
|
12857
|
-
/**
|
|
12858
|
-
* @license React
|
|
12859
|
-
* react-jsx-runtime.development.js
|
|
12860
|
-
*
|
|
12861
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12862
|
-
*
|
|
12863
|
-
* This source code is licensed under the MIT license found in the
|
|
12864
|
-
* LICENSE file in the root directory of this source tree.
|
|
12865
|
-
*/
|
|
12866
|
-
var hasRequiredReactJsxRuntime_development;
|
|
12867
|
-
function requireReactJsxRuntime_development() {
|
|
12868
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
12869
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
12870
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
12871
|
-
function getComponentNameFromType(type) {
|
|
12872
|
-
if (null == type) return null;
|
|
12873
|
-
if ("function" === typeof type)
|
|
12874
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
12875
|
-
if ("string" === typeof type) return type;
|
|
12876
|
-
switch (type) {
|
|
12877
|
-
case REACT_FRAGMENT_TYPE:
|
|
12878
|
-
return "Fragment";
|
|
12879
|
-
case REACT_PROFILER_TYPE:
|
|
12880
|
-
return "Profiler";
|
|
12881
|
-
case REACT_STRICT_MODE_TYPE:
|
|
12882
|
-
return "StrictMode";
|
|
12883
|
-
case REACT_SUSPENSE_TYPE:
|
|
12884
|
-
return "Suspense";
|
|
12885
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
12886
|
-
return "SuspenseList";
|
|
12887
|
-
case REACT_ACTIVITY_TYPE:
|
|
12888
|
-
return "Activity";
|
|
12889
|
-
}
|
|
12890
|
-
if ("object" === typeof type)
|
|
12891
|
-
switch ("number" === typeof type.tag && console.error(
|
|
12892
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
12893
|
-
), type.$$typeof) {
|
|
12894
|
-
case REACT_PORTAL_TYPE:
|
|
12895
|
-
return "Portal";
|
|
12896
|
-
case REACT_CONTEXT_TYPE:
|
|
12897
|
-
return type.displayName || "Context";
|
|
12898
|
-
case REACT_CONSUMER_TYPE:
|
|
12899
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
12900
|
-
case REACT_FORWARD_REF_TYPE:
|
|
12901
|
-
var innerType = type.render;
|
|
12902
|
-
type = type.displayName;
|
|
12903
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
12904
|
-
return type;
|
|
12905
|
-
case REACT_MEMO_TYPE:
|
|
12906
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
12907
|
-
case REACT_LAZY_TYPE:
|
|
12908
|
-
innerType = type._payload;
|
|
12909
|
-
type = type._init;
|
|
12910
|
-
try {
|
|
12911
|
-
return getComponentNameFromType(type(innerType));
|
|
12912
|
-
} catch (x) {
|
|
12913
|
-
}
|
|
12914
|
-
}
|
|
12915
|
-
return null;
|
|
12916
|
-
}
|
|
12917
|
-
function testStringCoercion(value2) {
|
|
12918
|
-
return "" + value2;
|
|
12919
|
-
}
|
|
12920
|
-
function checkKeyStringCoercion(value2) {
|
|
12921
|
-
try {
|
|
12922
|
-
testStringCoercion(value2);
|
|
12923
|
-
var JSCompiler_inline_result = false;
|
|
12924
|
-
} catch (e) {
|
|
12925
|
-
JSCompiler_inline_result = true;
|
|
12926
|
-
}
|
|
12927
|
-
if (JSCompiler_inline_result) {
|
|
12928
|
-
JSCompiler_inline_result = console;
|
|
12929
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
12930
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value2[Symbol.toStringTag] || value2.constructor.name || "Object";
|
|
12931
|
-
JSCompiler_temp_const.call(
|
|
12932
|
-
JSCompiler_inline_result,
|
|
12933
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
12934
|
-
JSCompiler_inline_result$jscomp$0
|
|
12935
|
-
);
|
|
12936
|
-
return testStringCoercion(value2);
|
|
12937
|
-
}
|
|
12938
|
-
}
|
|
12939
|
-
function getTaskName(type) {
|
|
12940
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
12941
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
12942
|
-
return "<...>";
|
|
12943
|
-
try {
|
|
12944
|
-
var name2 = getComponentNameFromType(type);
|
|
12945
|
-
return name2 ? "<" + name2 + ">" : "<...>";
|
|
12946
|
-
} catch (x) {
|
|
12947
|
-
return "<...>";
|
|
12948
|
-
}
|
|
12949
|
-
}
|
|
12950
|
-
function getOwner() {
|
|
12951
|
-
var dispatcher = ReactSharedInternals.A;
|
|
12952
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
12953
|
-
}
|
|
12954
|
-
function UnknownOwner() {
|
|
12955
|
-
return Error("react-stack-top-frame");
|
|
12956
|
-
}
|
|
12957
|
-
function hasValidKey(config) {
|
|
12958
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
12959
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
12960
|
-
if (getter && getter.isReactWarning) return false;
|
|
12961
|
-
}
|
|
12962
|
-
return void 0 !== config.key;
|
|
12963
|
-
}
|
|
12964
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
12965
|
-
function warnAboutAccessingKey() {
|
|
12966
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
12967
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
12968
|
-
displayName
|
|
12969
|
-
));
|
|
12970
|
-
}
|
|
12971
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
12972
|
-
Object.defineProperty(props, "key", {
|
|
12973
|
-
get: warnAboutAccessingKey,
|
|
12974
|
-
configurable: true
|
|
12975
|
-
});
|
|
12976
|
-
}
|
|
12977
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
12978
|
-
var componentName = getComponentNameFromType(this.type);
|
|
12979
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
12980
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
12981
|
-
));
|
|
12982
|
-
componentName = this.props.ref;
|
|
12983
|
-
return void 0 !== componentName ? componentName : null;
|
|
12984
|
-
}
|
|
12985
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
12986
|
-
var refProp = props.ref;
|
|
12987
|
-
type = {
|
|
12988
|
-
$$typeof: REACT_ELEMENT_TYPE2,
|
|
12989
|
-
type,
|
|
12990
|
-
key,
|
|
12991
|
-
props,
|
|
12992
|
-
_owner: owner
|
|
12993
|
-
};
|
|
12994
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
12995
|
-
enumerable: false,
|
|
12996
|
-
get: elementRefGetterWithDeprecationWarning
|
|
12997
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
12998
|
-
type._store = {};
|
|
12999
|
-
Object.defineProperty(type._store, "validated", {
|
|
13000
|
-
configurable: false,
|
|
13001
|
-
enumerable: false,
|
|
13002
|
-
writable: true,
|
|
13003
|
-
value: 0
|
|
13004
|
-
});
|
|
13005
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
13006
|
-
configurable: false,
|
|
13007
|
-
enumerable: false,
|
|
13008
|
-
writable: true,
|
|
13009
|
-
value: null
|
|
13010
|
-
});
|
|
13011
|
-
Object.defineProperty(type, "_debugStack", {
|
|
13012
|
-
configurable: false,
|
|
13013
|
-
enumerable: false,
|
|
13014
|
-
writable: true,
|
|
13015
|
-
value: debugStack
|
|
13016
|
-
});
|
|
13017
|
-
Object.defineProperty(type, "_debugTask", {
|
|
13018
|
-
configurable: false,
|
|
13019
|
-
enumerable: false,
|
|
13020
|
-
writable: true,
|
|
13021
|
-
value: debugTask
|
|
13022
|
-
});
|
|
13023
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
13024
|
-
return type;
|
|
13025
|
-
}
|
|
13026
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
13027
|
-
var children = config.children;
|
|
13028
|
-
if (void 0 !== children)
|
|
13029
|
-
if (isStaticChildren)
|
|
13030
|
-
if (isArrayImpl(children)) {
|
|
13031
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
13032
|
-
validateChildKeys(children[isStaticChildren]);
|
|
13033
|
-
Object.freeze && Object.freeze(children);
|
|
13034
|
-
} else
|
|
13035
|
-
console.error(
|
|
13036
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
13037
|
-
);
|
|
13038
|
-
else validateChildKeys(children);
|
|
13039
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
13040
|
-
children = getComponentNameFromType(type);
|
|
13041
|
-
var keys2 = Object.keys(config).filter(function(k) {
|
|
13042
|
-
return "key" !== k;
|
|
13043
|
-
});
|
|
13044
|
-
isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
13045
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
13046
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
13047
|
-
isStaticChildren,
|
|
13048
|
-
children,
|
|
13049
|
-
keys2,
|
|
13050
|
-
children
|
|
13051
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
13052
|
-
}
|
|
13053
|
-
children = null;
|
|
13054
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
13055
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
13056
|
-
if ("key" in config) {
|
|
13057
|
-
maybeKey = {};
|
|
13058
|
-
for (var propName in config)
|
|
13059
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
13060
|
-
} else maybeKey = config;
|
|
13061
|
-
children && defineKeyPropWarningGetter(
|
|
13062
|
-
maybeKey,
|
|
13063
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
13064
|
-
);
|
|
13065
|
-
return ReactElement(
|
|
13066
|
-
type,
|
|
13067
|
-
children,
|
|
13068
|
-
maybeKey,
|
|
13069
|
-
getOwner(),
|
|
13070
|
-
debugStack,
|
|
13071
|
-
debugTask
|
|
13072
|
-
);
|
|
13073
|
-
}
|
|
13074
|
-
function validateChildKeys(node) {
|
|
13075
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
13076
|
-
}
|
|
13077
|
-
function isValidElement(object2) {
|
|
13078
|
-
return "object" === typeof object2 && null !== object2 && object2.$$typeof === REACT_ELEMENT_TYPE2;
|
|
13079
|
-
}
|
|
13080
|
-
var React2 = React__default, REACT_ELEMENT_TYPE2 = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty2 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
13081
|
-
return null;
|
|
13082
|
-
};
|
|
13083
|
-
React2 = {
|
|
13084
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
13085
|
-
return callStackForError();
|
|
13086
|
-
}
|
|
13087
|
-
};
|
|
13088
|
-
var specialPropKeyWarningShown;
|
|
13089
|
-
var didWarnAboutElementRef = {};
|
|
13090
|
-
var unknownOwnerDebugStack = React2.react_stack_bottom_frame.bind(
|
|
13091
|
-
React2,
|
|
13092
|
-
UnknownOwner
|
|
13093
|
-
)();
|
|
13094
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
13095
|
-
var didWarnAboutKeySpread = {};
|
|
13096
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
13097
|
-
reactJsxRuntime_development.jsx = function(type, config, maybeKey) {
|
|
13098
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
13099
|
-
return jsxDEVImpl(
|
|
13100
|
-
type,
|
|
13101
|
-
config,
|
|
13102
|
-
maybeKey,
|
|
13103
|
-
false,
|
|
13104
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
13105
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
13106
|
-
);
|
|
13107
|
-
};
|
|
13108
|
-
reactJsxRuntime_development.jsxs = function(type, config, maybeKey) {
|
|
13109
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
13110
|
-
return jsxDEVImpl(
|
|
13111
|
-
type,
|
|
13112
|
-
config,
|
|
13113
|
-
maybeKey,
|
|
13114
|
-
true,
|
|
13115
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
13116
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
13117
|
-
);
|
|
13118
|
-
};
|
|
13119
|
-
})();
|
|
13120
|
-
return reactJsxRuntime_development;
|
|
13121
|
-
}
|
|
13122
|
-
var hasRequiredJsxRuntime;
|
|
13123
|
-
function requireJsxRuntime() {
|
|
13124
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
13125
|
-
hasRequiredJsxRuntime = 1;
|
|
13126
|
-
if (process.env.NODE_ENV === "production") {
|
|
13127
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
13128
|
-
} else {
|
|
13129
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
13130
|
-
}
|
|
13131
|
-
return jsxRuntime.exports;
|
|
13132
|
-
}
|
|
13133
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
13134
12818
|
var propTypes = { exports: {} };
|
|
13135
12819
|
var reactIs$2 = { exports: {} };
|
|
13136
12820
|
var reactIs_production_min$1 = {};
|
|
@@ -18209,7 +17893,7 @@ const useVersionCheck = (options) => {
|
|
|
18209
17893
|
}, [options?.interval]);
|
|
18210
17894
|
};
|
|
18211
17895
|
const AuthLayout = ({ children }) => {
|
|
18212
|
-
return /* @__PURE__ */
|
|
17896
|
+
return /* @__PURE__ */ jsx(
|
|
18213
17897
|
Stack$1,
|
|
18214
17898
|
{
|
|
18215
17899
|
sx: {
|
|
@@ -18361,7 +18045,7 @@ var StatusAvatar = /* @__PURE__ */ ((StatusAvatar2) => {
|
|
|
18361
18045
|
return StatusAvatar2;
|
|
18362
18046
|
})(StatusAvatar || {});
|
|
18363
18047
|
const ImageWrapper = ({ isWrap = false, children }) => {
|
|
18364
|
-
return isWrap ? /* @__PURE__ */
|
|
18048
|
+
return isWrap ? /* @__PURE__ */ jsx(StackRow, { alignItems: "center", className: "jsdsdj", children }) : /* @__PURE__ */ jsx(Fragment, { children });
|
|
18365
18049
|
};
|
|
18366
18050
|
const ImageElement = ({
|
|
18367
18051
|
url: url2,
|
|
@@ -18377,8 +18061,8 @@ const ImageElement = ({
|
|
|
18377
18061
|
const [loaded, setLoaded] = useState(false);
|
|
18378
18062
|
if (onClick) sx = { ...sx, cursor: "pointer" };
|
|
18379
18063
|
const borderRadius2 = sizeType === ImageSizeType.CIRCLE ? "50%" : sizeType === ImageSizeType.SQUARE ? STYLE.BORDER_RADIUS_ELEMENT_SMALL : 0;
|
|
18380
|
-
return /* @__PURE__ */
|
|
18381
|
-
!loaded && /* @__PURE__ */
|
|
18064
|
+
return /* @__PURE__ */ jsxs(ImageWrapper, { isWrap, children: [
|
|
18065
|
+
!loaded && /* @__PURE__ */ jsx(
|
|
18382
18066
|
Skeleton,
|
|
18383
18067
|
{
|
|
18384
18068
|
variant: "rectangular",
|
|
@@ -18388,7 +18072,7 @@ const ImageElement = ({
|
|
|
18388
18072
|
}
|
|
18389
18073
|
}
|
|
18390
18074
|
),
|
|
18391
|
-
/* @__PURE__ */
|
|
18075
|
+
/* @__PURE__ */ jsx(
|
|
18392
18076
|
Box,
|
|
18393
18077
|
{
|
|
18394
18078
|
...rest,
|
|
@@ -18419,7 +18103,7 @@ const LogoComponent = ({
|
|
|
18419
18103
|
}) => {
|
|
18420
18104
|
const navigate = useNavigate();
|
|
18421
18105
|
const toHome = () => navigate(PAGE.DASHBOARD.path);
|
|
18422
|
-
return /* @__PURE__ */
|
|
18106
|
+
return /* @__PURE__ */ jsx(Box, { onClick: toHome, sx: { cursor: "pointer", height: height2, ...sx }, children: /* @__PURE__ */ jsx(
|
|
18423
18107
|
ImageElement,
|
|
18424
18108
|
{
|
|
18425
18109
|
url: url2,
|
|
@@ -18455,7 +18139,7 @@ const IconElement = ({
|
|
|
18455
18139
|
},
|
|
18456
18140
|
...sx
|
|
18457
18141
|
};
|
|
18458
|
-
return /* @__PURE__ */
|
|
18142
|
+
return /* @__PURE__ */ jsx(
|
|
18459
18143
|
Icon,
|
|
18460
18144
|
{
|
|
18461
18145
|
onClick,
|
|
@@ -18472,7 +18156,7 @@ const IconElement = ({
|
|
|
18472
18156
|
}
|
|
18473
18157
|
);
|
|
18474
18158
|
};
|
|
18475
|
-
const ArrowTooltip = emStyled(({ className, ...props }) => /* @__PURE__ */
|
|
18159
|
+
const ArrowTooltip = emStyled(({ className, ...props }) => /* @__PURE__ */ jsx(Tooltip, { ...props, arrow: true, classes: { popper: className } }))(() => ({
|
|
18476
18160
|
[`& .${tooltipClasses.arrow}`]: {
|
|
18477
18161
|
color: "white"
|
|
18478
18162
|
}
|
|
@@ -18485,7 +18169,7 @@ const AvatarElement = ({
|
|
|
18485
18169
|
...rest
|
|
18486
18170
|
}) => {
|
|
18487
18171
|
if (tooltipContent) {
|
|
18488
|
-
return /* @__PURE__ */
|
|
18172
|
+
return /* @__PURE__ */ jsx(ArrowTooltip, { title: tooltipContent, arrow: true, children: /* @__PURE__ */ jsx(
|
|
18489
18173
|
Avatar,
|
|
18490
18174
|
{
|
|
18491
18175
|
...rest,
|
|
@@ -18494,13 +18178,13 @@ const AvatarElement = ({
|
|
|
18494
18178
|
}
|
|
18495
18179
|
) });
|
|
18496
18180
|
}
|
|
18497
|
-
return /* @__PURE__ */
|
|
18181
|
+
return /* @__PURE__ */ jsx(Avatar, { ...rest, src: url2 || "", sx: { ...MAP_SIZE[size], bgcolor: "primary.main", ...sx, cursor: "pointer" } });
|
|
18498
18182
|
};
|
|
18499
18183
|
const TimeAgoComponent = ({
|
|
18500
18184
|
time: time2,
|
|
18501
18185
|
hasText
|
|
18502
18186
|
}) => {
|
|
18503
|
-
return /* @__PURE__ */
|
|
18187
|
+
return /* @__PURE__ */ jsx(
|
|
18504
18188
|
Typography,
|
|
18505
18189
|
{
|
|
18506
18190
|
variant: "caption",
|
|
@@ -18510,7 +18194,7 @@ const TimeAgoComponent = ({
|
|
|
18510
18194
|
);
|
|
18511
18195
|
};
|
|
18512
18196
|
const TimeAgoContentComponent = ({ time: time2, content, height: height2 = STYLE.HEIGHT_IMAGE_DEFAULT }) => {
|
|
18513
|
-
return /* @__PURE__ */
|
|
18197
|
+
return /* @__PURE__ */ jsxs(
|
|
18514
18198
|
Stack$2,
|
|
18515
18199
|
{
|
|
18516
18200
|
sx: {
|
|
@@ -18520,7 +18204,7 @@ const TimeAgoContentComponent = ({ time: time2, content, height: height2 = STYLE
|
|
|
18520
18204
|
alignItems: "flex-start"
|
|
18521
18205
|
},
|
|
18522
18206
|
children: [
|
|
18523
|
-
/* @__PURE__ */
|
|
18207
|
+
/* @__PURE__ */ jsx(
|
|
18524
18208
|
Typography,
|
|
18525
18209
|
{
|
|
18526
18210
|
sx: {
|
|
@@ -18529,7 +18213,7 @@ const TimeAgoContentComponent = ({ time: time2, content, height: height2 = STYLE
|
|
|
18529
18213
|
children: content
|
|
18530
18214
|
}
|
|
18531
18215
|
),
|
|
18532
|
-
/* @__PURE__ */
|
|
18216
|
+
/* @__PURE__ */ jsx(TimeAgoComponent, { time: time2 })
|
|
18533
18217
|
]
|
|
18534
18218
|
}
|
|
18535
18219
|
);
|
|
@@ -18540,9 +18224,9 @@ const ImageContentTimeComponent = ({
|
|
|
18540
18224
|
time: time2,
|
|
18541
18225
|
sizeType = "medium"
|
|
18542
18226
|
}) => {
|
|
18543
|
-
return /* @__PURE__ */
|
|
18544
|
-
/* @__PURE__ */
|
|
18545
|
-
/* @__PURE__ */
|
|
18227
|
+
return /* @__PURE__ */ jsxs(StackRow, { alignItems: "center", children: [
|
|
18228
|
+
/* @__PURE__ */ jsx(AvatarElement, { url: url2, size: sizeType }),
|
|
18229
|
+
/* @__PURE__ */ jsx(TimeAgoContentComponent, { content, time: time2 })
|
|
18546
18230
|
] });
|
|
18547
18231
|
};
|
|
18548
18232
|
const TooltipOnClickElement = ({
|
|
@@ -18557,7 +18241,7 @@ const TooltipOnClickElement = ({
|
|
|
18557
18241
|
}) => {
|
|
18558
18242
|
return (
|
|
18559
18243
|
// Chỗ này có thể là bug, onClickAway apply ngay cả khi component chưa được render
|
|
18560
|
-
/* @__PURE__ */
|
|
18244
|
+
/* @__PURE__ */ jsx(ClickAwayListener, { onClickAway, children: /* @__PURE__ */ jsx(
|
|
18561
18245
|
Tooltip,
|
|
18562
18246
|
{
|
|
18563
18247
|
PopperProps: { disablePortal: true },
|
|
@@ -18570,13 +18254,13 @@ const TooltipOnClickElement = ({
|
|
|
18570
18254
|
placement,
|
|
18571
18255
|
title: content,
|
|
18572
18256
|
...rest,
|
|
18573
|
-
children: /* @__PURE__ */
|
|
18257
|
+
children: /* @__PURE__ */ jsx("span", { children })
|
|
18574
18258
|
}
|
|
18575
18259
|
) })
|
|
18576
18260
|
);
|
|
18577
18261
|
};
|
|
18578
18262
|
const EmptyComponent = ({}) => {
|
|
18579
|
-
return /* @__PURE__ */
|
|
18263
|
+
return /* @__PURE__ */ jsx(Fade, { in: true, timeout: STYLE.ANIMATION_TIME, children: /* @__PURE__ */ jsx(
|
|
18580
18264
|
Stack$1,
|
|
18581
18265
|
{
|
|
18582
18266
|
direction: "column",
|
|
@@ -18587,7 +18271,7 @@ const EmptyComponent = ({}) => {
|
|
|
18587
18271
|
justifyContent: "center",
|
|
18588
18272
|
padding: STYLE.PADDING_GAP_ITEM
|
|
18589
18273
|
},
|
|
18590
|
-
children: /* @__PURE__ */
|
|
18274
|
+
children: /* @__PURE__ */ jsx(Box, { component: "img", sx: { width: 70 }, src: "/images/empty.svg" })
|
|
18591
18275
|
}
|
|
18592
18276
|
) });
|
|
18593
18277
|
};
|
|
@@ -18789,7 +18473,7 @@ const CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgr
|
|
|
18789
18473
|
circleStyle.strokeDashoffset = `${((100 - value2) / 100 * circumference).toFixed(3)}px`;
|
|
18790
18474
|
rootStyle.transform = "rotate(-90deg)";
|
|
18791
18475
|
}
|
|
18792
|
-
return /* @__PURE__ */
|
|
18476
|
+
return /* @__PURE__ */ jsx(CircularProgressRoot, {
|
|
18793
18477
|
className: clsx(classes.root, className),
|
|
18794
18478
|
style: {
|
|
18795
18479
|
width: size,
|
|
@@ -18802,11 +18486,11 @@ const CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgr
|
|
|
18802
18486
|
role: "progressbar",
|
|
18803
18487
|
...rootProps,
|
|
18804
18488
|
...other,
|
|
18805
|
-
children: /* @__PURE__ */
|
|
18489
|
+
children: /* @__PURE__ */ jsxs(CircularProgressSVG, {
|
|
18806
18490
|
className: classes.svg,
|
|
18807
18491
|
ownerState,
|
|
18808
18492
|
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
|
18809
|
-
children: [enableTrackSlot ? /* @__PURE__ */
|
|
18493
|
+
children: [enableTrackSlot ? /* @__PURE__ */ jsx(CircularProgressTrack, {
|
|
18810
18494
|
className: classes.track,
|
|
18811
18495
|
ownerState,
|
|
18812
18496
|
cx: SIZE,
|
|
@@ -18815,7 +18499,7 @@ const CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgr
|
|
|
18815
18499
|
fill: "none",
|
|
18816
18500
|
strokeWidth: thickness,
|
|
18817
18501
|
"aria-hidden": "true"
|
|
18818
|
-
}) : null, /* @__PURE__ */
|
|
18502
|
+
}) : null, /* @__PURE__ */ jsx(CircularProgressCircle, {
|
|
18819
18503
|
className: classes.circle,
|
|
18820
18504
|
style: circleStyle,
|
|
18821
18505
|
ownerState,
|
|
@@ -18899,7 +18583,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes = {
|
|
|
18899
18583
|
variant: PropTypes.oneOf(["determinate", "indeterminate"])
|
|
18900
18584
|
} : void 0;
|
|
18901
18585
|
const LoadingComponent = ({ color: color2, size = "medium", sx = {} }) => {
|
|
18902
|
-
return /* @__PURE__ */
|
|
18586
|
+
return /* @__PURE__ */ jsx(
|
|
18903
18587
|
Stack$1,
|
|
18904
18588
|
{
|
|
18905
18589
|
sx: {
|
|
@@ -18908,7 +18592,7 @@ const LoadingComponent = ({ color: color2, size = "medium", sx = {} }) => {
|
|
|
18908
18592
|
alignItems: "center",
|
|
18909
18593
|
justifyContent: "center"
|
|
18910
18594
|
},
|
|
18911
|
-
children: /* @__PURE__ */
|
|
18595
|
+
children: /* @__PURE__ */ jsx(CircularProgress, { size: STYLE.FONT_SIZE_LOADING[size], sx: { color: color2 } })
|
|
18912
18596
|
}
|
|
18913
18597
|
);
|
|
18914
18598
|
};
|
|
@@ -18960,13 +18644,13 @@ const BellComponent = ({}) => {
|
|
|
18960
18644
|
showSnackbar({ message: getErrorMessage(error), type: SnackbarType.ERROR });
|
|
18961
18645
|
}
|
|
18962
18646
|
};
|
|
18963
|
-
return /* @__PURE__ */
|
|
18647
|
+
return /* @__PURE__ */ jsx(
|
|
18964
18648
|
TooltipOnClickElement,
|
|
18965
18649
|
{
|
|
18966
18650
|
open,
|
|
18967
18651
|
onClickAway: () => setOpen(false),
|
|
18968
18652
|
placement: "bottom-end",
|
|
18969
|
-
content: /* @__PURE__ */
|
|
18653
|
+
content: /* @__PURE__ */ jsxs(
|
|
18970
18654
|
List,
|
|
18971
18655
|
{
|
|
18972
18656
|
sx: {
|
|
@@ -18979,7 +18663,7 @@ const BellComponent = ({}) => {
|
|
|
18979
18663
|
width: "300px"
|
|
18980
18664
|
},
|
|
18981
18665
|
children: [
|
|
18982
|
-
/* @__PURE__ */
|
|
18666
|
+
/* @__PURE__ */ jsxs(
|
|
18983
18667
|
ListItem,
|
|
18984
18668
|
{
|
|
18985
18669
|
sx: {
|
|
@@ -18994,9 +18678,9 @@ const BellComponent = ({}) => {
|
|
|
18994
18678
|
zIndex: 1
|
|
18995
18679
|
},
|
|
18996
18680
|
children: [
|
|
18997
|
-
/* @__PURE__ */
|
|
18998
|
-
/* @__PURE__ */
|
|
18999
|
-
/* @__PURE__ */
|
|
18681
|
+
/* @__PURE__ */ jsx(Typography, { variant: "subtitle1", children: "Thông báo" }),
|
|
18682
|
+
/* @__PURE__ */ jsxs(StackRow, { children: [
|
|
18683
|
+
/* @__PURE__ */ jsx(
|
|
19000
18684
|
IconElement,
|
|
19001
18685
|
{
|
|
19002
18686
|
sx: { cursor: "pointer" },
|
|
@@ -19014,7 +18698,7 @@ const BellComponent = ({}) => {
|
|
|
19014
18698
|
}
|
|
19015
18699
|
}
|
|
19016
18700
|
),
|
|
19017
|
-
/* @__PURE__ */
|
|
18701
|
+
/* @__PURE__ */ jsx(
|
|
19018
18702
|
IconElement,
|
|
19019
18703
|
{
|
|
19020
18704
|
icon: "settings",
|
|
@@ -19027,7 +18711,7 @@ const BellComponent = ({}) => {
|
|
|
19027
18711
|
]
|
|
19028
18712
|
}
|
|
19029
18713
|
),
|
|
19030
|
-
loading ? /* @__PURE__ */
|
|
18714
|
+
loading ? /* @__PURE__ */ jsx(StackRowAlignCenter, { sx: { height: 50 }, children: /* @__PURE__ */ jsx(LoadingComponent, {}) }) : list.length === 0 ? /* @__PURE__ */ jsx(EmptyComponent, {}) : list.map((notification) => /* @__PURE__ */ jsx(
|
|
19031
18715
|
ListItem,
|
|
19032
18716
|
{
|
|
19033
18717
|
onClick: () => clickNotification(notification),
|
|
@@ -19045,8 +18729,8 @@ const BellComponent = ({}) => {
|
|
|
19045
18729
|
color: palette.primary.main
|
|
19046
18730
|
}
|
|
19047
18731
|
},
|
|
19048
|
-
children: /* @__PURE__ */
|
|
19049
|
-
/* @__PURE__ */
|
|
18732
|
+
children: /* @__PURE__ */ jsxs(Stack$1, { gap: 1, children: [
|
|
18733
|
+
/* @__PURE__ */ jsx(
|
|
19050
18734
|
ImageContentTimeComponent,
|
|
19051
18735
|
{
|
|
19052
18736
|
url: notification.createdBy?.url || "",
|
|
@@ -19054,7 +18738,7 @@ const BellComponent = ({}) => {
|
|
|
19054
18738
|
time: notification.createdAt
|
|
19055
18739
|
}
|
|
19056
18740
|
),
|
|
19057
|
-
/* @__PURE__ */
|
|
18741
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", sx: { ...getLimitLineCss(2) }, children: notification.content })
|
|
19058
18742
|
] })
|
|
19059
18743
|
},
|
|
19060
18744
|
notification.id
|
|
@@ -19062,7 +18746,7 @@ const BellComponent = ({}) => {
|
|
|
19062
18746
|
]
|
|
19063
18747
|
}
|
|
19064
18748
|
),
|
|
19065
|
-
children: /* @__PURE__ */
|
|
18749
|
+
children: /* @__PURE__ */ jsx(
|
|
19066
18750
|
Badge,
|
|
19067
18751
|
{
|
|
19068
18752
|
onClick: async () => {
|
|
@@ -19072,7 +18756,7 @@ const BellComponent = ({}) => {
|
|
|
19072
18756
|
badgeContent: notificationCount,
|
|
19073
18757
|
color: "error",
|
|
19074
18758
|
sx: { cursor: "pointer" },
|
|
19075
|
-
children: /* @__PURE__ */
|
|
18759
|
+
children: /* @__PURE__ */ jsx(
|
|
19076
18760
|
IconElement,
|
|
19077
18761
|
{
|
|
19078
18762
|
icon: "notifications",
|
|
@@ -19101,10 +18785,10 @@ const AvatarUserInfo = ({
|
|
|
19101
18785
|
}) => {
|
|
19102
18786
|
const { palette } = useTheme$2();
|
|
19103
18787
|
const isSystemMonitor = useIsSystemMonitor();
|
|
19104
|
-
return /* @__PURE__ */
|
|
19105
|
-
/* @__PURE__ */
|
|
19106
|
-
positions.length > 0 ? /* @__PURE__ */
|
|
19107
|
-
/* @__PURE__ */
|
|
18788
|
+
return /* @__PURE__ */ jsxs(StackRow, { sx: { alignItems: "center", gap: STYLE.PADDING_GAP_ITEM }, children: [
|
|
18789
|
+
/* @__PURE__ */ jsx(AvatarElement, { url: url2, size: sizeAvatar }),
|
|
18790
|
+
positions.length > 0 ? /* @__PURE__ */ jsxs(Stack$1, { sx: { gap: 0 }, children: [
|
|
18791
|
+
/* @__PURE__ */ jsx(
|
|
19108
18792
|
Typography,
|
|
19109
18793
|
{
|
|
19110
18794
|
sx: {
|
|
@@ -19118,7 +18802,7 @@ const AvatarUserInfo = ({
|
|
|
19118
18802
|
children: name2
|
|
19119
18803
|
}
|
|
19120
18804
|
),
|
|
19121
|
-
/* @__PURE__ */
|
|
18805
|
+
/* @__PURE__ */ jsx(
|
|
19122
18806
|
Typography,
|
|
19123
18807
|
{
|
|
19124
18808
|
variant: "caption",
|
|
@@ -19142,7 +18826,7 @@ const AvatarUserInfo = ({
|
|
|
19142
18826
|
children: positions.join(" / ")
|
|
19143
18827
|
}
|
|
19144
18828
|
)
|
|
19145
|
-
] }) : /* @__PURE__ */
|
|
18829
|
+
] }) : /* @__PURE__ */ jsx(Typography, { sx: { ...TYPOGRAPHY_STYLES.textSm.semiBold, ...getLimitLineCss(1), ...sxName }, children: name2 })
|
|
19146
18830
|
] });
|
|
19147
18831
|
};
|
|
19148
18832
|
const IconContentElement = ({
|
|
@@ -19164,15 +18848,15 @@ const IconContentElement = ({
|
|
|
19164
18848
|
...sx,
|
|
19165
18849
|
cursor: "pointer"
|
|
19166
18850
|
};
|
|
19167
|
-
return /* @__PURE__ */
|
|
18851
|
+
return /* @__PURE__ */ jsxs(
|
|
19168
18852
|
StackRowAlignCenter,
|
|
19169
18853
|
{
|
|
19170
18854
|
onClick,
|
|
19171
18855
|
sx: { gap: STYLE.GAP_ICON_CONTENT_BY_SIZE[size || "medium"], ...sx },
|
|
19172
18856
|
id: id2,
|
|
19173
18857
|
children: [
|
|
19174
|
-
icon && /* @__PURE__ */
|
|
19175
|
-
content && /* @__PURE__ */
|
|
18858
|
+
icon && /* @__PURE__ */ jsx(IconElement, { icon, sx: sxIcon, color: color2, fill }),
|
|
18859
|
+
content && /* @__PURE__ */ jsx(
|
|
19176
18860
|
Typography,
|
|
19177
18861
|
{
|
|
19178
18862
|
color: color2,
|
|
@@ -19205,8 +18889,8 @@ const RadioGroupElement = ({
|
|
|
19205
18889
|
const change = (event) => {
|
|
19206
18890
|
onChange && onChange({ target: { name: name2, value: event.target.value || void 0 } });
|
|
19207
18891
|
};
|
|
19208
|
-
return /* @__PURE__ */
|
|
19209
|
-
label && /* @__PURE__ */
|
|
18892
|
+
return /* @__PURE__ */ jsxs(FormControl, { disabled, sx: { gap: STYLE.PADDING_GAP_ITEM }, onChange: change, children: [
|
|
18893
|
+
label && /* @__PURE__ */ jsx(
|
|
19210
18894
|
InputLabel,
|
|
19211
18895
|
{
|
|
19212
18896
|
shrink: true,
|
|
@@ -19216,13 +18900,13 @@ const RadioGroupElement = ({
|
|
|
19216
18900
|
zIndex: 2,
|
|
19217
18901
|
display: "flex"
|
|
19218
18902
|
},
|
|
19219
|
-
children: /* @__PURE__ */
|
|
19220
|
-
/* @__PURE__ */
|
|
18903
|
+
children: /* @__PURE__ */ jsxs(StackLabel, { children: [
|
|
18904
|
+
/* @__PURE__ */ jsx(IconElement, { icon: iconLabel, sx: { fontSize: STYLE.TEXT_FIELD.FONT_SIZE_LABEL } }),
|
|
19221
18905
|
label
|
|
19222
18906
|
] })
|
|
19223
18907
|
}
|
|
19224
18908
|
),
|
|
19225
|
-
/* @__PURE__ */
|
|
18909
|
+
/* @__PURE__ */ jsx(
|
|
19226
18910
|
RadioGroup,
|
|
19227
18911
|
{
|
|
19228
18912
|
name: name2,
|
|
@@ -19241,13 +18925,13 @@ const RadioGroupElement = ({
|
|
|
19241
18925
|
] });
|
|
19242
18926
|
};
|
|
19243
18927
|
const RadioElement = ({ name: name2, label, ...rest }) => {
|
|
19244
|
-
return /* @__PURE__ */
|
|
18928
|
+
return /* @__PURE__ */ jsx(
|
|
19245
18929
|
FormControlLabel,
|
|
19246
18930
|
{
|
|
19247
18931
|
name: name2,
|
|
19248
18932
|
label,
|
|
19249
18933
|
sx: { alignItems: "center", mr: 0 },
|
|
19250
|
-
control: /* @__PURE__ */
|
|
18934
|
+
control: /* @__PURE__ */ jsx(
|
|
19251
18935
|
Radio,
|
|
19252
18936
|
{
|
|
19253
18937
|
...rest,
|
|
@@ -19320,10 +19004,10 @@ const AvatarUserComponent = ({}) => {
|
|
|
19320
19004
|
const handleClose = () => {
|
|
19321
19005
|
setAnchorEl(null);
|
|
19322
19006
|
};
|
|
19323
|
-
return /* @__PURE__ */
|
|
19324
|
-
/* @__PURE__ */
|
|
19325
|
-
/* @__PURE__ */
|
|
19326
|
-
/* @__PURE__ */
|
|
19007
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19008
|
+
/* @__PURE__ */ jsxs(Box, { onClick: handleClick, sx: { cursor: "pointer", display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
19009
|
+
/* @__PURE__ */ jsx(AvatarUserInfo, { url: account.user?.url, name: account.user?.name ?? "", positions, isTag: true }),
|
|
19010
|
+
/* @__PURE__ */ jsx(
|
|
19327
19011
|
IconElement,
|
|
19328
19012
|
{
|
|
19329
19013
|
icon: "arrow_drop_down",
|
|
@@ -19339,7 +19023,7 @@ const AvatarUserComponent = ({}) => {
|
|
|
19339
19023
|
}
|
|
19340
19024
|
)
|
|
19341
19025
|
] }),
|
|
19342
|
-
/* @__PURE__ */
|
|
19026
|
+
/* @__PURE__ */ jsxs(
|
|
19343
19027
|
Menu,
|
|
19344
19028
|
{
|
|
19345
19029
|
anchorEl,
|
|
@@ -19378,10 +19062,10 @@ const AvatarUserComponent = ({}) => {
|
|
|
19378
19062
|
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
19379
19063
|
anchorOrigin: { horizontal: "right", vertical: "bottom" },
|
|
19380
19064
|
children: [
|
|
19381
|
-
/* @__PURE__ */
|
|
19382
|
-
/* @__PURE__ */
|
|
19383
|
-
/* @__PURE__ */
|
|
19384
|
-
/* @__PURE__ */
|
|
19065
|
+
/* @__PURE__ */ jsxs(Box, { sx: { p: 2 }, children: [
|
|
19066
|
+
/* @__PURE__ */ jsxs(StackRowAlignStartJustBetween, { children: [
|
|
19067
|
+
/* @__PURE__ */ jsx(Typography, { variant: "subtitle1", sx: { lineHeight: 1 }, children: account.user?.name }),
|
|
19068
|
+
/* @__PURE__ */ jsx(
|
|
19385
19069
|
IconElement,
|
|
19386
19070
|
{
|
|
19387
19071
|
icon: "settings",
|
|
@@ -19389,9 +19073,9 @@ const AvatarUserComponent = ({}) => {
|
|
|
19389
19073
|
}
|
|
19390
19074
|
)
|
|
19391
19075
|
] }),
|
|
19392
|
-
account.user?.userOrgUnitPositions && account.user.userOrgUnitPositions.length > 0 && /* @__PURE__ */
|
|
19393
|
-
/* @__PURE__ */
|
|
19394
|
-
/* @__PURE__ */
|
|
19076
|
+
account.user?.userOrgUnitPositions && account.user.userOrgUnitPositions.length > 0 && /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
19077
|
+
/* @__PURE__ */ jsx(IconContentElement, { icon: "admin_panel_settings", content: "Vai trò" }),
|
|
19078
|
+
/* @__PURE__ */ jsx(
|
|
19395
19079
|
RadioGroupElement,
|
|
19396
19080
|
{
|
|
19397
19081
|
direction: "column",
|
|
@@ -19401,14 +19085,14 @@ const AvatarUserComponent = ({}) => {
|
|
|
19401
19085
|
dispatch(ACTION_ACCOUNT.updatePositionOrgUnit(event.target.value));
|
|
19402
19086
|
window.location.reload();
|
|
19403
19087
|
},
|
|
19404
|
-
children: account.user.userOrgUnitPositions.map((e) => /* @__PURE__ */
|
|
19088
|
+
children: account.user.userOrgUnitPositions.map((e) => /* @__PURE__ */ jsx(
|
|
19405
19089
|
RadioElement,
|
|
19406
19090
|
{
|
|
19407
19091
|
value: e.id,
|
|
19408
19092
|
size: "small",
|
|
19409
|
-
label: /* @__PURE__ */
|
|
19410
|
-
/* @__PURE__ */
|
|
19411
|
-
/* @__PURE__ */
|
|
19093
|
+
label: /* @__PURE__ */ jsxs(Stack$2, { gap: 0, children: [
|
|
19094
|
+
/* @__PURE__ */ jsx(Typography, { children: e.orgUnit.name }),
|
|
19095
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", sx: { ...getLimitLineCss(1), color: "text.disabled" }, children: e.position.name })
|
|
19412
19096
|
] })
|
|
19413
19097
|
},
|
|
19414
19098
|
e.id
|
|
@@ -19417,10 +19101,10 @@ const AvatarUserComponent = ({}) => {
|
|
|
19417
19101
|
)
|
|
19418
19102
|
] })
|
|
19419
19103
|
] }),
|
|
19420
|
-
/* @__PURE__ */
|
|
19421
|
-
menu.map((item, index) => /* @__PURE__ */
|
|
19422
|
-
/* @__PURE__ */
|
|
19423
|
-
/* @__PURE__ */
|
|
19104
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
19105
|
+
menu.map((item, index) => /* @__PURE__ */ jsxs(MenuItem, { onClick: item.onClick, children: [
|
|
19106
|
+
/* @__PURE__ */ jsx(IconElement, { icon: item.icon, size: "small", sx: { mr: 1 } }),
|
|
19107
|
+
/* @__PURE__ */ jsx(Typography, { children: item.content })
|
|
19424
19108
|
] }, index))
|
|
19425
19109
|
]
|
|
19426
19110
|
}
|
|
@@ -19430,7 +19114,7 @@ const AvatarUserComponent = ({}) => {
|
|
|
19430
19114
|
const MonitorPart = ({
|
|
19431
19115
|
children
|
|
19432
19116
|
}) => {
|
|
19433
|
-
return /* @__PURE__ */
|
|
19117
|
+
return /* @__PURE__ */ jsx(
|
|
19434
19118
|
Stack$2,
|
|
19435
19119
|
{
|
|
19436
19120
|
sx: {
|
|
@@ -19442,18 +19126,18 @@ const MonitorPart = ({
|
|
|
19442
19126
|
backgroundPosition: "top",
|
|
19443
19127
|
backgroundRepeat: "no-repeat"
|
|
19444
19128
|
},
|
|
19445
|
-
children: /* @__PURE__ */
|
|
19446
|
-
/* @__PURE__ */
|
|
19447
|
-
/* @__PURE__ */
|
|
19129
|
+
children: /* @__PURE__ */ jsxs(Stack$2, { p: { padding: STYLE.PADDING_GAP_LAYOUT }, children: [
|
|
19130
|
+
/* @__PURE__ */ jsxs(StackRowJustBetween, { children: [
|
|
19131
|
+
/* @__PURE__ */ jsx(StackRowAlignCenter, { children: /* @__PURE__ */ jsx(
|
|
19448
19132
|
LogoComponent,
|
|
19449
19133
|
{
|
|
19450
19134
|
url: "/images/logo/logo-sub-3.svg",
|
|
19451
19135
|
fillColor: "white"
|
|
19452
19136
|
}
|
|
19453
19137
|
) }),
|
|
19454
|
-
/* @__PURE__ */
|
|
19455
|
-
/* @__PURE__ */
|
|
19456
|
-
/* @__PURE__ */
|
|
19138
|
+
/* @__PURE__ */ jsxs(StackRowAlignCenter, { children: [
|
|
19139
|
+
/* @__PURE__ */ jsx(BellComponent, {}),
|
|
19140
|
+
/* @__PURE__ */ jsx(AvatarUserComponent, {})
|
|
19457
19141
|
] })
|
|
19458
19142
|
] }),
|
|
19459
19143
|
children
|
|
@@ -19463,10 +19147,32 @@ const MonitorPart = ({
|
|
|
19463
19147
|
};
|
|
19464
19148
|
const DashboardLayout = ({ children }) => {
|
|
19465
19149
|
useUpdateCurrentAccess();
|
|
19466
|
-
return /* @__PURE__ */
|
|
19150
|
+
return /* @__PURE__ */ jsx(MonitorPart, { children });
|
|
19467
19151
|
};
|
|
19468
19152
|
const DefaultLayout = ({ children }) => {
|
|
19469
|
-
return /* @__PURE__ */
|
|
19153
|
+
return /* @__PURE__ */ jsx(
|
|
19154
|
+
Stack$1,
|
|
19155
|
+
{
|
|
19156
|
+
sx: {
|
|
19157
|
+
backgroundColor: "background.default",
|
|
19158
|
+
minHeight: "100vh",
|
|
19159
|
+
width: "100%",
|
|
19160
|
+
overflowY: "auto"
|
|
19161
|
+
},
|
|
19162
|
+
children: /* @__PURE__ */ jsx(
|
|
19163
|
+
Stack$1,
|
|
19164
|
+
{
|
|
19165
|
+
sx: {
|
|
19166
|
+
flex: 1,
|
|
19167
|
+
alignItems: "center",
|
|
19168
|
+
py: STYLE.PADDING_GAP_LAYOUT,
|
|
19169
|
+
justifyContent: "center"
|
|
19170
|
+
},
|
|
19171
|
+
children
|
|
19172
|
+
}
|
|
19173
|
+
)
|
|
19174
|
+
}
|
|
19175
|
+
);
|
|
19470
19176
|
};
|
|
19471
19177
|
var isMergeableObject = function isMergeableObject2(value2) {
|
|
19472
19178
|
return isNonNullObject(value2) && !isSpecial(value2);
|
|
@@ -21796,13 +21502,13 @@ const ButtonElement = ({
|
|
|
21796
21502
|
...rest
|
|
21797
21503
|
}) => {
|
|
21798
21504
|
const { palette } = useTheme$2();
|
|
21799
|
-
return /* @__PURE__ */
|
|
21505
|
+
return /* @__PURE__ */ jsx(
|
|
21800
21506
|
Button,
|
|
21801
21507
|
{
|
|
21802
21508
|
...rest,
|
|
21803
21509
|
variant,
|
|
21804
|
-
startIcon: !loading && startIcon ? typeof startIcon === "string" ? /* @__PURE__ */
|
|
21805
|
-
endIcon: !loading && endIcon ? typeof endIcon === "string" ? /* @__PURE__ */
|
|
21510
|
+
startIcon: !loading && startIcon ? typeof startIcon === "string" ? /* @__PURE__ */ jsx(IconElement, { icon: startIcon, sx: { cursor: "pointer" } }) : startIcon : void 0,
|
|
21511
|
+
endIcon: !loading && endIcon ? typeof endIcon === "string" ? /* @__PURE__ */ jsx(IconElement, { icon: endIcon, sx: { cursor: "pointer" } }) : endIcon : void 0,
|
|
21806
21512
|
sx: {
|
|
21807
21513
|
minWidth: 100,
|
|
21808
21514
|
textTransform: "none",
|
|
@@ -21810,14 +21516,14 @@ const ButtonElement = ({
|
|
|
21810
21516
|
...sx
|
|
21811
21517
|
},
|
|
21812
21518
|
disabled,
|
|
21813
|
-
children: loading ? /* @__PURE__ */
|
|
21519
|
+
children: loading ? /* @__PURE__ */ jsx(
|
|
21814
21520
|
LoadingComponent,
|
|
21815
21521
|
{
|
|
21816
21522
|
color: palette.primary.contrastText,
|
|
21817
21523
|
size: "small",
|
|
21818
21524
|
sx: { minHeight: "24.5px" }
|
|
21819
21525
|
}
|
|
21820
|
-
) : /* @__PURE__ */
|
|
21526
|
+
) : /* @__PURE__ */ jsx(
|
|
21821
21527
|
Typography,
|
|
21822
21528
|
{
|
|
21823
21529
|
sx: { ...TYPOGRAPHY_STYLES.textSm.regular, whiteSpace: "nowrap" },
|
|
@@ -21835,7 +21541,7 @@ const TextFieldLabelElement = ({
|
|
|
21835
21541
|
}) => {
|
|
21836
21542
|
const { palette } = useTheme$2();
|
|
21837
21543
|
if (!label) return null;
|
|
21838
|
-
return /* @__PURE__ */
|
|
21544
|
+
return /* @__PURE__ */ jsxs(
|
|
21839
21545
|
Typography,
|
|
21840
21546
|
{
|
|
21841
21547
|
variant: "subtitle1",
|
|
@@ -21846,15 +21552,15 @@ const TextFieldLabelElement = ({
|
|
|
21846
21552
|
gap: PADDING_GAP_ITEM_SMALL
|
|
21847
21553
|
},
|
|
21848
21554
|
children: [
|
|
21849
|
-
iconLabel && /* @__PURE__ */
|
|
21555
|
+
iconLabel && /* @__PURE__ */ jsx(IconElement, { icon: iconLabel, sx: { fontSize: STYLE.TEXT_FIELD.FONT_SIZE_LABEL } }),
|
|
21850
21556
|
label,
|
|
21851
|
-
required && /* @__PURE__ */
|
|
21557
|
+
required && /* @__PURE__ */ jsx("span", { style: { color: "red" }, children: "*" })
|
|
21852
21558
|
]
|
|
21853
21559
|
}
|
|
21854
21560
|
);
|
|
21855
21561
|
};
|
|
21856
21562
|
const IconButtonElement = ({ icon, onClick, sx, size = 16 }) => {
|
|
21857
|
-
return /* @__PURE__ */
|
|
21563
|
+
return /* @__PURE__ */ jsx(
|
|
21858
21564
|
IconButton,
|
|
21859
21565
|
{
|
|
21860
21566
|
onClick,
|
|
@@ -21870,7 +21576,7 @@ const IconButtonElement = ({ icon, onClick, sx, size = 16 }) => {
|
|
|
21870
21576
|
},
|
|
21871
21577
|
...sx
|
|
21872
21578
|
},
|
|
21873
|
-
children: /* @__PURE__ */
|
|
21579
|
+
children: /* @__PURE__ */ jsx(IconElement, { icon, sx: { fontSize: size } })
|
|
21874
21580
|
}
|
|
21875
21581
|
);
|
|
21876
21582
|
};
|
|
@@ -21899,8 +21605,8 @@ const TextFieldElement = ({
|
|
|
21899
21605
|
onChange({ target: { name: name2, value: event.target.value || null } });
|
|
21900
21606
|
};
|
|
21901
21607
|
const { palette, typography } = useTheme$2();
|
|
21902
|
-
return /* @__PURE__ */
|
|
21903
|
-
/* @__PURE__ */
|
|
21608
|
+
return /* @__PURE__ */ jsxs(Box, { sx: { position: "relative", width: "100%" }, children: [
|
|
21609
|
+
/* @__PURE__ */ jsx(
|
|
21904
21610
|
TextFieldLabelElement,
|
|
21905
21611
|
{
|
|
21906
21612
|
label,
|
|
@@ -21909,7 +21615,7 @@ const TextFieldElement = ({
|
|
|
21909
21615
|
required: rest.required
|
|
21910
21616
|
}
|
|
21911
21617
|
),
|
|
21912
|
-
/* @__PURE__ */
|
|
21618
|
+
/* @__PURE__ */ jsx(
|
|
21913
21619
|
TextField,
|
|
21914
21620
|
{
|
|
21915
21621
|
error: Boolean(error),
|
|
@@ -21920,7 +21626,7 @@ const TextFieldElement = ({
|
|
|
21920
21626
|
name: name2,
|
|
21921
21627
|
InputProps: {
|
|
21922
21628
|
...InputProps,
|
|
21923
|
-
endAdornment: showResetButton && value2 && onReset ? /* @__PURE__ */
|
|
21629
|
+
endAdornment: showResetButton && value2 && onReset ? /* @__PURE__ */ jsx(IconButtonElement, { icon: "close", onClick: onReset }) : InputProps?.endAdornment,
|
|
21924
21630
|
sx: {
|
|
21925
21631
|
...InputProps?.sx
|
|
21926
21632
|
}
|
|
@@ -21932,7 +21638,7 @@ const TextFieldElement = ({
|
|
|
21932
21638
|
...rest
|
|
21933
21639
|
}
|
|
21934
21640
|
),
|
|
21935
|
-
description && /* @__PURE__ */
|
|
21641
|
+
description && /* @__PURE__ */ jsxs(
|
|
21936
21642
|
Typography,
|
|
21937
21643
|
{
|
|
21938
21644
|
variant: "body2",
|
|
@@ -21948,7 +21654,7 @@ const TextFieldElement = ({
|
|
|
21948
21654
|
gap: GAP_ICON_CONTENT_BY_SIZE.small
|
|
21949
21655
|
},
|
|
21950
21656
|
children: [
|
|
21951
|
-
/* @__PURE__ */
|
|
21657
|
+
/* @__PURE__ */ jsx(Box, { sx: { fontWeight: typography.h2.fontWeight }, children: "Ghi chú:" }),
|
|
21952
21658
|
" ",
|
|
21953
21659
|
description
|
|
21954
21660
|
]
|
|
@@ -24085,15 +23791,15 @@ const OtpPart = ({ setAuthProcess }) => {
|
|
|
24085
23791
|
const timer = setTimeout(() => setSecond(second - 1), 1e3);
|
|
24086
23792
|
return () => clearTimeout(timer);
|
|
24087
23793
|
}, [second]);
|
|
24088
|
-
return /* @__PURE__ */
|
|
24089
|
-
/* @__PURE__ */
|
|
23794
|
+
return /* @__PURE__ */ jsxs(Stack$1, { flex: 1, children: [
|
|
23795
|
+
/* @__PURE__ */ jsx(
|
|
24090
23796
|
Typography,
|
|
24091
23797
|
{
|
|
24092
23798
|
sx: { textAlign: "center" },
|
|
24093
23799
|
children: `Mã OTP đã gửi đến ${formik.values.phone}. Mã có giá trị trong vòng ${second}s`
|
|
24094
23800
|
}
|
|
24095
23801
|
),
|
|
24096
|
-
/* @__PURE__ */
|
|
23802
|
+
/* @__PURE__ */ jsx(StackRow, { children: Array.from({ length: lengthOtp }, (_, index) => /* @__PURE__ */ jsx(
|
|
24097
23803
|
Stack$1,
|
|
24098
23804
|
{
|
|
24099
23805
|
component: "input",
|
|
@@ -24116,7 +23822,7 @@ const OtpPart = ({ setAuthProcess }) => {
|
|
|
24116
23822
|
},
|
|
24117
23823
|
index
|
|
24118
23824
|
)) }),
|
|
24119
|
-
/* @__PURE__ */
|
|
23825
|
+
/* @__PURE__ */ jsx(
|
|
24120
23826
|
IconContentElement,
|
|
24121
23827
|
{
|
|
24122
23828
|
icon: "send",
|
|
@@ -24182,7 +23888,7 @@ const AuthPage = ({}) => {
|
|
|
24182
23888
|
}
|
|
24183
23889
|
};
|
|
24184
23890
|
const [showPassword, setShowPassword] = useState(false);
|
|
24185
|
-
return /* @__PURE__ */
|
|
23891
|
+
return /* @__PURE__ */ jsx(
|
|
24186
23892
|
Stack$1,
|
|
24187
23893
|
{
|
|
24188
23894
|
sx: {
|
|
@@ -24193,7 +23899,7 @@ const AuthPage = ({}) => {
|
|
|
24193
23899
|
width: "100%",
|
|
24194
23900
|
height: "100%"
|
|
24195
23901
|
},
|
|
24196
|
-
children: /* @__PURE__ */
|
|
23902
|
+
children: /* @__PURE__ */ jsx(
|
|
24197
23903
|
Formik,
|
|
24198
23904
|
{
|
|
24199
23905
|
initialValues: {
|
|
@@ -24208,7 +23914,7 @@ const AuthPage = ({}) => {
|
|
|
24208
23914
|
validateOnChange: false,
|
|
24209
23915
|
enableReinitialize: true,
|
|
24210
23916
|
children: (formik) => {
|
|
24211
|
-
return /* @__PURE__ */
|
|
23917
|
+
return /* @__PURE__ */ jsx(Form, { noValidate: true, children: /* @__PURE__ */ jsxs(
|
|
24212
23918
|
Stack$1,
|
|
24213
23919
|
{
|
|
24214
23920
|
sx: {
|
|
@@ -24222,9 +23928,9 @@ const AuthPage = ({}) => {
|
|
|
24222
23928
|
},
|
|
24223
23929
|
gap: 3,
|
|
24224
23930
|
children: [
|
|
24225
|
-
/* @__PURE__ */
|
|
24226
|
-
authProcess === AuthProcess.LOGIN && /* @__PURE__ */
|
|
24227
|
-
/* @__PURE__ */
|
|
23931
|
+
/* @__PURE__ */ jsx(LogoComponent, { url: "/images/logo/logo-sub-4.svg" }),
|
|
23932
|
+
authProcess === AuthProcess.LOGIN && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
23933
|
+
/* @__PURE__ */ jsx(
|
|
24228
23934
|
TextFieldElement,
|
|
24229
23935
|
{
|
|
24230
23936
|
iconLabel: "mail",
|
|
@@ -24240,7 +23946,7 @@ const AuthPage = ({}) => {
|
|
|
24240
23946
|
required: true
|
|
24241
23947
|
}
|
|
24242
23948
|
),
|
|
24243
|
-
/* @__PURE__ */
|
|
23949
|
+
/* @__PURE__ */ jsx(
|
|
24244
23950
|
TextFieldElement,
|
|
24245
23951
|
{
|
|
24246
23952
|
iconLabel: "vpn_key",
|
|
@@ -24256,7 +23962,7 @@ const AuthPage = ({}) => {
|
|
|
24256
23962
|
"& fieldset": { borderColor: palette.primary.light }
|
|
24257
23963
|
},
|
|
24258
23964
|
InputProps: {
|
|
24259
|
-
endAdornment: /* @__PURE__ */
|
|
23965
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
24260
23966
|
IconElement,
|
|
24261
23967
|
{
|
|
24262
23968
|
icon: showPassword ? "visibility" : "visibility_off",
|
|
@@ -24268,7 +23974,7 @@ const AuthPage = ({}) => {
|
|
|
24268
23974
|
}
|
|
24269
23975
|
)
|
|
24270
23976
|
] }),
|
|
24271
|
-
authProcess === AuthProcess.FORGOT_PASSWORD && /* @__PURE__ */
|
|
23977
|
+
authProcess === AuthProcess.FORGOT_PASSWORD && /* @__PURE__ */ jsx(
|
|
24272
23978
|
TextFieldElement,
|
|
24273
23979
|
{
|
|
24274
23980
|
iconLabel: "mail",
|
|
@@ -24284,8 +23990,8 @@ const AuthPage = ({}) => {
|
|
|
24284
23990
|
required: true
|
|
24285
23991
|
}
|
|
24286
23992
|
),
|
|
24287
|
-
authProcess === AuthProcess.VERIFY_OTP && /* @__PURE__ */
|
|
24288
|
-
authProcess === AuthProcess.RESET_PASSWORD && /* @__PURE__ */
|
|
23993
|
+
authProcess === AuthProcess.VERIFY_OTP && /* @__PURE__ */ jsx(OtpPart, { setAuthProcess }),
|
|
23994
|
+
authProcess === AuthProcess.RESET_PASSWORD && /* @__PURE__ */ jsx(
|
|
24289
23995
|
TextFieldElement,
|
|
24290
23996
|
{
|
|
24291
23997
|
label: "Mật khẩu",
|
|
@@ -24300,7 +24006,7 @@ const AuthPage = ({}) => {
|
|
|
24300
24006
|
},
|
|
24301
24007
|
type: showPassword ? "text" : "password",
|
|
24302
24008
|
InputProps: {
|
|
24303
|
-
endAdornment: /* @__PURE__ */
|
|
24009
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
24304
24010
|
IconElement,
|
|
24305
24011
|
{
|
|
24306
24012
|
icon: showPassword ? "visibility" : "visibility_off",
|
|
@@ -24310,7 +24016,7 @@ const AuthPage = ({}) => {
|
|
|
24310
24016
|
}
|
|
24311
24017
|
}
|
|
24312
24018
|
),
|
|
24313
|
-
/* @__PURE__ */
|
|
24019
|
+
/* @__PURE__ */ jsx(
|
|
24314
24020
|
IconContentElement,
|
|
24315
24021
|
{
|
|
24316
24022
|
icon: BUTTON_BACK_ICON_CONTENT[authProcess].backIcon,
|
|
@@ -24319,7 +24025,7 @@ const AuthPage = ({}) => {
|
|
|
24319
24025
|
onClick: () => authProcess === AuthProcess.LOGIN ? setAuthProcess(AuthProcess.FORGOT_PASSWORD) : setAuthProcess(AuthProcess.LOGIN)
|
|
24320
24026
|
}
|
|
24321
24027
|
),
|
|
24322
|
-
/* @__PURE__ */
|
|
24028
|
+
/* @__PURE__ */ jsx(
|
|
24323
24029
|
ButtonElement,
|
|
24324
24030
|
{
|
|
24325
24031
|
loading,
|
|
@@ -24338,17 +24044,17 @@ const AuthPage = ({}) => {
|
|
|
24338
24044
|
);
|
|
24339
24045
|
};
|
|
24340
24046
|
const DashboardPage = () => {
|
|
24341
|
-
return /* @__PURE__ */
|
|
24047
|
+
return /* @__PURE__ */ jsx(Outlet, {});
|
|
24342
24048
|
};
|
|
24343
24049
|
const ErrorPage = ({}) => {
|
|
24344
24050
|
const dispatch = useAppDispatch();
|
|
24345
24051
|
const navigate = useNavigate();
|
|
24346
24052
|
const account = useSelector((state) => state.account);
|
|
24347
24053
|
const [loading, setLoading] = React__default.useState(false);
|
|
24348
|
-
return /* @__PURE__ */
|
|
24349
|
-
/* @__PURE__ */
|
|
24350
|
-
/* @__PURE__ */
|
|
24351
|
-
/* @__PURE__ */
|
|
24054
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
24055
|
+
/* @__PURE__ */ jsxs(StackRowAlignCenter, { children: [
|
|
24056
|
+
/* @__PURE__ */ jsx(Typography, { color: "primary", variant: "h1", fontSize: 90, children: "5" }),
|
|
24057
|
+
/* @__PURE__ */ jsx(
|
|
24352
24058
|
Stack$1,
|
|
24353
24059
|
{
|
|
24354
24060
|
component: "img",
|
|
@@ -24359,7 +24065,7 @@ const ErrorPage = ({}) => {
|
|
|
24359
24065
|
loading: "lazy"
|
|
24360
24066
|
}
|
|
24361
24067
|
),
|
|
24362
|
-
/* @__PURE__ */
|
|
24068
|
+
/* @__PURE__ */ jsx(
|
|
24363
24069
|
Stack$1,
|
|
24364
24070
|
{
|
|
24365
24071
|
component: "img",
|
|
@@ -24371,8 +24077,8 @@ const ErrorPage = ({}) => {
|
|
|
24371
24077
|
}
|
|
24372
24078
|
)
|
|
24373
24079
|
] }),
|
|
24374
|
-
/* @__PURE__ */
|
|
24375
|
-
/* @__PURE__ */
|
|
24080
|
+
/* @__PURE__ */ jsx(Typography, { sx: { width: 450, textAlign: "center", lineHeight: 2 }, children: "TÀI KHOẢN CỦA BẠN KHÔNG ĐỦ QUYỀN TRUY CẬP HOẶC HỆ THỐNG ĐÃ GẶP SỰ CỐ!" }),
|
|
24081
|
+
/* @__PURE__ */ jsx(
|
|
24376
24082
|
ButtonElement,
|
|
24377
24083
|
{
|
|
24378
24084
|
content: "Đăng nhập lại",
|
|
@@ -24398,10 +24104,10 @@ const ErrorPage = ({}) => {
|
|
|
24398
24104
|
};
|
|
24399
24105
|
const NotFoundPage = ({}) => {
|
|
24400
24106
|
const navigate = useNavigate();
|
|
24401
|
-
return /* @__PURE__ */
|
|
24402
|
-
/* @__PURE__ */
|
|
24403
|
-
/* @__PURE__ */
|
|
24404
|
-
/* @__PURE__ */
|
|
24107
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
24108
|
+
/* @__PURE__ */ jsxs(StackRowAlignCenter, { children: [
|
|
24109
|
+
/* @__PURE__ */ jsx(Typography, { color: "primary", variant: "h1", fontSize: 90, children: "4" }),
|
|
24110
|
+
/* @__PURE__ */ jsx(
|
|
24405
24111
|
Stack$1,
|
|
24406
24112
|
{
|
|
24407
24113
|
component: "img",
|
|
@@ -24412,10 +24118,10 @@ const NotFoundPage = ({}) => {
|
|
|
24412
24118
|
loading: "lazy"
|
|
24413
24119
|
}
|
|
24414
24120
|
),
|
|
24415
|
-
/* @__PURE__ */
|
|
24121
|
+
/* @__PURE__ */ jsx(Typography, { color: "primary", variant: "h1", fontSize: 90, children: "4" })
|
|
24416
24122
|
] }),
|
|
24417
|
-
/* @__PURE__ */
|
|
24418
|
-
/* @__PURE__ */
|
|
24123
|
+
/* @__PURE__ */ jsx(Typography, { sx: { width: 450, textAlign: "center", lineHeight: 2 }, children: "XIN LỖI, TRANG BẠN TÌM KIẾM KHÔNG TỒN TẠI!" }),
|
|
24124
|
+
/* @__PURE__ */ jsx(ButtonElement, { content: "Quay lại trang chủ", fullWidth: false, onClick: () => navigate(PAGE.AUTH.path) })
|
|
24419
24125
|
] });
|
|
24420
24126
|
};
|
|
24421
24127
|
const LayoutGroupContext = createContext({});
|
|
@@ -27660,7 +27366,7 @@ function useRender(Component2, props, ref, { latestValues }, isStatic, forwardMo
|
|
|
27660
27366
|
const useVisualProps = isSVGComponent(Component2) ? useSVGProps : useHTMLProps;
|
|
27661
27367
|
const visualProps = useVisualProps(props, latestValues, isStatic, Component2);
|
|
27662
27368
|
const filteredProps = filterProps(props, typeof Component2 === "string", forwardMotionProps);
|
|
27663
|
-
const elementProps = Component2 !== Fragment ? { ...filteredProps, ...visualProps, ref } : {};
|
|
27369
|
+
const elementProps = Component2 !== Fragment$1 ? { ...filteredProps, ...visualProps, ref } : {};
|
|
27664
27370
|
const { children } = props;
|
|
27665
27371
|
const renderedChildren = useMemo(() => isMotionValue(children) ? children.get() : children, [children]);
|
|
27666
27372
|
return createElement(Component2, {
|
|
@@ -27915,7 +27621,7 @@ function createMotionComponent(Component2, { forwardMotionProps = false } = {},
|
|
|
27915
27621
|
MeasureLayout2 = layoutProjection.MeasureLayout;
|
|
27916
27622
|
context.visualElement = useVisualElement(Component2, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode);
|
|
27917
27623
|
}
|
|
27918
|
-
return
|
|
27624
|
+
return jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout2 && context.visualElement ? jsx(MeasureLayout2, { visualElement: context.visualElement, ...configAndProps }) : null, useRender(Component2, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps)] });
|
|
27919
27625
|
}
|
|
27920
27626
|
MotionDOMComponent.displayName = `motion.${typeof Component2 === "string" ? Component2 : `create(${Component2.displayName ?? Component2.name ?? ""})`}`;
|
|
27921
27627
|
const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);
|
|
@@ -28641,7 +28347,7 @@ class SVGVisualElement extends DOMVisualElement {
|
|
|
28641
28347
|
}
|
|
28642
28348
|
const createDomVisualElement = (Component2, options) => {
|
|
28643
28349
|
return isSVGComponent(Component2) ? new SVGVisualElement(options) : new HTMLVisualElement(options, {
|
|
28644
|
-
allowProjection: Component2 !== Fragment
|
|
28350
|
+
allowProjection: Component2 !== Fragment$1
|
|
28645
28351
|
});
|
|
28646
28352
|
};
|
|
28647
28353
|
function resolveVariant(visualElement, definition, custom) {
|
|
@@ -30034,7 +29740,7 @@ class MeasureLayoutWithContext extends Component$1 {
|
|
|
30034
29740
|
function MeasureLayout(props) {
|
|
30035
29741
|
const [isPresent, safeToRemove] = usePresence();
|
|
30036
29742
|
const layoutGroup = useContext(LayoutGroupContext);
|
|
30037
|
-
return
|
|
29743
|
+
return jsx(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent, safeToRemove });
|
|
30038
29744
|
}
|
|
30039
29745
|
const defaultScaleCorrectors = {
|
|
30040
29746
|
borderRadius: {
|
|
@@ -31691,9 +31397,9 @@ const MotionBox = ({
|
|
|
31691
31397
|
transition: { duration: 0.2 }
|
|
31692
31398
|
}
|
|
31693
31399
|
} : {};
|
|
31694
|
-
return /* @__PURE__ */
|
|
31400
|
+
return /* @__PURE__ */ jsx(motion.div, { ...motionProps, ...getAnimationProps(), ...hoverProps, onClick, style: { ...sx }, children });
|
|
31695
31401
|
};
|
|
31696
|
-
const IconRight = (props) => /* @__PURE__ */
|
|
31402
|
+
const IconRight = (props) => /* @__PURE__ */ jsx(
|
|
31697
31403
|
"svg",
|
|
31698
31404
|
{
|
|
31699
31405
|
width: "20",
|
|
@@ -31702,7 +31408,7 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31702
31408
|
fill: "none",
|
|
31703
31409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31704
31410
|
...props,
|
|
31705
|
-
children: /* @__PURE__ */
|
|
31411
|
+
children: /* @__PURE__ */ jsx(
|
|
31706
31412
|
"path",
|
|
31707
31413
|
{
|
|
31708
31414
|
d: "M12 1L19 8M19 8L12 15M19 8L1 8",
|
|
@@ -31714,7 +31420,7 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31714
31420
|
)
|
|
31715
31421
|
}
|
|
31716
31422
|
);
|
|
31717
|
-
const IconLeft = (props) => /* @__PURE__ */
|
|
31423
|
+
const IconLeft = (props) => /* @__PURE__ */ jsx(
|
|
31718
31424
|
"svg",
|
|
31719
31425
|
{
|
|
31720
31426
|
width: "20",
|
|
@@ -31723,7 +31429,7 @@ const IconLeft = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31723
31429
|
fill: "none",
|
|
31724
31430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31725
31431
|
...props,
|
|
31726
|
-
children: /* @__PURE__ */
|
|
31432
|
+
children: /* @__PURE__ */ jsx(
|
|
31727
31433
|
"path",
|
|
31728
31434
|
{
|
|
31729
31435
|
d: "M8 15L1 8M1 8L8 1M1 8L19 8",
|
|
@@ -31761,8 +31467,8 @@ const AppGrid = ({
|
|
|
31761
31467
|
const start = page * pageSize;
|
|
31762
31468
|
const end = start + pageSize;
|
|
31763
31469
|
const visibleApps = totalPages > 1 ? apps.slice(start, end) : apps;
|
|
31764
|
-
return /* @__PURE__ */
|
|
31765
|
-
/* @__PURE__ */
|
|
31470
|
+
return /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
|
|
31471
|
+
/* @__PURE__ */ jsx(
|
|
31766
31472
|
Box,
|
|
31767
31473
|
{
|
|
31768
31474
|
sx: {
|
|
@@ -31772,7 +31478,7 @@ const AppGrid = ({
|
|
|
31772
31478
|
},
|
|
31773
31479
|
children: visibleApps.map((app2, index) => {
|
|
31774
31480
|
const isSelected = selectedAppId === app2.key;
|
|
31775
|
-
return /* @__PURE__ */
|
|
31481
|
+
return /* @__PURE__ */ jsxs(
|
|
31776
31482
|
MotionBox,
|
|
31777
31483
|
{
|
|
31778
31484
|
preset: "staggerItem",
|
|
@@ -31787,7 +31493,7 @@ const AppGrid = ({
|
|
|
31787
31493
|
flexDirection: "column"
|
|
31788
31494
|
},
|
|
31789
31495
|
children: [
|
|
31790
|
-
/* @__PURE__ */
|
|
31496
|
+
/* @__PURE__ */ jsx(
|
|
31791
31497
|
Box,
|
|
31792
31498
|
{
|
|
31793
31499
|
sx: {
|
|
@@ -31801,7 +31507,7 @@ const AppGrid = ({
|
|
|
31801
31507
|
background: getAppColor(app2.category),
|
|
31802
31508
|
boxShadow: isSelected ? `0 0 0 1px ${theme.palette.primary.main}, ${iconShadow}` : iconShadow
|
|
31803
31509
|
},
|
|
31804
|
-
children: app2.icon.startsWith("/") && /* @__PURE__ */
|
|
31510
|
+
children: app2.icon.startsWith("/") && /* @__PURE__ */ jsx(
|
|
31805
31511
|
ImageElement,
|
|
31806
31512
|
{
|
|
31807
31513
|
sx: { width: iconSize * 0.56, height: iconSize * 0.56 },
|
|
@@ -31811,7 +31517,7 @@ const AppGrid = ({
|
|
|
31811
31517
|
)
|
|
31812
31518
|
}
|
|
31813
31519
|
),
|
|
31814
|
-
/* @__PURE__ */
|
|
31520
|
+
/* @__PURE__ */ jsx(
|
|
31815
31521
|
Typography,
|
|
31816
31522
|
{
|
|
31817
31523
|
variant: titleVariant,
|
|
@@ -31819,7 +31525,7 @@ const AppGrid = ({
|
|
|
31819
31525
|
children: app2.title
|
|
31820
31526
|
}
|
|
31821
31527
|
),
|
|
31822
|
-
/* @__PURE__ */
|
|
31528
|
+
/* @__PURE__ */ jsx(
|
|
31823
31529
|
Typography,
|
|
31824
31530
|
{
|
|
31825
31531
|
variant: captionVariant,
|
|
@@ -31834,8 +31540,8 @@ const AppGrid = ({
|
|
|
31834
31540
|
})
|
|
31835
31541
|
}
|
|
31836
31542
|
),
|
|
31837
|
-
showPagination && totalPages > 1 && /* @__PURE__ */
|
|
31838
|
-
page === totalPages - 1 && /* @__PURE__ */
|
|
31543
|
+
showPagination && totalPages > 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31544
|
+
page === totalPages - 1 && /* @__PURE__ */ jsx(
|
|
31839
31545
|
IconButton,
|
|
31840
31546
|
{
|
|
31841
31547
|
size: "small",
|
|
@@ -31848,10 +31554,10 @@ const AppGrid = ({
|
|
|
31848
31554
|
transform: "translateY(-120%)",
|
|
31849
31555
|
color: theme.palette.divider
|
|
31850
31556
|
},
|
|
31851
|
-
children: /* @__PURE__ */
|
|
31557
|
+
children: /* @__PURE__ */ jsx(IconLeft, {})
|
|
31852
31558
|
}
|
|
31853
31559
|
),
|
|
31854
|
-
page !== totalPages - 1 && /* @__PURE__ */
|
|
31560
|
+
page !== totalPages - 1 && /* @__PURE__ */ jsx(
|
|
31855
31561
|
IconButton,
|
|
31856
31562
|
{
|
|
31857
31563
|
size: "small",
|
|
@@ -31864,10 +31570,10 @@ const AppGrid = ({
|
|
|
31864
31570
|
transform: "translateY(-120%)",
|
|
31865
31571
|
color: theme.palette.divider
|
|
31866
31572
|
},
|
|
31867
|
-
children: /* @__PURE__ */
|
|
31573
|
+
children: /* @__PURE__ */ jsx(IconRight, {})
|
|
31868
31574
|
}
|
|
31869
31575
|
),
|
|
31870
|
-
/* @__PURE__ */
|
|
31576
|
+
/* @__PURE__ */ jsx(
|
|
31871
31577
|
Box,
|
|
31872
31578
|
{
|
|
31873
31579
|
sx: {
|
|
@@ -31876,7 +31582,7 @@ const AppGrid = ({
|
|
|
31876
31582
|
alignItems: "center",
|
|
31877
31583
|
justifyContent: "center"
|
|
31878
31584
|
},
|
|
31879
|
-
children: /* @__PURE__ */
|
|
31585
|
+
children: /* @__PURE__ */ jsx(
|
|
31880
31586
|
Box,
|
|
31881
31587
|
{
|
|
31882
31588
|
sx: {
|
|
@@ -31888,7 +31594,7 @@ const AppGrid = ({
|
|
|
31888
31594
|
borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
|
|
31889
31595
|
backgroundColor: "rgba(255,255,255,0.15)"
|
|
31890
31596
|
},
|
|
31891
|
-
children: Array.from({ length: totalPages }).map((_, i) => /* @__PURE__ */
|
|
31597
|
+
children: Array.from({ length: totalPages }).map((_, i) => /* @__PURE__ */ jsx(
|
|
31892
31598
|
Box,
|
|
31893
31599
|
{
|
|
31894
31600
|
onClick: () => setPage(i),
|
|
@@ -31917,7 +31623,7 @@ const SystemMonitorScreen = () => {
|
|
|
31917
31623
|
const [tab, setTab] = useState(AppCategory.ALL);
|
|
31918
31624
|
const listApp = useApps(tab);
|
|
31919
31625
|
const currentApp = useActiveSidebar();
|
|
31920
|
-
return /* @__PURE__ */
|
|
31626
|
+
return /* @__PURE__ */ jsx(
|
|
31921
31627
|
MotionBox,
|
|
31922
31628
|
{
|
|
31923
31629
|
preset: "fadeInUp",
|
|
@@ -31928,7 +31634,7 @@ const SystemMonitorScreen = () => {
|
|
|
31928
31634
|
position: "relative",
|
|
31929
31635
|
top: 150
|
|
31930
31636
|
},
|
|
31931
|
-
children: /* @__PURE__ */
|
|
31637
|
+
children: /* @__PURE__ */ jsxs(
|
|
31932
31638
|
Box,
|
|
31933
31639
|
{
|
|
31934
31640
|
sx: {
|
|
@@ -31939,7 +31645,7 @@ const SystemMonitorScreen = () => {
|
|
|
31939
31645
|
justifyContent: "flex-start"
|
|
31940
31646
|
},
|
|
31941
31647
|
children: [
|
|
31942
|
-
/* @__PURE__ */
|
|
31648
|
+
/* @__PURE__ */ jsx(
|
|
31943
31649
|
Box,
|
|
31944
31650
|
{
|
|
31945
31651
|
sx: {
|
|
@@ -31953,37 +31659,45 @@ const SystemMonitorScreen = () => {
|
|
|
31953
31659
|
{ key: AppCategory.HRM, label: "HRM" },
|
|
31954
31660
|
{ key: AppCategory.WORKFLOW, label: "Workflow Engine" },
|
|
31955
31661
|
{ key: AppCategory.PLATFORM_INFO, label: "Platform & Info" }
|
|
31956
|
-
].map((t) => /* @__PURE__ */
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
{
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
31978
|
-
|
|
31979
|
-
|
|
31980
|
-
|
|
31981
|
-
|
|
31982
|
-
|
|
31983
|
-
|
|
31662
|
+
].map((t) => /* @__PURE__ */ jsxs(
|
|
31663
|
+
MotionBox,
|
|
31664
|
+
{
|
|
31665
|
+
sx: { position: "relative" },
|
|
31666
|
+
preset: "tabUnderline",
|
|
31667
|
+
children: [
|
|
31668
|
+
/* @__PURE__ */ jsx(
|
|
31669
|
+
Typography,
|
|
31670
|
+
{
|
|
31671
|
+
onClick: () => setTab(t.key),
|
|
31672
|
+
sx: {
|
|
31673
|
+
cursor: "pointer",
|
|
31674
|
+
color: tab === t.key ? theme.palette.common.white : theme.palette.grey[300]
|
|
31675
|
+
},
|
|
31676
|
+
children: t.label
|
|
31677
|
+
}
|
|
31678
|
+
),
|
|
31679
|
+
tab === t.key && /* @__PURE__ */ jsx(
|
|
31680
|
+
MotionBox,
|
|
31681
|
+
{
|
|
31682
|
+
preset: "tabUnderline",
|
|
31683
|
+
sx: {
|
|
31684
|
+
position: "absolute",
|
|
31685
|
+
left: 0,
|
|
31686
|
+
right: 0,
|
|
31687
|
+
height: 2,
|
|
31688
|
+
backgroundColor: theme.palette.common.white,
|
|
31689
|
+
transformOrigin: "left"
|
|
31690
|
+
},
|
|
31691
|
+
children: /* @__PURE__ */ jsx("div", {})
|
|
31692
|
+
}
|
|
31693
|
+
)
|
|
31694
|
+
]
|
|
31695
|
+
},
|
|
31696
|
+
t.key
|
|
31697
|
+
))
|
|
31984
31698
|
}
|
|
31985
31699
|
),
|
|
31986
|
-
/* @__PURE__ */
|
|
31700
|
+
/* @__PURE__ */ jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsx(
|
|
31987
31701
|
AppGrid,
|
|
31988
31702
|
{
|
|
31989
31703
|
apps: listApp,
|
|
@@ -31993,7 +31707,9 @@ const SystemMonitorScreen = () => {
|
|
|
31993
31707
|
gap: PADDING_GAP_TAB,
|
|
31994
31708
|
selectedAppId: currentApp?.key,
|
|
31995
31709
|
onClickItem: async (app2) => {
|
|
31996
|
-
await dispatch(
|
|
31710
|
+
await dispatch(
|
|
31711
|
+
ACTION_ACCOUNT.updateCurrentAccess(app2.key)
|
|
31712
|
+
).unwrap();
|
|
31997
31713
|
}
|
|
31998
31714
|
}
|
|
31999
31715
|
) }, tab)
|
|
@@ -32007,17 +31723,17 @@ const renderRoutes = (routes2, account) => routes2.map((route) => {
|
|
|
32007
31723
|
const { path, layout: layout2, element, type, allowUserTypes = [], children } = route;
|
|
32008
31724
|
const Layout = layout2 || React__default.Fragment;
|
|
32009
31725
|
let Element2 = element;
|
|
32010
|
-
if (path === PAGE.AUTH.path && account.isLogin) Element2 = () => /* @__PURE__ */
|
|
31726
|
+
if (path === PAGE.AUTH.path && account.isLogin) Element2 = () => /* @__PURE__ */ jsx(Navigate, { to: PAGE.DASHBOARD.path });
|
|
32011
31727
|
if (type === RouteType.PROTECTED) {
|
|
32012
|
-
if (!account.isLogin) Element2 = () => /* @__PURE__ */
|
|
31728
|
+
if (!account.isLogin) Element2 = () => /* @__PURE__ */ jsx(Navigate, { to: PAGE.AUTH.path });
|
|
32013
31729
|
else if (allowUserTypes.length && !allowUserTypes.includes(account.user.type) && account.user.type !== UserType.ROOT)
|
|
32014
|
-
Element2 = () => /* @__PURE__ */
|
|
31730
|
+
Element2 = () => /* @__PURE__ */ jsx(Navigate, { to: PAGE.ERROR.path });
|
|
32015
31731
|
}
|
|
32016
|
-
return /* @__PURE__ */
|
|
31732
|
+
return /* @__PURE__ */ jsx(
|
|
32017
31733
|
Route,
|
|
32018
31734
|
{
|
|
32019
31735
|
path,
|
|
32020
|
-
element: /* @__PURE__ */
|
|
31736
|
+
element: /* @__PURE__ */ jsx(Layout, { children: /* @__PURE__ */ jsx(Element2, {}) }),
|
|
32021
31737
|
children: children && renderRoutes(children, account)
|
|
32022
31738
|
},
|
|
32023
31739
|
path
|
|
@@ -32044,8 +31760,8 @@ const TypographyContentCaption = ({
|
|
|
32044
31760
|
sxContent,
|
|
32045
31761
|
sxCaption
|
|
32046
31762
|
}) => {
|
|
32047
|
-
return /* @__PURE__ */
|
|
32048
|
-
/* @__PURE__ */
|
|
31763
|
+
return /* @__PURE__ */ jsxs(Stack$1, { gap: 0, sx: { ...sx }, children: [
|
|
31764
|
+
/* @__PURE__ */ jsx(
|
|
32049
31765
|
Typography,
|
|
32050
31766
|
{
|
|
32051
31767
|
sx: {
|
|
@@ -32055,7 +31771,7 @@ const TypographyContentCaption = ({
|
|
|
32055
31771
|
children: content || "#"
|
|
32056
31772
|
}
|
|
32057
31773
|
),
|
|
32058
|
-
caption && /* @__PURE__ */
|
|
31774
|
+
caption && /* @__PURE__ */ jsx(
|
|
32059
31775
|
Typography,
|
|
32060
31776
|
{
|
|
32061
31777
|
sx: {
|