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.cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ const toolkit = require("@reduxjs/toolkit");
|
|
|
5
5
|
const reactRedux = require("react-redux");
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const reactRouterDom = require("react-router-dom");
|
|
8
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
8
9
|
const material = require("@mui/material");
|
|
9
10
|
const system = require("@mui/system");
|
|
10
11
|
const emStyled = require("@emotion/styled");
|
|
@@ -12832,323 +12833,6 @@ const useActiveSidebar = () => {
|
|
|
12832
12833
|
}, [current_access, user]);
|
|
12833
12834
|
return activeSidebar;
|
|
12834
12835
|
};
|
|
12835
|
-
var jsxRuntime = { exports: {} };
|
|
12836
|
-
var reactJsxRuntime_production = {};
|
|
12837
|
-
/**
|
|
12838
|
-
* @license React
|
|
12839
|
-
* react-jsx-runtime.production.js
|
|
12840
|
-
*
|
|
12841
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12842
|
-
*
|
|
12843
|
-
* This source code is licensed under the MIT license found in the
|
|
12844
|
-
* LICENSE file in the root directory of this source tree.
|
|
12845
|
-
*/
|
|
12846
|
-
var hasRequiredReactJsxRuntime_production;
|
|
12847
|
-
function requireReactJsxRuntime_production() {
|
|
12848
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
12849
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
12850
|
-
var REACT_ELEMENT_TYPE2 = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
12851
|
-
function jsxProd(type, config, maybeKey) {
|
|
12852
|
-
var key = null;
|
|
12853
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
12854
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
12855
|
-
if ("key" in config) {
|
|
12856
|
-
maybeKey = {};
|
|
12857
|
-
for (var propName in config)
|
|
12858
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
12859
|
-
} else maybeKey = config;
|
|
12860
|
-
config = maybeKey.ref;
|
|
12861
|
-
return {
|
|
12862
|
-
$$typeof: REACT_ELEMENT_TYPE2,
|
|
12863
|
-
type,
|
|
12864
|
-
key,
|
|
12865
|
-
ref: void 0 !== config ? config : null,
|
|
12866
|
-
props: maybeKey
|
|
12867
|
-
};
|
|
12868
|
-
}
|
|
12869
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
12870
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
12871
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
12872
|
-
return reactJsxRuntime_production;
|
|
12873
|
-
}
|
|
12874
|
-
var reactJsxRuntime_development = {};
|
|
12875
|
-
/**
|
|
12876
|
-
* @license React
|
|
12877
|
-
* react-jsx-runtime.development.js
|
|
12878
|
-
*
|
|
12879
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12880
|
-
*
|
|
12881
|
-
* This source code is licensed under the MIT license found in the
|
|
12882
|
-
* LICENSE file in the root directory of this source tree.
|
|
12883
|
-
*/
|
|
12884
|
-
var hasRequiredReactJsxRuntime_development;
|
|
12885
|
-
function requireReactJsxRuntime_development() {
|
|
12886
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
12887
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
12888
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
12889
|
-
function getComponentNameFromType(type) {
|
|
12890
|
-
if (null == type) return null;
|
|
12891
|
-
if ("function" === typeof type)
|
|
12892
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
12893
|
-
if ("string" === typeof type) return type;
|
|
12894
|
-
switch (type) {
|
|
12895
|
-
case REACT_FRAGMENT_TYPE:
|
|
12896
|
-
return "Fragment";
|
|
12897
|
-
case REACT_PROFILER_TYPE:
|
|
12898
|
-
return "Profiler";
|
|
12899
|
-
case REACT_STRICT_MODE_TYPE:
|
|
12900
|
-
return "StrictMode";
|
|
12901
|
-
case REACT_SUSPENSE_TYPE:
|
|
12902
|
-
return "Suspense";
|
|
12903
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
12904
|
-
return "SuspenseList";
|
|
12905
|
-
case REACT_ACTIVITY_TYPE:
|
|
12906
|
-
return "Activity";
|
|
12907
|
-
}
|
|
12908
|
-
if ("object" === typeof type)
|
|
12909
|
-
switch ("number" === typeof type.tag && console.error(
|
|
12910
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
12911
|
-
), type.$$typeof) {
|
|
12912
|
-
case REACT_PORTAL_TYPE:
|
|
12913
|
-
return "Portal";
|
|
12914
|
-
case REACT_CONTEXT_TYPE:
|
|
12915
|
-
return type.displayName || "Context";
|
|
12916
|
-
case REACT_CONSUMER_TYPE:
|
|
12917
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
12918
|
-
case REACT_FORWARD_REF_TYPE:
|
|
12919
|
-
var innerType = type.render;
|
|
12920
|
-
type = type.displayName;
|
|
12921
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
12922
|
-
return type;
|
|
12923
|
-
case REACT_MEMO_TYPE:
|
|
12924
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
12925
|
-
case REACT_LAZY_TYPE:
|
|
12926
|
-
innerType = type._payload;
|
|
12927
|
-
type = type._init;
|
|
12928
|
-
try {
|
|
12929
|
-
return getComponentNameFromType(type(innerType));
|
|
12930
|
-
} catch (x) {
|
|
12931
|
-
}
|
|
12932
|
-
}
|
|
12933
|
-
return null;
|
|
12934
|
-
}
|
|
12935
|
-
function testStringCoercion(value2) {
|
|
12936
|
-
return "" + value2;
|
|
12937
|
-
}
|
|
12938
|
-
function checkKeyStringCoercion(value2) {
|
|
12939
|
-
try {
|
|
12940
|
-
testStringCoercion(value2);
|
|
12941
|
-
var JSCompiler_inline_result = false;
|
|
12942
|
-
} catch (e) {
|
|
12943
|
-
JSCompiler_inline_result = true;
|
|
12944
|
-
}
|
|
12945
|
-
if (JSCompiler_inline_result) {
|
|
12946
|
-
JSCompiler_inline_result = console;
|
|
12947
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
12948
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value2[Symbol.toStringTag] || value2.constructor.name || "Object";
|
|
12949
|
-
JSCompiler_temp_const.call(
|
|
12950
|
-
JSCompiler_inline_result,
|
|
12951
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
12952
|
-
JSCompiler_inline_result$jscomp$0
|
|
12953
|
-
);
|
|
12954
|
-
return testStringCoercion(value2);
|
|
12955
|
-
}
|
|
12956
|
-
}
|
|
12957
|
-
function getTaskName(type) {
|
|
12958
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
12959
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
12960
|
-
return "<...>";
|
|
12961
|
-
try {
|
|
12962
|
-
var name2 = getComponentNameFromType(type);
|
|
12963
|
-
return name2 ? "<" + name2 + ">" : "<...>";
|
|
12964
|
-
} catch (x) {
|
|
12965
|
-
return "<...>";
|
|
12966
|
-
}
|
|
12967
|
-
}
|
|
12968
|
-
function getOwner() {
|
|
12969
|
-
var dispatcher = ReactSharedInternals.A;
|
|
12970
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
12971
|
-
}
|
|
12972
|
-
function UnknownOwner() {
|
|
12973
|
-
return Error("react-stack-top-frame");
|
|
12974
|
-
}
|
|
12975
|
-
function hasValidKey(config) {
|
|
12976
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
12977
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
12978
|
-
if (getter && getter.isReactWarning) return false;
|
|
12979
|
-
}
|
|
12980
|
-
return void 0 !== config.key;
|
|
12981
|
-
}
|
|
12982
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
12983
|
-
function warnAboutAccessingKey() {
|
|
12984
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
12985
|
-
"%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)",
|
|
12986
|
-
displayName
|
|
12987
|
-
));
|
|
12988
|
-
}
|
|
12989
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
12990
|
-
Object.defineProperty(props, "key", {
|
|
12991
|
-
get: warnAboutAccessingKey,
|
|
12992
|
-
configurable: true
|
|
12993
|
-
});
|
|
12994
|
-
}
|
|
12995
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
12996
|
-
var componentName = getComponentNameFromType(this.type);
|
|
12997
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
12998
|
-
"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."
|
|
12999
|
-
));
|
|
13000
|
-
componentName = this.props.ref;
|
|
13001
|
-
return void 0 !== componentName ? componentName : null;
|
|
13002
|
-
}
|
|
13003
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
13004
|
-
var refProp = props.ref;
|
|
13005
|
-
type = {
|
|
13006
|
-
$$typeof: REACT_ELEMENT_TYPE2,
|
|
13007
|
-
type,
|
|
13008
|
-
key,
|
|
13009
|
-
props,
|
|
13010
|
-
_owner: owner
|
|
13011
|
-
};
|
|
13012
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
13013
|
-
enumerable: false,
|
|
13014
|
-
get: elementRefGetterWithDeprecationWarning
|
|
13015
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
13016
|
-
type._store = {};
|
|
13017
|
-
Object.defineProperty(type._store, "validated", {
|
|
13018
|
-
configurable: false,
|
|
13019
|
-
enumerable: false,
|
|
13020
|
-
writable: true,
|
|
13021
|
-
value: 0
|
|
13022
|
-
});
|
|
13023
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
13024
|
-
configurable: false,
|
|
13025
|
-
enumerable: false,
|
|
13026
|
-
writable: true,
|
|
13027
|
-
value: null
|
|
13028
|
-
});
|
|
13029
|
-
Object.defineProperty(type, "_debugStack", {
|
|
13030
|
-
configurable: false,
|
|
13031
|
-
enumerable: false,
|
|
13032
|
-
writable: true,
|
|
13033
|
-
value: debugStack
|
|
13034
|
-
});
|
|
13035
|
-
Object.defineProperty(type, "_debugTask", {
|
|
13036
|
-
configurable: false,
|
|
13037
|
-
enumerable: false,
|
|
13038
|
-
writable: true,
|
|
13039
|
-
value: debugTask
|
|
13040
|
-
});
|
|
13041
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
13042
|
-
return type;
|
|
13043
|
-
}
|
|
13044
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
13045
|
-
var children = config.children;
|
|
13046
|
-
if (void 0 !== children)
|
|
13047
|
-
if (isStaticChildren)
|
|
13048
|
-
if (isArrayImpl(children)) {
|
|
13049
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
13050
|
-
validateChildKeys(children[isStaticChildren]);
|
|
13051
|
-
Object.freeze && Object.freeze(children);
|
|
13052
|
-
} else
|
|
13053
|
-
console.error(
|
|
13054
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
13055
|
-
);
|
|
13056
|
-
else validateChildKeys(children);
|
|
13057
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
13058
|
-
children = getComponentNameFromType(type);
|
|
13059
|
-
var keys2 = Object.keys(config).filter(function(k) {
|
|
13060
|
-
return "key" !== k;
|
|
13061
|
-
});
|
|
13062
|
-
isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
13063
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
13064
|
-
'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} />',
|
|
13065
|
-
isStaticChildren,
|
|
13066
|
-
children,
|
|
13067
|
-
keys2,
|
|
13068
|
-
children
|
|
13069
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
13070
|
-
}
|
|
13071
|
-
children = null;
|
|
13072
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
13073
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
13074
|
-
if ("key" in config) {
|
|
13075
|
-
maybeKey = {};
|
|
13076
|
-
for (var propName in config)
|
|
13077
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
13078
|
-
} else maybeKey = config;
|
|
13079
|
-
children && defineKeyPropWarningGetter(
|
|
13080
|
-
maybeKey,
|
|
13081
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
13082
|
-
);
|
|
13083
|
-
return ReactElement(
|
|
13084
|
-
type,
|
|
13085
|
-
children,
|
|
13086
|
-
maybeKey,
|
|
13087
|
-
getOwner(),
|
|
13088
|
-
debugStack,
|
|
13089
|
-
debugTask
|
|
13090
|
-
);
|
|
13091
|
-
}
|
|
13092
|
-
function validateChildKeys(node) {
|
|
13093
|
-
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));
|
|
13094
|
-
}
|
|
13095
|
-
function isValidElement(object2) {
|
|
13096
|
-
return "object" === typeof object2 && null !== object2 && object2.$$typeof === REACT_ELEMENT_TYPE2;
|
|
13097
|
-
}
|
|
13098
|
-
var React$1 = React, 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 = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty2 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
13099
|
-
return null;
|
|
13100
|
-
};
|
|
13101
|
-
React$1 = {
|
|
13102
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
13103
|
-
return callStackForError();
|
|
13104
|
-
}
|
|
13105
|
-
};
|
|
13106
|
-
var specialPropKeyWarningShown;
|
|
13107
|
-
var didWarnAboutElementRef = {};
|
|
13108
|
-
var unknownOwnerDebugStack = React$1.react_stack_bottom_frame.bind(
|
|
13109
|
-
React$1,
|
|
13110
|
-
UnknownOwner
|
|
13111
|
-
)();
|
|
13112
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
13113
|
-
var didWarnAboutKeySpread = {};
|
|
13114
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
13115
|
-
reactJsxRuntime_development.jsx = function(type, config, maybeKey) {
|
|
13116
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
13117
|
-
return jsxDEVImpl(
|
|
13118
|
-
type,
|
|
13119
|
-
config,
|
|
13120
|
-
maybeKey,
|
|
13121
|
-
false,
|
|
13122
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
13123
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
13124
|
-
);
|
|
13125
|
-
};
|
|
13126
|
-
reactJsxRuntime_development.jsxs = function(type, config, maybeKey) {
|
|
13127
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
13128
|
-
return jsxDEVImpl(
|
|
13129
|
-
type,
|
|
13130
|
-
config,
|
|
13131
|
-
maybeKey,
|
|
13132
|
-
true,
|
|
13133
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
13134
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
13135
|
-
);
|
|
13136
|
-
};
|
|
13137
|
-
})();
|
|
13138
|
-
return reactJsxRuntime_development;
|
|
13139
|
-
}
|
|
13140
|
-
var hasRequiredJsxRuntime;
|
|
13141
|
-
function requireJsxRuntime() {
|
|
13142
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
13143
|
-
hasRequiredJsxRuntime = 1;
|
|
13144
|
-
if (process.env.NODE_ENV === "production") {
|
|
13145
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
13146
|
-
} else {
|
|
13147
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
13148
|
-
}
|
|
13149
|
-
return jsxRuntime.exports;
|
|
13150
|
-
}
|
|
13151
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
13152
12836
|
var propTypes = { exports: {} };
|
|
13153
12837
|
var reactIs$2 = { exports: {} };
|
|
13154
12838
|
var reactIs_production_min$1 = {};
|
|
@@ -18227,7 +17911,7 @@ const useVersionCheck = (options) => {
|
|
|
18227
17911
|
}, [options?.interval]);
|
|
18228
17912
|
};
|
|
18229
17913
|
const AuthLayout = ({ children }) => {
|
|
18230
|
-
return /* @__PURE__ */
|
|
17914
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18231
17915
|
material.Stack,
|
|
18232
17916
|
{
|
|
18233
17917
|
sx: {
|
|
@@ -18379,7 +18063,7 @@ var StatusAvatar = /* @__PURE__ */ ((StatusAvatar2) => {
|
|
|
18379
18063
|
return StatusAvatar2;
|
|
18380
18064
|
})(StatusAvatar || {});
|
|
18381
18065
|
const ImageWrapper = ({ isWrap = false, children }) => {
|
|
18382
|
-
return isWrap ? /* @__PURE__ */
|
|
18066
|
+
return isWrap ? /* @__PURE__ */ jsxRuntime.jsx(StackRow, { alignItems: "center", className: "jsdsdj", children }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
18383
18067
|
};
|
|
18384
18068
|
const ImageElement = ({
|
|
18385
18069
|
url: url2,
|
|
@@ -18395,8 +18079,8 @@ const ImageElement = ({
|
|
|
18395
18079
|
const [loaded, setLoaded] = React.useState(false);
|
|
18396
18080
|
if (onClick) sx = { ...sx, cursor: "pointer" };
|
|
18397
18081
|
const borderRadius2 = sizeType === ImageSizeType.CIRCLE ? "50%" : sizeType === ImageSizeType.SQUARE ? STYLE.BORDER_RADIUS_ELEMENT_SMALL : 0;
|
|
18398
|
-
return /* @__PURE__ */
|
|
18399
|
-
!loaded && /* @__PURE__ */
|
|
18082
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ImageWrapper, { isWrap, children: [
|
|
18083
|
+
!loaded && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18400
18084
|
material.Skeleton,
|
|
18401
18085
|
{
|
|
18402
18086
|
variant: "rectangular",
|
|
@@ -18406,7 +18090,7 @@ const ImageElement = ({
|
|
|
18406
18090
|
}
|
|
18407
18091
|
}
|
|
18408
18092
|
),
|
|
18409
|
-
/* @__PURE__ */
|
|
18093
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18410
18094
|
material.Box,
|
|
18411
18095
|
{
|
|
18412
18096
|
...rest,
|
|
@@ -18437,7 +18121,7 @@ const LogoComponent = ({
|
|
|
18437
18121
|
}) => {
|
|
18438
18122
|
const navigate = reactRouterDom.useNavigate();
|
|
18439
18123
|
const toHome = () => navigate(PAGE.DASHBOARD.path);
|
|
18440
|
-
return /* @__PURE__ */
|
|
18124
|
+
return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { onClick: toHome, sx: { cursor: "pointer", height: height2, ...sx }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18441
18125
|
ImageElement,
|
|
18442
18126
|
{
|
|
18443
18127
|
url: url2,
|
|
@@ -18473,7 +18157,7 @@ const IconElement = ({
|
|
|
18473
18157
|
},
|
|
18474
18158
|
...sx
|
|
18475
18159
|
};
|
|
18476
|
-
return /* @__PURE__ */
|
|
18160
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18477
18161
|
material.Icon,
|
|
18478
18162
|
{
|
|
18479
18163
|
onClick,
|
|
@@ -18490,7 +18174,7 @@ const IconElement = ({
|
|
|
18490
18174
|
}
|
|
18491
18175
|
);
|
|
18492
18176
|
};
|
|
18493
|
-
const ArrowTooltip = emStyled(({ className, ...props }) => /* @__PURE__ */
|
|
18177
|
+
const ArrowTooltip = emStyled(({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { ...props, arrow: true, classes: { popper: className } }))(() => ({
|
|
18494
18178
|
[`& .${material.tooltipClasses.arrow}`]: {
|
|
18495
18179
|
color: "white"
|
|
18496
18180
|
}
|
|
@@ -18503,7 +18187,7 @@ const AvatarElement = ({
|
|
|
18503
18187
|
...rest
|
|
18504
18188
|
}) => {
|
|
18505
18189
|
if (tooltipContent) {
|
|
18506
|
-
return /* @__PURE__ */
|
|
18190
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ArrowTooltip, { title: tooltipContent, arrow: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18507
18191
|
material.Avatar,
|
|
18508
18192
|
{
|
|
18509
18193
|
...rest,
|
|
@@ -18512,13 +18196,13 @@ const AvatarElement = ({
|
|
|
18512
18196
|
}
|
|
18513
18197
|
) });
|
|
18514
18198
|
}
|
|
18515
|
-
return /* @__PURE__ */
|
|
18199
|
+
return /* @__PURE__ */ jsxRuntime.jsx(material.Avatar, { ...rest, src: url2 || "", sx: { ...MAP_SIZE[size], bgcolor: "primary.main", ...sx, cursor: "pointer" } });
|
|
18516
18200
|
};
|
|
18517
18201
|
const TimeAgoComponent = ({
|
|
18518
18202
|
time: time2,
|
|
18519
18203
|
hasText
|
|
18520
18204
|
}) => {
|
|
18521
|
-
return /* @__PURE__ */
|
|
18205
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18522
18206
|
material.Typography,
|
|
18523
18207
|
{
|
|
18524
18208
|
variant: "caption",
|
|
@@ -18528,7 +18212,7 @@ const TimeAgoComponent = ({
|
|
|
18528
18212
|
);
|
|
18529
18213
|
};
|
|
18530
18214
|
const TimeAgoContentComponent = ({ time: time2, content, height: height2 = STYLE.HEIGHT_IMAGE_DEFAULT }) => {
|
|
18531
|
-
return /* @__PURE__ */
|
|
18215
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18532
18216
|
system.Stack,
|
|
18533
18217
|
{
|
|
18534
18218
|
sx: {
|
|
@@ -18538,7 +18222,7 @@ const TimeAgoContentComponent = ({ time: time2, content, height: height2 = STYLE
|
|
|
18538
18222
|
alignItems: "flex-start"
|
|
18539
18223
|
},
|
|
18540
18224
|
children: [
|
|
18541
|
-
/* @__PURE__ */
|
|
18225
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18542
18226
|
material.Typography,
|
|
18543
18227
|
{
|
|
18544
18228
|
sx: {
|
|
@@ -18547,7 +18231,7 @@ const TimeAgoContentComponent = ({ time: time2, content, height: height2 = STYLE
|
|
|
18547
18231
|
children: content
|
|
18548
18232
|
}
|
|
18549
18233
|
),
|
|
18550
|
-
/* @__PURE__ */
|
|
18234
|
+
/* @__PURE__ */ jsxRuntime.jsx(TimeAgoComponent, { time: time2 })
|
|
18551
18235
|
]
|
|
18552
18236
|
}
|
|
18553
18237
|
);
|
|
@@ -18558,9 +18242,9 @@ const ImageContentTimeComponent = ({
|
|
|
18558
18242
|
time: time2,
|
|
18559
18243
|
sizeType = "medium"
|
|
18560
18244
|
}) => {
|
|
18561
|
-
return /* @__PURE__ */
|
|
18562
|
-
/* @__PURE__ */
|
|
18563
|
-
/* @__PURE__ */
|
|
18245
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(StackRow, { alignItems: "center", children: [
|
|
18246
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarElement, { url: url2, size: sizeType }),
|
|
18247
|
+
/* @__PURE__ */ jsxRuntime.jsx(TimeAgoContentComponent, { content, time: time2 })
|
|
18564
18248
|
] });
|
|
18565
18249
|
};
|
|
18566
18250
|
const TooltipOnClickElement = ({
|
|
@@ -18575,7 +18259,7 @@ const TooltipOnClickElement = ({
|
|
|
18575
18259
|
}) => {
|
|
18576
18260
|
return (
|
|
18577
18261
|
// Chỗ này có thể là bug, onClickAway apply ngay cả khi component chưa được render
|
|
18578
|
-
/* @__PURE__ */
|
|
18262
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18579
18263
|
material.Tooltip,
|
|
18580
18264
|
{
|
|
18581
18265
|
PopperProps: { disablePortal: true },
|
|
@@ -18588,13 +18272,13 @@ const TooltipOnClickElement = ({
|
|
|
18588
18272
|
placement,
|
|
18589
18273
|
title: content,
|
|
18590
18274
|
...rest,
|
|
18591
|
-
children: /* @__PURE__ */
|
|
18275
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children })
|
|
18592
18276
|
}
|
|
18593
18277
|
) })
|
|
18594
18278
|
);
|
|
18595
18279
|
};
|
|
18596
18280
|
const EmptyComponent = ({}) => {
|
|
18597
|
-
return /* @__PURE__ */
|
|
18281
|
+
return /* @__PURE__ */ jsxRuntime.jsx(material.Fade, { in: true, timeout: STYLE.ANIMATION_TIME, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18598
18282
|
material.Stack,
|
|
18599
18283
|
{
|
|
18600
18284
|
direction: "column",
|
|
@@ -18605,7 +18289,7 @@ const EmptyComponent = ({}) => {
|
|
|
18605
18289
|
justifyContent: "center",
|
|
18606
18290
|
padding: STYLE.PADDING_GAP_ITEM
|
|
18607
18291
|
},
|
|
18608
|
-
children: /* @__PURE__ */
|
|
18292
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { component: "img", sx: { width: 70 }, src: "/images/empty.svg" })
|
|
18609
18293
|
}
|
|
18610
18294
|
) });
|
|
18611
18295
|
};
|
|
@@ -18807,7 +18491,7 @@ const CircularProgress = /* @__PURE__ */ React__namespace.forwardRef(function Ci
|
|
|
18807
18491
|
circleStyle.strokeDashoffset = `${((100 - value2) / 100 * circumference).toFixed(3)}px`;
|
|
18808
18492
|
rootStyle.transform = "rotate(-90deg)";
|
|
18809
18493
|
}
|
|
18810
|
-
return /* @__PURE__ */
|
|
18494
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CircularProgressRoot, {
|
|
18811
18495
|
className: clsx(classes.root, className),
|
|
18812
18496
|
style: {
|
|
18813
18497
|
width: size,
|
|
@@ -18820,11 +18504,11 @@ const CircularProgress = /* @__PURE__ */ React__namespace.forwardRef(function Ci
|
|
|
18820
18504
|
role: "progressbar",
|
|
18821
18505
|
...rootProps,
|
|
18822
18506
|
...other,
|
|
18823
|
-
children: /* @__PURE__ */
|
|
18507
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(CircularProgressSVG, {
|
|
18824
18508
|
className: classes.svg,
|
|
18825
18509
|
ownerState,
|
|
18826
18510
|
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
|
18827
|
-
children: [enableTrackSlot ? /* @__PURE__ */
|
|
18511
|
+
children: [enableTrackSlot ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgressTrack, {
|
|
18828
18512
|
className: classes.track,
|
|
18829
18513
|
ownerState,
|
|
18830
18514
|
cx: SIZE,
|
|
@@ -18833,7 +18517,7 @@ const CircularProgress = /* @__PURE__ */ React__namespace.forwardRef(function Ci
|
|
|
18833
18517
|
fill: "none",
|
|
18834
18518
|
strokeWidth: thickness,
|
|
18835
18519
|
"aria-hidden": "true"
|
|
18836
|
-
}) : null, /* @__PURE__ */
|
|
18520
|
+
}) : null, /* @__PURE__ */ jsxRuntime.jsx(CircularProgressCircle, {
|
|
18837
18521
|
className: classes.circle,
|
|
18838
18522
|
style: circleStyle,
|
|
18839
18523
|
ownerState,
|
|
@@ -18917,7 +18601,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes = {
|
|
|
18917
18601
|
variant: PropTypes.oneOf(["determinate", "indeterminate"])
|
|
18918
18602
|
} : void 0;
|
|
18919
18603
|
const LoadingComponent = ({ color: color2, size = "medium", sx = {} }) => {
|
|
18920
|
-
return /* @__PURE__ */
|
|
18604
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18921
18605
|
material.Stack,
|
|
18922
18606
|
{
|
|
18923
18607
|
sx: {
|
|
@@ -18926,7 +18610,7 @@ const LoadingComponent = ({ color: color2, size = "medium", sx = {} }) => {
|
|
|
18926
18610
|
alignItems: "center",
|
|
18927
18611
|
justifyContent: "center"
|
|
18928
18612
|
},
|
|
18929
|
-
children: /* @__PURE__ */
|
|
18613
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: STYLE.FONT_SIZE_LOADING[size], sx: { color: color2 } })
|
|
18930
18614
|
}
|
|
18931
18615
|
);
|
|
18932
18616
|
};
|
|
@@ -18978,13 +18662,13 @@ const BellComponent = ({}) => {
|
|
|
18978
18662
|
showSnackbar({ message: getErrorMessage(error), type: SnackbarType.ERROR });
|
|
18979
18663
|
}
|
|
18980
18664
|
};
|
|
18981
|
-
return /* @__PURE__ */
|
|
18665
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18982
18666
|
TooltipOnClickElement,
|
|
18983
18667
|
{
|
|
18984
18668
|
open,
|
|
18985
18669
|
onClickAway: () => setOpen(false),
|
|
18986
18670
|
placement: "bottom-end",
|
|
18987
|
-
content: /* @__PURE__ */
|
|
18671
|
+
content: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18988
18672
|
material.List,
|
|
18989
18673
|
{
|
|
18990
18674
|
sx: {
|
|
@@ -18997,7 +18681,7 @@ const BellComponent = ({}) => {
|
|
|
18997
18681
|
width: "300px"
|
|
18998
18682
|
},
|
|
18999
18683
|
children: [
|
|
19000
|
-
/* @__PURE__ */
|
|
18684
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
19001
18685
|
material.ListItem,
|
|
19002
18686
|
{
|
|
19003
18687
|
sx: {
|
|
@@ -19012,9 +18696,9 @@ const BellComponent = ({}) => {
|
|
|
19012
18696
|
zIndex: 1
|
|
19013
18697
|
},
|
|
19014
18698
|
children: [
|
|
19015
|
-
/* @__PURE__ */
|
|
19016
|
-
/* @__PURE__ */
|
|
19017
|
-
/* @__PURE__ */
|
|
18699
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "subtitle1", children: "Thông báo" }),
|
|
18700
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRow, { children: [
|
|
18701
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19018
18702
|
IconElement,
|
|
19019
18703
|
{
|
|
19020
18704
|
sx: { cursor: "pointer" },
|
|
@@ -19032,7 +18716,7 @@ const BellComponent = ({}) => {
|
|
|
19032
18716
|
}
|
|
19033
18717
|
}
|
|
19034
18718
|
),
|
|
19035
|
-
/* @__PURE__ */
|
|
18719
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19036
18720
|
IconElement,
|
|
19037
18721
|
{
|
|
19038
18722
|
icon: "settings",
|
|
@@ -19045,7 +18729,7 @@ const BellComponent = ({}) => {
|
|
|
19045
18729
|
]
|
|
19046
18730
|
}
|
|
19047
18731
|
),
|
|
19048
|
-
loading ? /* @__PURE__ */
|
|
18732
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(StackRowAlignCenter, { sx: { height: 50 }, children: /* @__PURE__ */ jsxRuntime.jsx(LoadingComponent, {}) }) : list.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(EmptyComponent, {}) : list.map((notification) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
19049
18733
|
material.ListItem,
|
|
19050
18734
|
{
|
|
19051
18735
|
onClick: () => clickNotification(notification),
|
|
@@ -19063,8 +18747,8 @@ const BellComponent = ({}) => {
|
|
|
19063
18747
|
color: palette.primary.main
|
|
19064
18748
|
}
|
|
19065
18749
|
},
|
|
19066
|
-
children: /* @__PURE__ */
|
|
19067
|
-
/* @__PURE__ */
|
|
18750
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { gap: 1, children: [
|
|
18751
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19068
18752
|
ImageContentTimeComponent,
|
|
19069
18753
|
{
|
|
19070
18754
|
url: notification.createdBy?.url || "",
|
|
@@ -19072,7 +18756,7 @@ const BellComponent = ({}) => {
|
|
|
19072
18756
|
time: notification.createdAt
|
|
19073
18757
|
}
|
|
19074
18758
|
),
|
|
19075
|
-
/* @__PURE__ */
|
|
18759
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "caption", sx: { ...getLimitLineCss(2) }, children: notification.content })
|
|
19076
18760
|
] })
|
|
19077
18761
|
},
|
|
19078
18762
|
notification.id
|
|
@@ -19080,7 +18764,7 @@ const BellComponent = ({}) => {
|
|
|
19080
18764
|
]
|
|
19081
18765
|
}
|
|
19082
18766
|
),
|
|
19083
|
-
children: /* @__PURE__ */
|
|
18767
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19084
18768
|
material.Badge,
|
|
19085
18769
|
{
|
|
19086
18770
|
onClick: async () => {
|
|
@@ -19090,7 +18774,7 @@ const BellComponent = ({}) => {
|
|
|
19090
18774
|
badgeContent: notificationCount,
|
|
19091
18775
|
color: "error",
|
|
19092
18776
|
sx: { cursor: "pointer" },
|
|
19093
|
-
children: /* @__PURE__ */
|
|
18777
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19094
18778
|
IconElement,
|
|
19095
18779
|
{
|
|
19096
18780
|
icon: "notifications",
|
|
@@ -19119,10 +18803,10 @@ const AvatarUserInfo = ({
|
|
|
19119
18803
|
}) => {
|
|
19120
18804
|
const { palette } = material.useTheme();
|
|
19121
18805
|
const isSystemMonitor = useIsSystemMonitor();
|
|
19122
|
-
return /* @__PURE__ */
|
|
19123
|
-
/* @__PURE__ */
|
|
19124
|
-
positions.length > 0 ? /* @__PURE__ */
|
|
19125
|
-
/* @__PURE__ */
|
|
18806
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(StackRow, { sx: { alignItems: "center", gap: STYLE.PADDING_GAP_ITEM }, children: [
|
|
18807
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarElement, { url: url2, size: sizeAvatar }),
|
|
18808
|
+
positions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { sx: { gap: 0 }, children: [
|
|
18809
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19126
18810
|
material.Typography,
|
|
19127
18811
|
{
|
|
19128
18812
|
sx: {
|
|
@@ -19136,7 +18820,7 @@ const AvatarUserInfo = ({
|
|
|
19136
18820
|
children: name2
|
|
19137
18821
|
}
|
|
19138
18822
|
),
|
|
19139
|
-
/* @__PURE__ */
|
|
18823
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19140
18824
|
material.Typography,
|
|
19141
18825
|
{
|
|
19142
18826
|
variant: "caption",
|
|
@@ -19160,7 +18844,7 @@ const AvatarUserInfo = ({
|
|
|
19160
18844
|
children: positions.join(" / ")
|
|
19161
18845
|
}
|
|
19162
18846
|
)
|
|
19163
|
-
] }) : /* @__PURE__ */
|
|
18847
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { ...TYPOGRAPHY_STYLES.textSm.semiBold, ...getLimitLineCss(1), ...sxName }, children: name2 })
|
|
19164
18848
|
] });
|
|
19165
18849
|
};
|
|
19166
18850
|
const IconContentElement = ({
|
|
@@ -19182,15 +18866,15 @@ const IconContentElement = ({
|
|
|
19182
18866
|
...sx,
|
|
19183
18867
|
cursor: "pointer"
|
|
19184
18868
|
};
|
|
19185
|
-
return /* @__PURE__ */
|
|
18869
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19186
18870
|
StackRowAlignCenter,
|
|
19187
18871
|
{
|
|
19188
18872
|
onClick,
|
|
19189
18873
|
sx: { gap: STYLE.GAP_ICON_CONTENT_BY_SIZE[size || "medium"], ...sx },
|
|
19190
18874
|
id: id2,
|
|
19191
18875
|
children: [
|
|
19192
|
-
icon && /* @__PURE__ */
|
|
19193
|
-
content && /* @__PURE__ */
|
|
18876
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon, sx: sxIcon, color: color2, fill }),
|
|
18877
|
+
content && /* @__PURE__ */ jsxRuntime.jsx(
|
|
19194
18878
|
material.Typography,
|
|
19195
18879
|
{
|
|
19196
18880
|
color: color2,
|
|
@@ -19223,8 +18907,8 @@ const RadioGroupElement = ({
|
|
|
19223
18907
|
const change = (event) => {
|
|
19224
18908
|
onChange && onChange({ target: { name: name2, value: event.target.value || void 0 } });
|
|
19225
18909
|
};
|
|
19226
|
-
return /* @__PURE__ */
|
|
19227
|
-
label && /* @__PURE__ */
|
|
18910
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.FormControl, { disabled, sx: { gap: STYLE.PADDING_GAP_ITEM }, onChange: change, children: [
|
|
18911
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
19228
18912
|
material.InputLabel,
|
|
19229
18913
|
{
|
|
19230
18914
|
shrink: true,
|
|
@@ -19234,13 +18918,13 @@ const RadioGroupElement = ({
|
|
|
19234
18918
|
zIndex: 2,
|
|
19235
18919
|
display: "flex"
|
|
19236
18920
|
},
|
|
19237
|
-
children: /* @__PURE__ */
|
|
19238
|
-
/* @__PURE__ */
|
|
18921
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(StackLabel, { children: [
|
|
18922
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: iconLabel, sx: { fontSize: STYLE.TEXT_FIELD.FONT_SIZE_LABEL } }),
|
|
19239
18923
|
label
|
|
19240
18924
|
] })
|
|
19241
18925
|
}
|
|
19242
18926
|
),
|
|
19243
|
-
/* @__PURE__ */
|
|
18927
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19244
18928
|
material.RadioGroup,
|
|
19245
18929
|
{
|
|
19246
18930
|
name: name2,
|
|
@@ -19259,13 +18943,13 @@ const RadioGroupElement = ({
|
|
|
19259
18943
|
] });
|
|
19260
18944
|
};
|
|
19261
18945
|
const RadioElement = ({ name: name2, label, ...rest }) => {
|
|
19262
|
-
return /* @__PURE__ */
|
|
18946
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19263
18947
|
material.FormControlLabel,
|
|
19264
18948
|
{
|
|
19265
18949
|
name: name2,
|
|
19266
18950
|
label,
|
|
19267
18951
|
sx: { alignItems: "center", mr: 0 },
|
|
19268
|
-
control: /* @__PURE__ */
|
|
18952
|
+
control: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19269
18953
|
material.Radio,
|
|
19270
18954
|
{
|
|
19271
18955
|
...rest,
|
|
@@ -19338,10 +19022,10 @@ const AvatarUserComponent = ({}) => {
|
|
|
19338
19022
|
const handleClose = () => {
|
|
19339
19023
|
setAnchorEl(null);
|
|
19340
19024
|
};
|
|
19341
|
-
return /* @__PURE__ */
|
|
19342
|
-
/* @__PURE__ */
|
|
19343
|
-
/* @__PURE__ */
|
|
19344
|
-
/* @__PURE__ */
|
|
19025
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
19026
|
+
/* @__PURE__ */ jsxRuntime.jsxs(material.Box, { onClick: handleClick, sx: { cursor: "pointer", display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
19027
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarUserInfo, { url: account.user?.url, name: account.user?.name ?? "", positions, isTag: true }),
|
|
19028
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19345
19029
|
IconElement,
|
|
19346
19030
|
{
|
|
19347
19031
|
icon: "arrow_drop_down",
|
|
@@ -19357,7 +19041,7 @@ const AvatarUserComponent = ({}) => {
|
|
|
19357
19041
|
}
|
|
19358
19042
|
)
|
|
19359
19043
|
] }),
|
|
19360
|
-
/* @__PURE__ */
|
|
19044
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
19361
19045
|
material.Menu,
|
|
19362
19046
|
{
|
|
19363
19047
|
anchorEl,
|
|
@@ -19396,10 +19080,10 @@ const AvatarUserComponent = ({}) => {
|
|
|
19396
19080
|
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
19397
19081
|
anchorOrigin: { horizontal: "right", vertical: "bottom" },
|
|
19398
19082
|
children: [
|
|
19399
|
-
/* @__PURE__ */
|
|
19400
|
-
/* @__PURE__ */
|
|
19401
|
-
/* @__PURE__ */
|
|
19402
|
-
/* @__PURE__ */
|
|
19083
|
+
/* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { p: 2 }, children: [
|
|
19084
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignStartJustBetween, { children: [
|
|
19085
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "subtitle1", sx: { lineHeight: 1 }, children: account.user?.name }),
|
|
19086
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19403
19087
|
IconElement,
|
|
19404
19088
|
{
|
|
19405
19089
|
icon: "settings",
|
|
@@ -19407,9 +19091,9 @@ const AvatarUserComponent = ({}) => {
|
|
|
19407
19091
|
}
|
|
19408
19092
|
)
|
|
19409
19093
|
] }),
|
|
19410
|
-
account.user?.userOrgUnitPositions && account.user.userOrgUnitPositions.length > 0 && /* @__PURE__ */
|
|
19411
|
-
/* @__PURE__ */
|
|
19412
|
-
/* @__PURE__ */
|
|
19094
|
+
account.user?.userOrgUnitPositions && account.user.userOrgUnitPositions.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
19095
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconContentElement, { icon: "admin_panel_settings", content: "Vai trò" }),
|
|
19096
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19413
19097
|
RadioGroupElement,
|
|
19414
19098
|
{
|
|
19415
19099
|
direction: "column",
|
|
@@ -19419,14 +19103,14 @@ const AvatarUserComponent = ({}) => {
|
|
|
19419
19103
|
dispatch(ACTION_ACCOUNT.updatePositionOrgUnit(event.target.value));
|
|
19420
19104
|
window.location.reload();
|
|
19421
19105
|
},
|
|
19422
|
-
children: account.user.userOrgUnitPositions.map((e) => /* @__PURE__ */
|
|
19106
|
+
children: account.user.userOrgUnitPositions.map((e) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
19423
19107
|
RadioElement,
|
|
19424
19108
|
{
|
|
19425
19109
|
value: e.id,
|
|
19426
19110
|
size: "small",
|
|
19427
|
-
label: /* @__PURE__ */
|
|
19428
|
-
/* @__PURE__ */
|
|
19429
|
-
/* @__PURE__ */
|
|
19111
|
+
label: /* @__PURE__ */ jsxRuntime.jsxs(system.Stack, { gap: 0, children: [
|
|
19112
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: e.orgUnit.name }),
|
|
19113
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "caption", sx: { ...getLimitLineCss(1), color: "text.disabled" }, children: e.position.name })
|
|
19430
19114
|
] })
|
|
19431
19115
|
},
|
|
19432
19116
|
e.id
|
|
@@ -19435,10 +19119,10 @@ const AvatarUserComponent = ({}) => {
|
|
|
19435
19119
|
)
|
|
19436
19120
|
] })
|
|
19437
19121
|
] }),
|
|
19438
|
-
/* @__PURE__ */
|
|
19439
|
-
menu.map((item, index) => /* @__PURE__ */
|
|
19440
|
-
/* @__PURE__ */
|
|
19441
|
-
/* @__PURE__ */
|
|
19122
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Divider, {}),
|
|
19123
|
+
menu.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(material.MenuItem, { onClick: item.onClick, children: [
|
|
19124
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: item.icon, size: "small", sx: { mr: 1 } }),
|
|
19125
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { children: item.content })
|
|
19442
19126
|
] }, index))
|
|
19443
19127
|
]
|
|
19444
19128
|
}
|
|
@@ -19448,7 +19132,7 @@ const AvatarUserComponent = ({}) => {
|
|
|
19448
19132
|
const MonitorPart = ({
|
|
19449
19133
|
children
|
|
19450
19134
|
}) => {
|
|
19451
|
-
return /* @__PURE__ */
|
|
19135
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19452
19136
|
system.Stack,
|
|
19453
19137
|
{
|
|
19454
19138
|
sx: {
|
|
@@ -19460,18 +19144,18 @@ const MonitorPart = ({
|
|
|
19460
19144
|
backgroundPosition: "top",
|
|
19461
19145
|
backgroundRepeat: "no-repeat"
|
|
19462
19146
|
},
|
|
19463
|
-
children: /* @__PURE__ */
|
|
19464
|
-
/* @__PURE__ */
|
|
19465
|
-
/* @__PURE__ */
|
|
19147
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(system.Stack, { p: { padding: STYLE.PADDING_GAP_LAYOUT }, children: [
|
|
19148
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRowJustBetween, { children: [
|
|
19149
|
+
/* @__PURE__ */ jsxRuntime.jsx(StackRowAlignCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19466
19150
|
LogoComponent,
|
|
19467
19151
|
{
|
|
19468
19152
|
url: "/images/logo/logo-sub-3.svg",
|
|
19469
19153
|
fillColor: "white"
|
|
19470
19154
|
}
|
|
19471
19155
|
) }),
|
|
19472
|
-
/* @__PURE__ */
|
|
19473
|
-
/* @__PURE__ */
|
|
19474
|
-
/* @__PURE__ */
|
|
19156
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { children: [
|
|
19157
|
+
/* @__PURE__ */ jsxRuntime.jsx(BellComponent, {}),
|
|
19158
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarUserComponent, {})
|
|
19475
19159
|
] })
|
|
19476
19160
|
] }),
|
|
19477
19161
|
children
|
|
@@ -19481,10 +19165,32 @@ const MonitorPart = ({
|
|
|
19481
19165
|
};
|
|
19482
19166
|
const DashboardLayout = ({ children }) => {
|
|
19483
19167
|
useUpdateCurrentAccess();
|
|
19484
|
-
return /* @__PURE__ */
|
|
19168
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MonitorPart, { children });
|
|
19485
19169
|
};
|
|
19486
19170
|
const DefaultLayout = ({ children }) => {
|
|
19487
|
-
return /* @__PURE__ */
|
|
19171
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19172
|
+
material.Stack,
|
|
19173
|
+
{
|
|
19174
|
+
sx: {
|
|
19175
|
+
backgroundColor: "background.default",
|
|
19176
|
+
minHeight: "100vh",
|
|
19177
|
+
width: "100%",
|
|
19178
|
+
overflowY: "auto"
|
|
19179
|
+
},
|
|
19180
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19181
|
+
material.Stack,
|
|
19182
|
+
{
|
|
19183
|
+
sx: {
|
|
19184
|
+
flex: 1,
|
|
19185
|
+
alignItems: "center",
|
|
19186
|
+
py: STYLE.PADDING_GAP_LAYOUT,
|
|
19187
|
+
justifyContent: "center"
|
|
19188
|
+
},
|
|
19189
|
+
children
|
|
19190
|
+
}
|
|
19191
|
+
)
|
|
19192
|
+
}
|
|
19193
|
+
);
|
|
19488
19194
|
};
|
|
19489
19195
|
var isMergeableObject = function isMergeableObject2(value2) {
|
|
19490
19196
|
return isNonNullObject(value2) && !isSpecial(value2);
|
|
@@ -21814,13 +21520,13 @@ const ButtonElement = ({
|
|
|
21814
21520
|
...rest
|
|
21815
21521
|
}) => {
|
|
21816
21522
|
const { palette } = material.useTheme();
|
|
21817
|
-
return /* @__PURE__ */
|
|
21523
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21818
21524
|
material.Button,
|
|
21819
21525
|
{
|
|
21820
21526
|
...rest,
|
|
21821
21527
|
variant,
|
|
21822
|
-
startIcon: !loading && startIcon ? typeof startIcon === "string" ? /* @__PURE__ */
|
|
21823
|
-
endIcon: !loading && endIcon ? typeof endIcon === "string" ? /* @__PURE__ */
|
|
21528
|
+
startIcon: !loading && startIcon ? typeof startIcon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: startIcon, sx: { cursor: "pointer" } }) : startIcon : void 0,
|
|
21529
|
+
endIcon: !loading && endIcon ? typeof endIcon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: endIcon, sx: { cursor: "pointer" } }) : endIcon : void 0,
|
|
21824
21530
|
sx: {
|
|
21825
21531
|
minWidth: 100,
|
|
21826
21532
|
textTransform: "none",
|
|
@@ -21828,14 +21534,14 @@ const ButtonElement = ({
|
|
|
21828
21534
|
...sx
|
|
21829
21535
|
},
|
|
21830
21536
|
disabled,
|
|
21831
|
-
children: loading ? /* @__PURE__ */
|
|
21537
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
21832
21538
|
LoadingComponent,
|
|
21833
21539
|
{
|
|
21834
21540
|
color: palette.primary.contrastText,
|
|
21835
21541
|
size: "small",
|
|
21836
21542
|
sx: { minHeight: "24.5px" }
|
|
21837
21543
|
}
|
|
21838
|
-
) : /* @__PURE__ */
|
|
21544
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
21839
21545
|
material.Typography,
|
|
21840
21546
|
{
|
|
21841
21547
|
sx: { ...TYPOGRAPHY_STYLES.textSm.regular, whiteSpace: "nowrap" },
|
|
@@ -21853,7 +21559,7 @@ const TextFieldLabelElement = ({
|
|
|
21853
21559
|
}) => {
|
|
21854
21560
|
const { palette } = material.useTheme();
|
|
21855
21561
|
if (!label) return null;
|
|
21856
|
-
return /* @__PURE__ */
|
|
21562
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21857
21563
|
material.Typography,
|
|
21858
21564
|
{
|
|
21859
21565
|
variant: "subtitle1",
|
|
@@ -21864,15 +21570,15 @@ const TextFieldLabelElement = ({
|
|
|
21864
21570
|
gap: PADDING_GAP_ITEM_SMALL
|
|
21865
21571
|
},
|
|
21866
21572
|
children: [
|
|
21867
|
-
iconLabel && /* @__PURE__ */
|
|
21573
|
+
iconLabel && /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: iconLabel, sx: { fontSize: STYLE.TEXT_FIELD.FONT_SIZE_LABEL } }),
|
|
21868
21574
|
label,
|
|
21869
|
-
required && /* @__PURE__ */
|
|
21575
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "red" }, children: "*" })
|
|
21870
21576
|
]
|
|
21871
21577
|
}
|
|
21872
21578
|
);
|
|
21873
21579
|
};
|
|
21874
21580
|
const IconButtonElement = ({ icon, onClick, sx, size = 16 }) => {
|
|
21875
|
-
return /* @__PURE__ */
|
|
21581
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21876
21582
|
material.IconButton,
|
|
21877
21583
|
{
|
|
21878
21584
|
onClick,
|
|
@@ -21888,7 +21594,7 @@ const IconButtonElement = ({ icon, onClick, sx, size = 16 }) => {
|
|
|
21888
21594
|
},
|
|
21889
21595
|
...sx
|
|
21890
21596
|
},
|
|
21891
|
-
children: /* @__PURE__ */
|
|
21597
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon, sx: { fontSize: size } })
|
|
21892
21598
|
}
|
|
21893
21599
|
);
|
|
21894
21600
|
};
|
|
@@ -21917,8 +21623,8 @@ const TextFieldElement = ({
|
|
|
21917
21623
|
onChange({ target: { name: name2, value: event.target.value || null } });
|
|
21918
21624
|
};
|
|
21919
21625
|
const { palette, typography } = material.useTheme();
|
|
21920
|
-
return /* @__PURE__ */
|
|
21921
|
-
/* @__PURE__ */
|
|
21626
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative", width: "100%" }, children: [
|
|
21627
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21922
21628
|
TextFieldLabelElement,
|
|
21923
21629
|
{
|
|
21924
21630
|
label,
|
|
@@ -21927,7 +21633,7 @@ const TextFieldElement = ({
|
|
|
21927
21633
|
required: rest.required
|
|
21928
21634
|
}
|
|
21929
21635
|
),
|
|
21930
|
-
/* @__PURE__ */
|
|
21636
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21931
21637
|
material.TextField,
|
|
21932
21638
|
{
|
|
21933
21639
|
error: Boolean(error),
|
|
@@ -21938,7 +21644,7 @@ const TextFieldElement = ({
|
|
|
21938
21644
|
name: name2,
|
|
21939
21645
|
InputProps: {
|
|
21940
21646
|
...InputProps,
|
|
21941
|
-
endAdornment: showResetButton && value2 && onReset ? /* @__PURE__ */
|
|
21647
|
+
endAdornment: showResetButton && value2 && onReset ? /* @__PURE__ */ jsxRuntime.jsx(IconButtonElement, { icon: "close", onClick: onReset }) : InputProps?.endAdornment,
|
|
21942
21648
|
sx: {
|
|
21943
21649
|
...InputProps?.sx
|
|
21944
21650
|
}
|
|
@@ -21950,7 +21656,7 @@ const TextFieldElement = ({
|
|
|
21950
21656
|
...rest
|
|
21951
21657
|
}
|
|
21952
21658
|
),
|
|
21953
|
-
description && /* @__PURE__ */
|
|
21659
|
+
description && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21954
21660
|
material.Typography,
|
|
21955
21661
|
{
|
|
21956
21662
|
variant: "body2",
|
|
@@ -21966,7 +21672,7 @@ const TextFieldElement = ({
|
|
|
21966
21672
|
gap: GAP_ICON_CONTENT_BY_SIZE.small
|
|
21967
21673
|
},
|
|
21968
21674
|
children: [
|
|
21969
|
-
/* @__PURE__ */
|
|
21675
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { fontWeight: typography.h2.fontWeight }, children: "Ghi chú:" }),
|
|
21970
21676
|
" ",
|
|
21971
21677
|
description
|
|
21972
21678
|
]
|
|
@@ -24103,15 +23809,15 @@ const OtpPart = ({ setAuthProcess }) => {
|
|
|
24103
23809
|
const timer = setTimeout(() => setSecond(second - 1), 1e3);
|
|
24104
23810
|
return () => clearTimeout(timer);
|
|
24105
23811
|
}, [second]);
|
|
24106
|
-
return /* @__PURE__ */
|
|
24107
|
-
/* @__PURE__ */
|
|
23812
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { flex: 1, children: [
|
|
23813
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24108
23814
|
material.Typography,
|
|
24109
23815
|
{
|
|
24110
23816
|
sx: { textAlign: "center" },
|
|
24111
23817
|
children: `Mã OTP đã gửi đến ${formik.values.phone}. Mã có giá trị trong vòng ${second}s`
|
|
24112
23818
|
}
|
|
24113
23819
|
),
|
|
24114
|
-
/* @__PURE__ */
|
|
23820
|
+
/* @__PURE__ */ jsxRuntime.jsx(StackRow, { children: Array.from({ length: lengthOtp }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
24115
23821
|
material.Stack,
|
|
24116
23822
|
{
|
|
24117
23823
|
component: "input",
|
|
@@ -24134,7 +23840,7 @@ const OtpPart = ({ setAuthProcess }) => {
|
|
|
24134
23840
|
},
|
|
24135
23841
|
index
|
|
24136
23842
|
)) }),
|
|
24137
|
-
/* @__PURE__ */
|
|
23843
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24138
23844
|
IconContentElement,
|
|
24139
23845
|
{
|
|
24140
23846
|
icon: "send",
|
|
@@ -24200,7 +23906,7 @@ const AuthPage = ({}) => {
|
|
|
24200
23906
|
}
|
|
24201
23907
|
};
|
|
24202
23908
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
24203
|
-
return /* @__PURE__ */
|
|
23909
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24204
23910
|
material.Stack,
|
|
24205
23911
|
{
|
|
24206
23912
|
sx: {
|
|
@@ -24211,7 +23917,7 @@ const AuthPage = ({}) => {
|
|
|
24211
23917
|
width: "100%",
|
|
24212
23918
|
height: "100%"
|
|
24213
23919
|
},
|
|
24214
|
-
children: /* @__PURE__ */
|
|
23920
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24215
23921
|
Formik,
|
|
24216
23922
|
{
|
|
24217
23923
|
initialValues: {
|
|
@@ -24226,7 +23932,7 @@ const AuthPage = ({}) => {
|
|
|
24226
23932
|
validateOnChange: false,
|
|
24227
23933
|
enableReinitialize: true,
|
|
24228
23934
|
children: (formik) => {
|
|
24229
|
-
return /* @__PURE__ */
|
|
23935
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Form, { noValidate: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
24230
23936
|
material.Stack,
|
|
24231
23937
|
{
|
|
24232
23938
|
sx: {
|
|
@@ -24240,9 +23946,9 @@ const AuthPage = ({}) => {
|
|
|
24240
23946
|
},
|
|
24241
23947
|
gap: 3,
|
|
24242
23948
|
children: [
|
|
24243
|
-
/* @__PURE__ */
|
|
24244
|
-
authProcess === AuthProcess.LOGIN && /* @__PURE__ */
|
|
24245
|
-
/* @__PURE__ */
|
|
23949
|
+
/* @__PURE__ */ jsxRuntime.jsx(LogoComponent, { url: "/images/logo/logo-sub-4.svg" }),
|
|
23950
|
+
authProcess === AuthProcess.LOGIN && /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
23951
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24246
23952
|
TextFieldElement,
|
|
24247
23953
|
{
|
|
24248
23954
|
iconLabel: "mail",
|
|
@@ -24258,7 +23964,7 @@ const AuthPage = ({}) => {
|
|
|
24258
23964
|
required: true
|
|
24259
23965
|
}
|
|
24260
23966
|
),
|
|
24261
|
-
/* @__PURE__ */
|
|
23967
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24262
23968
|
TextFieldElement,
|
|
24263
23969
|
{
|
|
24264
23970
|
iconLabel: "vpn_key",
|
|
@@ -24274,7 +23980,7 @@ const AuthPage = ({}) => {
|
|
|
24274
23980
|
"& fieldset": { borderColor: palette.primary.light }
|
|
24275
23981
|
},
|
|
24276
23982
|
InputProps: {
|
|
24277
|
-
endAdornment: /* @__PURE__ */
|
|
23983
|
+
endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24278
23984
|
IconElement,
|
|
24279
23985
|
{
|
|
24280
23986
|
icon: showPassword ? "visibility" : "visibility_off",
|
|
@@ -24286,7 +23992,7 @@ const AuthPage = ({}) => {
|
|
|
24286
23992
|
}
|
|
24287
23993
|
)
|
|
24288
23994
|
] }),
|
|
24289
|
-
authProcess === AuthProcess.FORGOT_PASSWORD && /* @__PURE__ */
|
|
23995
|
+
authProcess === AuthProcess.FORGOT_PASSWORD && /* @__PURE__ */ jsxRuntime.jsx(
|
|
24290
23996
|
TextFieldElement,
|
|
24291
23997
|
{
|
|
24292
23998
|
iconLabel: "mail",
|
|
@@ -24302,8 +24008,8 @@ const AuthPage = ({}) => {
|
|
|
24302
24008
|
required: true
|
|
24303
24009
|
}
|
|
24304
24010
|
),
|
|
24305
|
-
authProcess === AuthProcess.VERIFY_OTP && /* @__PURE__ */
|
|
24306
|
-
authProcess === AuthProcess.RESET_PASSWORD && /* @__PURE__ */
|
|
24011
|
+
authProcess === AuthProcess.VERIFY_OTP && /* @__PURE__ */ jsxRuntime.jsx(OtpPart, { setAuthProcess }),
|
|
24012
|
+
authProcess === AuthProcess.RESET_PASSWORD && /* @__PURE__ */ jsxRuntime.jsx(
|
|
24307
24013
|
TextFieldElement,
|
|
24308
24014
|
{
|
|
24309
24015
|
label: "Mật khẩu",
|
|
@@ -24318,7 +24024,7 @@ const AuthPage = ({}) => {
|
|
|
24318
24024
|
},
|
|
24319
24025
|
type: showPassword ? "text" : "password",
|
|
24320
24026
|
InputProps: {
|
|
24321
|
-
endAdornment: /* @__PURE__ */
|
|
24027
|
+
endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24322
24028
|
IconElement,
|
|
24323
24029
|
{
|
|
24324
24030
|
icon: showPassword ? "visibility" : "visibility_off",
|
|
@@ -24328,7 +24034,7 @@ const AuthPage = ({}) => {
|
|
|
24328
24034
|
}
|
|
24329
24035
|
}
|
|
24330
24036
|
),
|
|
24331
|
-
/* @__PURE__ */
|
|
24037
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24332
24038
|
IconContentElement,
|
|
24333
24039
|
{
|
|
24334
24040
|
icon: BUTTON_BACK_ICON_CONTENT[authProcess].backIcon,
|
|
@@ -24337,7 +24043,7 @@ const AuthPage = ({}) => {
|
|
|
24337
24043
|
onClick: () => authProcess === AuthProcess.LOGIN ? setAuthProcess(AuthProcess.FORGOT_PASSWORD) : setAuthProcess(AuthProcess.LOGIN)
|
|
24338
24044
|
}
|
|
24339
24045
|
),
|
|
24340
|
-
/* @__PURE__ */
|
|
24046
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24341
24047
|
ButtonElement,
|
|
24342
24048
|
{
|
|
24343
24049
|
loading,
|
|
@@ -24356,17 +24062,17 @@ const AuthPage = ({}) => {
|
|
|
24356
24062
|
);
|
|
24357
24063
|
};
|
|
24358
24064
|
const DashboardPage = () => {
|
|
24359
|
-
return /* @__PURE__ */
|
|
24065
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Outlet, {});
|
|
24360
24066
|
};
|
|
24361
24067
|
const ErrorPage = ({}) => {
|
|
24362
24068
|
const dispatch = useAppDispatch();
|
|
24363
24069
|
const navigate = reactRouterDom.useNavigate();
|
|
24364
24070
|
const account = reactRedux.useSelector((state) => state.account);
|
|
24365
24071
|
const [loading, setLoading] = React.useState(false);
|
|
24366
|
-
return /* @__PURE__ */
|
|
24367
|
-
/* @__PURE__ */
|
|
24368
|
-
/* @__PURE__ */
|
|
24369
|
-
/* @__PURE__ */
|
|
24072
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
24073
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { children: [
|
|
24074
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { color: "primary", variant: "h1", fontSize: 90, children: "5" }),
|
|
24075
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24370
24076
|
material.Stack,
|
|
24371
24077
|
{
|
|
24372
24078
|
component: "img",
|
|
@@ -24377,7 +24083,7 @@ const ErrorPage = ({}) => {
|
|
|
24377
24083
|
loading: "lazy"
|
|
24378
24084
|
}
|
|
24379
24085
|
),
|
|
24380
|
-
/* @__PURE__ */
|
|
24086
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24381
24087
|
material.Stack,
|
|
24382
24088
|
{
|
|
24383
24089
|
component: "img",
|
|
@@ -24389,8 +24095,8 @@ const ErrorPage = ({}) => {
|
|
|
24389
24095
|
}
|
|
24390
24096
|
)
|
|
24391
24097
|
] }),
|
|
24392
|
-
/* @__PURE__ */
|
|
24393
|
-
/* @__PURE__ */
|
|
24098
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.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Ố!" }),
|
|
24099
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24394
24100
|
ButtonElement,
|
|
24395
24101
|
{
|
|
24396
24102
|
content: "Đăng nhập lại",
|
|
@@ -24416,10 +24122,10 @@ const ErrorPage = ({}) => {
|
|
|
24416
24122
|
};
|
|
24417
24123
|
const NotFoundPage = ({}) => {
|
|
24418
24124
|
const navigate = reactRouterDom.useNavigate();
|
|
24419
|
-
return /* @__PURE__ */
|
|
24420
|
-
/* @__PURE__ */
|
|
24421
|
-
/* @__PURE__ */
|
|
24422
|
-
/* @__PURE__ */
|
|
24125
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
24126
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { children: [
|
|
24127
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { color: "primary", variant: "h1", fontSize: 90, children: "4" }),
|
|
24128
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24423
24129
|
material.Stack,
|
|
24424
24130
|
{
|
|
24425
24131
|
component: "img",
|
|
@@ -24430,10 +24136,10 @@ const NotFoundPage = ({}) => {
|
|
|
24430
24136
|
loading: "lazy"
|
|
24431
24137
|
}
|
|
24432
24138
|
),
|
|
24433
|
-
/* @__PURE__ */
|
|
24139
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { color: "primary", variant: "h1", fontSize: 90, children: "4" })
|
|
24434
24140
|
] }),
|
|
24435
|
-
/* @__PURE__ */
|
|
24436
|
-
/* @__PURE__ */
|
|
24141
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.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!" }),
|
|
24142
|
+
/* @__PURE__ */ jsxRuntime.jsx(ButtonElement, { content: "Quay lại trang chủ", fullWidth: false, onClick: () => navigate(PAGE.AUTH.path) })
|
|
24437
24143
|
] });
|
|
24438
24144
|
};
|
|
24439
24145
|
const LayoutGroupContext = React.createContext({});
|
|
@@ -27933,7 +27639,7 @@ function createMotionComponent(Component2, { forwardMotionProps = false } = {},
|
|
|
27933
27639
|
MeasureLayout2 = layoutProjection.MeasureLayout;
|
|
27934
27640
|
context.visualElement = useVisualElement(Component2, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode);
|
|
27935
27641
|
}
|
|
27936
|
-
return
|
|
27642
|
+
return jsxRuntime.jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout2 && context.visualElement ? jsxRuntime.jsx(MeasureLayout2, { visualElement: context.visualElement, ...configAndProps }) : null, useRender(Component2, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps)] });
|
|
27937
27643
|
}
|
|
27938
27644
|
MotionDOMComponent.displayName = `motion.${typeof Component2 === "string" ? Component2 : `create(${Component2.displayName ?? Component2.name ?? ""})`}`;
|
|
27939
27645
|
const ForwardRefMotionComponent = React.forwardRef(MotionDOMComponent);
|
|
@@ -30052,7 +29758,7 @@ class MeasureLayoutWithContext extends React.Component {
|
|
|
30052
29758
|
function MeasureLayout(props) {
|
|
30053
29759
|
const [isPresent, safeToRemove] = usePresence();
|
|
30054
29760
|
const layoutGroup = React.useContext(LayoutGroupContext);
|
|
30055
|
-
return
|
|
29761
|
+
return jsxRuntime.jsx(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup: React.useContext(SwitchLayoutGroupContext), isPresent, safeToRemove });
|
|
30056
29762
|
}
|
|
30057
29763
|
const defaultScaleCorrectors = {
|
|
30058
29764
|
borderRadius: {
|
|
@@ -31709,9 +31415,9 @@ const MotionBox = ({
|
|
|
31709
31415
|
transition: { duration: 0.2 }
|
|
31710
31416
|
}
|
|
31711
31417
|
} : {};
|
|
31712
|
-
return /* @__PURE__ */
|
|
31418
|
+
return /* @__PURE__ */ jsxRuntime.jsx(motion.div, { ...motionProps, ...getAnimationProps(), ...hoverProps, onClick, style: { ...sx }, children });
|
|
31713
31419
|
};
|
|
31714
|
-
const IconRight = (props) => /* @__PURE__ */
|
|
31420
|
+
const IconRight = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31715
31421
|
"svg",
|
|
31716
31422
|
{
|
|
31717
31423
|
width: "20",
|
|
@@ -31720,7 +31426,7 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31720
31426
|
fill: "none",
|
|
31721
31427
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31722
31428
|
...props,
|
|
31723
|
-
children: /* @__PURE__ */
|
|
31429
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31724
31430
|
"path",
|
|
31725
31431
|
{
|
|
31726
31432
|
d: "M12 1L19 8M19 8L12 15M19 8L1 8",
|
|
@@ -31732,7 +31438,7 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31732
31438
|
)
|
|
31733
31439
|
}
|
|
31734
31440
|
);
|
|
31735
|
-
const IconLeft = (props) => /* @__PURE__ */
|
|
31441
|
+
const IconLeft = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31736
31442
|
"svg",
|
|
31737
31443
|
{
|
|
31738
31444
|
width: "20",
|
|
@@ -31741,7 +31447,7 @@ const IconLeft = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31741
31447
|
fill: "none",
|
|
31742
31448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31743
31449
|
...props,
|
|
31744
|
-
children: /* @__PURE__ */
|
|
31450
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31745
31451
|
"path",
|
|
31746
31452
|
{
|
|
31747
31453
|
d: "M8 15L1 8M1 8L8 1M1 8L19 8",
|
|
@@ -31779,8 +31485,8 @@ const AppGrid = ({
|
|
|
31779
31485
|
const start = page * pageSize;
|
|
31780
31486
|
const end = start + pageSize;
|
|
31781
31487
|
const visibleApps = totalPages > 1 ? apps.slice(start, end) : apps;
|
|
31782
|
-
return /* @__PURE__ */
|
|
31783
|
-
/* @__PURE__ */
|
|
31488
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
|
|
31489
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31784
31490
|
material.Box,
|
|
31785
31491
|
{
|
|
31786
31492
|
sx: {
|
|
@@ -31790,7 +31496,7 @@ const AppGrid = ({
|
|
|
31790
31496
|
},
|
|
31791
31497
|
children: visibleApps.map((app2, index) => {
|
|
31792
31498
|
const isSelected = selectedAppId === app2.key;
|
|
31793
|
-
return /* @__PURE__ */
|
|
31499
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31794
31500
|
MotionBox,
|
|
31795
31501
|
{
|
|
31796
31502
|
preset: "staggerItem",
|
|
@@ -31805,7 +31511,7 @@ const AppGrid = ({
|
|
|
31805
31511
|
flexDirection: "column"
|
|
31806
31512
|
},
|
|
31807
31513
|
children: [
|
|
31808
|
-
/* @__PURE__ */
|
|
31514
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31809
31515
|
material.Box,
|
|
31810
31516
|
{
|
|
31811
31517
|
sx: {
|
|
@@ -31819,7 +31525,7 @@ const AppGrid = ({
|
|
|
31819
31525
|
background: getAppColor(app2.category),
|
|
31820
31526
|
boxShadow: isSelected ? `0 0 0 1px ${theme.palette.primary.main}, ${iconShadow}` : iconShadow
|
|
31821
31527
|
},
|
|
31822
|
-
children: app2.icon.startsWith("/") && /* @__PURE__ */
|
|
31528
|
+
children: app2.icon.startsWith("/") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31823
31529
|
ImageElement,
|
|
31824
31530
|
{
|
|
31825
31531
|
sx: { width: iconSize * 0.56, height: iconSize * 0.56 },
|
|
@@ -31829,7 +31535,7 @@ const AppGrid = ({
|
|
|
31829
31535
|
)
|
|
31830
31536
|
}
|
|
31831
31537
|
),
|
|
31832
|
-
/* @__PURE__ */
|
|
31538
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31833
31539
|
material.Typography,
|
|
31834
31540
|
{
|
|
31835
31541
|
variant: titleVariant,
|
|
@@ -31837,7 +31543,7 @@ const AppGrid = ({
|
|
|
31837
31543
|
children: app2.title
|
|
31838
31544
|
}
|
|
31839
31545
|
),
|
|
31840
|
-
/* @__PURE__ */
|
|
31546
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31841
31547
|
material.Typography,
|
|
31842
31548
|
{
|
|
31843
31549
|
variant: captionVariant,
|
|
@@ -31852,8 +31558,8 @@ const AppGrid = ({
|
|
|
31852
31558
|
})
|
|
31853
31559
|
}
|
|
31854
31560
|
),
|
|
31855
|
-
showPagination && totalPages > 1 && /* @__PURE__ */
|
|
31856
|
-
page === totalPages - 1 && /* @__PURE__ */
|
|
31561
|
+
showPagination && totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
31562
|
+
page === totalPages - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31857
31563
|
material.IconButton,
|
|
31858
31564
|
{
|
|
31859
31565
|
size: "small",
|
|
@@ -31866,10 +31572,10 @@ const AppGrid = ({
|
|
|
31866
31572
|
transform: "translateY(-120%)",
|
|
31867
31573
|
color: theme.palette.divider
|
|
31868
31574
|
},
|
|
31869
|
-
children: /* @__PURE__ */
|
|
31575
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconLeft, {})
|
|
31870
31576
|
}
|
|
31871
31577
|
),
|
|
31872
|
-
page !== totalPages - 1 && /* @__PURE__ */
|
|
31578
|
+
page !== totalPages - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31873
31579
|
material.IconButton,
|
|
31874
31580
|
{
|
|
31875
31581
|
size: "small",
|
|
@@ -31882,10 +31588,10 @@ const AppGrid = ({
|
|
|
31882
31588
|
transform: "translateY(-120%)",
|
|
31883
31589
|
color: theme.palette.divider
|
|
31884
31590
|
},
|
|
31885
|
-
children: /* @__PURE__ */
|
|
31591
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconRight, {})
|
|
31886
31592
|
}
|
|
31887
31593
|
),
|
|
31888
|
-
/* @__PURE__ */
|
|
31594
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31889
31595
|
material.Box,
|
|
31890
31596
|
{
|
|
31891
31597
|
sx: {
|
|
@@ -31894,7 +31600,7 @@ const AppGrid = ({
|
|
|
31894
31600
|
alignItems: "center",
|
|
31895
31601
|
justifyContent: "center"
|
|
31896
31602
|
},
|
|
31897
|
-
children: /* @__PURE__ */
|
|
31603
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31898
31604
|
material.Box,
|
|
31899
31605
|
{
|
|
31900
31606
|
sx: {
|
|
@@ -31906,7 +31612,7 @@ const AppGrid = ({
|
|
|
31906
31612
|
borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
|
|
31907
31613
|
backgroundColor: "rgba(255,255,255,0.15)"
|
|
31908
31614
|
},
|
|
31909
|
-
children: Array.from({ length: totalPages }).map((_, i) => /* @__PURE__ */
|
|
31615
|
+
children: Array.from({ length: totalPages }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31910
31616
|
material.Box,
|
|
31911
31617
|
{
|
|
31912
31618
|
onClick: () => setPage(i),
|
|
@@ -31935,7 +31641,7 @@ const SystemMonitorScreen = () => {
|
|
|
31935
31641
|
const [tab, setTab] = React.useState(AppCategory.ALL);
|
|
31936
31642
|
const listApp = useApps(tab);
|
|
31937
31643
|
const currentApp = useActiveSidebar();
|
|
31938
|
-
return /* @__PURE__ */
|
|
31644
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31939
31645
|
MotionBox,
|
|
31940
31646
|
{
|
|
31941
31647
|
preset: "fadeInUp",
|
|
@@ -31946,7 +31652,7 @@ const SystemMonitorScreen = () => {
|
|
|
31946
31652
|
position: "relative",
|
|
31947
31653
|
top: 150
|
|
31948
31654
|
},
|
|
31949
|
-
children: /* @__PURE__ */
|
|
31655
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31950
31656
|
material.Box,
|
|
31951
31657
|
{
|
|
31952
31658
|
sx: {
|
|
@@ -31957,7 +31663,7 @@ const SystemMonitorScreen = () => {
|
|
|
31957
31663
|
justifyContent: "flex-start"
|
|
31958
31664
|
},
|
|
31959
31665
|
children: [
|
|
31960
|
-
/* @__PURE__ */
|
|
31666
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31961
31667
|
material.Box,
|
|
31962
31668
|
{
|
|
31963
31669
|
sx: {
|
|
@@ -31971,37 +31677,45 @@ const SystemMonitorScreen = () => {
|
|
|
31971
31677
|
{ key: AppCategory.HRM, label: "HRM" },
|
|
31972
31678
|
{ key: AppCategory.WORKFLOW, label: "Workflow Engine" },
|
|
31973
31679
|
{ key: AppCategory.PLATFORM_INFO, label: "Platform & Info" }
|
|
31974
|
-
].map((t) => /* @__PURE__ */
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
{
|
|
31978
|
-
|
|
31979
|
-
|
|
31980
|
-
|
|
31981
|
-
|
|
31982
|
-
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
|
|
31998
|
-
|
|
31999
|
-
|
|
32000
|
-
|
|
32001
|
-
|
|
31680
|
+
].map((t) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31681
|
+
MotionBox,
|
|
31682
|
+
{
|
|
31683
|
+
sx: { position: "relative" },
|
|
31684
|
+
preset: "tabUnderline",
|
|
31685
|
+
children: [
|
|
31686
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31687
|
+
material.Typography,
|
|
31688
|
+
{
|
|
31689
|
+
onClick: () => setTab(t.key),
|
|
31690
|
+
sx: {
|
|
31691
|
+
cursor: "pointer",
|
|
31692
|
+
color: tab === t.key ? theme.palette.common.white : theme.palette.grey[300]
|
|
31693
|
+
},
|
|
31694
|
+
children: t.label
|
|
31695
|
+
}
|
|
31696
|
+
),
|
|
31697
|
+
tab === t.key && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31698
|
+
MotionBox,
|
|
31699
|
+
{
|
|
31700
|
+
preset: "tabUnderline",
|
|
31701
|
+
sx: {
|
|
31702
|
+
position: "absolute",
|
|
31703
|
+
left: 0,
|
|
31704
|
+
right: 0,
|
|
31705
|
+
height: 2,
|
|
31706
|
+
backgroundColor: theme.palette.common.white,
|
|
31707
|
+
transformOrigin: "left"
|
|
31708
|
+
},
|
|
31709
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", {})
|
|
31710
|
+
}
|
|
31711
|
+
)
|
|
31712
|
+
]
|
|
31713
|
+
},
|
|
31714
|
+
t.key
|
|
31715
|
+
))
|
|
32002
31716
|
}
|
|
32003
31717
|
),
|
|
32004
|
-
/* @__PURE__ */
|
|
31718
|
+
/* @__PURE__ */ jsxRuntime.jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32005
31719
|
AppGrid,
|
|
32006
31720
|
{
|
|
32007
31721
|
apps: listApp,
|
|
@@ -32011,7 +31725,9 @@ const SystemMonitorScreen = () => {
|
|
|
32011
31725
|
gap: PADDING_GAP_TAB,
|
|
32012
31726
|
selectedAppId: currentApp?.key,
|
|
32013
31727
|
onClickItem: async (app2) => {
|
|
32014
|
-
await dispatch(
|
|
31728
|
+
await dispatch(
|
|
31729
|
+
ACTION_ACCOUNT.updateCurrentAccess(app2.key)
|
|
31730
|
+
).unwrap();
|
|
32015
31731
|
}
|
|
32016
31732
|
}
|
|
32017
31733
|
) }, tab)
|
|
@@ -32025,17 +31741,17 @@ const renderRoutes = (routes2, account) => routes2.map((route) => {
|
|
|
32025
31741
|
const { path, layout: layout2, element, type, allowUserTypes = [], children } = route;
|
|
32026
31742
|
const Layout = layout2 || React.Fragment;
|
|
32027
31743
|
let Element2 = element;
|
|
32028
|
-
if (path === PAGE.AUTH.path && account.isLogin) Element2 = () => /* @__PURE__ */
|
|
31744
|
+
if (path === PAGE.AUTH.path && account.isLogin) Element2 = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: PAGE.DASHBOARD.path });
|
|
32029
31745
|
if (type === RouteType.PROTECTED) {
|
|
32030
|
-
if (!account.isLogin) Element2 = () => /* @__PURE__ */
|
|
31746
|
+
if (!account.isLogin) Element2 = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: PAGE.AUTH.path });
|
|
32031
31747
|
else if (allowUserTypes.length && !allowUserTypes.includes(account.user.type) && account.user.type !== UserType.ROOT)
|
|
32032
|
-
Element2 = () => /* @__PURE__ */
|
|
31748
|
+
Element2 = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: PAGE.ERROR.path });
|
|
32033
31749
|
}
|
|
32034
|
-
return /* @__PURE__ */
|
|
31750
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32035
31751
|
reactRouterDom.Route,
|
|
32036
31752
|
{
|
|
32037
31753
|
path,
|
|
32038
|
-
element: /* @__PURE__ */
|
|
31754
|
+
element: /* @__PURE__ */ jsxRuntime.jsx(Layout, { children: /* @__PURE__ */ jsxRuntime.jsx(Element2, {}) }),
|
|
32039
31755
|
children: children && renderRoutes(children, account)
|
|
32040
31756
|
},
|
|
32041
31757
|
path
|
|
@@ -32062,8 +31778,8 @@ const TypographyContentCaption = ({
|
|
|
32062
31778
|
sxContent,
|
|
32063
31779
|
sxCaption
|
|
32064
31780
|
}) => {
|
|
32065
|
-
return /* @__PURE__ */
|
|
32066
|
-
/* @__PURE__ */
|
|
31781
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { gap: 0, sx: { ...sx }, children: [
|
|
31782
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32067
31783
|
material.Typography,
|
|
32068
31784
|
{
|
|
32069
31785
|
sx: {
|
|
@@ -32073,7 +31789,7 @@ const TypographyContentCaption = ({
|
|
|
32073
31789
|
children: content || "#"
|
|
32074
31790
|
}
|
|
32075
31791
|
),
|
|
32076
|
-
caption && /* @__PURE__ */
|
|
31792
|
+
caption && /* @__PURE__ */ jsxRuntime.jsx(
|
|
32077
31793
|
material.Typography,
|
|
32078
31794
|
{
|
|
32079
31795
|
sx: {
|