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