@adminui-dev/antd-layout 1.3.5 → 1.3.7
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/README.md +109 -1
- package/dist/components/AntdLayout/CollapsedPanel.d.ts +7 -1
- package/dist/components/AntdLayout/common/ColorUtil.d.ts +2 -1
- package/dist/components/AntdLayout/common/StringUtil.d.ts +3 -0
- package/dist/index.cjs.js +12 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +13 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1 +1,109 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center"><a name="readme-top"></a>
|
|
2
|
+
|
|
3
|
+
<img src="./docs/images/logo-dark.png" alt="warden.vip">
|
|
4
|
+
|
|
5
|
+
<h1>adminui-antd-layout</h1>
|
|
6
|
+
|
|
7
|
+
This is a layout component based on Antd.
|
|
8
|
+
|
|
9
|
+
English · [中文](./README-zh_CN.md)
|
|
10
|
+
### ❤️ Supports multiple layout styles and custom themes/skins, supports various routing options and operates independently of UMI control, perfect for those who pay attention to detail.
|
|
11
|
+
|
|
12
|
+
<img src="./docs/images/adminui.github.webp" alt="warden.vip">
|
|
13
|
+
|
|
14
|
+
[demo👉](https://demo.warden.vip)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
## ✨ Features
|
|
19
|
+
|
|
20
|
+
- 🌈 Unified backend interaction experience and style.
|
|
21
|
+
- 📦 Ready-to-use integration with a wealth of templates.
|
|
22
|
+
- ⚙️ Pluggable components for detailed control.
|
|
23
|
+
- 🌍 Supports internationalization.
|
|
24
|
+
- 🎨 Supports deeper theme customization.
|
|
25
|
+
|
|
26
|
+
## 📦 Install
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install @adminui-dev/antd-layout --save
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
yarn add @adminui-dev/antd-layout
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pnpm add @adminui-dev/antd-layout
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
bun add @adminui-dev/antd-layout
|
|
42
|
+
```
|
|
43
|
+
## 📦 Install dependencies
|
|
44
|
+
```json
|
|
45
|
+
"@ant-design/colors": "^7.2.1",
|
|
46
|
+
"antd": "^6.1.1",
|
|
47
|
+
"dayjs": "^1.11.19",
|
|
48
|
+
"nprogress": "^0.2.0",
|
|
49
|
+
"react": "^19.2.0",
|
|
50
|
+
"react-dom": "^19.2.0",
|
|
51
|
+
"react-intl": "^8.0.4",
|
|
52
|
+
"react-router": "^7.11.0",
|
|
53
|
+
"react-router-dom": "^7.11.0"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 🚀 Alternatively, use the npx create-antd-layout quick template to build the project (recommended).
|
|
57
|
+
```bash
|
|
58
|
+
npx create-antd-layout@lastest your-app
|
|
59
|
+
```
|
|
60
|
+
## 🔨 Example
|
|
61
|
+
```jsx
|
|
62
|
+
import { AntdLayout } from "@adminui-dev/antd-layout"
|
|
63
|
+
import type { LayoutConfig,MenuData } from "@adminui-dev/antd-layout"
|
|
64
|
+
|
|
65
|
+
// src/layouts/index.tsx
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* menu data
|
|
69
|
+
*/
|
|
70
|
+
const menuData:MenuData = {
|
|
71
|
+
name:"",
|
|
72
|
+
path:"/",
|
|
73
|
+
label:"Dashboard",
|
|
74
|
+
children:[
|
|
75
|
+
{name:"welcome",path:"welcome",label:"Welcome"},
|
|
76
|
+
{name:"transaction",path:"transaction",label:"Transaction",children:[
|
|
77
|
+
{name:"order",path:"order",label:"Order"},
|
|
78
|
+
{name:"order",path:"product",label:"Product"},
|
|
79
|
+
]},
|
|
80
|
+
{name:"system",path:"system",label:"System",children:[
|
|
81
|
+
{name:"config",path:"config",label:"Config"},
|
|
82
|
+
{name:"logs",path:"logs",label:"Logs"},
|
|
83
|
+
]},
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* dashboard layout
|
|
89
|
+
*/
|
|
90
|
+
const MainLayout = () => {
|
|
91
|
+
// layout config
|
|
92
|
+
const layoutConfig:LayoutConfig = {
|
|
93
|
+
disabledLocale:true,
|
|
94
|
+
layoutType:"leftMenu"
|
|
95
|
+
}
|
|
96
|
+
return(
|
|
97
|
+
<>
|
|
98
|
+
<AntdLayout layoutConfig={layoutConfig} menuData={menuData} />
|
|
99
|
+
</>
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
export default MainLayout;
|
|
103
|
+
```
|
|
104
|
+
For reference 🍸[https://github.com/zhouwenqi/adminui-demo-antd-layout-simple](https://github.com/zhouwenqi/adminui-demo-antd-layout-simple)
|
|
105
|
+
|
|
106
|
+
## ✅ For more configuration options, please refer to the official documentation.
|
|
107
|
+
Website 🔗[https://www.warden.vip](https://www.warden.vip)
|
|
108
|
+
|
|
109
|
+
Docs 🔗[https://www.warden.vip/en/docs](https://www.warden.vip/en/docs.html)
|
|
@@ -21,4 +21,10 @@ declare function CollapsedTrack(props: CollapsedPanelProps & {
|
|
|
21
21
|
* @returns
|
|
22
22
|
*/
|
|
23
23
|
declare function CollapsedMobileMenu(props: CollapsedPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Container collapsed button
|
|
26
|
+
* @param props
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
declare function CollapsedContainerMenu(props: CollapsedPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export { CollapsedMenu, CollapsedTrack, CollapsedMobileMenu, CollapsedContainerMenu };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { generate } from '@ant-design/colors';
|
|
2
|
+
declare const DEFAULT_PRIMARY_COLOR = "#417ffb";
|
|
2
3
|
declare const getBlackColors: () => string[];
|
|
3
4
|
declare const getWhiteColors: () => string[];
|
|
4
|
-
export { generate, getBlackColors, getWhiteColors };
|
|
5
|
+
export { generate, getBlackColors, getWhiteColors, DEFAULT_PRIMARY_COLOR };
|
|
@@ -55,7 +55,10 @@ declare const getBasicLayoutConfig: (config: LayoutConfig) => {
|
|
|
55
55
|
primaryColor?: string;
|
|
56
56
|
highlight?: boolean;
|
|
57
57
|
flated?: boolean;
|
|
58
|
+
noneHeader?: boolean;
|
|
58
59
|
menuIconSize?: number;
|
|
60
|
+
menuItemSelectColor?: import("@adminui-dev/layout").MenuItemSelectColor;
|
|
61
|
+
containerMargin?: number;
|
|
59
62
|
compact?: boolean;
|
|
60
63
|
largeBrand?: boolean;
|
|
61
64
|
splitMenu?: boolean;
|
package/dist/index.cjs.js
CHANGED
|
@@ -7,6 +7,16 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/"production"===process.env.NODE_ENV?s.exports=function(){if(l)return d;l=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return d.Fragment=n,d.jsx=r,d.jsxs=r,d}():s.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case f:return"Profiler";case g:return"StrictMode";case _:return"Suspense";case j:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case h:return"Portal";case b:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case v:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case k:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===x)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return z[e]||(z[e]=!0,console.error("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.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,m=r.children;if(void 0!==m)if(i)if(I(m)){for(i=0;i<m.length;i++)s(m[i]);Object.freeze&&Object.freeze(m)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(m);if(M.call(r,"key")){m=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",N[m+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('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} />',i,m,h,m),N[m+i]=!0)}if(m=null,void 0!==o&&(t(o),m=""+o),function(e){if(M.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),m=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return m&&function(e,n){function r(){c||(c=!0,console.error("%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)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:p,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,m,o,null===(u=B.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var c,m=e,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),B=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,I=Array.isArray,P=console.createTask?console.createTask:function(){return null},z={},T=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,i)(),L=P(o(i)),N={};u.Fragment=x,u.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):T,t?P(o(e)):L)},u.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):T,t?P(o(e)):L)}}()),u);var m=s.exports;function p(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}p("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n}\r\n");const h=Symbol("LayoutAside"),x=Symbol("LayoutContent"),g=Symbol("LayoutHeader"),f=Symbol("LayoutBackground"),y={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},b=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),v=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),_=()=>e.useContext(v);function j(e){return m.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:m.jsx(m.Fragment,{children:e.children})})}function w(e){return m.jsx(m.Fragment,{children:e.children})}function k(e){return m.jsx(m.Fragment,{children:e.children})}function C(e){return m.jsx(m.Fragment,{children:e.children})}j.displayName="LayoutBackground",j.role=f,w.displayName="LayoutContent",w.role=x,k.displayName="LayoutAside",k.role=h,C.displayName="LayoutHeader",C.role=g;function S(n){let r=null,t=null,o=null,i=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===g?r=e:n===x?t=e:n===h?o=e:n===f&&(i=e)}),m.jsx(m.Fragment,{children:m.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[i,m.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,m.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function B(n){const r=!!document.fullscreenElement,[t,o]=e.useState(r),i=()=>{o(!!document.fullscreenElement)},a=e=>{"F11"===e.code&&(e.preventDefault(),l())};e.useEffect(()=>(document.addEventListener("fullscreenchange",i),document.addEventListener("keydown",a,!0),()=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("keydown",a)}),[]);const l=()=>{t?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return m.jsx(m.Fragment,{});const[s,d]=n.buttons,c=t?s:d;return e.cloneElement(c,{onClick:e=>{console.log(e),l()}})}p("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n}\r\n"),S.Aside=k,S.Content=w,S.Header=C,S.Background=j;const M=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),I=(e,n)=>{const{r:r,g:t,b:o,a:i}=M(e);return`rgba(${r}, ${t}, ${o}, ${n??i})`};function P(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}P("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n");var z="index-module_headerLayout__rv59v",T="index-module_headerLayoutSticky__6uFCj",L="index-module_headerLayoutFixed__t5Hmo",N="index-module_headerLayoutBox__h0fIt",F="index-module_headerMenu__WHmJN",E="index-module_headerTitle__jGbCX",A="index-module_headerBrandBox__U2J16",O="index-module_layoutBlur__GpCPx",W="index-module_toolbarPanel__Pp8PS",R="index-module_toolbarItem__RkaXd",H="index-module_toolbarAvatarItem__p6TXY",$="index-module_siderBaseStyle__zg1FM",K="index-module_siderMask__cCjMh",D="index-module_siderContentBox__dGgRe",G="index-module_siderContentItem__kl3cR",q="index-module_collapsedTrack__LoJ3V",V="index-module_collapsedTrackButton__m33XS",U="index-module_brandPanel__2GRgq",X="index-module_labelBox__dX8fY",Y="index-module_brandNodeBox__W-iM6",J="index-module_brandMobilePanel__m1Diu",Z="index-module_largeBrandPanel__pLn--",Q="index-module_title__SbfFY",ee="index-module_largeBrandCollPanel__nsGKB",ne="index-module_avatarPanel__fFvCS",re="index-module_collapsedMobile__Yu8F4",te="index-module_breadcrumbBox__w3MOx",oe="index-module_breadcrumbFirstIcon__9zEmW",ie="index-module_breadcrumbAllIcon__HYkKa",ae="index-module_containerBox__pv0qs",le="index-module_round__WoVxM";function se(e){const{size:n=16}=e;return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m15 18-6-6 6-6"})})}function de(e){const{size:n=16}=e;return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m9 18 6-6-6-6"})})}function ce(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m7 8-4 4 4 4"})]})}function ue(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m3 8 4 4-4 4"})]})}function me(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"m7 15 5 5 5-5"}),m.jsx("path",{d:"m7 9 5-5 5 5"})]})}function pe(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),m.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function he(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),m.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),m.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),m.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function xe(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),m.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),m.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),m.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function ge(n){const[r,t]=e.useState(!1),{hasChild:o,...i}=n;e.useEffect(()=>{if(n.src)if("string"==typeof n.src){const e=new Image;e.src=n.src,e.onload=()=>t(!0),e.onerror=()=>t(!0)}else t(!0)},[n.src]);const a={...n.style,transition:"opacity 0.3s ease-out",opacity:r?1:0,display:"flex",justifyItems:"center",alignItems:"center"},l=m.jsx("img",{...i});return n.hasChild?l:m.jsx("div",{style:a,children:l})}P('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx,.adminui-layout-blur { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n overflow: hidden;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n.index-module_containerBox__pv0qs>h3 {\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0 0 var(--adminui-margin);\r\n}\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-title-content-with-extra,.index-module_headerLayout__rv59v .adminui-menu-title-content-with-extra{\r\n width: auto; \r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-item-extra,.index-module_headerLayout__rv59v .adminui-menu-item-extra{\r\n display: inline-flex;\r\n}\r\n\r\n\r\n/** Menu icon automatic compact mode */\r\n.adminui-menu-icon {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n\r\n.adminui-menu .adminui-menu-title-content-with-extra {\r\n width: auto;\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const fe=e.createContext({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),ye=e.createContext({close:()=>{}}),be=e.createContext({close:()=>{}}),ve=Symbol("AsideFooter"),_e=Symbol("AsideHeader"),je=Symbol("AsideContentItems"),we=Symbol("AsideContentItem"),ke=Symbol("ContentFooter"),Ce=Symbol("AvatarPopoverContent"),Se=Symbol("BrandPopoverContent"),Be=Symbol("SoltContent"),Me=Symbol("ToolbarExtraItems"),Ie=()=>e.useContext(fe),Pe=()=>Ie().collapsed,ze=()=>t.useOutletContext(),Te=()=>ye,Le=()=>be;function Ne(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:Fe}=n.theme;function Ee(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=_(),{token:l}=Fe(),{layoutIcons:s,brandPopoverContent:d}=Ie(),[c,u]=e.useState(!1),p=Le(),h=a.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:a.compact?l.paddingXXS:l.paddingXS,height:"40px",gap:(a.compact?6:8)+"px"},g={height:`${a.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};a.flated&&(x={...x,paddingInline:l.padding,height:"100%"},g={...g,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:f={...f,overflow:"hidden"};let b=m.jsx(m.Fragment,{});y?.logo&&(b="string"==typeof y.logo?m.jsx(ge,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):m.jsx("div",{className:Y,style:{width:h,minWidth:h},children:y.logo}));const v=s?.itemMoreIcon||m.jsx(me,{}),j=m.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?m.jsx(Ne,{icon:v,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:m.jsxs("div",{style:f,children:[b,m.jsxs("div",{className:X,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:y?.name}),i?void 0:m.jsx("span",{style:{color:l.colorTextSecondary},children:y?.title})]})]})});return m.jsx("div",{className:U,style:g,children:d?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:d,children:j})}):j})}function Ae(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=_(),{layoutIcons:l,brandPopoverContent:s}=Ie(),{token:d}=Fe(),[c,u]=e.useState(!1),p=Le(),h=a.compact?"16px":"20px";let x={justifyContent:"flex-start",gap:(a.compact?6:8)+"px"},g={height:`${a.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};a.flated&&(x={...x,paddingInline:d.padding},g={...g,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:f={...f,overflow:"hidden"};let b=m.jsx(m.Fragment,{});y?.logo&&(b="string"==typeof y.logo?m.jsx(ge,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):m.jsx("div",{className:Y,style:{width:h,minWidth:h},children:y.logo}));const v=l?.itemMoreIcon||m.jsx(me,{}),j=s?{}:{href:y?.url},w=m.jsxs("a",{...j,style:x,children:[m.jsxs("div",{style:f,children:[b,m.jsxs("div",{className:X,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{style:{width:"90%"},children:y?.name}),i?void 0:m.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:y?.title})]})]}),s?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Ne,{icon:v,size:o||14})}):m.jsx(m.Fragment,{})]});return m.jsx("div",{className:U,style:g,children:s?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:s,children:w})}):w})}function Oe(r){const{layoutConfig:t}=_(),{brandPopoverContent:o}=Ie(),[i,a]=e.useState(!1),l=Le(),s=t.compact?"16px":"20px",{brandInfo:d}=t;let c=m.jsx(m.Fragment,{});d?.logo&&(c="string"==typeof d.logo?m.jsx(ge,{style:{width:s},src:d.logo,alt:d.name}):m.jsx("div",{className:Y,style:{width:s},children:d.logo}));let u=o?m.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:m.jsx(n.Popover,{open:i,onOpenChange:a,content:o,placement:"rightTop",children:m.jsx("a",{children:c})})}):m.jsx("a",{href:d?.url,children:c});return m.jsxs("div",{className:J,style:r.style,children:[u,m.jsx("div",{className:E,children:r.children})]})}function We(r){const{collapsed:t}=r,{brandPopoverContent:o}=Ie(),{layoutConfig:i}=_(),[a,l]=e.useState(!1),s=Le(),d=t?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:c}=i,u={opacity:t?"0":"1",height:t?"0px":"auto"};let p=m.jsx(m.Fragment,{});if(!c)return m.jsx(m.Fragment,{});let h=[Z];t&&h.push(ee),c?.logo&&(p="string"==typeof c.logo?m.jsx(ge,{style:{width:d},src:c.logo,alt:c.name}):m.jsx("div",{className:Y,style:{width:d},children:c.logo}));let x=o?m.jsx(s.Provider,{value:{close:()=>{l(!1)},record:c},children:m.jsx(n.Popover,{open:a,onOpenChange:l,content:o,placement:"rightTop",children:m.jsx("a",{children:p})})}):m.jsx("a",{href:c?.url,children:p});return m.jsxs("div",{className:h.join(" "),children:[x,m.jsxs("div",{style:u,children:[m.jsx("span",{children:c?.name}),c.title?m.jsx("span",{className:Q,children:c?.title}):m.jsx(m.Fragment,{})]})]})}function Re(e){return m.jsx("div",{style:{...e.style},children:e.children})}Re.displayName="BrandPopoverContent",Re.role=Se;const{useToken:He}=n.theme;function $e(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=_(),{layoutIcons:a,avatarPopoverContent:l}=Ie(),[s,d]=e.useState(!1),c=Te(),{token:u}=He(),p=i.compact?"20px":"24px";let h={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(h={...h,paddingInline:u.padding,margin:"0px",height:"100%"},x={...x,padding:"0px"});const{userInfo:f}=i;t?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let y=m.jsx(m.Fragment,{});f?.avatar&&(y="string"==typeof f.avatar?m.jsx(ge,{style:{width:p,borderRadius:"999px"},src:f.avatar,alt:f.uid}):f.avatar);const b=a?.itemMoreIcon||m.jsx(me,{}),v=m.jsx("div",{className:ne,style:x,children:m.jsxs("a",{style:h,children:[m.jsxs("div",{style:g,children:[y,m.jsxs("div",{className:X,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:f?.uid}),f?.title?void 0:m.jsx("span",{style:{color:u.colorTextSecondary},children:f?.title})]})]}),l?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Ne,{icon:b,size:o||14})}):m.jsx(m.Fragment,{})]})});return l?m.jsx(c.Provider,{value:{close:()=>d(!1),record:f},children:m.jsx(n.Popover,{open:s,onOpenChange:d,placement:"right",content:l,children:v})}):v}function Ke(r){const{iconSize:t=14}=r,{layoutConfig:o}=_(),{userInfo:i}=o,{avatarPopoverContent:a}=Ie(),[l,s]=e.useState(!1),d=Te();let c=m.jsx(pe,{});const u=t+4,p={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(c="string"==typeof i.avatar?m.jsx(ge,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const h=m.jsxs("div",{className:H,children:[m.jsx("div",{style:p,children:c}),m.jsx("span",{children:i?.uid})]});return a?m.jsx(d.Provider,{value:{close:()=>s(!1),record:i},children:m.jsx(n.Popover,{open:l,onOpenChange:s,placement:"left",content:a,children:h})}):m.jsx(m.Fragment,{children:h})}function De(e){return m.jsx("div",{style:{...e.style},children:e.children})}De.displayName="AvatarPopoverContent",De.role=Ce;const{useToken:Ge}=n.theme;function qe(e){const{token:r}=Ge(),{layoutIcons:t,toolbarExtraItems:o}=Ie(),i=r.Menu?.iconSize||16,[a,l]=t?.fullScreenIcons?.slice(0,2)||[m.jsx(xe,{}),m.jsx(he,{})],s=m.jsx(Ne,{icon:a,size:i}),d=m.jsx(Ne,{icon:l,size:i});return m.jsxs("div",{className:W,children:[e.showAvatar?m.jsxs("div",{className:R,children:[m.jsx(Ke,{iconSize:i+4}),m.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):m.jsx(m.Fragment,{}),o,m.jsx("div",{className:R,"data-adminui-role":"desk-toolbar",children:m.jsx(B,{buttons:[m.jsx(n.Button,{icon:d,type:"text"},"minimize"),m.jsx(n.Button,{icon:s,type:"text"},"maximize")]})})]})}function Ve(e){const n=m.jsx("div",{className:R,"data-adminui-role":"desk-toolbar",children:e.children});return e?m.jsx(m.Fragment,{children:n}):m.jsx(m.Fragment,{})}Ve.displayName="ToolbarExtraItems",Ve.role=Me;const{useToken:Ue}=n.theme;function Xe(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Ie(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[m.jsx(de,{}),m.jsx(se,{})];return m.jsx("div",{style:i,children:m.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function Ye(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Ie(),{token:l}=Ue();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[m.jsx(de,{}),m.jsx(se,{})];return m.jsx("div",{className:q,style:s,onClick:()=>{i(!o)},children:m.jsx("div",{style:d,className:V,children:o?c:u})})}function Je(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Ie(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[m.jsx(ue,{}),m.jsx(ce,{})];return m.jsx("div",{className:re,children:m.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}const{Header:Ze}=n.Layout,{useToken:Qe}=n.theme;function en(e){const{layoutConfig:r}=_(),{token:o,theme:i}=Qe(),a=t.useNavigate(),l=r.headerTransparent||r.headerBlur?I(o.colorBorderSecondary,.6):o.colorBorderSecondary,s=r.hideBorder?"0px":"1px solid "+l,d=r.flated&&"headMenu"==r.layoutType||1==i.id?"dark":"light",c=r.flated&&"headMenu"==r.layoutType?"dark":"light",u=r.flated&&"headMenu"==r.layoutType?o.colorPrimary:o.colorBgContainer,p={height:e.height+"px",lineHeight:e.height+"px"};let h=m.jsx(m.Fragment,{}),x={...p,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":u};r.headerBlur&&(x={...x,backgroundColor:I(u,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let g={...p,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},f=[z],y=m.jsx(m.Fragment,{});"headMenu"==r.layoutType?(h=m.jsx("div",{style:p}),x={...x,paddingInlineEnd:o.paddingXS+"px"},y=m.jsx("div",{className:A,style:{width:r?.asideWidth+"px"},children:m.jsx(Ee,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),f.push(L)):(x={...x,paddingInline:o.paddingXS+"px"},f.push(T));let b=m.jsx(Oe,{children:e.title}),v=m.jsx(Je,{iconSize:r.compact?12:14});const j=[N];r.flated||j.push(le);let w="dark"==d?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return m.jsxs(m.Fragment,{children:[h,m.jsx(n.ConfigProvider,{theme:{algorithm:w},children:m.jsx(n.Layout,{className:f.join(" "),style:g,children:m.jsxs(Ze,{className:j.join(" "),style:x,children:[v,y,b,m.jsx(n.Menu,{onClick:e=>{a(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:c,classNames:{root:F},items:e.menuData||[]}),m.jsx(qe,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:nn}=n.Layout,{useToken:rn}=n.theme,{useBreakpoint:tn}=n.Grid;function on(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:l}=_(),{asideWidth:s}=l,d=r.headerHeight,{collapsed:c,setCollapsed:u}=Ie(),{token:p,theme:h}=rn(),x=t.useNavigate(),g=tn().xs?0:d,f=l.headerTransparent||l.headerBlur?I(p.colorBorderSecondary,.6):p.colorBorderSecondary,y=l.hideBorder||0==g&&c?"0px":"1px solid "+f,b="headMenu"==l.layoutType||0==g?r.headerHeight:0,v="headMenu"==l.layoutType||0==g?"calc(100% - "+r.headerHeight+"px)":"100%";let j={width:`${l.asideWidth}px`,height:`${v}`,insetBlockStart:b+"px",maxWidth:`${l.asideWidth}px`,minWidth:`${l.asideWidth}px`,borderRight:y,position:"fixed",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},w={overflow:"auto",flex:1};const k=p.Menu?.iconSize,C=1==h.id?"dark":"light",S=C;let B=0,M=m.jsx(m.Fragment,{});"leftMenu"==l.layoutType&&(B=l.headerHeight||0,M=l.largeBrand?m.jsx(We,{collapsed:c,iconSize:k}):m.jsx(Ae,{collapsed:c,iconSize:k,hideTitle:!0}));const P=l.asideTransparent?"transparent":l.asideBlur?I(p.colorBgContainer,.6):p.colorBgContainer;j={...j,backgroundColor:P},l.asideBlur&&(j={...j,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(w={...w,overflow:"hidden"});let z=[$];z.push(O);let T=m.jsx(m.Fragment,{});switch(l.collapsedPosition){case"bottom":T=m.jsx(Xe,{iconSize:k,style:{backgroundColor:P,width:`${d}px`,borderRight:y}});break;case"center":case"top":T=m.jsx(Ye,{iconSize:12,top:"top"==l.collapsedPosition,flated:l.flated,offset:B,style:{backgroundColor:P}})}let L=r.menuData||[];return l.asideMenuGroup&&L.forEach(e=>{e.children&&(e.type="group")}),m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{width:c?d:s,flex:`0 0 ${c?d:s}px`,maxWidth:c?d:s,minWidth:c?d:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:K}),m.jsxs(nn,{width:s,className:z.join(" "),style:j,theme:S,collapsedWidth:g,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[g>0?M:m.jsx(m.Fragment,{}),r.header,m.jsx("div",{style:w,children:m.jsx(n.Menu,{onClick:e=>{0==g&&u(!0),x(e.key)},onOpenChange:e=>{a(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:l.asideMenuInline?"inline":"vertical",selectedKeys:r.selectedKeys,openKeys:c?void 0:i,defaultSelectedKeys:r.selectedKeys,defaultOpenKeys:o.current,theme:C,items:L})}),r.footer,"leftBottom"==l.avatarPosition?m.jsx($e,{collapsed:c,iconSize:k}):m.jsx(m.Fragment,{}),T]})]})}const an=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,an(r)),e},{});function ln(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const sn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=un(e);r.children=sn(e.children),n.push(r)}),n},dn=(e,n)=>{if(e)return e.map(e=>{const r=cn(e,n),t={...e,label:r};return e.children&&(t.children=dn(e.children,n)),t})},cn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),un=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function mn(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function pn(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function hn(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:xn(n.extra),icon:xn(n.icon)};return o}(e,n);return n.children&&(r.children=hn(r.path,n.children)),r})}const xn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:gn}=n.theme;function fn(n){const{layoutConfig:o,themeSkin:i}=_(),a=r.useIntl(),{token:l}=gn(),[s,d]=e.useState(!1),c={backgroundColor:l.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const p=o.disabledLocale?n.menuData:dn(n.menuData,a),h=p&&p?.length>0?p[0].children:[],x=an(p||[]),g=sn(h),f=t.useMatches(),y=f.map(e=>e.pathname),b=f[f.length-1];let v=[],j=[],w=[],k=[];if("leftMenu"==o.layoutType?(k=g||[],j=y):(w=g||[],v=y),o.splitMenu){const[e,n]=pn(y),{rootMenuItems:r,childrenMenuItems:t}=ln(g,y);"leftMenu"==o.layoutType?(k=r,w=t,j=e,v=n):(k=t,w=r,v=e,j=n)}const C=e.useMemo(()=>o.asideBlur||o.headerBlur?I(l.colorBgContainer,.6):l.colorBgContainer,[o.asideBlur,o.headerBlur,l.colorBgContainer]),B=e.Children.toArray(n.children),M=B.find(n=>e.isValidElement(n)&&n.type.role===ve),P=B.find(n=>e.isValidElement(n)&&n.type.role===_e),z=B.find(n=>e.isValidElement(n)&&n.type.role===ke),T=B.find(n=>e.isValidElement(n)&&n.type.role===Ce),L=B.find(n=>e.isValidElement(n)&&n.type.role===Se),N=B.find(n=>e.isValidElement(n)&&n.type.role===Be),F=B.find(n=>e.isValidElement(n)&&n.type.role===Me),E=fe,A=e.useMemo(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:T,brandPopoverContent:L,toolbarExtraItems:F,containerBackground:C,flattenMenuMap:x,setCollapsed:d}),[s,u,n.layoutIcons,x,C]),O=o.hideAsideMenuDataEmpty&&k.length<=0&&"headMenu"==o.layoutType,W=x[b.pathname].label||"";return document.title=W,m.jsxs(m.Fragment,{children:[m.jsx(E,{value:A,children:m.jsxs(S,{...n,style:c,children:[m.jsx(S.Aside,{children:O?m.jsx(m.Fragment,{}):m.jsx(on,{headerHeight:u,header:M,footer:P,menuData:k,selectedKeys:j,openerKeys:j})}),m.jsx(S.Header,{children:m.jsx(en,{height:u,menuData:w,selectedKeys:v,title:W})}),m.jsx(S.Content,{children:m.jsx(t.Outlet,{context:{title:W,footer:z}})}),m.jsx(S.Background,{children:i?i.backgroundContent:m.jsx(m.Fragment,{})})]})}),N]})}const yn=e=>i.generate(e),bn=()=>yn("#22222222");function vn(e){const n=Pe(),{layoutConfig:r}=_(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?m.jsx(m.Fragment,{}):m.jsxs("div",{className:G,style:o,children:[m.jsx("div",{children:e.icon}),m.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function _n(e){return m.jsx(m.Fragment,{children:e.children})}function jn(e){return m.jsx("div",{className:D,children:e.children})}function wn(e){return m.jsx("div",{className:D,children:e.children})}_n.displayName="AsideContentItems",vn.displayName="AsideContentItem",wn.displayName="AsideHeaderContent",wn.Items=_n,wn.Item=vn,jn.displayName="AsideFooterContent",jn.Items=_n,jn.Item=vn,jn.role=_e,wn.role=ve,_n.role=je,vn.role=we;const kn="adminui-default-config",Cn=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),Sn=e=>{e||(e=kn);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},Bn=(e,n)=>{n||(n=kn);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},Mn=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function In(e){const r=t.useMatches(),{flattenMenuMap:o}=Ie(),{layoutConfig:i}=_(),a=[];r.forEach((e,n)=>{const r=o[e.pathname],t=r?r.label:"";a.push({path:e.pathname,title:t,icon:r.icon})});let l=[te];return"first"==i.visibleBreadcrumbIcon?l.push(oe):"all"==i.visibleBreadcrumbIcon&&l.push(ie),m.jsx(n.Breadcrumb,{classNames:{root:l.join(" ")},style:e.style,items:a,itemRender:Pn})}function Pn(e,n,r,o){return e?.path===r[r.length-1]?.path?m.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):m.jsxs(t.Link,{className:"adminui-breadcrumb-link",to:"/"+o[o.length-1],children:[e.icon,e.title]})}const{useToken:zn}=n.theme;const Tn=e=>m.jsx("div",{...e,children:e.children});function Ln({children:e}){return m.jsx(m.Fragment,{children:e})}Tn.displayName="ContentFooter",Tn.role=ke,Ln.displayName="SoltContent",Ln.role=Be;const Nn="adminui-locale",Fn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function En(o){const i=t.useMatches(),{pathname:a}=i[0],l={...y,...o.layoutConfig,...o.disabledStorageConfig?{}:Sn(a)};let s=o.themeSkins||[];const d=e.useMemo(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(s),[s]),c=o.locale||localStorage.getItem(Nn)||l.locale||"en-US",u=o.menuData?hn("/",[o.menuData]):[],[p,h]=e.useState(()=>{if(l.skinName){const e=Fn(l.skinName,d);return Mn(l,e)}return l}),[x,g]=e.useState(c),f=v,_=b;let j=o.localeMessages||{};const w=e.useMemo(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(j),[j]),k=e=>{localStorage.setItem(Nn,e),g(e)};document.documentElement.style.setProperty("--pageload-bar-color",p.primaryColor),e.useEffect(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===p.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(p.theme)},[p.theme]);const C=e.useMemo(()=>{if(p.skinName)return Fn(p.skinName,d)},[s,p.skinName]),S="system"==(B=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const M=e=>{h(e),o.disabledStorageConfig||Bn(e,a)},I=e.useMemo(()=>({layoutConfig:p,locale:x,languages:w,themeSkin:C,themeSkinMap:d}),[w,x,w,d,C,p]),P=e.useMemo(()=>({setLayoutConfig:M,setLocale:k}),[]),z=j[x]||j["en-US"],T=["he","ar","fa","ku"].filter(e=>x.startsWith(e)).length?"rtl":"ltr";let L="dark"===S?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],N=p.menuIconSize||14;const F=p.menuIconSize?.1*(N-10)+10:10;p.compact&&(L.push(n.theme.compactAlgorithm),N-=2);let E={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:N,fontSize:N,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:F,activeBarHeight:p.compact?2:4,darkPopupBg:bn()[4]};const A={algorithm:L,token:{colorPrimary:p.primaryColor,borderRadius:p.flated?0:6},components:{Menu:E,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return m.jsx(f.Provider,{value:I,children:m.jsx(_.Provider,{value:P,children:m.jsx(n.ConfigProvider,{theme:A,locale:z?.antdLocale,direction:T,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:m.jsx(n.App,{style:{height:"100%",width:"100%"},children:m.jsx(r.IntlProvider,{locale:x,messages:z?.messages,children:m.jsx(fn,{menuData:u,layoutIcons:o.layoutIcons,children:o.children})})})})})})}En.AsideHeader=wn,En.AsideFooter=jn,En.Footer=Tn,En.AvatarPopoverContent=De,En.BrandPopoverContent=Re,En.SoltContent=Ln,En.HeaderToolbarExtra=Ve;var An={exports:{}},On=a(An.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),s(d,a(e,c,u)),1===e?(s(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){s(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),l=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}());
|
|
10
|
+
*/"production"===process.env.NODE_ENV?s.exports=function(){if(l)return d;l=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return d.Fragment=n,d.jsx=r,d.jsxs=r,d}():s.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case g:return"Profiler";case f:return"StrictMode";case v:return"Suspense";case j:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case h:return"Portal";case b:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case _:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case k:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===x)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return T[e]||(T[e]=!0,console.error("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.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,m=r.children;if(void 0!==m)if(i)if(I(m)){for(i=0;i<m.length;i++)s(m[i]);Object.freeze&&Object.freeze(m)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(m);if(M.call(r,"key")){m=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",F[m+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('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} />',i,m,h,m),F[m+i]=!0)}if(m=null,void 0!==o&&(t(o),m=""+o),function(e){if(M.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),m=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return m&&function(e,n){function r(){c||(c=!0,console.error("%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)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:p,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,m,o,null===(u=B.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var c,m=e,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),B=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,I=Array.isArray,P=console.createTask?console.createTask:function(){return null},T={},N=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,i)(),z=P(o(i)),F={};u.Fragment=x,u.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)},u.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)}}()),u);var m,p,h=s.exports,x={exports:{}},f={},g={};
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-jsx-runtime.development.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
"production"===process.env.NODE_ENV?x.exports=function(){if(m)return f;m=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return f.Fragment=n,f.jsx=r,f.jsxs=r,f}():x.exports=(p||(p=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case f:return"Profiler";case x:return"StrictMode";case v:return"Suspense";case j:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case b:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case _:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case k:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return T[e]||(T[e]=!0,console.error("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.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(M.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",F[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('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} />',i,p,h,p),F[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(M.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%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)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=B.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),B=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,I=Array.isArray,P=console.createTask?console.createTask:function(){return null},T={},N=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),z=P(o(i)),F={};g.Fragment=h,g.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)},g.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)}}()),g);var y=x.exports;function b(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}b("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n");const _=Symbol("LayoutAside"),v=Symbol("LayoutContent"),j=Symbol("LayoutHeader"),w=Symbol("LayoutBackground"),k={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},S=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),C=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),B=()=>e.useContext(C);function M(e){return y.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:y.jsx(y.Fragment,{children:e.children})})}function I(e){return y.jsx(y.Fragment,{children:e.children})}function P(e){return y.jsx(y.Fragment,{children:e.children})}function T(e){return y.jsx(y.Fragment,{children:e.children})}M.displayName="LayoutBackground",M.role=w,I.displayName="LayoutContent",I.role=v,P.displayName="LayoutAside",P.role=_,T.displayName="LayoutHeader",T.role=j;function N(n){let r=null,t=null,o=null,i=null;e.Children.forEach(n.children,e=>{const n=e.type.role;n===j?r=e:n===v?t=e:n===_?o=e:n===w&&(i=e)});const a=n.style||n.styles?.root;return y.jsx(y.Fragment,{children:y.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:a,children:[i,y.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,y.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",style:{...n.styles?.main},children:[r,t]})]})]})})}function z(n){const r=!!document.fullscreenElement,[t,o]=e.useState(r),i=()=>{o(!!document.fullscreenElement)},a=e=>{"F11"===e.code&&(e.preventDefault(),l())};e.useEffect(()=>(document.addEventListener("fullscreenchange",i),document.addEventListener("keydown",a,!0),()=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("keydown",a)}),[]);const l=()=>{t?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return y.jsx(y.Fragment,{});const[s,d]=n.buttons,c=t?s:d;return e.cloneElement(c,{onClick:e=>{console.log(e),l()}})}b("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n"),N.Aside=P,N.Content=I,N.Header=T,N.Background=M;const F=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),L=(e,n)=>{const{r:r,g:t,b:o,a:i}=F(e);return`rgba(${r}, ${t}, ${o}, ${n??i})`};function E(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}E("@layer base { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size); \r\n}\r\n.index_adminui-btn-icon__4gPCI {\r\n display: flex;\r\n justify-items: center;\r\n align-items: center;\r\n}\r\n.index_adminui-menu__zEjJY .index_adminui-menu-title-content-with-extra__QGHKX {\r\n width: auto;\r\n}");var O="index-module_headerLayout__rv59v",A="index-module_headerLayoutSticky__6uFCj",R="index-module_headerLayoutFixed__t5Hmo",W="index-module_headerLayoutBox__h0fIt",H="index-module_headerMenu__WHmJN",$="index-module_headerTitle__jGbCX",D="index-module_headerBrandBox__U2J16",G="index-module_layoutBlur__GpCPx",K="index-module_toolbarPanel__Pp8PS",V="index-module_toolbarItem__RkaXd",U="index-module_toolbarAvatarItem__p6TXY",X="index-module_siderBaseStyle__zg1FM",q="index-module_siderMask__cCjMh",Y="index-module_siderContentBox__dGgRe",J="index-module_siderContentItem__kl3cR",Q="index-module_collapsedTrack__LoJ3V",Z="index-module_collapsedTrackButton__m33XS",ee="index-module_brandPanel__2GRgq",ne="index-module_labelBox__dX8fY",re="index-module_brandNodeBox__W-iM6",te="index-module_brandMobilePanel__m1Diu",oe="index-module_largeBrandPanel__pLn--",ie="index-module_title__SbfFY",ae="index-module_largeBrandCollPanel__nsGKB",le="index-module_avatarPanel__fFvCS",se="index-module_collapsedMobile__Yu8F4",de="index-module_collapsedContainer__23dQh",ce="index-module_breadcrumbBox__w3MOx",ue="index-module_breadcrumbFirstIcon__9zEmW",me="index-module_breadcrumbAllIcon__HYkKa",pe="index-module_containerBox__pv0qs",he="index-module_containerHeader__p8V0W",xe="index-module_contentHeaderMenu__zSoS7",fe="index-module_containerHeaderToolbar__pGsCN",ge="index-module_round__WoVxM";function ye(e){const{size:n=16}=e;return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"m15 18-6-6 6-6"})})}function be(e){const{size:n=16}=e;return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"m9 18 6-6-6-6"})})}function _e(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M21 5H11"}),h.jsx("path",{d:"M21 12H11"}),h.jsx("path",{d:"M21 19H11"}),h.jsx("path",{d:"m7 8-4 4 4 4"})]})}function ve(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M21 5H11"}),h.jsx("path",{d:"M21 12H11"}),h.jsx("path",{d:"M21 19H11"}),h.jsx("path",{d:"m3 8 4 4-4 4"})]})}function je(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"m7 15 5 5 5-5"}),h.jsx("path",{d:"m7 9 5-5 5 5"})]})}function we(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),h.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function ke(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),h.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),h.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),h.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function Se(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),h.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),h.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),h.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Ce(n){const[r,t]=e.useState(!1),{hasChild:o,...i}=n;e.useEffect(()=>{if(n.src)if("string"==typeof n.src){const e=new Image;e.src=n.src,e.onload=()=>t(!0),e.onerror=()=>t(!0)}else t(!0)},[n.src]);const a={...n.style,transition:"opacity 0.3s ease-out",opacity:r?1:0,display:"flex",justifyItems:"center",alignItems:"center"},l=h.jsx("img",{...i});return n.hasChild?l:h.jsx("div",{style:a,children:l})}E('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_collapsedContainer__23dQh {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n.index-module_containerHeader__p8V0W {\r\n display: flex;\r\n justify-content:flex-start;\r\n align-items: center;\r\n padding-block-end: var(--adminui-padding-xs);\r\n}\r\n.index-module_containerHeaderCollapsed__XGlnh {\r\n display: flex;\r\n gap:6px;\r\n align-items: center;\r\n}\r\n.index-module_contentHeaderMenu__zSoS7 {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n padding-inline-start: var(--adminui-padding-xs);\r\n gap:var(--adminui-margin-xs);\r\n}\r\n.index-module_contentHeaderMenu__zSoS7>h3{\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0px;\r\n padding:0px;\r\n}\r\n.index-module_containerHeaderToolbar__pGsCN {\r\n flex:1;\r\n display: flex;\r\n justify-content: flex-end; \r\n align-items: center;\r\n}\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-title-content-with-extra,.index-module_headerLayout__rv59v .adminui-menu-title-content-with-extra{\r\n width: auto; \r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-item-extra,.index-module_headerLayout__rv59v .adminui-menu-item-extra{\r\n display: inline-flex;\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedContainer__23dQh {\r\n display: none;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const Be=e.createContext({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),Me=e.createContext({close:()=>{}}),Ie=e.createContext({close:()=>{}}),Pe=Symbol("AsideFooter"),Te=Symbol("AsideHeader"),Ne=Symbol("AsideContentItems"),ze=Symbol("AsideContentItem"),Fe=Symbol("ContentFooter"),Le=Symbol("AvatarPopoverContent"),Ee=Symbol("BrandPopoverContent"),Oe=Symbol("SoltContent"),Ae=Symbol("ToolbarExtraItems"),Re=()=>e.useContext(Be),We=()=>Re().collapsed,He=()=>t.useOutletContext(),$e=()=>Me,De=()=>Ie;function Ge(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:Ke}=n.theme;function Ve(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=B(),{token:l}=Ke(),{layoutIcons:s,brandPopoverContent:d}=Re(),[c,u]=e.useState(!1),m=De(),p=a.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:a.compact?l.paddingXXS:l.paddingXS,height:"40px",gap:(a.compact?6:8)+"px"},f={height:`${a.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};a.flated&&(x={...x,paddingInline:l.padding,height:"100%"},f={...f,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let b=h.jsx(h.Fragment,{});y?.logo&&(b="string"==typeof y.logo?h.jsx(Ce,{style:{width:p,minWidth:p},src:y.logo,alt:y.name}):h.jsx("div",{className:re,style:{width:p,minWidth:p},children:y.logo}));const _=s?.itemMoreIcon||h.jsx(je,{}),v=h.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?h.jsx(Ge,{icon:_,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:h.jsxs("div",{style:g,children:[b,h.jsxs("div",{className:ne,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{children:y?.name}),i?void 0:h.jsx("span",{style:{color:l.colorTextSecondary},children:y?.title})]})]})});return h.jsx("div",{className:ee,style:f,children:d?h.jsx(m.Provider,{value:{close:()=>{u(!1)},record:y},children:h.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:d,children:v})}):v})}function Ue(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=B(),{layoutIcons:l,brandPopoverContent:s}=Re(),{token:d}=Ke(),[c,u]=e.useState(!1),m=De(),p=a.compact?"16px":"20px";let x={justifyContent:"flex-start",gap:(a.compact?6:8)+"px"},f={height:`${a.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};a.flated&&(x={...x,paddingInline:d.padding},f={...f,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let b=h.jsx(h.Fragment,{});y?.logo&&(b="string"==typeof y.logo?h.jsx(Ce,{style:{width:p,minWidth:p},src:y.logo,alt:y.name}):h.jsx("div",{className:re,style:{width:p,minWidth:p},children:y.logo}));const _=l?.itemMoreIcon||h.jsx(je,{}),v=s?{}:{href:y?.url},j=h.jsxs("a",{...v,style:x,children:[h.jsxs("div",{style:g,children:[b,h.jsxs("div",{className:ne,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{style:{width:"90%"},children:y?.name}),i?void 0:h.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:y?.title})]})]}),s?h.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:h.jsx(Ge,{icon:_,size:o||14})}):h.jsx(h.Fragment,{})]});return h.jsx("div",{className:ee,style:f,children:s?h.jsx(m.Provider,{value:{close:()=>{u(!1)},record:y},children:h.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:s,children:j})}):j})}function Xe(r){const{layoutConfig:t}=B(),{brandPopoverContent:o}=Re(),[i,a]=e.useState(!1),l=De(),s=t.compact?"16px":"20px",{brandInfo:d}=t;let c=h.jsx(h.Fragment,{});d?.logo&&(c="string"==typeof d.logo?h.jsx(Ce,{style:{width:s},src:d.logo,alt:d.name}):h.jsx("div",{className:re,style:{width:s},children:d.logo}));let u=o?h.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:h.jsx(n.Popover,{open:i,onOpenChange:a,content:o,placement:"rightTop",children:h.jsx("a",{children:c})})}):h.jsx("a",{href:d?.url,children:c});return h.jsxs("div",{className:te,style:r.style,children:[u,h.jsx("div",{className:$,children:r.children})]})}function qe(r){const{collapsed:t}=r,{brandPopoverContent:o}=Re(),{layoutConfig:i}=B(),[a,l]=e.useState(!1),s=De(),d=t?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:c}=i,u={opacity:t?"0":"1",height:t?"0px":"auto"};let m=h.jsx(h.Fragment,{});if(!c)return h.jsx(h.Fragment,{});let p=[oe];t&&p.push(ae),c?.logo&&(m="string"==typeof c.logo?h.jsx(Ce,{style:{width:d},src:c.logo,alt:c.name}):h.jsx("div",{className:re,style:{width:d},children:c.logo}));let x=o?h.jsx(s.Provider,{value:{close:()=>{l(!1)},record:c},children:h.jsx(n.Popover,{open:a,onOpenChange:l,content:o,placement:"rightTop",children:h.jsx("a",{children:m})})}):h.jsx("a",{href:c?.url,children:m});return h.jsxs("div",{className:p.join(" "),children:[x,h.jsxs("div",{style:u,children:[h.jsx("span",{children:c?.name}),c.title?h.jsx("span",{className:ie,children:c?.title}):h.jsx(h.Fragment,{})]})]})}function Ye(e){return h.jsx("div",{style:{...e.style},children:e.children})}Ye.displayName="BrandPopoverContent",Ye.role=Ee;const{useToken:Je}=n.theme;function Qe(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=B(),{layoutIcons:a,avatarPopoverContent:l}=Re(),[s,d]=e.useState(!1),c=$e(),{token:u}=Je(),m=i.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(p={...p,paddingInline:u.padding,margin:"0px",height:"100%"},x={...x,padding:"0px"});const{userInfo:g}=i;t?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:f={...f,overflow:"hidden"};let y=h.jsx(h.Fragment,{});g?.avatar&&(y="string"==typeof g.avatar?h.jsx(Ce,{style:{width:m,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const b=a?.itemMoreIcon||h.jsx(je,{}),_=h.jsx("div",{className:le,style:x,children:h.jsxs("a",{style:p,children:[h.jsxs("div",{style:f,children:[y,h.jsxs("div",{className:ne,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{children:g?.uid}),g?.title?void 0:h.jsx("span",{style:{color:u.colorTextSecondary},children:g?.title})]})]}),l?h.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:h.jsx(Ge,{icon:b,size:o||14})}):h.jsx(h.Fragment,{})]})});return l?h.jsx(c.Provider,{value:{close:()=>d(!1),record:g},children:h.jsx(n.Popover,{open:s,onOpenChange:d,placement:"right",content:l,children:_})}):_}function Ze(r){const{iconSize:t=14}=r,{layoutConfig:o}=B(),{userInfo:i}=o,{avatarPopoverContent:a}=Re(),[l,s]=e.useState(!1),d=$e();let c=h.jsx(we,{});const u=t+4,m={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(c="string"==typeof i.avatar?h.jsx(Ce,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const p=h.jsxs("div",{className:U,children:[h.jsx("div",{style:m,children:c}),h.jsx("span",{children:i?.uid})]});return a?h.jsx(d.Provider,{value:{close:()=>s(!1),record:i},children:h.jsx(n.Popover,{open:l,onOpenChange:s,placement:"left",content:a,children:p})}):h.jsx(h.Fragment,{children:p})}function en(e){return h.jsx("div",{style:{...e.style},children:e.children})}en.displayName="AvatarPopoverContent",en.role=Le;const{useToken:nn}=n.theme;function rn(e){const{token:r}=nn(),{layoutIcons:t,toolbarExtraItems:o}=Re(),i=r.Menu?.iconSize||16,[a,l]=t?.fullScreenIcons?.slice(0,2)||[h.jsx(Se,{}),h.jsx(ke,{})],s=h.jsx(Ge,{icon:a,size:i}),d=h.jsx(Ge,{icon:l,size:i});return h.jsxs("div",{className:K,children:[e.showAvatar?h.jsxs("div",{className:V,children:[h.jsx(Ze,{iconSize:i+4}),h.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):h.jsx(h.Fragment,{}),o,h.jsx("div",{className:V,"data-adminui-role":"desk-toolbar",children:h.jsx(z,{buttons:[h.jsx(n.Button,{icon:d,type:"text"},"minimize"),h.jsx(n.Button,{icon:s,type:"text"},"maximize")]})})]})}function tn(e){const n=h.jsx("div",{className:V,"data-adminui-role":"desk-toolbar",children:e.children});return e?h.jsx(h.Fragment,{children:n}):h.jsx(h.Fragment,{})}tn.displayName="ToolbarExtraItems",tn.role=Ae;const{useToken:on}=n.theme;function an(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Re(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[h.jsx(be,{}),h.jsx(ye,{})];return h.jsx("div",{style:i,children:h.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function ln(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Re(),{token:l}=on();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[h.jsx(be,{}),h.jsx(ye,{})];return h.jsx("div",{className:Q,style:s,onClick:()=>{i(!o)},children:h.jsx("div",{style:d,className:Z,children:o?c:u})})}function sn(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Re(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[h.jsx(ve,{}),h.jsx(_e,{})];return h.jsx("div",{className:se,children:h.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}function dn(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Re(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[h.jsx(ve,{}),h.jsx(_e,{})];return h.jsx("div",{className:de,children:h.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}const{Header:cn}=n.Layout,{useToken:un}=n.theme;function mn(e){const{layoutConfig:r}=B(),{token:o,theme:i}=un(),a=t.useNavigate(),l=r.headerTransparent||r.headerBlur?L(o.colorBorderSecondary,.6):o.colorBorderSecondary,s=r.hideBorder?"0px":"1px solid "+l,d=r.flated&&"headMenu"==r.layoutType||1==i.id?"dark":"light",c=r.flated&&"headMenu"==r.layoutType?"dark":"light",u=r.flated&&"headMenu"==r.layoutType?o.colorPrimary:o.colorBgContainer,m={height:e.height+"px",lineHeight:e.height+"px"};let p=h.jsx(h.Fragment,{}),x={...m,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":u};r.headerBlur&&(x={...x,backgroundColor:L(u,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let f={...m,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[O],y=h.jsx(h.Fragment,{});"headMenu"==r.layoutType?(p=h.jsx("div",{style:m}),x={...x,paddingInlineEnd:o.paddingXS+"px"},y=h.jsx("div",{className:D,style:{width:r?.asideWidth+"px"},children:h.jsx(Ve,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),g.push(R)):(x={...x,paddingInline:o.paddingXS+"px"},g.push(A));let b=h.jsx(Xe,{children:e.title}),_=h.jsx(sn,{iconSize:r.compact?12:14});const v=[W];r.flated||v.push(ge);let j="dark"==d?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return r.noneHeader?h.jsx(h.Fragment,{}):h.jsxs(h.Fragment,{children:[p,h.jsx(n.ConfigProvider,{theme:{algorithm:j},children:h.jsx(n.Layout,{className:g.join(" "),style:f,children:h.jsxs(cn,{className:v.join(" "),style:x,children:[_,y,b,h.jsx(n.Menu,{onClick:e=>{a(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:c,classNames:{root:H},items:e.menuData||[]}),h.jsx(rn,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:pn}=n.Layout,{useToken:hn}=n.theme,{useBreakpoint:xn}=n.Grid;function fn(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:l}=B(),{asideWidth:s}=l,d=r.headerHeight,{collapsed:c,setCollapsed:u}=Re(),{token:m,theme:p}=hn(),x=t.useNavigate(),f=xn().xs?0:d,g=l.headerTransparent||l.headerBlur?L(m.colorBorderSecondary,.6):m.colorBorderSecondary,y=l.hideBorder||0==f&&c?"0px":"1px solid "+g,b=l.noneHeader&&"leftMenu"==l.layoutType,_=l.containerMargin||0,v="headMenu"==l.layoutType||0==f?r.headerHeight:0,j="headMenu"==l.layoutType||0==f?"calc(100% - "+r.headerHeight+"px)":"100%";let w={width:`${l.asideWidth}px`,height:`${j}`,insetBlockStart:v+"px",maxWidth:`${l.asideWidth}px`,minWidth:`${l.asideWidth}px`,borderRight:y,boxShadow:f>0?"none":m.boxShadowTertiary,position:"fixed",margin:b?_/2:"0px",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},k={overflow:"auto",flex:1};const S=m.Menu?.iconSize,C=1==p.id?"dark":"light",M=C;let I=0,P=h.jsx(h.Fragment,{});"leftMenu"==l.layoutType&&(I=l.headerHeight||0,P=l.largeBrand?h.jsx(qe,{collapsed:c,iconSize:S}):h.jsx(Ue,{collapsed:c,iconSize:S,hideTitle:!0}));const T=l.asideTransparent&&f>0?"transparent":l.asideBlur?L(m.colorBgContainer,.6):m.colorBgContainer;w={...w,backgroundColor:T},l.asideBlur&&(w={...w,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(k={...k,overflow:"hidden"});let N=[X];N.push(G);let z=h.jsx(h.Fragment,{});switch(l.collapsedPosition){case"bottom":z=h.jsx(an,{iconSize:S,style:{backgroundColor:T,width:`${d}px`,borderRight:y}});break;case"center":z=h.jsx(ln,{iconSize:12,flated:l.flated,offset:I,style:{backgroundColor:T}});break;case"top":z=l.noneHeader?h.jsx(h.Fragment,{}):h.jsx(ln,{iconSize:12,top:!0,flated:l.flated,offset:I,style:{backgroundColor:T}})}let F=r.menuData||[];return l.asideMenuGroup&&F.forEach(e=>{e.children&&(e.type="group")}),h.jsxs(h.Fragment,{children:[h.jsx("div",{style:{width:c?d:s,flex:`0 0 ${c?d:s}px`,maxWidth:c?d:s,minWidth:c?d:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:q}),h.jsxs(pn,{width:s,className:N.join(" "),style:w,theme:M,collapsedWidth:f,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[f>0?P:h.jsx(h.Fragment,{}),r.header,h.jsx("div",{style:k,children:h.jsx(n.Menu,{onClick:e=>{0==f&&u(!0),x(e.key)},onOpenChange:e=>{a(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:l.asideMenuInline?"inline":"vertical",selectedKeys:r.selectedKeys,openKeys:c?void 0:i,defaultSelectedKeys:r.selectedKeys,defaultOpenKeys:o.current,theme:C,items:F})}),r.footer,"leftBottom"==l.avatarPosition?h.jsx(Qe,{collapsed:c,iconSize:S}):h.jsx(h.Fragment,{}),z]})]})}const gn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,gn(r)),e},{});function yn(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const bn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=jn(e);r.children=bn(e.children),n.push(r)}),n},_n=(e,n)=>{if(e)return e.map(e=>{const r=vn(e,n),t={...e,label:r};return e.children&&(t.children=_n(e.children,n)),t})},vn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),jn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function wn(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function kn(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function Sn(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:Cn(n.extra),icon:Cn(n.icon)};return o}(e,n);return n.children&&(r.children=Sn(r.path,n.children)),r})}const Cn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:Bn}=n.theme;function Mn(n){const{layoutConfig:o,themeSkin:i}=B(),a=r.useIntl(),{token:l}=Bn(),[s,d]=e.useState(!1),c={backgroundColor:l.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const m=o.disabledLocale?n.menuData:_n(n.menuData,a),p=m&&m?.length>0?m[0].children:[],x=gn(m||[]),f=bn(p),g=t.useMatches(),y=g.map(e=>e.pathname),b=g[g.length-1];let _=[],v=[],j=[],w=[];if("leftMenu"==o.layoutType?(w=f||[],v=y):(j=f||[],_=y),o.splitMenu){const[e,n]=kn(y),{rootMenuItems:r,childrenMenuItems:t}=yn(f,y);"leftMenu"==o.layoutType?(w=r,j=t,v=e,_=n):(w=t,j=r,_=e,v=n)}const k=e.useMemo(()=>o.asideBlur||o.headerBlur?L(l.colorBgContainer,.6):l.colorBgContainer,[o.asideBlur,o.headerBlur,l.colorBgContainer]),S=e.Children.toArray(n.children),C=S.find(n=>e.isValidElement(n)&&n.type.role===Pe),M=S.find(n=>e.isValidElement(n)&&n.type.role===Te),I=S.find(n=>e.isValidElement(n)&&n.type.role===Fe),P=S.find(n=>e.isValidElement(n)&&n.type.role===Le),T=S.find(n=>e.isValidElement(n)&&n.type.role===Ee),z=S.find(n=>e.isValidElement(n)&&n.type.role===Oe),F=S.find(n=>e.isValidElement(n)&&n.type.role===Ae),E=Be,O=e.useMemo(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:P,brandPopoverContent:T,toolbarExtraItems:F,containerBackground:k,flattenMenuMap:x,setCollapsed:d}),[s,u,n.layoutIcons,x,k]),A=o.hideAsideMenuDataEmpty&&w.length<=0&&"headMenu"==o.layoutType,R=x[b.pathname].label||"";return document.title=R,h.jsxs(h.Fragment,{children:[h.jsx(E,{value:O,children:h.jsxs(N,{...n,style:c,children:[h.jsx(N.Aside,{children:A?h.jsx(h.Fragment,{}):h.jsx(fn,{headerHeight:u,header:C,footer:M,menuData:w,selectedKeys:v,openerKeys:v})}),h.jsx(N.Header,{children:h.jsx(mn,{height:u,menuData:j,selectedKeys:_,title:R})}),h.jsx(N.Content,{children:h.jsx(t.Outlet,{context:{title:R,footer:I}})}),h.jsx(N.Background,{children:i?i.backgroundContent:h.jsx(h.Fragment,{})})]})}),z]})}const In="#417ffb",Pn=e=>i.generate(e),Tn=()=>Pn("#000000"),Nn=()=>Pn("#FFFFFF");function zn(e){const n=We(),{layoutConfig:r}=B(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?h.jsx(h.Fragment,{}):h.jsxs("div",{className:J,style:o,children:[h.jsx("div",{children:e.icon}),h.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function Fn(e){return h.jsx(h.Fragment,{children:e.children})}function Ln(e){return h.jsx("div",{className:Y,children:e.children})}function En(e){return h.jsx("div",{className:Y,children:e.children})}Fn.displayName="AsideContentItems",zn.displayName="AsideContentItem",En.displayName="AsideHeaderContent",En.Items=Fn,En.Item=zn,Ln.displayName="AsideFooterContent",Ln.Items=Fn,Ln.Item=zn,Ln.role=Te,En.role=Pe,Fn.role=Ne,zn.role=ze;const On="adminui-default-config",An=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),Rn=e=>{e||(e=On);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},Wn=(e,n)=>{n||(n=On);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},Hn=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function $n(e){const r=t.useMatches(),{flattenMenuMap:o}=Re(),{layoutConfig:i}=B(),a=[];r.forEach((e,n)=>{const r=o[e.pathname],t=r?r.label:"";a.push({path:e.pathname,title:t,icon:r.icon})});let l=[ce];return"first"==i.visibleBreadcrumbIcon?l.push(ue):"all"==i.visibleBreadcrumbIcon&&l.push(me),h.jsx(n.Breadcrumb,{classNames:{root:l.join(" ")},style:e.style,items:a,itemRender:Dn})}function Dn(e,n,r,o){return e?.path===r[r.length-1]?.path?h.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):h.jsxs(t.Link,{className:"adminui-breadcrumb-link",to:"/"+o[o.length-1],children:[e.icon,e.title]})}const{useToken:Gn}=n.theme,{useBreakpoint:Kn}=n.Grid;const Vn=e=>h.jsx("div",{...e,children:e.children});function Un({children:e}){return h.jsx(h.Fragment,{children:e})}Vn.displayName="ContentFooter",Vn.role=Fe,Un.displayName="SoltContent",Un.role=Oe;const Xn="adminui-locale",qn=Tn(),Yn=Nn(),Jn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Qn(o){const a=t.useMatches(),{pathname:l}=a[0],s={...k,...o.layoutConfig,...o.disabledStorageConfig?{}:Rn(l)};let d=o.themeSkins||[];const c=e.useMemo(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(d),[d]),u=o.locale||localStorage.getItem(Xn)||s.locale||"en-US",m=o.menuData?Sn("/",[o.menuData]):[],[p,x]=e.useState(()=>{if(s.skinName){const e=Jn(s.skinName,c);return Hn(s,e)}return s}),[f,g]=e.useState(u),y=C,b=S;let _=o.localeMessages||{};const v=e.useMemo(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(_),[_]),j=e=>{localStorage.setItem(Xn,e),g(e)};document.documentElement.style.setProperty("--pageload-bar-color",p.primaryColor),e.useEffect(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===p.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(p.theme)},[p.theme]);const w=e.useMemo(()=>{if(p.skinName)return Jn(p.skinName,c)},[d,p.skinName]),B="system"==(M=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":M;var M;const I=e=>{x(e),o.disabledStorageConfig||Wn(e,l)},P=e.useMemo(()=>({layoutConfig:p,locale:f,languages:v,themeSkin:w,themeSkinMap:c}),[v,f,v,c,w,p]),T=e.useMemo(()=>({setLayoutConfig:I,setLocale:j}),[]),N=_[f]||_["en-US"],z=["he","ar","fa","ku"].filter(e=>f.startsWith(e)).length?"rtl":"ltr";let F="dark"===B?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],L=p.menuIconSize||14;const E=p.menuIconSize?.1*(L-10)+10:10;p.compact&&(F.push(n.theme.compactAlgorithm),L-=2);const O="dark"===B?Yn:qn,A="dark"===B?qn:Yn,R=i.generate(p.primaryColor||In);let W={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:L,fontSize:L,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:E,activeBarHeight:p.compact?2:4,darkPopupBg:qn[4]};if(p.menuItemSelectColor&&"default"!=p.menuItemSelectColor){const e="invert"==p.menuItemSelectColor;W={...W,itemActiveBg:e?O[0]:R[1],itemSelectedBg:e?O[3]:p.primaryColor,itemSelectedColor:e?A[2]:Yn[2]}}const H={algorithm:F,token:{colorPrimary:p.primaryColor,borderRadius:p.flated?0:6},components:{Menu:W,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return h.jsx(y.Provider,{value:P,children:h.jsx(b.Provider,{value:T,children:h.jsx(n.ConfigProvider,{theme:H,locale:N?.antdLocale,direction:z,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:h.jsx(n.App,{style:{height:"100%",width:"100%"},children:h.jsx(r.IntlProvider,{locale:f,messages:N?.messages,children:h.jsx(Mn,{menuData:m,layoutIcons:o.layoutIcons,children:o.children})})})})})})}Qn.AsideHeader=En,Qn.AsideFooter=Ln,Qn.Footer=Vn,Qn.AvatarPopoverContent=en,Qn.BrandPopoverContent=Ye,Qn.SoltContent=Un,Qn.HeaderToolbarExtra=tn;var Zn={exports:{}};
|
|
11
21
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
12
|
-
* @license MIT */
|
|
22
|
+
* @license MIT */Zn.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),s(d,a(e,c,u)),1===e?(s(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){s(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),l=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}();var er=a(Zn.exports);er.configure({showSpinner:!1});const nr=()=>(e.useEffect(()=>{const e=setTimeout(()=>{er.start()},200);return()=>{clearTimeout(e),er.done()}},[]),h.jsx("div",{style:{height:"auto"}}));Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return i.generate}}),exports.AntdLayout=Qn,exports.Container=function(e){const{mode:r="inline",stretch:t="inline"}=e,{token:o}=Gn(),{xs:i}=Kn(),{layoutConfig:a}=B(),{footer:l,title:s}=He(),{containerMargin:d=0}=a;let c={},u={flex:"none"},m={borderRadius:a.compact?o.borderRadius:o.borderRadiusLG},p={display:"flex"};const x=e.hideBorder||a.hideBorder,f=e.hideBreadcrumb||a.hideBreadcrumb,g=e.hideTitle||a.hideTitle,y=a.noneHeader&&"leftMenu"==a.layoutType;"box"!=r&&"panel"!=r||(c={padding:o.padding},"panel"==r&&(m={...m,padding:o.padding,backgroundColor:o.colorBgContainer},x||(m={...m,border:`solid 1px ${o.colorBorderSecondary}`}))),"fill"!=t&&"auto"!=t||(u={...u,flex:"auto"},"fill"==t&&(m={...m,minHeight:"100%"})),console.log(d>0),y&&(c={...c,backgroundColor:o.colorBgContainer,borderRadius:d>0?o.padding:`${o.padding}px 0px 0px ${o.padding}px`,padding:"0px",margin:d},p={...p,padding:o.paddingXS,borderBlockEnd:`solid 1px ${o.colorBorderSecondary} `});const b=f?h.jsx(h.Fragment,{}):h.jsx($n,{}),_=g?h.jsx(h.Fragment,{}):h.jsx("h3",{children:e.title||s});m={...m,...e.style};const v=y?h.jsx(Xe,{children:e.title||s}):h.jsx(h.Fragment,{}),j=y?h.jsx(sn,{iconSize:a.compact?12:14}):h.jsx(h.Fragment,{}),w=y&&"top"==a.collapsedPosition&&!i?h.jsxs(h.Fragment,{children:[h.jsx(dn,{iconSize:a.compact?12:14}),h.jsx(n.Divider,{orientation:"vertical"})]}):h.jsx(h.Fragment,{}),k=!(e.hideFooter||a.hideFooter)&&e.children&&l?h.jsx("footer",{children:l}):h.jsx(h.Fragment,{}),S=y?h.jsx(rn,{showAvatar:"rightTop"==a.avatarPosition}):h.jsx(h.Fragment,{}),C=y&&i?h.jsx(h.Fragment,{}):h.jsxs("div",{className:xe,children:[b,_]});return h.jsxs("div",{className:pe,style:c,children:[h.jsxs("div",{className:he,style:p,children:[j,v,w,C,h.jsx("div",{className:fe,children:S})]}),h.jsx("main",{style:u,children:h.jsx("div",{style:m,children:e.children})}),k]})},exports.DEFAULT_PRIMARY_COLOR=In,exports.FullScreenButton=z,exports.LazyAvatar=function(r){const[t,o]=e.useState(!1);return e.useEffect(()=>{if(r.src)if("string"==typeof r.src){const e=new Image;e.src=r.src,e.onload=()=>o(!0),e.onerror=()=>o(!0)}else o(!0)},[r.src]),h.jsx(n.Avatar,{...r,style:{...r.style,opacity:t?1:0,transition:"opacity 0.3s ease-out"}})},exports.LazyImage=Ce,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return h.jsx(e.Suspense,{fallback:h.jsx(nr,{}),children:h.jsx(r,{...n})})}},exports.PageLoading=nr,exports.RouteLoading=()=>(e.useEffect(()=>(er.start(),()=>{er.done()}),[location.hostname]),h.jsx("div",{style:{height:"auto"}})),exports.ToolbarIcon=Ge,exports.buildRouteWithParams=function(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")},exports.flattenMenuData=gn,exports.getAntdMenuItem=jn,exports.getAppIntl=An,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=Tn,exports.getMenuLabel=vn,exports.getStorageConfig=Rn,exports.getWhiteColors=Nn,exports.hexToRgb=e=>{const{r:n,g:r,b:t}=F(e);return{r:n,g:r,b:t}},exports.hexToRgbaString=L,exports.localeMenuData=_n,exports.matchPathToKeys=function(e){return wn(e)},exports.pathToKeys=wn,exports.separateMenuData=yn,exports.setSkinConfig=Hn,exports.setStorageConfig=Wn,exports.splitMenuKeys=kn,exports.transformMenuData=Sn,exports.transformRouteToMenuData=function e(n,r){if(r)return!n.endsWith("/")&&n.length>1&&(n+="/"),r.filter(e=>!!e.handle).map(r=>{const t=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=o.generatePath(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let i=e+t,a={...r,path:i,originalPath:n.path,extra:Cn(r.extra),icon:Cn(r.icon)};return a}(n,r);return r.children&&(t.children=e(t.path,r.children)),t})},exports.transformToAntdMenuData=bn,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=B(),{f:t,t:o}=An(n.disabledLocale?void 0:e);return{...e,f:t,t:o}},exports.useAvatarPopover=()=>e.useContext(Me),exports.useBrandPopover=()=>e.useContext(Ie),exports.useConfigAction=()=>e.useContext(S),exports.useConfigState=B,exports.useContainerOutlet=He,exports.useMainCollapsed=We,exports.useTheme=()=>B().layoutConfig.theme;
|
package/dist/index.d.ts
CHANGED
|
@@ -1095,6 +1095,7 @@ declare function LazyImage(props: React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
|
1095
1095
|
hasChild?: boolean;
|
|
1096
1096
|
}): react_jsx_runtime.JSX.Element;
|
|
1097
1097
|
|
|
1098
|
+
declare const DEFAULT_PRIMARY_COLOR = "#417ffb";
|
|
1098
1099
|
declare const getBlackColors: () => string[];
|
|
1099
1100
|
declare const getWhiteColors: () => string[];
|
|
1100
1101
|
|
|
@@ -1203,7 +1204,10 @@ declare const getBasicLayoutConfig: (config: LayoutConfig) => {
|
|
|
1203
1204
|
primaryColor?: string;
|
|
1204
1205
|
highlight?: boolean;
|
|
1205
1206
|
flated?: boolean;
|
|
1207
|
+
noneHeader?: boolean;
|
|
1206
1208
|
menuIconSize?: number;
|
|
1209
|
+
menuItemSelectColor?: _adminui_dev_layout.MenuItemSelectColor;
|
|
1210
|
+
containerMargin?: number;
|
|
1207
1211
|
compact?: boolean;
|
|
1208
1212
|
largeBrand?: boolean;
|
|
1209
1213
|
splitMenu?: boolean;
|
|
@@ -1244,5 +1248,5 @@ declare const setStorageConfig: (config: LayoutConfig, name?: string) => void;
|
|
|
1244
1248
|
*/
|
|
1245
1249
|
declare const setSkinConfig: (layoutConfig: LayoutConfig, themeSkin?: ThemeSkin) => LayoutConfig;
|
|
1246
1250
|
|
|
1247
|
-
export { AntdLayout, Container, LazyAvatar, LazyImage, LazyPage, PageLoading, RouteLoading, ToolbarIcon, buildRouteWithParams, flattenMenuData, getAntdMenuItem, getAppIntl, getBasicLayoutConfig, getBlackColors, getMenuLabel, getStorageConfig, getWhiteColors, localeMenuData, matchPathToKeys, pathToKeys, separateMenuData, setSkinConfig, setStorageConfig, splitMenuKeys, transformMenuData, transformRouteToMenuData, transformToAntdMenuData, useAppIntl, useAvatarPopover, useBrandPopover, useContainerOutlet, useMainCollapsed };
|
|
1251
|
+
export { AntdLayout, Container, DEFAULT_PRIMARY_COLOR, LazyAvatar, LazyImage, LazyPage, PageLoading, RouteLoading, ToolbarIcon, buildRouteWithParams, flattenMenuData, getAntdMenuItem, getAppIntl, getBasicLayoutConfig, getBlackColors, getMenuLabel, getStorageConfig, getWhiteColors, localeMenuData, matchPathToKeys, pathToKeys, separateMenuData, setSkinConfig, setStorageConfig, splitMenuKeys, transformMenuData, transformRouteToMenuData, transformToAntdMenuData, useAppIntl, useAvatarPopover, useBrandPopover, useContainerOutlet, useMainCollapsed };
|
|
1248
1252
|
export type { AntdMenuData, AsideContentProps, AsideLayoutProps, AsidePanelProps, AvatarPanelProps, BrandPanelProps, CollapsedPanelProps, HeaderLayoutProps, IconComponents, LocaleMessage, MainDispatcher, MainLayoutProps, PopoverDispatcher };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{createContext as n,useContext as r,useState as t,useEffect as
|
|
1
|
+
import e,{createContext as n,useContext as r,useState as t,useEffect as o,useRef as i,useMemo as a,lazy as l,Suspense as s}from"react";import{Avatar as d,theme as c,Popover as u,Button as m,Divider as p,Layout as h,ConfigProvider as f,Menu as x,Grid as g,Breadcrumb as y,App as b}from"antd";import{useIntl as _,IntlProvider as v}from"react-intl";import{useOutletContext as j,useNavigate as w,useMatches as k,Outlet as S,Link as C}from"react-router";import{generatePath as B}from"react-router-dom";import{generate as I}from"@ant-design/colors";export{generate}from"@ant-design/colors";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function T(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,N={exports:{}},M={};var z,F={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
@@ -7,6 +7,16 @@ import e,{createContext as n,useContext as r,useState as t,useEffect as i,useRef
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/"production"===process.env.NODE_ENV?z.exports=function(){if(P)return T;P=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var i=null;if(void 0!==t&&(i=""+t),void 0!==r.key&&(i=""+r.key),"key"in r)for(var o in t={},r)"key"!==o&&(t[o]=r[o]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:i,ref:void 0!==r?r:null,props:t}}return T.Fragment=n,T.jsx=r,T.jsxs=r,T}():z.exports=(N||(N=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case f:return(e._context.displayName||"Context")+".Consumer";case b:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),r(e)}}function i(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return P[e]||(P[e]=!0,console.error("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.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,i,o,l,s){var u,p=r.children;if(void 0!==p)if(o)if(I(p)){for(o=0;o<p.length;o++)d(p[o]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});o=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",N[p+o]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('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} />',o,p,h,p),N[p+o]=!0)}if(p=null,void 0!==i&&(t(i),p=""+i),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var x in i={},r)"key"!==x&&(i[x]=r[x]);else i=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%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)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(i,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,i,o){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,i,null===(u=S.A)?null:u.getOwner(),l,s)}function d(e){s(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?s(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function s(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),S=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,M=console.createTask?console.createTask:function(){return null},P={},z=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,o)(),T=M(i(o)),N={};F.Fragment=h,F.jsx=function(e,n,r){var t=1e4>S.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):z,t?M(i(e)):T)},F.jsxs=function(e,n,r){var t=1e4>S.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):z,t?M(i(e)):T)}}()),F);var L=z.exports;function E(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}E("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n}\r\n");const W=Symbol("LayoutAside"),O=Symbol("LayoutContent"),A=Symbol("LayoutHeader"),R=Symbol("LayoutBackground"),H={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},$=n({setLayoutConfig:()=>{},setLocale:()=>{}}),G=n({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),K=()=>r(G),V=()=>r($),U=()=>K().layoutConfig.theme;function X(e){return L.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:L.jsx(L.Fragment,{children:e.children})})}function D(e){return L.jsx(L.Fragment,{children:e.children})}function q(e){return L.jsx(L.Fragment,{children:e.children})}function Y(e){return L.jsx(L.Fragment,{children:e.children})}X.displayName="LayoutBackground",X.role=R,D.displayName="LayoutContent",D.role=O,q.displayName="LayoutAside",q.role=W,Y.displayName="LayoutHeader",Y.role=A;function J(n){let r=null,t=null,i=null,o=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===A?r=e:n===O?t=e:n===W?i=e:n===R&&(o=e)}),L.jsx(L.Fragment,{children:L.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[o,L.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[i,L.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function Z(n){const r=!!document.fullscreenElement,[o,a]=t(r),l=()=>{a(!!document.fullscreenElement)},d=e=>{"F11"===e.code&&(e.preventDefault(),s())};i(()=>(document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",d,!0),()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",d)}),[]);const s=()=>{o?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return L.jsx(L.Fragment,{});const[c,u]=n.buttons,m=o?c:u;return e.cloneElement(m,{onClick:e=>{console.log(e),s()}})}E("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n}\r\n"),J.Aside=q,J.Content=D,J.Header=Y,J.Background=X;const Q=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),ee=e=>{const{r:n,g:r,b:t}=Q(e);return{r:n,g:r,b:t}},ne=(e,n)=>{const{r:r,g:t,b:i,a:o}=Q(e);return`rgba(${r}, ${t}, ${i}, ${n??o})`};function re(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}re("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n");var te="index-module_headerLayout__rv59v",ie="index-module_headerLayoutSticky__6uFCj",oe="index-module_headerLayoutFixed__t5Hmo",ae="index-module_headerLayoutBox__h0fIt",le="index-module_headerMenu__WHmJN",de="index-module_headerTitle__jGbCX",se="index-module_headerBrandBox__U2J16",ce="index-module_layoutBlur__GpCPx",ue="index-module_toolbarPanel__Pp8PS",me="index-module_toolbarItem__RkaXd",pe="index-module_toolbarAvatarItem__p6TXY",he="index-module_siderBaseStyle__zg1FM",xe="index-module_siderMask__cCjMh",ge="index-module_siderContentBox__dGgRe",fe="index-module_siderContentItem__kl3cR",ye="index-module_collapsedTrack__LoJ3V",be="index-module_collapsedTrackButton__m33XS",_e="index-module_brandPanel__2GRgq",ve="index-module_labelBox__dX8fY",je="index-module_brandNodeBox__W-iM6",we="index-module_brandMobilePanel__m1Diu",ke="index-module_largeBrandPanel__pLn--",Ce="index-module_title__SbfFY",Se="index-module_largeBrandCollPanel__nsGKB",Be="index-module_avatarPanel__fFvCS",Ie="index-module_collapsedMobile__Yu8F4",Me="index-module_breadcrumbBox__w3MOx",Pe="index-module_breadcrumbFirstIcon__9zEmW",ze="index-module_breadcrumbAllIcon__HYkKa",Te="index-module_containerBox__pv0qs",Ne="index-module_round__WoVxM";function Fe(e){const{size:n=16}=e;return L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"m15 18-6-6 6-6"})})}function Le(e){const{size:n=16}=e;return L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"m9 18 6-6-6-6"})})}function Ee(e){const{size:n=16}=e;return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M21 5H11"}),L.jsx("path",{d:"M21 12H11"}),L.jsx("path",{d:"M21 19H11"}),L.jsx("path",{d:"m7 8-4 4 4 4"})]})}function We(e){const{size:n=16}=e;return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M21 5H11"}),L.jsx("path",{d:"M21 12H11"}),L.jsx("path",{d:"M21 19H11"}),L.jsx("path",{d:"m3 8 4 4-4 4"})]})}function Oe(e){const{size:n=16}=e;return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"m7 15 5 5 5-5"}),L.jsx("path",{d:"m7 9 5-5 5 5"})]})}function Ae(e){const{size:n=16}=e;return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),L.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Re(e){const{size:n=16}=e;return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),L.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),L.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),L.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function He(e){const{size:n=16}=e;return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),L.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),L.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),L.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function $e(e){const[n,r]=t(!1);return i(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]),L.jsx(s,{...e,style:{...e.style,opacity:n?1:0,transition:"opacity 0.3s ease-out"}})}function Ge(e){const[n,r]=t(!1),{hasChild:o,...a}=e;i(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,display:"flex",justifyItems:"center",alignItems:"center"},d=L.jsx("img",{...a});return e.hasChild?d:L.jsx("div",{style:l,children:d})}re('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx,.adminui-layout-blur { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n overflow: hidden;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n.index-module_containerBox__pv0qs>h3 {\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0 0 var(--adminui-margin);\r\n}\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-title-content-with-extra,.index-module_headerLayout__rv59v .adminui-menu-title-content-with-extra{\r\n width: auto; \r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-item-extra,.index-module_headerLayout__rv59v .adminui-menu-item-extra{\r\n display: inline-flex;\r\n}\r\n\r\n\r\n/** Menu icon automatic compact mode */\r\n.adminui-menu-icon {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n\r\n.adminui-menu .adminui-menu-title-content-with-extra {\r\n width: auto;\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const Ke=n({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),Ve=n({close:()=>{}}),Ue=n({close:()=>{}}),Xe=Symbol("AsideFooter"),De=Symbol("AsideHeader"),qe=Symbol("AsideContentItems"),Ye=Symbol("AsideContentItem"),Je=Symbol("ContentFooter"),Ze=Symbol("AvatarPopoverContent"),Qe=Symbol("BrandPopoverContent"),en=Symbol("SoltContent"),nn=Symbol("ToolbarExtraItems"),rn=()=>r(Ke),tn=()=>rn().collapsed,on=()=>j(),an=()=>Ve,ln=()=>Ue,dn=()=>r(Ve),sn=()=>r(Ue);function cn(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:un}=c;function mn(e){const{collapsed:n,iconSize:r,hideTitle:i}=e,{layoutConfig:o}=K(),{token:a}=un(),{layoutIcons:l,brandPopoverContent:d}=rn(),[s,c]=t(!1),p=ln(),h=o.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:o.compact?a.paddingXXS:a.paddingXS,height:"40px",gap:(o.compact?6:8)+"px"},g={height:`${o.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};o.flated&&(x={...x,paddingInline:a.padding,height:"100%"},g={...g,padding:"0px"});const{brandInfo:y}=o;n?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:f={...f,overflow:"hidden"};let b=L.jsx(L.Fragment,{});y?.logo&&(b="string"==typeof y.logo?L.jsx(Ge,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):L.jsx("div",{className:je,style:{width:h,minWidth:h},children:y.logo}));const _=l?.itemMoreIcon||L.jsx(Oe,{}),v=L.jsx(m,{type:"text",style:x,iconPlacement:"end",icon:d?L.jsx(cn,{icon:_,size:r||14,style:{opacity:n?"0":"1"}}):void 0,children:L.jsxs("div",{style:f,children:[b,L.jsxs("div",{className:ve,style:{opacity:n?"0":"1"},children:[L.jsx("h4",{children:y?.name}),i?void 0:L.jsx("span",{style:{color:a.colorTextSecondary},children:y?.title})]})]})});return L.jsx("div",{className:_e,style:g,children:d?L.jsx(p.Provider,{value:{close:()=>{c(!1)},record:y},children:L.jsx(u,{open:s,onOpenChange:c,placement:"rightTop",content:d,children:v})}):v})}function pn(e){const{collapsed:n,iconSize:r,hideTitle:i}=e,{layoutConfig:o}=K(),{layoutIcons:a,brandPopoverContent:l}=rn(),{token:d}=un(),[s,c]=t(!1),m=ln(),p=o.compact?"16px":"20px";let h={justifyContent:"flex-start",gap:(o.compact?6:8)+"px"},x={height:`${o.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};o.flated&&(h={...h,paddingInline:d.padding},x={...x,padding:"0px"});const{brandInfo:f}=o;n?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let y=L.jsx(L.Fragment,{});f?.logo&&(y="string"==typeof f.logo?L.jsx(Ge,{style:{width:p,minWidth:p},src:f.logo,alt:f.name}):L.jsx("div",{className:je,style:{width:p,minWidth:p},children:f.logo}));const b=a?.itemMoreIcon||L.jsx(Oe,{}),_=l?{}:{href:f?.url},v=L.jsxs("a",{..._,style:h,children:[L.jsxs("div",{style:g,children:[y,L.jsxs("div",{className:ve,style:{opacity:n?"0":"1"},children:[L.jsx("h4",{style:{width:"90%"},children:f?.name}),i?void 0:L.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:f?.title})]})]}),l?L.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:L.jsx(cn,{icon:b,size:r||14})}):L.jsx(L.Fragment,{})]});return L.jsx("div",{className:_e,style:x,children:l?L.jsx(m.Provider,{value:{close:()=>{c(!1)},record:f},children:L.jsx(u,{open:s,onOpenChange:c,placement:"rightTop",content:l,children:v})}):v})}function hn(e){const{layoutConfig:n}=K(),{brandPopoverContent:r}=rn(),[i,o]=t(!1),a=ln(),l=n.compact?"16px":"20px",{brandInfo:d}=n;let s=L.jsx(L.Fragment,{});d?.logo&&(s="string"==typeof d.logo?L.jsx(Ge,{style:{width:l},src:d.logo,alt:d.name}):L.jsx("div",{className:je,style:{width:l},children:d.logo}));let c=r?L.jsx(a.Provider,{value:{close:()=>{o(!1)},record:d},children:L.jsx(u,{open:i,onOpenChange:o,content:r,placement:"rightTop",children:L.jsx("a",{children:s})})}):L.jsx("a",{href:d?.url,children:s});return L.jsxs("div",{className:we,style:e.style,children:[c,L.jsx("div",{className:de,children:e.children})]})}function xn(e){const{collapsed:n}=e,{brandPopoverContent:r}=rn(),{layoutConfig:i}=K(),[o,a]=t(!1),l=ln(),d=n?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:s}=i,c={opacity:n?"0":"1",height:n?"0px":"auto"};let m=L.jsx(L.Fragment,{});if(!s)return L.jsx(L.Fragment,{});let p=[ke];n&&p.push(Se),s?.logo&&(m="string"==typeof s.logo?L.jsx(Ge,{style:{width:d},src:s.logo,alt:s.name}):L.jsx("div",{className:je,style:{width:d},children:s.logo}));let h=r?L.jsx(l.Provider,{value:{close:()=>{a(!1)},record:s},children:L.jsx(u,{open:o,onOpenChange:a,content:r,placement:"rightTop",children:L.jsx("a",{children:m})})}):L.jsx("a",{href:s?.url,children:m});return L.jsxs("div",{className:p.join(" "),children:[h,L.jsxs("div",{style:c,children:[L.jsx("span",{children:s?.name}),s.title?L.jsx("span",{className:Ce,children:s?.title}):L.jsx(L.Fragment,{})]})]})}function gn(e){return L.jsx("div",{style:{...e.style},children:e.children})}gn.displayName="BrandPopoverContent",gn.role=Qe;const{useToken:fn}=c;function yn(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:i}=K(),{layoutIcons:o,avatarPopoverContent:a}=rn(),[l,d]=t(!1),s=an(),{token:c}=fn(),m=i.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},h={height:`${i.headerHeight}px`},x={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(p={...p,paddingInline:c.padding,margin:"0px",height:"100%"},h={...h,padding:"0px"});const{userInfo:g}=i;n?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:x={...x,overflow:"hidden"};let f=L.jsx(L.Fragment,{});g?.avatar&&(f="string"==typeof g.avatar?L.jsx(Ge,{style:{width:m,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const y=o?.itemMoreIcon||L.jsx(Oe,{}),b=L.jsx("div",{className:Be,style:h,children:L.jsxs("a",{style:p,children:[L.jsxs("div",{style:x,children:[f,L.jsxs("div",{className:ve,style:{opacity:n?"0":"1"},children:[L.jsx("h4",{children:g?.uid}),g?.title?void 0:L.jsx("span",{style:{color:c.colorTextSecondary},children:g?.title})]})]}),a?L.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:L.jsx(cn,{icon:y,size:r||14})}):L.jsx(L.Fragment,{})]})});return a?L.jsx(s.Provider,{value:{close:()=>d(!1),record:g},children:L.jsx(u,{open:l,onOpenChange:d,placement:"right",content:a,children:b})}):b}function bn(e){const{iconSize:n=14}=e,{layoutConfig:r}=K(),{userInfo:i}=r,{avatarPopoverContent:o}=rn(),[a,l]=t(!1),d=an();let s=L.jsx(Ae,{});const c=n+4,m={width:`${c}px`,height:`${c}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(s="string"==typeof i.avatar?L.jsx(Ge,{style:{width:c,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const p=L.jsxs("div",{className:pe,children:[L.jsx("div",{style:m,children:s}),L.jsx("span",{children:i?.uid})]});return o?L.jsx(d.Provider,{value:{close:()=>l(!1),record:i},children:L.jsx(u,{open:a,onOpenChange:l,placement:"left",content:o,children:p})}):L.jsx(L.Fragment,{children:p})}function _n(e){return L.jsx("div",{style:{...e.style},children:e.children})}_n.displayName="AvatarPopoverContent",_n.role=Ze;const{useToken:vn}=c;function jn(e){const{token:n}=vn(),{layoutIcons:r,toolbarExtraItems:t}=rn(),i=n.Menu?.iconSize||16,[o,a]=r?.fullScreenIcons?.slice(0,2)||[L.jsx(He,{}),L.jsx(Re,{})],l=L.jsx(cn,{icon:o,size:i}),d=L.jsx(cn,{icon:a,size:i});return L.jsxs("div",{className:ue,children:[e.showAvatar?L.jsxs("div",{className:me,children:[L.jsx(bn,{iconSize:i+4}),L.jsx(p,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):L.jsx(L.Fragment,{}),t,L.jsx("div",{className:me,"data-adminui-role":"desk-toolbar",children:L.jsx(Z,{buttons:[L.jsx(m,{icon:d,type:"text"},"minimize"),L.jsx(m,{icon:l,type:"text"},"maximize")]})})]})}function wn(e){const n=L.jsx("div",{className:me,"data-adminui-role":"desk-toolbar",children:e.children});return e?L.jsx(L.Fragment,{children:n}):L.jsx(L.Fragment,{})}wn.displayName="ToolbarExtraItems",wn.role=nn;const{useToken:kn}=c;function Cn(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:i}=rn(),o={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,d]=i?.collapsedIcons?.slice(0,2)||[L.jsx(Le,{}),L.jsx(Fe,{})];return L.jsx("div",{style:o,children:L.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:d})})}function Sn(e){const{style:n,offset:r=0,top:t}=e,{collapsed:i,setCollapsed:o,layoutIcons:a}=rn(),{token:l}=kn();let d={right:"-14px"},s={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(d={...d,right:"-12px",display:"initial"},s={...s,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[L.jsx(Le,{}),L.jsx(Fe,{})];return L.jsx("div",{className:ye,style:d,onClick:()=>{o(!i)},children:L.jsx("div",{style:s,className:be,children:i?c:u})})}function Bn(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=rn(),[i,o]=t?.mobileAsideIcons?.slice(0,2)||[L.jsx(We,{}),L.jsx(Ee,{})];return L.jsx("div",{className:Ie,children:L.jsx(m,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?i:o,onClick:()=>{r(!n)}})})}const{Header:In}=h,{useToken:Mn}=c;function Pn(e){const{layoutConfig:n}=K(),{token:r,theme:t}=Mn(),i=w(),o=n.headerTransparent||n.headerBlur?ne(r.colorBorderSecondary,.6):r.colorBorderSecondary,a=n.hideBorder?"0px":"1px solid "+o,l=n.flated&&"headMenu"==n.layoutType||1==t.id?"dark":"light",d=n.flated&&"headMenu"==n.layoutType?"dark":"light",s=n.flated&&"headMenu"==n.layoutType?r.colorPrimary:r.colorBgContainer,u={height:e.height+"px",lineHeight:e.height+"px"};let m=L.jsx(L.Fragment,{}),p={...u,borderBottom:a,backgroundColor:n.headerTransparent?"transparent":s};n.headerBlur&&(p={...p,backgroundColor:ne(s,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let f={...u,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},y=[te],b=L.jsx(L.Fragment,{});"headMenu"==n.layoutType?(m=L.jsx("div",{style:u}),p={...p,paddingInlineEnd:r.paddingXS+"px"},b=L.jsx("div",{className:se,style:{width:n?.asideWidth+"px"},children:L.jsx(mn,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),y.push(oe)):(p={...p,paddingInline:r.paddingXS+"px"},y.push(ie));let _=L.jsx(hn,{children:e.title}),v=L.jsx(Bn,{iconSize:n.compact?12:14});const j=[ae];n.flated||j.push(Ne);let k="dark"==l?[c.darkAlgorithm]:[c.defaultAlgorithm];return L.jsxs(L.Fragment,{children:[m,L.jsx(x,{theme:{algorithm:k},children:L.jsx(h,{className:y.join(" "),style:f,children:L.jsxs(In,{className:j.join(" "),style:p,children:[v,b,_,L.jsx(g,{onClick:e=>{i(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:d,classNames:{root:le},items:e.menuData||[]}),L.jsx(jn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:zn}=h,{useToken:Tn}=c,{useBreakpoint:Nn}=f;function Fn(e){const n=o([]);n.current=e.openerKeys||[];const[r,i]=t(e.openerKeys),{layoutConfig:a}=K(),{asideWidth:l}=a,d=e.headerHeight,{collapsed:s,setCollapsed:c}=rn(),{token:u,theme:m}=Tn(),p=w(),h=Nn().xs?0:d,x=a.headerTransparent||a.headerBlur?ne(u.colorBorderSecondary,.6):u.colorBorderSecondary,f=a.hideBorder||0==h&&s?"0px":"1px solid "+x,y="headMenu"==a.layoutType||0==h?e.headerHeight:0,b="headMenu"==a.layoutType||0==h?"calc(100% - "+e.headerHeight+"px)":"100%";let _={width:`${a.asideWidth}px`,height:`${b}`,insetBlockStart:y+"px",maxWidth:`${a.asideWidth}px`,minWidth:`${a.asideWidth}px`,borderRight:f,position:"fixed",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},v={overflow:"auto",flex:1};const j=u.Menu?.iconSize,k=1==m.id?"dark":"light",C=k;let S=0,B=L.jsx(L.Fragment,{});"leftMenu"==a.layoutType&&(S=a.headerHeight||0,B=a.largeBrand?L.jsx(xn,{collapsed:s,iconSize:j}):L.jsx(pn,{collapsed:s,iconSize:j,hideTitle:!0}));const I=a.asideTransparent?"transparent":a.asideBlur?ne(u.colorBgContainer,.6):u.colorBgContainer;_={..._,backgroundColor:I},a.asideBlur&&(_={..._,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),s&&(v={...v,overflow:"hidden"});let M=[he];M.push(ce);let P=L.jsx(L.Fragment,{});switch(a.collapsedPosition){case"bottom":P=L.jsx(Cn,{iconSize:j,style:{backgroundColor:I,width:`${d}px`,borderRight:f}});break;case"center":case"top":P=L.jsx(Sn,{iconSize:12,top:"top"==a.collapsedPosition,flated:a.flated,offset:S,style:{backgroundColor:I}})}let z=e.menuData||[];return a.asideMenuGroup&&z.forEach(e=>{e.children&&(e.type="group")}),L.jsxs(L.Fragment,{children:[L.jsx("div",{style:{width:s?d:l,flex:`0 0 ${s?d:l}px`,maxWidth:s?d:l,minWidth:s?d:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:xe}),L.jsxs(zn,{width:l,className:M.join(" "),style:_,theme:C,collapsedWidth:h,collapsible:!0,trigger:null,breakpoint:"md",collapsed:s,onCollapse:c,children:[h>0?B:L.jsx(L.Fragment,{}),e.header,L.jsx("div",{style:v,children:L.jsx(g,{onClick:e=>{0==h&&c(!0),p(e.key)},onOpenChange:e=>{i(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:a.asideMenuInline?"inline":"vertical",selectedKeys:e.selectedKeys,openKeys:s?void 0:r,defaultSelectedKeys:e.selectedKeys,defaultOpenKeys:n.current,theme:k,items:z})}),e.footer,"leftBottom"==a.avatarPosition?L.jsx(yn,{collapsed:s,iconSize:j}):L.jsx(L.Fragment,{}),P]})]})}const Ln=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Ln(r)),e},{});function En(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const i={...e,children:void 0};r.push(i)}),{rootMenuItems:r,childrenMenuItems:t}}const Wn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=Rn(e);r.children=Wn(e.children),n.push(r)}),n},On=(e,n)=>{if(e)return e.map(e=>{const r=An(e,n),t={...e,label:r};return e.children&&(t.children=On(e.children,n)),t})},An=(e,n)=>((e,n,r,t)=>{if(t){const i="menu"+e.replaceAll("/",".");return t.formatMessage({id:i,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),Rn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function Hn(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let i="";for(const e of r)i+=`/${e}`,t.push(i);return t}function $n(e){return Hn(e)}function Gn(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function Kn(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,i={name:t,path:t,label:n.label,originalPath:t,extra:Xn(n.extra),icon:Xn(n.icon)};return i}(e,n);return n.children&&(r.children=Kn(r.path,n.children)),r})}function Vn(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.filter(e=>!!e.handle).map(n=>{const r=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=B(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let i=e+t,o={...r,path:i,originalPath:n.path,extra:Xn(r.extra),icon:Xn(r.icon)};return o}(e,n);return n.children&&(r.children=Vn(r.path,n.children)),r})}function Un(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),i=n[r];if(null==i)break;t.push(encodeURIComponent(String(i)))}else t.push(e);return t.join("/")}const Xn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:Dn}=c;function qn(n){const{layoutConfig:r,themeSkin:i}=K(),o=_(),{token:l}=Dn(),[d,s]=t(!1),c={backgroundColor:l.colorBgLayout};let u=r.headerHeight||56;r.compact&&(u-=4);const m=r.disabledLocale?n.menuData:On(n.menuData,o),p=m&&m?.length>0?m[0].children:[],h=Ln(m||[]),x=Wn(p),g=k(),f=g.map(e=>e.pathname),y=g[g.length-1];let b=[],v=[],j=[],w=[];if("leftMenu"==r.layoutType?(w=x||[],v=f):(j=x||[],b=f),r.splitMenu){const[e,n]=Gn(f),{rootMenuItems:t,childrenMenuItems:i}=En(x,f);"leftMenu"==r.layoutType?(w=t,j=i,v=e,b=n):(w=i,j=t,b=e,v=n)}const S=a(()=>r.asideBlur||r.headerBlur?ne(l.colorBgContainer,.6):l.colorBgContainer,[r.asideBlur,r.headerBlur,l.colorBgContainer]),B=e.Children.toArray(n.children),I=B.find(n=>e.isValidElement(n)&&n.type.role===Xe),M=B.find(n=>e.isValidElement(n)&&n.type.role===De),P=B.find(n=>e.isValidElement(n)&&n.type.role===Je),z=B.find(n=>e.isValidElement(n)&&n.type.role===Ze),T=B.find(n=>e.isValidElement(n)&&n.type.role===Qe),N=B.find(n=>e.isValidElement(n)&&n.type.role===en),F=B.find(n=>e.isValidElement(n)&&n.type.role===nn),E=Ke,W=a(()=>({collapsed:d,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:z,brandPopoverContent:T,toolbarExtraItems:F,containerBackground:S,flattenMenuMap:h,setCollapsed:s}),[d,u,n.layoutIcons,h,S]),O=r.hideAsideMenuDataEmpty&&w.length<=0&&"headMenu"==r.layoutType,A=h[y.pathname].label||"";return document.title=A,L.jsxs(L.Fragment,{children:[L.jsx(E,{value:W,children:L.jsxs(J,{...n,style:c,children:[L.jsx(J.Aside,{children:O?L.jsx(L.Fragment,{}):L.jsx(Fn,{headerHeight:u,header:I,footer:M,menuData:w,selectedKeys:v,openerKeys:v})}),L.jsx(J.Header,{children:L.jsx(Pn,{height:u,menuData:j,selectedKeys:b,title:A})}),L.jsx(J.Content,{children:L.jsx(C,{context:{title:A,footer:P}})}),L.jsx(J.Background,{children:i?i.backgroundContent:L.jsx(L.Fragment,{})})]})}),N]})}const Yn=e=>I(e),Jn=()=>Yn("#22222222"),Zn=()=>Yn("#FFFFFF");function Qn(e){const n=tn(),{layoutConfig:r}=K(),t=r.compact?"16px":"20px";let i={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(i={...i,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?L.jsx(L.Fragment,{}):L.jsxs("div",{className:fe,style:i,children:[L.jsx("div",{children:e.icon}),L.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function er(e){return L.jsx(L.Fragment,{children:e.children})}function nr(e){return L.jsx("div",{className:ge,children:e.children})}function rr(e){return L.jsx("div",{className:ge,children:e.children})}er.displayName="AsideContentItems",Qn.displayName="AsideContentItem",rr.displayName="AsideHeaderContent",rr.Items=er,rr.Item=Qn,nr.displayName="AsideFooterContent",nr.Items=er,nr.Item=Qn,nr.role=De,rr.role=Xe,er.role=qe,Qn.role=Ye;const tr="adminui-default-config",ir=()=>{const e=_(),{layoutConfig:n}=K(),{f:r,t:t}=or(n.disabledLocale?void 0:e);return{...e,f:r,t:t}},or=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),ar=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},lr=e=>{e||(e=tr);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},dr=(e,n)=>{n||(n=tr);const{brandInfo:r,userInfo:t,...i}=e,o=JSON.stringify(i);window.localStorage.setItem(n,o)},sr=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function cr(e){const n=k(),{flattenMenuMap:r}=rn(),{layoutConfig:t}=K(),i=[];n.forEach((e,n)=>{const t=r[e.pathname],o=t?t.label:"";i.push({path:e.pathname,title:o,icon:t.icon})});let o=[Me];return"first"==t.visibleBreadcrumbIcon?o.push(Pe):"all"==t.visibleBreadcrumbIcon&&o.push(ze),L.jsx(y,{classNames:{root:o.join(" ")},style:e.style,items:i,itemRender:ur})}function ur(e,n,r,t){return e?.path===r[r.length-1]?.path?L.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):L.jsxs(S,{className:"adminui-breadcrumb-link",to:"/"+t[t.length-1],children:[e.icon,e.title]})}const{useToken:mr}=c;function pr(e){const{mode:n="inline",stretch:r="inline"}=e,{token:t}=mr(),{layoutConfig:i}=K(),{footer:o,title:a}=on();let l={},d={flex:"none"},s={borderRadius:i.compact?t.borderRadius:t.borderRadiusLG};const c=e.hideBorder||i.hideBorder,u=e.hideBreadcrumb||i.hideBreadcrumb,m=e.hideTitle||i.hideTitle;"box"!=n&&"panel"!=n||(l={padding:t.padding},"panel"==n&&(s={...s,padding:t.padding,backgroundColor:t.colorBgContainer},c||(s={...s,border:`solid 1px ${t.colorBorderSecondary}`}))),"fill"!=r&&"auto"!=r||(d={...d,flex:"auto"},"fill"==r&&(s={...s,minHeight:"100%"}));const p={margin:m?"0 0 1rem":"0px"},h=u?L.jsx(L.Fragment,{}):L.jsx(cr,{style:p}),x=m?L.jsx(L.Fragment,{}):L.jsx("h3",{children:e.title||a});s={...s,...e.style};let g=!(e.hideFooter||i.hideFooter)&&e.children&&o?L.jsx("footer",{children:o}):L.jsx(L.Fragment,{});return L.jsxs("div",{className:Te,style:l,children:[h,x,L.jsx("main",{style:d,children:L.jsx("div",{style:s,children:e.children})}),g]})}const hr=e=>L.jsx("div",{...e,children:e.children});function xr({children:e}){return L.jsx(L.Fragment,{children:e})}hr.displayName="ContentFooter",hr.role=Je,xr.displayName="SoltContent",xr.role=en;const gr="adminui-locale",fr=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function yr(e){const n=k(),{pathname:r}=n[0],o={...H,...e.layoutConfig,...e.disabledStorageConfig?{}:lr(r)};let l=e.themeSkins||[];const d=a(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(l),[l]),s=e.locale||localStorage.getItem(gr)||o.locale||"en-US",u=e.menuData?Kn("/",[e.menuData]):[],[m,p]=t(()=>{if(o.skinName){const e=fr(o.skinName,d);return sr(o,e)}return o}),[h,g]=t(s),f=G,y=$;let _=e.localeMessages||{};const j=a(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(_),[_]),w=e=>{localStorage.setItem(gr,e),g(e)};document.documentElement.style.setProperty("--pageload-bar-color",m.primaryColor),i(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===m.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(m.theme)},[m.theme]);const C=a(()=>{if(m.skinName)return fr(m.skinName,d)},[l,m.skinName]),S="system"==(B=m.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const I=n=>{p(n),e.disabledStorageConfig||dr(n,r)},M=a(()=>({layoutConfig:m,locale:h,languages:j,themeSkin:C,themeSkinMap:d}),[j,h,j,d,C,m]),P=a(()=>({setLayoutConfig:I,setLocale:w}),[]),z=_[h]||_["en-US"],T=["he","ar","fa","ku"].filter(e=>h.startsWith(e)).length?"rtl":"ltr";let N="dark"===S?[c.darkAlgorithm]:[c.defaultAlgorithm],F=m.menuIconSize||14;const E=m.menuIconSize?.1*(F-10)+10:10;m.compact&&(N.push(c.compactAlgorithm),F-=2);let W={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:F,fontSize:F,itemMarginInline:m.flated?0:4,iconMarginInlineEnd:E,activeBarHeight:m.compact?2:4,darkPopupBg:Jn()[4]};const O={algorithm:N,token:{colorPrimary:m.primaryColor,borderRadius:m.flated?0:6},components:{Menu:W,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return L.jsx(f.Provider,{value:M,children:L.jsx(y.Provider,{value:P,children:L.jsx(x,{theme:O,locale:z?.antdLocale,direction:T,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:L.jsx(b,{style:{height:"100%",width:"100%"},children:L.jsx(v,{locale:h,messages:z?.messages,children:L.jsx(qn,{menuData:u,layoutIcons:e.layoutIcons,children:e.children})})})})})})}yr.AsideHeader=rr,yr.AsideFooter=nr,yr.Footer=hr,yr.AvatarPopoverContent=_n,yr.BrandPopoverContent=gn,yr.SoltContent=xr,yr.HeaderToolbarExtra=wn;var br={exports:{}},_r=M(br.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(e,n,r){return e<n?n:e>r?r:e}function o(e){return 100*(-1+e)}function a(e,n,r){var i;return(i="translate3d"===t.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+n+"ms "+r,i}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=i(e,t.minimum,1),r.status=1===e?null:e;var o=r.render(!n),s=o.querySelector(t.barSelector),c=t.speed,u=t.easing;return o.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),d(s,a(e,c,u)),1===e?(d(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout(function(){d(o,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*i(Math.random()*n,.1,.95)),n=i(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var i,a=n.querySelector(t.barSelector),l=e?"-100":o(r.status||0),s=document.querySelector(t.parent);return d(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(i=n.querySelector(t.spinnerSelector))&&p(i),s!=document.body&&c(s,"nprogress-custom-parent"),s.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),d=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,i=e.length,o=n.charAt(0).toUpperCase()+n.slice(1);i--;)if((t=e[i]+o)in r)return t;return n}function i(e){return e=r(e),n[e]||(n[e]=t(e))}function o(e,n,r){n=i(n),e.style[n]=r}return function(e,n){var r,t,i=arguments;if(2==i.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&o(e,r,t);else o(e,i[1],i[2])}}();function s(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;s(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);s(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}());
|
|
10
|
+
*/"production"===process.env.NODE_ENV?N.exports=function(){if(P)return M;P=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return M.Fragment=n,M.jsx=r,M.jsxs=r,M}():N.exports=(z||(z=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case x:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return P[e]||(P[e]=!0,console.error("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.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('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} />',i,p,h,p),z[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var f in o={},r)"key"!==f&&(o[f]=r[f]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%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)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=C.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,T=console.createTask?console.createTask:function(){return null},P={},N=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),M=T(o(i)),z={};F.Fragment=h,F.jsx=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):N,t?T(o(e)):M)},F.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):N,t?T(o(e)):M)}}()),F);var L,E,O=N.exports,R={exports:{}},A={},H={};
|
|
11
|
+
/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-jsx-runtime.development.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
"production"===process.env.NODE_ENV?R.exports=function(){if(L)return A;L=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return A.Fragment=n,A.jsx=r,A.jsxs=r,A}():R.exports=(E||(E=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case x:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return P[e]||(P[e]=!0,console.error("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.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('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} />',i,p,h,p),z[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var f in o={},r)"key"!==f&&(o[f]=r[f]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%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)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=C.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,T=console.createTask?console.createTask:function(){return null},P={},N=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),M=T(o(i)),z={};H.Fragment=h,H.jsx=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):N,t?T(o(e)):M)},H.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):N,t?T(o(e)):M)}}()),H);var W=R.exports;function $(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}$("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n");const V=Symbol("LayoutAside"),G=Symbol("LayoutContent"),K=Symbol("LayoutHeader"),D=Symbol("LayoutBackground"),X={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},U=n({setLayoutConfig:()=>{},setLocale:()=>{}}),Y=n({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),J=()=>r(Y),q=()=>r(U),Q=()=>J().layoutConfig.theme;function Z(e){return W.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:W.jsx(W.Fragment,{children:e.children})})}function ee(e){return W.jsx(W.Fragment,{children:e.children})}function ne(e){return W.jsx(W.Fragment,{children:e.children})}function re(e){return W.jsx(W.Fragment,{children:e.children})}Z.displayName="LayoutBackground",Z.role=D,ee.displayName="LayoutContent",ee.role=G,ne.displayName="LayoutAside",ne.role=V,re.displayName="LayoutHeader",re.role=K;function te(n){let r=null,t=null,o=null,i=null;e.Children.forEach(n.children,e=>{const n=e.type.role;n===K?r=e:n===G?t=e:n===V?o=e:n===D&&(i=e)});const a=n.style||n.styles?.root;return W.jsx(W.Fragment,{children:W.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:a,children:[i,W.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,W.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",style:{...n.styles?.main},children:[r,t]})]})]})})}function oe(n){const r=!!document.fullscreenElement,[i,a]=t(r),l=()=>{a(!!document.fullscreenElement)},s=e=>{"F11"===e.code&&(e.preventDefault(),d())};o(()=>(document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",s)}),[]);const d=()=>{i?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return W.jsx(W.Fragment,{});const[c,u]=n.buttons,m=i?c:u;return e.cloneElement(m,{onClick:e=>{console.log(e),d()}})}$("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n"),te.Aside=ne,te.Content=ee,te.Header=re,te.Background=Z;const ie=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),ae=e=>{const{r:n,g:r,b:t}=ie(e);return{r:n,g:r,b:t}},le=(e,n)=>{const{r:r,g:t,b:o,a:i}=ie(e);return`rgba(${r}, ${t}, ${o}, ${n??i})`};function se(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}se("@layer base { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size); \r\n}\r\n.index_adminui-btn-icon__4gPCI {\r\n display: flex;\r\n justify-items: center;\r\n align-items: center;\r\n}\r\n.index_adminui-menu__zEjJY .index_adminui-menu-title-content-with-extra__QGHKX {\r\n width: auto;\r\n}");var de="index-module_headerLayout__rv59v",ce="index-module_headerLayoutSticky__6uFCj",ue="index-module_headerLayoutFixed__t5Hmo",me="index-module_headerLayoutBox__h0fIt",pe="index-module_headerMenu__WHmJN",he="index-module_headerTitle__jGbCX",fe="index-module_headerBrandBox__U2J16",xe="index-module_layoutBlur__GpCPx",ge="index-module_toolbarPanel__Pp8PS",ye="index-module_toolbarItem__RkaXd",be="index-module_toolbarAvatarItem__p6TXY",_e="index-module_siderBaseStyle__zg1FM",ve="index-module_siderMask__cCjMh",je="index-module_siderContentBox__dGgRe",we="index-module_siderContentItem__kl3cR",ke="index-module_collapsedTrack__LoJ3V",Se="index-module_collapsedTrackButton__m33XS",Ce="index-module_brandPanel__2GRgq",Be="index-module_labelBox__dX8fY",Ie="index-module_brandNodeBox__W-iM6",Te="index-module_brandMobilePanel__m1Diu",Pe="index-module_largeBrandPanel__pLn--",Ne="index-module_title__SbfFY",Me="index-module_largeBrandCollPanel__nsGKB",ze="index-module_avatarPanel__fFvCS",Fe="index-module_collapsedMobile__Yu8F4",Le="index-module_collapsedContainer__23dQh",Ee="index-module_breadcrumbBox__w3MOx",Oe="index-module_breadcrumbFirstIcon__9zEmW",Re="index-module_breadcrumbAllIcon__HYkKa",Ae="index-module_containerBox__pv0qs",He="index-module_containerHeader__p8V0W",We="index-module_contentHeaderMenu__zSoS7",$e="index-module_containerHeaderToolbar__pGsCN",Ve="index-module_round__WoVxM";function Ge(e){const{size:n=16}=e;return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:O.jsx("path",{d:"m15 18-6-6 6-6"})})}function Ke(e){const{size:n=16}=e;return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:O.jsx("path",{d:"m9 18 6-6-6-6"})})}function De(e){const{size:n=16}=e;return O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"M21 5H11"}),O.jsx("path",{d:"M21 12H11"}),O.jsx("path",{d:"M21 19H11"}),O.jsx("path",{d:"m7 8-4 4 4 4"})]})}function Xe(e){const{size:n=16}=e;return O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"M21 5H11"}),O.jsx("path",{d:"M21 12H11"}),O.jsx("path",{d:"M21 19H11"}),O.jsx("path",{d:"m3 8 4 4-4 4"})]})}function Ue(e){const{size:n=16}=e;return O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"m7 15 5 5 5-5"}),O.jsx("path",{d:"m7 9 5-5 5 5"})]})}function Ye(e){const{size:n=16}=e;return O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),O.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Je(e){const{size:n=16}=e;return O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),O.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),O.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),O.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function qe(e){const{size:n=16}=e;return O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),O.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),O.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),O.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Qe(e){const[n,r]=t(!1);return o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]),O.jsx(d,{...e,style:{...e.style,opacity:n?1:0,transition:"opacity 0.3s ease-out"}})}function Ze(e){const[n,r]=t(!1),{hasChild:i,...a}=e;o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=O.jsx("img",{...a});return e.hasChild?s:O.jsx("div",{style:l,children:s})}se('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_collapsedContainer__23dQh {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n.index-module_containerHeader__p8V0W {\r\n display: flex;\r\n justify-content:flex-start;\r\n align-items: center;\r\n padding-block-end: var(--adminui-padding-xs);\r\n}\r\n.index-module_containerHeaderCollapsed__XGlnh {\r\n display: flex;\r\n gap:6px;\r\n align-items: center;\r\n}\r\n.index-module_contentHeaderMenu__zSoS7 {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n padding-inline-start: var(--adminui-padding-xs);\r\n gap:var(--adminui-margin-xs);\r\n}\r\n.index-module_contentHeaderMenu__zSoS7>h3{\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0px;\r\n padding:0px;\r\n}\r\n.index-module_containerHeaderToolbar__pGsCN {\r\n flex:1;\r\n display: flex;\r\n justify-content: flex-end; \r\n align-items: center;\r\n}\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-title-content-with-extra,.index-module_headerLayout__rv59v .adminui-menu-title-content-with-extra{\r\n width: auto; \r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-menu-item-extra,.index-module_headerLayout__rv59v .adminui-menu-item-extra{\r\n display: inline-flex;\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedContainer__23dQh {\r\n display: none;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const en=n({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),nn=n({close:()=>{}}),rn=n({close:()=>{}}),tn=Symbol("AsideFooter"),on=Symbol("AsideHeader"),an=Symbol("AsideContentItems"),ln=Symbol("AsideContentItem"),sn=Symbol("ContentFooter"),dn=Symbol("AvatarPopoverContent"),cn=Symbol("BrandPopoverContent"),un=Symbol("SoltContent"),mn=Symbol("ToolbarExtraItems"),pn=()=>r(en),hn=()=>pn().collapsed,fn=()=>j(),xn=()=>nn,gn=()=>rn,yn=()=>r(nn),bn=()=>r(rn);function _n(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:vn}=c;function jn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=J(),{token:a}=vn(),{layoutIcons:l,brandPopoverContent:s}=pn(),[d,c]=t(!1),p=gn(),h=i.compact?"16px":"20px";let f={justifyContent:"flex-start",paddingInline:i.compact?a.paddingXXS:a.paddingXS,height:"40px",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};i.flated&&(f={...f,paddingInline:a.padding,height:"100%"},x={...x,padding:"0px"});const{brandInfo:y}=i;n?f={...f,paddingInline:`calc(50% - calc(${h} / 2))`}:g={...g,overflow:"hidden"};let b=O.jsx(O.Fragment,{});y?.logo&&(b="string"==typeof y.logo?O.jsx(Ze,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):O.jsx("div",{className:Ie,style:{width:h,minWidth:h},children:y.logo}));const _=l?.itemMoreIcon||O.jsx(Ue,{}),v=O.jsx(m,{type:"text",style:f,iconPlacement:"end",icon:s?O.jsx(_n,{icon:_,size:r||14,style:{opacity:n?"0":"1"}}):void 0,children:O.jsxs("div",{style:g,children:[b,O.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[O.jsx("h4",{children:y?.name}),o?void 0:O.jsx("span",{style:{color:a.colorTextSecondary},children:y?.title})]})]})});return O.jsx("div",{className:Ce,style:x,children:s?O.jsx(p.Provider,{value:{close:()=>{c(!1)},record:y},children:O.jsx(u,{open:d,onOpenChange:c,placement:"rightTop",content:s,children:v})}):v})}function wn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=J(),{layoutIcons:a,brandPopoverContent:l}=pn(),{token:s}=vn(),[d,c]=t(!1),m=gn(),p=i.compact?"16px":"20px";let h={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},f={height:`${i.headerHeight}px`},x={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(h={...h,paddingInline:s.padding},f={...f,padding:"0px"});const{brandInfo:g}=i;n?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:x={...x,overflow:"hidden"};let y=O.jsx(O.Fragment,{});g?.logo&&(y="string"==typeof g.logo?O.jsx(Ze,{style:{width:p,minWidth:p},src:g.logo,alt:g.name}):O.jsx("div",{className:Ie,style:{width:p,minWidth:p},children:g.logo}));const b=a?.itemMoreIcon||O.jsx(Ue,{}),_=l?{}:{href:g?.url},v=O.jsxs("a",{..._,style:h,children:[O.jsxs("div",{style:x,children:[y,O.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[O.jsx("h4",{style:{width:"90%"},children:g?.name}),o?void 0:O.jsx("span",{style:{color:s.colorTextSecondary,width:"90%"},children:g?.title})]})]}),l?O.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:O.jsx(_n,{icon:b,size:r||14})}):O.jsx(O.Fragment,{})]});return O.jsx("div",{className:Ce,style:f,children:l?O.jsx(m.Provider,{value:{close:()=>{c(!1)},record:g},children:O.jsx(u,{open:d,onOpenChange:c,placement:"rightTop",content:l,children:v})}):v})}function kn(e){const{layoutConfig:n}=J(),{brandPopoverContent:r}=pn(),[o,i]=t(!1),a=gn(),l=n.compact?"16px":"20px",{brandInfo:s}=n;let d=O.jsx(O.Fragment,{});s?.logo&&(d="string"==typeof s.logo?O.jsx(Ze,{style:{width:l},src:s.logo,alt:s.name}):O.jsx("div",{className:Ie,style:{width:l},children:s.logo}));let c=r?O.jsx(a.Provider,{value:{close:()=>{i(!1)},record:s},children:O.jsx(u,{open:o,onOpenChange:i,content:r,placement:"rightTop",children:O.jsx("a",{children:d})})}):O.jsx("a",{href:s?.url,children:d});return O.jsxs("div",{className:Te,style:e.style,children:[c,O.jsx("div",{className:he,children:e.children})]})}function Sn(e){const{collapsed:n}=e,{brandPopoverContent:r}=pn(),{layoutConfig:o}=J(),[i,a]=t(!1),l=gn(),s=n?o.compact?"16px":"20px":o.compact?"56px":"64px",{brandInfo:d}=o,c={opacity:n?"0":"1",height:n?"0px":"auto"};let m=O.jsx(O.Fragment,{});if(!d)return O.jsx(O.Fragment,{});let p=[Pe];n&&p.push(Me),d?.logo&&(m="string"==typeof d.logo?O.jsx(Ze,{style:{width:s},src:d.logo,alt:d.name}):O.jsx("div",{className:Ie,style:{width:s},children:d.logo}));let h=r?O.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:O.jsx(u,{open:i,onOpenChange:a,content:r,placement:"rightTop",children:O.jsx("a",{children:m})})}):O.jsx("a",{href:d?.url,children:m});return O.jsxs("div",{className:p.join(" "),children:[h,O.jsxs("div",{style:c,children:[O.jsx("span",{children:d?.name}),d.title?O.jsx("span",{className:Ne,children:d?.title}):O.jsx(O.Fragment,{})]})]})}function Cn(e){return O.jsx("div",{style:{...e.style},children:e.children})}Cn.displayName="BrandPopoverContent",Cn.role=cn;const{useToken:Bn}=c;function In(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:o}=J(),{layoutIcons:i,avatarPopoverContent:a}=pn(),[l,s]=t(!1),d=xn(),{token:c}=Bn(),m=o.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(o.compact?6:8)+"px"},h={height:`${o.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};o.flated&&(p={...p,paddingInline:c.padding,margin:"0px",height:"100%"},h={...h,padding:"0px"});const{userInfo:x}=o;n?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:f={...f,overflow:"hidden"};let g=O.jsx(O.Fragment,{});x?.avatar&&(g="string"==typeof x.avatar?O.jsx(Ze,{style:{width:m,borderRadius:"999px"},src:x.avatar,alt:x.uid}):x.avatar);const y=i?.itemMoreIcon||O.jsx(Ue,{}),b=O.jsx("div",{className:ze,style:h,children:O.jsxs("a",{style:p,children:[O.jsxs("div",{style:f,children:[g,O.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[O.jsx("h4",{children:x?.uid}),x?.title?void 0:O.jsx("span",{style:{color:c.colorTextSecondary},children:x?.title})]})]}),a?O.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:O.jsx(_n,{icon:y,size:r||14})}):O.jsx(O.Fragment,{})]})});return a?O.jsx(d.Provider,{value:{close:()=>s(!1),record:x},children:O.jsx(u,{open:l,onOpenChange:s,placement:"right",content:a,children:b})}):b}function Tn(e){const{iconSize:n=14}=e,{layoutConfig:r}=J(),{userInfo:o}=r,{avatarPopoverContent:i}=pn(),[a,l]=t(!1),s=xn();let d=O.jsx(Ye,{});const c=n+4,m={width:`${c}px`,height:`${c}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};o?.avatar&&(d="string"==typeof o.avatar?O.jsx(Ze,{style:{width:c,borderRadius:"999px"},src:o.avatar,alt:o.uid}):o.avatar);const p=O.jsxs("div",{className:be,children:[O.jsx("div",{style:m,children:d}),O.jsx("span",{children:o?.uid})]});return i?O.jsx(s.Provider,{value:{close:()=>l(!1),record:o},children:O.jsx(u,{open:a,onOpenChange:l,placement:"left",content:i,children:p})}):O.jsx(O.Fragment,{children:p})}function Pn(e){return O.jsx("div",{style:{...e.style},children:e.children})}Pn.displayName="AvatarPopoverContent",Pn.role=dn;const{useToken:Nn}=c;function Mn(e){const{token:n}=Nn(),{layoutIcons:r,toolbarExtraItems:t}=pn(),o=n.Menu?.iconSize||16,[i,a]=r?.fullScreenIcons?.slice(0,2)||[O.jsx(qe,{}),O.jsx(Je,{})],l=O.jsx(_n,{icon:i,size:o}),s=O.jsx(_n,{icon:a,size:o});return O.jsxs("div",{className:ge,children:[e.showAvatar?O.jsxs("div",{className:ye,children:[O.jsx(Tn,{iconSize:o+4}),O.jsx(p,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):O.jsx(O.Fragment,{}),t,O.jsx("div",{className:ye,"data-adminui-role":"desk-toolbar",children:O.jsx(oe,{buttons:[O.jsx(m,{icon:s,type:"text"},"minimize"),O.jsx(m,{icon:l,type:"text"},"maximize")]})})]})}function zn(e){const n=O.jsx("div",{className:ye,"data-adminui-role":"desk-toolbar",children:e.children});return e?O.jsx(O.Fragment,{children:n}):O.jsx(O.Fragment,{})}zn.displayName="ToolbarExtraItems",zn.role=mn;const{useToken:Fn}=c;function Ln(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=pn(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[O.jsx(Ke,{}),O.jsx(Ge,{})];return O.jsx("div",{style:i,children:O.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function En(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=pn(),{token:l}=Fn();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[O.jsx(Ke,{}),O.jsx(Ge,{})];return O.jsx("div",{className:ke,style:s,onClick:()=>{i(!o)},children:O.jsx("div",{style:d,className:Se,children:o?c:u})})}function On(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=pn(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[O.jsx(Xe,{}),O.jsx(De,{})];return O.jsx("div",{className:Fe,children:O.jsx(m,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}function Rn(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=pn(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[O.jsx(Xe,{}),O.jsx(De,{})];return O.jsx("div",{className:Le,children:O.jsx(m,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}const{Header:An}=h,{useToken:Hn}=c;function Wn(e){const{layoutConfig:n}=J(),{token:r,theme:t}=Hn(),o=w(),i=n.headerTransparent||n.headerBlur?le(r.colorBorderSecondary,.6):r.colorBorderSecondary,a=n.hideBorder?"0px":"1px solid "+i,l=n.flated&&"headMenu"==n.layoutType||1==t.id?"dark":"light",s=n.flated&&"headMenu"==n.layoutType?"dark":"light",d=n.flated&&"headMenu"==n.layoutType?r.colorPrimary:r.colorBgContainer,u={height:e.height+"px",lineHeight:e.height+"px"};let m=O.jsx(O.Fragment,{}),p={...u,borderBottom:a,backgroundColor:n.headerTransparent?"transparent":d};n.headerBlur&&(p={...p,backgroundColor:le(d,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let g={...u,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},y=[de],b=O.jsx(O.Fragment,{});"headMenu"==n.layoutType?(m=O.jsx("div",{style:u}),p={...p,paddingInlineEnd:r.paddingXS+"px"},b=O.jsx("div",{className:fe,style:{width:n?.asideWidth+"px"},children:O.jsx(jn,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),y.push(ue)):(p={...p,paddingInline:r.paddingXS+"px"},y.push(ce));let _=O.jsx(kn,{children:e.title}),v=O.jsx(On,{iconSize:n.compact?12:14});const j=[me];n.flated||j.push(Ve);let k="dark"==l?[c.darkAlgorithm]:[c.defaultAlgorithm];return n.noneHeader?O.jsx(O.Fragment,{}):O.jsxs(O.Fragment,{children:[m,O.jsx(f,{theme:{algorithm:k},children:O.jsx(h,{className:y.join(" "),style:g,children:O.jsxs(An,{className:j.join(" "),style:p,children:[v,b,_,O.jsx(x,{onClick:e=>{o(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:s,classNames:{root:pe},items:e.menuData||[]}),O.jsx(Mn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:$n}=h,{useToken:Vn}=c,{useBreakpoint:Gn}=g;function Kn(e){const n=i([]);n.current=e.openerKeys||[];const[r,o]=t(e.openerKeys),{layoutConfig:a}=J(),{asideWidth:l}=a,s=e.headerHeight,{collapsed:d,setCollapsed:c}=pn(),{token:u,theme:m}=Vn(),p=w(),h=Gn().xs?0:s,f=a.headerTransparent||a.headerBlur?le(u.colorBorderSecondary,.6):u.colorBorderSecondary,g=a.hideBorder||0==h&&d?"0px":"1px solid "+f,y=a.noneHeader&&"leftMenu"==a.layoutType,b=a.containerMargin||0,_="headMenu"==a.layoutType||0==h?e.headerHeight:0,v="headMenu"==a.layoutType||0==h?"calc(100% - "+e.headerHeight+"px)":"100%";let j={width:`${a.asideWidth}px`,height:`${v}`,insetBlockStart:_+"px",maxWidth:`${a.asideWidth}px`,minWidth:`${a.asideWidth}px`,borderRight:g,boxShadow:h>0?"none":u.boxShadowTertiary,position:"fixed",margin:y?b/2:"0px",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},k={overflow:"auto",flex:1};const S=u.Menu?.iconSize,C=1==m.id?"dark":"light",B=C;let I=0,T=O.jsx(O.Fragment,{});"leftMenu"==a.layoutType&&(I=a.headerHeight||0,T=a.largeBrand?O.jsx(Sn,{collapsed:d,iconSize:S}):O.jsx(wn,{collapsed:d,iconSize:S,hideTitle:!0}));const P=a.asideTransparent&&h>0?"transparent":a.asideBlur?le(u.colorBgContainer,.6):u.colorBgContainer;j={...j,backgroundColor:P},a.asideBlur&&(j={...j,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),d&&(k={...k,overflow:"hidden"});let N=[_e];N.push(xe);let M=O.jsx(O.Fragment,{});switch(a.collapsedPosition){case"bottom":M=O.jsx(Ln,{iconSize:S,style:{backgroundColor:P,width:`${s}px`,borderRight:g}});break;case"center":M=O.jsx(En,{iconSize:12,flated:a.flated,offset:I,style:{backgroundColor:P}});break;case"top":M=a.noneHeader?O.jsx(O.Fragment,{}):O.jsx(En,{iconSize:12,top:!0,flated:a.flated,offset:I,style:{backgroundColor:P}})}let z=e.menuData||[];return a.asideMenuGroup&&z.forEach(e=>{e.children&&(e.type="group")}),O.jsxs(O.Fragment,{children:[O.jsx("div",{style:{width:d?s:l,flex:`0 0 ${d?s:l}px`,maxWidth:d?s:l,minWidth:d?s:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:ve}),O.jsxs($n,{width:l,className:N.join(" "),style:j,theme:B,collapsedWidth:h,collapsible:!0,trigger:null,breakpoint:"md",collapsed:d,onCollapse:c,children:[h>0?T:O.jsx(O.Fragment,{}),e.header,O.jsx("div",{style:k,children:O.jsx(x,{onClick:e=>{0==h&&c(!0),p(e.key)},onOpenChange:e=>{o(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:a.asideMenuInline?"inline":"vertical",selectedKeys:e.selectedKeys,openKeys:d?void 0:r,defaultSelectedKeys:e.selectedKeys,defaultOpenKeys:n.current,theme:C,items:z})}),e.footer,"leftBottom"==a.avatarPosition?O.jsx(In,{collapsed:d,iconSize:S}):O.jsx(O.Fragment,{}),M]})]})}const Dn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Dn(r)),e},{});function Xn(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const Un=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=qn(e);r.children=Un(e.children),n.push(r)}),n},Yn=(e,n)=>{if(e)return e.map(e=>{const r=Jn(e,n),t={...e,label:r};return e.children&&(t.children=Yn(e.children,n)),t})},Jn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),qn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function Qn(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function Zn(e){return Qn(e)}function er(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function nr(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:or(n.extra),icon:or(n.icon)};return o}(e,n);return n.children&&(r.children=nr(r.path,n.children)),r})}function rr(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.filter(e=>!!e.handle).map(n=>{const r=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=B(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let o=e+t,i={...r,path:o,originalPath:n.path,extra:or(r.extra),icon:or(r.icon)};return i}(e,n);return n.children&&(r.children=rr(r.path,n.children)),r})}function tr(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")}const or=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:ir}=c;function ar(n){const{layoutConfig:r,themeSkin:o}=J(),i=_(),{token:l}=ir(),[s,d]=t(!1),c={backgroundColor:l.colorBgLayout};let u=r.headerHeight||56;r.compact&&(u-=4);const m=r.disabledLocale?n.menuData:Yn(n.menuData,i),p=m&&m?.length>0?m[0].children:[],h=Dn(m||[]),f=Un(p),x=k(),g=x.map(e=>e.pathname),y=x[x.length-1];let b=[],v=[],j=[],w=[];if("leftMenu"==r.layoutType?(w=f||[],v=g):(j=f||[],b=g),r.splitMenu){const[e,n]=er(g),{rootMenuItems:t,childrenMenuItems:o}=Xn(f,g);"leftMenu"==r.layoutType?(w=t,j=o,v=e,b=n):(w=o,j=t,b=e,v=n)}const C=a(()=>r.asideBlur||r.headerBlur?le(l.colorBgContainer,.6):l.colorBgContainer,[r.asideBlur,r.headerBlur,l.colorBgContainer]),B=e.Children.toArray(n.children),I=B.find(n=>e.isValidElement(n)&&n.type.role===tn),T=B.find(n=>e.isValidElement(n)&&n.type.role===on),P=B.find(n=>e.isValidElement(n)&&n.type.role===sn),N=B.find(n=>e.isValidElement(n)&&n.type.role===dn),M=B.find(n=>e.isValidElement(n)&&n.type.role===cn),z=B.find(n=>e.isValidElement(n)&&n.type.role===un),F=B.find(n=>e.isValidElement(n)&&n.type.role===mn),L=en,E=a(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:N,brandPopoverContent:M,toolbarExtraItems:F,containerBackground:C,flattenMenuMap:h,setCollapsed:d}),[s,u,n.layoutIcons,h,C]),R=r.hideAsideMenuDataEmpty&&w.length<=0&&"headMenu"==r.layoutType,A=h[y.pathname].label||"";return document.title=A,O.jsxs(O.Fragment,{children:[O.jsx(L,{value:E,children:O.jsxs(te,{...n,style:c,children:[O.jsx(te.Aside,{children:R?O.jsx(O.Fragment,{}):O.jsx(Kn,{headerHeight:u,header:I,footer:T,menuData:w,selectedKeys:v,openerKeys:v})}),O.jsx(te.Header,{children:O.jsx(Wn,{height:u,menuData:j,selectedKeys:b,title:A})}),O.jsx(te.Content,{children:O.jsx(S,{context:{title:A,footer:P}})}),O.jsx(te.Background,{children:o?o.backgroundContent:O.jsx(O.Fragment,{})})]})}),z]})}const lr="#417ffb",sr=e=>I(e),dr=()=>sr("#000000"),cr=()=>sr("#FFFFFF");function ur(e){const n=hn(),{layoutConfig:r}=J(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?O.jsx(O.Fragment,{}):O.jsxs("div",{className:we,style:o,children:[O.jsx("div",{children:e.icon}),O.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function mr(e){return O.jsx(O.Fragment,{children:e.children})}function pr(e){return O.jsx("div",{className:je,children:e.children})}function hr(e){return O.jsx("div",{className:je,children:e.children})}mr.displayName="AsideContentItems",ur.displayName="AsideContentItem",hr.displayName="AsideHeaderContent",hr.Items=mr,hr.Item=ur,pr.displayName="AsideFooterContent",pr.Items=mr,pr.Item=ur,pr.role=on,hr.role=tn,mr.role=an,ur.role=ln;const fr="adminui-default-config",xr=()=>{const e=_(),{layoutConfig:n}=J(),{f:r,t:t}=gr(n.disabledLocale?void 0:e);return{...e,f:r,t:t}},gr=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),yr=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},br=e=>{e||(e=fr);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},_r=(e,n)=>{n||(n=fr);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},vr=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function jr(e){const n=k(),{flattenMenuMap:r}=pn(),{layoutConfig:t}=J(),o=[];n.forEach((e,n)=>{const t=r[e.pathname],i=t?t.label:"";o.push({path:e.pathname,title:i,icon:t.icon})});let i=[Ee];return"first"==t.visibleBreadcrumbIcon?i.push(Oe):"all"==t.visibleBreadcrumbIcon&&i.push(Re),O.jsx(y,{classNames:{root:i.join(" ")},style:e.style,items:o,itemRender:wr})}function wr(e,n,r,t){return e?.path===r[r.length-1]?.path?O.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):O.jsxs(C,{className:"adminui-breadcrumb-link",to:"/"+t[t.length-1],children:[e.icon,e.title]})}const{useToken:kr}=c,{useBreakpoint:Sr}=g;function Cr(e){const{mode:n="inline",stretch:r="inline"}=e,{token:t}=kr(),{xs:o}=Sr(),{layoutConfig:i}=J(),{footer:a,title:l}=fn(),{containerMargin:s=0}=i;let d={},c={flex:"none"},u={borderRadius:i.compact?t.borderRadius:t.borderRadiusLG},m={display:"flex"};const h=e.hideBorder||i.hideBorder,f=e.hideBreadcrumb||i.hideBreadcrumb,x=e.hideTitle||i.hideTitle,g=i.noneHeader&&"leftMenu"==i.layoutType;"box"!=n&&"panel"!=n||(d={padding:t.padding},"panel"==n&&(u={...u,padding:t.padding,backgroundColor:t.colorBgContainer},h||(u={...u,border:`solid 1px ${t.colorBorderSecondary}`}))),"fill"!=r&&"auto"!=r||(c={...c,flex:"auto"},"fill"==r&&(u={...u,minHeight:"100%"})),console.log(s>0),g&&(d={...d,backgroundColor:t.colorBgContainer,borderRadius:s>0?t.padding:`${t.padding}px 0px 0px ${t.padding}px`,padding:"0px",margin:s},m={...m,padding:t.paddingXS,borderBlockEnd:`solid 1px ${t.colorBorderSecondary} `});const y=f?O.jsx(O.Fragment,{}):O.jsx(jr,{}),b=x?O.jsx(O.Fragment,{}):O.jsx("h3",{children:e.title||l});u={...u,...e.style};const _=g?O.jsx(kn,{children:e.title||l}):O.jsx(O.Fragment,{}),v=g?O.jsx(On,{iconSize:i.compact?12:14}):O.jsx(O.Fragment,{}),j=g&&"top"==i.collapsedPosition&&!o?O.jsxs(O.Fragment,{children:[O.jsx(Rn,{iconSize:i.compact?12:14}),O.jsx(p,{orientation:"vertical"})]}):O.jsx(O.Fragment,{}),w=!(e.hideFooter||i.hideFooter)&&e.children&&a?O.jsx("footer",{children:a}):O.jsx(O.Fragment,{}),k=g?O.jsx(Mn,{showAvatar:"rightTop"==i.avatarPosition}):O.jsx(O.Fragment,{}),S=g&&o?O.jsx(O.Fragment,{}):O.jsxs("div",{className:We,children:[y,b]});return O.jsxs("div",{className:Ae,style:d,children:[O.jsxs("div",{className:He,style:m,children:[v,_,j,S,O.jsx("div",{className:$e,children:k})]}),O.jsx("main",{style:c,children:O.jsx("div",{style:u,children:e.children})}),w]})}const Br=e=>O.jsx("div",{...e,children:e.children});function Ir({children:e}){return O.jsx(O.Fragment,{children:e})}Br.displayName="ContentFooter",Br.role=sn,Ir.displayName="SoltContent",Ir.role=un;const Tr="adminui-locale",Pr=dr(),Nr=cr(),Mr=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function zr(e){const n=k(),{pathname:r}=n[0],i={...X,...e.layoutConfig,...e.disabledStorageConfig?{}:br(r)};let l=e.themeSkins||[];const s=a(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(l),[l]),d=e.locale||localStorage.getItem(Tr)||i.locale||"en-US",u=e.menuData?nr("/",[e.menuData]):[],[m,p]=t(()=>{if(i.skinName){const e=Mr(i.skinName,s);return vr(i,e)}return i}),[h,x]=t(d),g=Y,y=U;let _=e.localeMessages||{};const j=a(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(_),[_]),w=e=>{localStorage.setItem(Tr,e),x(e)};document.documentElement.style.setProperty("--pageload-bar-color",m.primaryColor),o(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===m.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(m.theme)},[m.theme]);const S=a(()=>{if(m.skinName)return Mr(m.skinName,s)},[l,m.skinName]),C="system"==(B=m.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const T=n=>{p(n),e.disabledStorageConfig||_r(n,r)},P=a(()=>({layoutConfig:m,locale:h,languages:j,themeSkin:S,themeSkinMap:s}),[j,h,j,s,S,m]),N=a(()=>({setLayoutConfig:T,setLocale:w}),[]),M=_[h]||_["en-US"],z=["he","ar","fa","ku"].filter(e=>h.startsWith(e)).length?"rtl":"ltr";let F="dark"===C?[c.darkAlgorithm]:[c.defaultAlgorithm],L=m.menuIconSize||14;const E=m.menuIconSize?.1*(L-10)+10:10;m.compact&&(F.push(c.compactAlgorithm),L-=2);const R="dark"===C?Nr:Pr,A="dark"===C?Pr:Nr,H=I(m.primaryColor||lr);let W={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:L,fontSize:L,itemMarginInline:m.flated?0:4,iconMarginInlineEnd:E,activeBarHeight:m.compact?2:4,darkPopupBg:Pr[4]};if(m.menuItemSelectColor&&"default"!=m.menuItemSelectColor){const e="invert"==m.menuItemSelectColor;W={...W,itemActiveBg:e?R[0]:H[1],itemSelectedBg:e?R[3]:m.primaryColor,itemSelectedColor:e?A[2]:Nr[2]}}const $={algorithm:F,token:{colorPrimary:m.primaryColor,borderRadius:m.flated?0:6},components:{Menu:W,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return O.jsx(g.Provider,{value:P,children:O.jsx(y.Provider,{value:N,children:O.jsx(f,{theme:$,locale:M?.antdLocale,direction:z,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:O.jsx(b,{style:{height:"100%",width:"100%"},children:O.jsx(v,{locale:h,messages:M?.messages,children:O.jsx(ar,{menuData:u,layoutIcons:e.layoutIcons,children:e.children})})})})})})}zr.AsideHeader=hr,zr.AsideFooter=pr,zr.Footer=Br,zr.AvatarPopoverContent=Pn,zr.BrandPopoverContent=Cn,zr.SoltContent=Ir,zr.HeaderToolbarExtra=zn;var Fr={exports:{}};
|
|
11
21
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
12
|
-
* @license MIT */function
|
|
22
|
+
* @license MIT */Fr.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),s(d,a(e,c,u)),1===e?(s(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){s(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),l=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}();var Lr=T(Fr.exports);function Er(e){const n=l(e);return function(e){return O.jsx(s,{fallback:O.jsx(Or,{}),children:O.jsx(n,{...e})})}}Lr.configure({showSpinner:!1});const Or=()=>(o(()=>{const e=setTimeout(()=>{Lr.start()},200);return()=>{clearTimeout(e),Lr.done()}},[]),O.jsx("div",{style:{height:"auto"}})),Rr=()=>(o(()=>(Lr.start(),()=>{Lr.done()}),[location.hostname]),O.jsx("div",{style:{height:"auto"}}));export{zr as AntdLayout,Cr as Container,lr as DEFAULT_PRIMARY_COLOR,oe as FullScreenButton,Qe as LazyAvatar,Ze as LazyImage,Er as LazyPage,Or as PageLoading,Rr as RouteLoading,_n as ToolbarIcon,tr as buildRouteWithParams,Dn as flattenMenuData,qn as getAntdMenuItem,gr as getAppIntl,yr as getBasicLayoutConfig,dr as getBlackColors,Jn as getMenuLabel,br as getStorageConfig,cr as getWhiteColors,ae as hexToRgb,le as hexToRgbaString,Yn as localeMenuData,Zn as matchPathToKeys,Qn as pathToKeys,Xn as separateMenuData,vr as setSkinConfig,_r as setStorageConfig,er as splitMenuKeys,nr as transformMenuData,rr as transformRouteToMenuData,Un as transformToAntdMenuData,xr as useAppIntl,yn as useAvatarPopover,bn as useBrandPopover,q as useConfigAction,J as useConfigState,fn as useContainerOutlet,hn as useMainCollapsed,Q as useTheme};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminui-dev/antd-layout",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "this project name is @adminui-dev/antd-layout",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layut",
|
|
@@ -45,12 +45,13 @@
|
|
|
45
45
|
"prepublishOnly": "npm run build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@adminui-dev/layout": "1.
|
|
48
|
+
"@adminui-dev/layout": "1.2.2",
|
|
49
49
|
"tslib": "^2.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
53
53
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
54
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
54
55
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
55
56
|
"@types/commander": "^2.12.5",
|
|
56
57
|
"@types/nprogress": "^0.2.3",
|
|
@@ -66,9 +67,8 @@
|
|
|
66
67
|
"react-router": "^7.11.0",
|
|
67
68
|
"react-router-dom": "^7.11.0",
|
|
68
69
|
"rollup": "^4.0.0",
|
|
69
|
-
"rollup-plugin-dts": "^6.0.0",
|
|
70
70
|
"rollup-plugin-postcss": "^4.0.2",
|
|
71
|
-
"rollup-plugin-
|
|
71
|
+
"rollup-plugin-dts": "^6.3.0",
|
|
72
72
|
"typescript": "^5.0.3"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|