sevago-sso-fe 1.0.8 → 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 +174 -490
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +177 -493
- 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,10 @@ 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(
|
|
19488
19172
|
material.Stack,
|
|
19489
19173
|
{
|
|
19490
19174
|
sx: {
|
|
@@ -19493,7 +19177,7 @@ const DefaultLayout = ({ children }) => {
|
|
|
19493
19177
|
width: "100%",
|
|
19494
19178
|
overflowY: "auto"
|
|
19495
19179
|
},
|
|
19496
|
-
children: /* @__PURE__ */
|
|
19180
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19497
19181
|
material.Stack,
|
|
19498
19182
|
{
|
|
19499
19183
|
sx: {
|
|
@@ -21836,13 +21520,13 @@ const ButtonElement = ({
|
|
|
21836
21520
|
...rest
|
|
21837
21521
|
}) => {
|
|
21838
21522
|
const { palette } = material.useTheme();
|
|
21839
|
-
return /* @__PURE__ */
|
|
21523
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21840
21524
|
material.Button,
|
|
21841
21525
|
{
|
|
21842
21526
|
...rest,
|
|
21843
21527
|
variant,
|
|
21844
|
-
startIcon: !loading && startIcon ? typeof startIcon === "string" ? /* @__PURE__ */
|
|
21845
|
-
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,
|
|
21846
21530
|
sx: {
|
|
21847
21531
|
minWidth: 100,
|
|
21848
21532
|
textTransform: "none",
|
|
@@ -21850,14 +21534,14 @@ const ButtonElement = ({
|
|
|
21850
21534
|
...sx
|
|
21851
21535
|
},
|
|
21852
21536
|
disabled,
|
|
21853
|
-
children: loading ? /* @__PURE__ */
|
|
21537
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
21854
21538
|
LoadingComponent,
|
|
21855
21539
|
{
|
|
21856
21540
|
color: palette.primary.contrastText,
|
|
21857
21541
|
size: "small",
|
|
21858
21542
|
sx: { minHeight: "24.5px" }
|
|
21859
21543
|
}
|
|
21860
|
-
) : /* @__PURE__ */
|
|
21544
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
21861
21545
|
material.Typography,
|
|
21862
21546
|
{
|
|
21863
21547
|
sx: { ...TYPOGRAPHY_STYLES.textSm.regular, whiteSpace: "nowrap" },
|
|
@@ -21875,7 +21559,7 @@ const TextFieldLabelElement = ({
|
|
|
21875
21559
|
}) => {
|
|
21876
21560
|
const { palette } = material.useTheme();
|
|
21877
21561
|
if (!label) return null;
|
|
21878
|
-
return /* @__PURE__ */
|
|
21562
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21879
21563
|
material.Typography,
|
|
21880
21564
|
{
|
|
21881
21565
|
variant: "subtitle1",
|
|
@@ -21886,15 +21570,15 @@ const TextFieldLabelElement = ({
|
|
|
21886
21570
|
gap: PADDING_GAP_ITEM_SMALL
|
|
21887
21571
|
},
|
|
21888
21572
|
children: [
|
|
21889
|
-
iconLabel && /* @__PURE__ */
|
|
21573
|
+
iconLabel && /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon: iconLabel, sx: { fontSize: STYLE.TEXT_FIELD.FONT_SIZE_LABEL } }),
|
|
21890
21574
|
label,
|
|
21891
|
-
required && /* @__PURE__ */
|
|
21575
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "red" }, children: "*" })
|
|
21892
21576
|
]
|
|
21893
21577
|
}
|
|
21894
21578
|
);
|
|
21895
21579
|
};
|
|
21896
21580
|
const IconButtonElement = ({ icon, onClick, sx, size = 16 }) => {
|
|
21897
|
-
return /* @__PURE__ */
|
|
21581
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21898
21582
|
material.IconButton,
|
|
21899
21583
|
{
|
|
21900
21584
|
onClick,
|
|
@@ -21910,7 +21594,7 @@ const IconButtonElement = ({ icon, onClick, sx, size = 16 }) => {
|
|
|
21910
21594
|
},
|
|
21911
21595
|
...sx
|
|
21912
21596
|
},
|
|
21913
|
-
children: /* @__PURE__ */
|
|
21597
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconElement, { icon, sx: { fontSize: size } })
|
|
21914
21598
|
}
|
|
21915
21599
|
);
|
|
21916
21600
|
};
|
|
@@ -21939,8 +21623,8 @@ const TextFieldElement = ({
|
|
|
21939
21623
|
onChange({ target: { name: name2, value: event.target.value || null } });
|
|
21940
21624
|
};
|
|
21941
21625
|
const { palette, typography } = material.useTheme();
|
|
21942
|
-
return /* @__PURE__ */
|
|
21943
|
-
/* @__PURE__ */
|
|
21626
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative", width: "100%" }, children: [
|
|
21627
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21944
21628
|
TextFieldLabelElement,
|
|
21945
21629
|
{
|
|
21946
21630
|
label,
|
|
@@ -21949,7 +21633,7 @@ const TextFieldElement = ({
|
|
|
21949
21633
|
required: rest.required
|
|
21950
21634
|
}
|
|
21951
21635
|
),
|
|
21952
|
-
/* @__PURE__ */
|
|
21636
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21953
21637
|
material.TextField,
|
|
21954
21638
|
{
|
|
21955
21639
|
error: Boolean(error),
|
|
@@ -21960,7 +21644,7 @@ const TextFieldElement = ({
|
|
|
21960
21644
|
name: name2,
|
|
21961
21645
|
InputProps: {
|
|
21962
21646
|
...InputProps,
|
|
21963
|
-
endAdornment: showResetButton && value2 && onReset ? /* @__PURE__ */
|
|
21647
|
+
endAdornment: showResetButton && value2 && onReset ? /* @__PURE__ */ jsxRuntime.jsx(IconButtonElement, { icon: "close", onClick: onReset }) : InputProps?.endAdornment,
|
|
21964
21648
|
sx: {
|
|
21965
21649
|
...InputProps?.sx
|
|
21966
21650
|
}
|
|
@@ -21972,7 +21656,7 @@ const TextFieldElement = ({
|
|
|
21972
21656
|
...rest
|
|
21973
21657
|
}
|
|
21974
21658
|
),
|
|
21975
|
-
description && /* @__PURE__ */
|
|
21659
|
+
description && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21976
21660
|
material.Typography,
|
|
21977
21661
|
{
|
|
21978
21662
|
variant: "body2",
|
|
@@ -21988,7 +21672,7 @@ const TextFieldElement = ({
|
|
|
21988
21672
|
gap: GAP_ICON_CONTENT_BY_SIZE.small
|
|
21989
21673
|
},
|
|
21990
21674
|
children: [
|
|
21991
|
-
/* @__PURE__ */
|
|
21675
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { fontWeight: typography.h2.fontWeight }, children: "Ghi chú:" }),
|
|
21992
21676
|
" ",
|
|
21993
21677
|
description
|
|
21994
21678
|
]
|
|
@@ -24125,15 +23809,15 @@ const OtpPart = ({ setAuthProcess }) => {
|
|
|
24125
23809
|
const timer = setTimeout(() => setSecond(second - 1), 1e3);
|
|
24126
23810
|
return () => clearTimeout(timer);
|
|
24127
23811
|
}, [second]);
|
|
24128
|
-
return /* @__PURE__ */
|
|
24129
|
-
/* @__PURE__ */
|
|
23812
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { flex: 1, children: [
|
|
23813
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24130
23814
|
material.Typography,
|
|
24131
23815
|
{
|
|
24132
23816
|
sx: { textAlign: "center" },
|
|
24133
23817
|
children: `Mã OTP đã gửi đến ${formik.values.phone}. Mã có giá trị trong vòng ${second}s`
|
|
24134
23818
|
}
|
|
24135
23819
|
),
|
|
24136
|
-
/* @__PURE__ */
|
|
23820
|
+
/* @__PURE__ */ jsxRuntime.jsx(StackRow, { children: Array.from({ length: lengthOtp }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
24137
23821
|
material.Stack,
|
|
24138
23822
|
{
|
|
24139
23823
|
component: "input",
|
|
@@ -24156,7 +23840,7 @@ const OtpPart = ({ setAuthProcess }) => {
|
|
|
24156
23840
|
},
|
|
24157
23841
|
index
|
|
24158
23842
|
)) }),
|
|
24159
|
-
/* @__PURE__ */
|
|
23843
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24160
23844
|
IconContentElement,
|
|
24161
23845
|
{
|
|
24162
23846
|
icon: "send",
|
|
@@ -24222,7 +23906,7 @@ const AuthPage = ({}) => {
|
|
|
24222
23906
|
}
|
|
24223
23907
|
};
|
|
24224
23908
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
24225
|
-
return /* @__PURE__ */
|
|
23909
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24226
23910
|
material.Stack,
|
|
24227
23911
|
{
|
|
24228
23912
|
sx: {
|
|
@@ -24233,7 +23917,7 @@ const AuthPage = ({}) => {
|
|
|
24233
23917
|
width: "100%",
|
|
24234
23918
|
height: "100%"
|
|
24235
23919
|
},
|
|
24236
|
-
children: /* @__PURE__ */
|
|
23920
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24237
23921
|
Formik,
|
|
24238
23922
|
{
|
|
24239
23923
|
initialValues: {
|
|
@@ -24248,7 +23932,7 @@ const AuthPage = ({}) => {
|
|
|
24248
23932
|
validateOnChange: false,
|
|
24249
23933
|
enableReinitialize: true,
|
|
24250
23934
|
children: (formik) => {
|
|
24251
|
-
return /* @__PURE__ */
|
|
23935
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Form, { noValidate: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
24252
23936
|
material.Stack,
|
|
24253
23937
|
{
|
|
24254
23938
|
sx: {
|
|
@@ -24262,9 +23946,9 @@ const AuthPage = ({}) => {
|
|
|
24262
23946
|
},
|
|
24263
23947
|
gap: 3,
|
|
24264
23948
|
children: [
|
|
24265
|
-
/* @__PURE__ */
|
|
24266
|
-
authProcess === AuthProcess.LOGIN && /* @__PURE__ */
|
|
24267
|
-
/* @__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(
|
|
24268
23952
|
TextFieldElement,
|
|
24269
23953
|
{
|
|
24270
23954
|
iconLabel: "mail",
|
|
@@ -24280,7 +23964,7 @@ const AuthPage = ({}) => {
|
|
|
24280
23964
|
required: true
|
|
24281
23965
|
}
|
|
24282
23966
|
),
|
|
24283
|
-
/* @__PURE__ */
|
|
23967
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24284
23968
|
TextFieldElement,
|
|
24285
23969
|
{
|
|
24286
23970
|
iconLabel: "vpn_key",
|
|
@@ -24296,7 +23980,7 @@ const AuthPage = ({}) => {
|
|
|
24296
23980
|
"& fieldset": { borderColor: palette.primary.light }
|
|
24297
23981
|
},
|
|
24298
23982
|
InputProps: {
|
|
24299
|
-
endAdornment: /* @__PURE__ */
|
|
23983
|
+
endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24300
23984
|
IconElement,
|
|
24301
23985
|
{
|
|
24302
23986
|
icon: showPassword ? "visibility" : "visibility_off",
|
|
@@ -24308,7 +23992,7 @@ const AuthPage = ({}) => {
|
|
|
24308
23992
|
}
|
|
24309
23993
|
)
|
|
24310
23994
|
] }),
|
|
24311
|
-
authProcess === AuthProcess.FORGOT_PASSWORD && /* @__PURE__ */
|
|
23995
|
+
authProcess === AuthProcess.FORGOT_PASSWORD && /* @__PURE__ */ jsxRuntime.jsx(
|
|
24312
23996
|
TextFieldElement,
|
|
24313
23997
|
{
|
|
24314
23998
|
iconLabel: "mail",
|
|
@@ -24324,8 +24008,8 @@ const AuthPage = ({}) => {
|
|
|
24324
24008
|
required: true
|
|
24325
24009
|
}
|
|
24326
24010
|
),
|
|
24327
|
-
authProcess === AuthProcess.VERIFY_OTP && /* @__PURE__ */
|
|
24328
|
-
authProcess === AuthProcess.RESET_PASSWORD && /* @__PURE__ */
|
|
24011
|
+
authProcess === AuthProcess.VERIFY_OTP && /* @__PURE__ */ jsxRuntime.jsx(OtpPart, { setAuthProcess }),
|
|
24012
|
+
authProcess === AuthProcess.RESET_PASSWORD && /* @__PURE__ */ jsxRuntime.jsx(
|
|
24329
24013
|
TextFieldElement,
|
|
24330
24014
|
{
|
|
24331
24015
|
label: "Mật khẩu",
|
|
@@ -24340,7 +24024,7 @@ const AuthPage = ({}) => {
|
|
|
24340
24024
|
},
|
|
24341
24025
|
type: showPassword ? "text" : "password",
|
|
24342
24026
|
InputProps: {
|
|
24343
|
-
endAdornment: /* @__PURE__ */
|
|
24027
|
+
endAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24344
24028
|
IconElement,
|
|
24345
24029
|
{
|
|
24346
24030
|
icon: showPassword ? "visibility" : "visibility_off",
|
|
@@ -24350,7 +24034,7 @@ const AuthPage = ({}) => {
|
|
|
24350
24034
|
}
|
|
24351
24035
|
}
|
|
24352
24036
|
),
|
|
24353
|
-
/* @__PURE__ */
|
|
24037
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24354
24038
|
IconContentElement,
|
|
24355
24039
|
{
|
|
24356
24040
|
icon: BUTTON_BACK_ICON_CONTENT[authProcess].backIcon,
|
|
@@ -24359,7 +24043,7 @@ const AuthPage = ({}) => {
|
|
|
24359
24043
|
onClick: () => authProcess === AuthProcess.LOGIN ? setAuthProcess(AuthProcess.FORGOT_PASSWORD) : setAuthProcess(AuthProcess.LOGIN)
|
|
24360
24044
|
}
|
|
24361
24045
|
),
|
|
24362
|
-
/* @__PURE__ */
|
|
24046
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24363
24047
|
ButtonElement,
|
|
24364
24048
|
{
|
|
24365
24049
|
loading,
|
|
@@ -24378,17 +24062,17 @@ const AuthPage = ({}) => {
|
|
|
24378
24062
|
);
|
|
24379
24063
|
};
|
|
24380
24064
|
const DashboardPage = () => {
|
|
24381
|
-
return /* @__PURE__ */
|
|
24065
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Outlet, {});
|
|
24382
24066
|
};
|
|
24383
24067
|
const ErrorPage = ({}) => {
|
|
24384
24068
|
const dispatch = useAppDispatch();
|
|
24385
24069
|
const navigate = reactRouterDom.useNavigate();
|
|
24386
24070
|
const account = reactRedux.useSelector((state) => state.account);
|
|
24387
24071
|
const [loading, setLoading] = React.useState(false);
|
|
24388
|
-
return /* @__PURE__ */
|
|
24389
|
-
/* @__PURE__ */
|
|
24390
|
-
/* @__PURE__ */
|
|
24391
|
-
/* @__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(
|
|
24392
24076
|
material.Stack,
|
|
24393
24077
|
{
|
|
24394
24078
|
component: "img",
|
|
@@ -24399,7 +24083,7 @@ const ErrorPage = ({}) => {
|
|
|
24399
24083
|
loading: "lazy"
|
|
24400
24084
|
}
|
|
24401
24085
|
),
|
|
24402
|
-
/* @__PURE__ */
|
|
24086
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24403
24087
|
material.Stack,
|
|
24404
24088
|
{
|
|
24405
24089
|
component: "img",
|
|
@@ -24411,8 +24095,8 @@ const ErrorPage = ({}) => {
|
|
|
24411
24095
|
}
|
|
24412
24096
|
)
|
|
24413
24097
|
] }),
|
|
24414
|
-
/* @__PURE__ */
|
|
24415
|
-
/* @__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(
|
|
24416
24100
|
ButtonElement,
|
|
24417
24101
|
{
|
|
24418
24102
|
content: "Đăng nhập lại",
|
|
@@ -24438,10 +24122,10 @@ const ErrorPage = ({}) => {
|
|
|
24438
24122
|
};
|
|
24439
24123
|
const NotFoundPage = ({}) => {
|
|
24440
24124
|
const navigate = reactRouterDom.useNavigate();
|
|
24441
|
-
return /* @__PURE__ */
|
|
24442
|
-
/* @__PURE__ */
|
|
24443
|
-
/* @__PURE__ */
|
|
24444
|
-
/* @__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(
|
|
24445
24129
|
material.Stack,
|
|
24446
24130
|
{
|
|
24447
24131
|
component: "img",
|
|
@@ -24452,10 +24136,10 @@ const NotFoundPage = ({}) => {
|
|
|
24452
24136
|
loading: "lazy"
|
|
24453
24137
|
}
|
|
24454
24138
|
),
|
|
24455
|
-
/* @__PURE__ */
|
|
24139
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { color: "primary", variant: "h1", fontSize: 90, children: "4" })
|
|
24456
24140
|
] }),
|
|
24457
|
-
/* @__PURE__ */
|
|
24458
|
-
/* @__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) })
|
|
24459
24143
|
] });
|
|
24460
24144
|
};
|
|
24461
24145
|
const LayoutGroupContext = React.createContext({});
|
|
@@ -27955,7 +27639,7 @@ function createMotionComponent(Component2, { forwardMotionProps = false } = {},
|
|
|
27955
27639
|
MeasureLayout2 = layoutProjection.MeasureLayout;
|
|
27956
27640
|
context.visualElement = useVisualElement(Component2, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode);
|
|
27957
27641
|
}
|
|
27958
|
-
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)] });
|
|
27959
27643
|
}
|
|
27960
27644
|
MotionDOMComponent.displayName = `motion.${typeof Component2 === "string" ? Component2 : `create(${Component2.displayName ?? Component2.name ?? ""})`}`;
|
|
27961
27645
|
const ForwardRefMotionComponent = React.forwardRef(MotionDOMComponent);
|
|
@@ -30074,7 +29758,7 @@ class MeasureLayoutWithContext extends React.Component {
|
|
|
30074
29758
|
function MeasureLayout(props) {
|
|
30075
29759
|
const [isPresent, safeToRemove] = usePresence();
|
|
30076
29760
|
const layoutGroup = React.useContext(LayoutGroupContext);
|
|
30077
|
-
return
|
|
29761
|
+
return jsxRuntime.jsx(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup: React.useContext(SwitchLayoutGroupContext), isPresent, safeToRemove });
|
|
30078
29762
|
}
|
|
30079
29763
|
const defaultScaleCorrectors = {
|
|
30080
29764
|
borderRadius: {
|
|
@@ -31731,9 +31415,9 @@ const MotionBox = ({
|
|
|
31731
31415
|
transition: { duration: 0.2 }
|
|
31732
31416
|
}
|
|
31733
31417
|
} : {};
|
|
31734
|
-
return /* @__PURE__ */
|
|
31418
|
+
return /* @__PURE__ */ jsxRuntime.jsx(motion.div, { ...motionProps, ...getAnimationProps(), ...hoverProps, onClick, style: { ...sx }, children });
|
|
31735
31419
|
};
|
|
31736
|
-
const IconRight = (props) => /* @__PURE__ */
|
|
31420
|
+
const IconRight = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31737
31421
|
"svg",
|
|
31738
31422
|
{
|
|
31739
31423
|
width: "20",
|
|
@@ -31742,7 +31426,7 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31742
31426
|
fill: "none",
|
|
31743
31427
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31744
31428
|
...props,
|
|
31745
|
-
children: /* @__PURE__ */
|
|
31429
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31746
31430
|
"path",
|
|
31747
31431
|
{
|
|
31748
31432
|
d: "M12 1L19 8M19 8L12 15M19 8L1 8",
|
|
@@ -31754,7 +31438,7 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31754
31438
|
)
|
|
31755
31439
|
}
|
|
31756
31440
|
);
|
|
31757
|
-
const IconLeft = (props) => /* @__PURE__ */
|
|
31441
|
+
const IconLeft = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31758
31442
|
"svg",
|
|
31759
31443
|
{
|
|
31760
31444
|
width: "20",
|
|
@@ -31763,7 +31447,7 @@ const IconLeft = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
31763
31447
|
fill: "none",
|
|
31764
31448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31765
31449
|
...props,
|
|
31766
|
-
children: /* @__PURE__ */
|
|
31450
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31767
31451
|
"path",
|
|
31768
31452
|
{
|
|
31769
31453
|
d: "M8 15L1 8M1 8L8 1M1 8L19 8",
|
|
@@ -31801,8 +31485,8 @@ const AppGrid = ({
|
|
|
31801
31485
|
const start = page * pageSize;
|
|
31802
31486
|
const end = start + pageSize;
|
|
31803
31487
|
const visibleApps = totalPages > 1 ? apps.slice(start, end) : apps;
|
|
31804
|
-
return /* @__PURE__ */
|
|
31805
|
-
/* @__PURE__ */
|
|
31488
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
|
|
31489
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31806
31490
|
material.Box,
|
|
31807
31491
|
{
|
|
31808
31492
|
sx: {
|
|
@@ -31812,7 +31496,7 @@ const AppGrid = ({
|
|
|
31812
31496
|
},
|
|
31813
31497
|
children: visibleApps.map((app2, index) => {
|
|
31814
31498
|
const isSelected = selectedAppId === app2.key;
|
|
31815
|
-
return /* @__PURE__ */
|
|
31499
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31816
31500
|
MotionBox,
|
|
31817
31501
|
{
|
|
31818
31502
|
preset: "staggerItem",
|
|
@@ -31827,7 +31511,7 @@ const AppGrid = ({
|
|
|
31827
31511
|
flexDirection: "column"
|
|
31828
31512
|
},
|
|
31829
31513
|
children: [
|
|
31830
|
-
/* @__PURE__ */
|
|
31514
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31831
31515
|
material.Box,
|
|
31832
31516
|
{
|
|
31833
31517
|
sx: {
|
|
@@ -31841,7 +31525,7 @@ const AppGrid = ({
|
|
|
31841
31525
|
background: getAppColor(app2.category),
|
|
31842
31526
|
boxShadow: isSelected ? `0 0 0 1px ${theme.palette.primary.main}, ${iconShadow}` : iconShadow
|
|
31843
31527
|
},
|
|
31844
|
-
children: app2.icon.startsWith("/") && /* @__PURE__ */
|
|
31528
|
+
children: app2.icon.startsWith("/") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31845
31529
|
ImageElement,
|
|
31846
31530
|
{
|
|
31847
31531
|
sx: { width: iconSize * 0.56, height: iconSize * 0.56 },
|
|
@@ -31851,7 +31535,7 @@ const AppGrid = ({
|
|
|
31851
31535
|
)
|
|
31852
31536
|
}
|
|
31853
31537
|
),
|
|
31854
|
-
/* @__PURE__ */
|
|
31538
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31855
31539
|
material.Typography,
|
|
31856
31540
|
{
|
|
31857
31541
|
variant: titleVariant,
|
|
@@ -31859,7 +31543,7 @@ const AppGrid = ({
|
|
|
31859
31543
|
children: app2.title
|
|
31860
31544
|
}
|
|
31861
31545
|
),
|
|
31862
|
-
/* @__PURE__ */
|
|
31546
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31863
31547
|
material.Typography,
|
|
31864
31548
|
{
|
|
31865
31549
|
variant: captionVariant,
|
|
@@ -31874,8 +31558,8 @@ const AppGrid = ({
|
|
|
31874
31558
|
})
|
|
31875
31559
|
}
|
|
31876
31560
|
),
|
|
31877
|
-
showPagination && totalPages > 1 && /* @__PURE__ */
|
|
31878
|
-
page === totalPages - 1 && /* @__PURE__ */
|
|
31561
|
+
showPagination && totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
31562
|
+
page === totalPages - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31879
31563
|
material.IconButton,
|
|
31880
31564
|
{
|
|
31881
31565
|
size: "small",
|
|
@@ -31888,10 +31572,10 @@ const AppGrid = ({
|
|
|
31888
31572
|
transform: "translateY(-120%)",
|
|
31889
31573
|
color: theme.palette.divider
|
|
31890
31574
|
},
|
|
31891
|
-
children: /* @__PURE__ */
|
|
31575
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconLeft, {})
|
|
31892
31576
|
}
|
|
31893
31577
|
),
|
|
31894
|
-
page !== totalPages - 1 && /* @__PURE__ */
|
|
31578
|
+
page !== totalPages - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31895
31579
|
material.IconButton,
|
|
31896
31580
|
{
|
|
31897
31581
|
size: "small",
|
|
@@ -31904,10 +31588,10 @@ const AppGrid = ({
|
|
|
31904
31588
|
transform: "translateY(-120%)",
|
|
31905
31589
|
color: theme.palette.divider
|
|
31906
31590
|
},
|
|
31907
|
-
children: /* @__PURE__ */
|
|
31591
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconRight, {})
|
|
31908
31592
|
}
|
|
31909
31593
|
),
|
|
31910
|
-
/* @__PURE__ */
|
|
31594
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31911
31595
|
material.Box,
|
|
31912
31596
|
{
|
|
31913
31597
|
sx: {
|
|
@@ -31916,7 +31600,7 @@ const AppGrid = ({
|
|
|
31916
31600
|
alignItems: "center",
|
|
31917
31601
|
justifyContent: "center"
|
|
31918
31602
|
},
|
|
31919
|
-
children: /* @__PURE__ */
|
|
31603
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31920
31604
|
material.Box,
|
|
31921
31605
|
{
|
|
31922
31606
|
sx: {
|
|
@@ -31928,7 +31612,7 @@ const AppGrid = ({
|
|
|
31928
31612
|
borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
|
|
31929
31613
|
backgroundColor: "rgba(255,255,255,0.15)"
|
|
31930
31614
|
},
|
|
31931
|
-
children: Array.from({ length: totalPages }).map((_, i) => /* @__PURE__ */
|
|
31615
|
+
children: Array.from({ length: totalPages }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31932
31616
|
material.Box,
|
|
31933
31617
|
{
|
|
31934
31618
|
onClick: () => setPage(i),
|
|
@@ -31957,7 +31641,7 @@ const SystemMonitorScreen = () => {
|
|
|
31957
31641
|
const [tab, setTab] = React.useState(AppCategory.ALL);
|
|
31958
31642
|
const listApp = useApps(tab);
|
|
31959
31643
|
const currentApp = useActiveSidebar();
|
|
31960
|
-
return /* @__PURE__ */
|
|
31644
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31961
31645
|
MotionBox,
|
|
31962
31646
|
{
|
|
31963
31647
|
preset: "fadeInUp",
|
|
@@ -31968,7 +31652,7 @@ const SystemMonitorScreen = () => {
|
|
|
31968
31652
|
position: "relative",
|
|
31969
31653
|
top: 150
|
|
31970
31654
|
},
|
|
31971
|
-
children: /* @__PURE__ */
|
|
31655
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31972
31656
|
material.Box,
|
|
31973
31657
|
{
|
|
31974
31658
|
sx: {
|
|
@@ -31979,7 +31663,7 @@ const SystemMonitorScreen = () => {
|
|
|
31979
31663
|
justifyContent: "flex-start"
|
|
31980
31664
|
},
|
|
31981
31665
|
children: [
|
|
31982
|
-
/* @__PURE__ */
|
|
31666
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31983
31667
|
material.Box,
|
|
31984
31668
|
{
|
|
31985
31669
|
sx: {
|
|
@@ -31993,13 +31677,13 @@ const SystemMonitorScreen = () => {
|
|
|
31993
31677
|
{ key: AppCategory.HRM, label: "HRM" },
|
|
31994
31678
|
{ key: AppCategory.WORKFLOW, label: "Workflow Engine" },
|
|
31995
31679
|
{ key: AppCategory.PLATFORM_INFO, label: "Platform & Info" }
|
|
31996
|
-
].map((t) => /* @__PURE__ */
|
|
31680
|
+
].map((t) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31997
31681
|
MotionBox,
|
|
31998
31682
|
{
|
|
31999
31683
|
sx: { position: "relative" },
|
|
32000
31684
|
preset: "tabUnderline",
|
|
32001
31685
|
children: [
|
|
32002
|
-
/* @__PURE__ */
|
|
31686
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32003
31687
|
material.Typography,
|
|
32004
31688
|
{
|
|
32005
31689
|
onClick: () => setTab(t.key),
|
|
@@ -32010,7 +31694,7 @@ const SystemMonitorScreen = () => {
|
|
|
32010
31694
|
children: t.label
|
|
32011
31695
|
}
|
|
32012
31696
|
),
|
|
32013
|
-
tab === t.key && /* @__PURE__ */
|
|
31697
|
+
tab === t.key && /* @__PURE__ */ jsxRuntime.jsx(
|
|
32014
31698
|
MotionBox,
|
|
32015
31699
|
{
|
|
32016
31700
|
preset: "tabUnderline",
|
|
@@ -32022,7 +31706,7 @@ const SystemMonitorScreen = () => {
|
|
|
32022
31706
|
backgroundColor: theme.palette.common.white,
|
|
32023
31707
|
transformOrigin: "left"
|
|
32024
31708
|
},
|
|
32025
|
-
children: /* @__PURE__ */
|
|
31709
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", {})
|
|
32026
31710
|
}
|
|
32027
31711
|
)
|
|
32028
31712
|
]
|
|
@@ -32031,7 +31715,7 @@ const SystemMonitorScreen = () => {
|
|
|
32031
31715
|
))
|
|
32032
31716
|
}
|
|
32033
31717
|
),
|
|
32034
|
-
/* @__PURE__ */
|
|
31718
|
+
/* @__PURE__ */ jsxRuntime.jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32035
31719
|
AppGrid,
|
|
32036
31720
|
{
|
|
32037
31721
|
apps: listApp,
|
|
@@ -32057,17 +31741,17 @@ const renderRoutes = (routes2, account) => routes2.map((route) => {
|
|
|
32057
31741
|
const { path, layout: layout2, element, type, allowUserTypes = [], children } = route;
|
|
32058
31742
|
const Layout = layout2 || React.Fragment;
|
|
32059
31743
|
let Element2 = element;
|
|
32060
|
-
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 });
|
|
32061
31745
|
if (type === RouteType.PROTECTED) {
|
|
32062
|
-
if (!account.isLogin) Element2 = () => /* @__PURE__ */
|
|
31746
|
+
if (!account.isLogin) Element2 = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: PAGE.AUTH.path });
|
|
32063
31747
|
else if (allowUserTypes.length && !allowUserTypes.includes(account.user.type) && account.user.type !== UserType.ROOT)
|
|
32064
|
-
Element2 = () => /* @__PURE__ */
|
|
31748
|
+
Element2 = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: PAGE.ERROR.path });
|
|
32065
31749
|
}
|
|
32066
|
-
return /* @__PURE__ */
|
|
31750
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32067
31751
|
reactRouterDom.Route,
|
|
32068
31752
|
{
|
|
32069
31753
|
path,
|
|
32070
|
-
element: /* @__PURE__ */
|
|
31754
|
+
element: /* @__PURE__ */ jsxRuntime.jsx(Layout, { children: /* @__PURE__ */ jsxRuntime.jsx(Element2, {}) }),
|
|
32071
31755
|
children: children && renderRoutes(children, account)
|
|
32072
31756
|
},
|
|
32073
31757
|
path
|
|
@@ -32094,8 +31778,8 @@ const TypographyContentCaption = ({
|
|
|
32094
31778
|
sxContent,
|
|
32095
31779
|
sxCaption
|
|
32096
31780
|
}) => {
|
|
32097
|
-
return /* @__PURE__ */
|
|
32098
|
-
/* @__PURE__ */
|
|
31781
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { gap: 0, sx: { ...sx }, children: [
|
|
31782
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32099
31783
|
material.Typography,
|
|
32100
31784
|
{
|
|
32101
31785
|
sx: {
|
|
@@ -32105,7 +31789,7 @@ const TypographyContentCaption = ({
|
|
|
32105
31789
|
children: content || "#"
|
|
32106
31790
|
}
|
|
32107
31791
|
),
|
|
32108
|
-
caption && /* @__PURE__ */
|
|
31792
|
+
caption && /* @__PURE__ */ jsxRuntime.jsx(
|
|
32109
31793
|
material.Typography,
|
|
32110
31794
|
{
|
|
32111
31795
|
sx: {
|