@adminui-dev/antd-layout 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +3 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +899 -9
- package/dist/index.esm.js +3 -3
- package/package.json +1 -1
|
@@ -2,10 +2,12 @@ import { AntdLayout } from "./AntdLayout";
|
|
|
2
2
|
import { PageLoading, RouteLoading, LazyPage } from "./AntdLayout/LazyPage";
|
|
3
3
|
import { useAvatarPopover, useBrandPopover, useMainCollapsed, useContainerOutlet } from "./AntdLayout/MainContext";
|
|
4
4
|
import { FullScreenButton, useConfigAction, useConfigState, useTheme } from "@adminui-dev/layout";
|
|
5
|
+
import { ToolbarIcon } from "./AntdLayout/IconPanel";
|
|
6
|
+
import { LazyAvatar, LazyImage } from "./AntdLayout/ImagePanel";
|
|
5
7
|
export * from "./AntdLayout/common/ColorUtil";
|
|
6
8
|
export * from "./AntdLayout/common/MenuUtil";
|
|
7
9
|
export * from "./AntdLayout/common/RouteUtil";
|
|
8
10
|
export * from "./AntdLayout/common/StringUtil";
|
|
9
11
|
export { useConfigAction, useConfigState, FullScreenButton, useTheme };
|
|
10
12
|
export { useAvatarPopover, useBrandPopover, useMainCollapsed, useContainerOutlet };
|
|
11
|
-
export { AntdLayout, PageLoading, RouteLoading, LazyPage };
|
|
13
|
+
export { AntdLayout, PageLoading, RouteLoading, LazyPage, LazyAvatar, LazyImage, ToolbarIcon };
|
package/dist/index.cjs.js
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
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?l.exports=function(){if(s)return d;s=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}():l.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 f:return"Profiler";case g:return"StrictMode";case b: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 _: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 s(e,r,o,i,s,d){var u,m=r.children;if(void 0!==m)if(i)if(M(m)){for(i=0;i<m.length;i++)l(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 l(m);if(P.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}",T[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),T[m+i]=!0)}if(m=null,void 0!==o&&(t(o),m=""+o),function(e){if(P.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 s=r.ref;return e={$$typeof:p,type:e,key:n,props:r,_owner:t},null!==(void 0!==s?s: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(),s,d)}function l(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"),_=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=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,P=Object.prototype.hasOwnProperty,M=Array.isArray,I=console.createTask?console.createTask:function(){return null},z={},L=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,i)(),N=I(o(i)),T={};u.Fragment=x,u.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return s(e,n,r,!1,t?Error("react-stack-top-frame"):L,t?I(o(e)):N)},u.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return s(e,n,r,!0,t?Error("react-stack-top-frame"):L,t?I(o(e)):N)}}()),u);var m=l.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}\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",primaryColor:"#417ffb"},_=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),v=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),b=()=>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 S(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,S.displayName="LayoutHeader",S.role=g;function C(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(),s())};e.useEffect(()=>(document.addEventListener("fullscreenchange",i),document.addEventListener("keydown",a,!0),()=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("keydown",a)}),[]);const s=()=>{t?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return m.jsx(m.Fragment,{});const[l,d]=n.buttons,c=t?l:d;return e.cloneElement(c,{onClick:e=>{console.log(e),s()}})}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}\r\n"),C.Aside=k,C.Content=w,C.Header=S,C.Background=j;const P=(e,n)=>{const{r:r,g:t,b:o}=(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}))(e);return`rgba(${r}, ${t}, ${o}, ${n})`};function M(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))}}M("@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\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");var I="index-module_headerLayout__rv59v",z="index-module_headerLayoutSticky__6uFCj",L="index-module_headerLayoutFixed__t5Hmo",N="index-module_headerLayoutBox__h0fIt",T="index-module_headerMenu__WHmJN",F="index-module_headerTitle__jGbCX",E="index-module_headerBrandBox__U2J16",A="index-module_layoutBlur__GpCPx",O="index-module_toolbarPanel__Pp8PS",W="index-module_toolbarItem__RkaXd",R="index-module_toolbarAvatarItem__p6TXY",H="index-module_siderBaseStyle__zg1FM",$="index-module_siderMask__cCjMh",D="index-module_siderContentBox__dGgRe",q="index-module_siderContentItem__kl3cR",K="index-module_collapsedTrack__LoJ3V",X="index-module_collapsedTrackButton__m33XS",V="index-module_brandPanel__2GRgq",G="index-module_labelBox__dX8fY",U="index-module_brandNodeBox__W-iM6",J="index-module_brandMobilePanel__m1Diu",Y="index-module_largeBrandPanel__pLn--",Z="index-module_title__SbfFY",Q="index-module_largeBrandCollPanel__nsGKB",ee="index-module_avatarPanel__fFvCS",ne="index-module_collapsedMobile__Yu8F4",re="index-module_round__WoVxM";function te(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 oe(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 ie(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 ae(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 se(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 le(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 de(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 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:"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 ue(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"},s=m.jsx("img",{...i});return n.hasChild?s:m.jsx("div",{style:a,children:s})}M('@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\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.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\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 me=e.createContext({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),pe=e.createContext({close:()=>{}}),he=e.createContext({close:()=>{}}),xe=Symbol("AsideFooter"),ge=Symbol("AsideHeader"),fe=Symbol("AsideContentItems"),ye=Symbol("AsideContentItem"),_e=Symbol("ContentFooter"),ve=Symbol("AvatarPopoverContent"),be=Symbol("BrandPopoverContent"),je=Symbol("SoltContent"),we=Symbol("ToolbarExtraItems"),ke=()=>e.useContext(me),Se=()=>ke().collapsed,Ce=()=>pe,Be=()=>he;function Pe(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:Me}=n.theme;function Ie(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=b(),{token:s}=Me(),{layoutIcons:l,brandPopoverContent:d}=ke(),[c,u]=e.useState(!1),p=Be(),h=a.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:a.compact?s.paddingXXS:s.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:s.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 _=m.jsx(m.Fragment,{});y?.logo&&(_="string"==typeof y.logo?m.jsx(ue,{style:{width:h},src:y.logo,alt:y.name}):m.jsx("div",{className:U,style:{width:h},children:y.logo}));const v=l?.itemMoreIcon||m.jsx(se,{}),j=m.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?m.jsx(Pe,{icon:v,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:m.jsxs("div",{style:f,children:[_,m.jsxs("div",{className:G,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:y?.name}),i?void 0:m.jsx("span",{style:{color:s.colorTextSecondary},children:y?.title})]})]})});return m.jsx("div",{className:V,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 ze(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=b(),{layoutIcons:s,brandPopoverContent:l}=ke(),{token:d}=Me(),[c,u]=e.useState(!1),p=Be(),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 _=m.jsx(m.Fragment,{});y?.logo&&(_="string"==typeof y.logo?m.jsx(ue,{style:{width:h},src:y.logo,alt:y.name}):m.jsx("div",{className:U,style:{width:h},children:y.logo}));const v=s?.itemMoreIcon||m.jsx(se,{}),j=l?{}:{href:y?.url},w=m.jsxs("a",{...j,style:x,children:[m.jsxs("div",{style:f,children:[_,m.jsxs("div",{className:G,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})]})]}),l?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Pe,{icon:v,size:o||14})}):m.jsx(m.Fragment,{})]});return m.jsx("div",{className:V,style:g,children:l?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:l,children:w})}):w})}function Le(r){const{layoutConfig:t}=b(),{brandPopoverContent:o}=ke(),[i,a]=e.useState(!1),s=Be(),l=t.compact?"16px":"20px",{brandInfo:d}=t;let c=m.jsx(m.Fragment,{});d?.logo&&(c="string"==typeof d.logo?m.jsx(ue,{style:{width:l},src:d.logo,alt:d.name}):m.jsx("div",{className:U,style:{width:l},children:d.logo}));let u=o?m.jsx(s.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:F,children:r.children})]})}function Ne(r){const{collapsed:t}=r,{brandPopoverContent:o}=ke(),{layoutConfig:i}=b(),[a,s]=e.useState(!1),l=Be(),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=[Y];t&&h.push(Q),c?.logo&&(p="string"==typeof c.logo?m.jsx(ue,{style:{width:d},src:c.logo,alt:c.name}):m.jsx("div",{className:U,style:{width:d},children:c.logo}));let x=o?m.jsx(l.Provider,{value:{close:()=>{s(!1)},record:c},children:m.jsx(n.Popover,{open:a,onOpenChange:s,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:Z,children:c?.title}):m.jsx(m.Fragment,{})]})]})}function Te(e){return m.jsx("div",{style:{...e.style},children:e.children})}Te.displayName="BrandPopoverContent",Te.role=be;const{useToken:Fe}=n.theme;function Ee(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=b(),{layoutIcons:a,avatarPopoverContent:s}=ke(),[l,d]=e.useState(!1),c=Ce(),{token:u}=Fe(),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(ue,{style:{width:p,borderRadius:"999px"},src:f.avatar,alt:f.uid}):f.avatar);const _=a?.itemMoreIcon||m.jsx(se,{}),v=m.jsx("div",{className:ee,style:x,children:m.jsxs("a",{style:h,children:[m.jsxs("div",{style:g,children:[y,m.jsxs("div",{className:G,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})]})]}),s?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Pe,{icon:_,size:o||14})}):m.jsx(m.Fragment,{})]})});return s?m.jsx(c.Provider,{value:{close:()=>d(!1),record:f},children:m.jsx(n.Popover,{open:l,onOpenChange:d,placement:"right",content:s,children:v})}):v}function Ae(r){const{iconSize:t=14}=r,{layoutConfig:o}=b(),{userInfo:i}=o,{avatarPopoverContent:a}=ke(),[s,l]=e.useState(!1),d=Ce();let c=m.jsx(le,{});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(ue,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const h=m.jsxs("div",{className:R,children:[m.jsx("div",{style:p,children:c}),m.jsx("span",{children:i?.uid})]});return a?m.jsx(d.Provider,{value:{close:()=>l(!1),record:i},children:m.jsx(n.Popover,{open:s,onOpenChange:l,placement:"left",content:a,children:h})}):m.jsx(m.Fragment,{children:h})}function Oe(e){return m.jsx("div",{style:{...e.style},children:e.children})}Oe.displayName="AvatarPopoverContent",Oe.role=ve;const{useToken:We}=n.theme;function Re(e){const{token:r}=We(),{layoutIcons:t,toolbarExtraItems:o}=ke(),i=r.Menu?.iconSize||16,[a,s]=t?.fullScreenIcons?.slice(0,2)||[m.jsx(ce,{}),m.jsx(de,{})],l=m.jsx(Pe,{icon:a,size:i}),d=m.jsx(Pe,{icon:s,size:i});return m.jsxs("div",{className:O,children:[e.showAvatar?m.jsxs("div",{className:W,children:[m.jsx(Ae,{iconSize:i+4}),m.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):m.jsx(m.Fragment,{}),o,m.jsx("div",{className:W,"data-adminui-role":"desk-toolbar",children:m.jsx(B,{buttons:[m.jsx(n.Button,{icon:d,type:"text"},"minimize"),m.jsx(n.Button,{icon:l,type:"text"},"maximize")]})})]})}function He(e){const n=m.jsx("div",{className:W,"data-adminui-role":"desk-toolbar",children:e.children});return e?m.jsx(m.Fragment,{children:n}):m.jsx(m.Fragment,{})}He.displayName="ToolbarExtraItems",He.role=we;const{useToken:$e}=n.theme;function De(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=ke(),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"},[s,l]=o?.collapsedIcons?.slice(0,2)||[m.jsx(oe,{}),m.jsx(te,{})];return m.jsx("div",{style:i,children:m.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?s:l})})}function qe(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=ke(),{token:s}=$e();let l={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${s.colorBorderSecondary}`};t&&(l={...l,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(te,{}),m.jsx(oe,{})];return m.jsx("div",{className:K,style:l,onClick:()=>{i(!o)},children:m.jsx("div",{style:d,className:X,children:o?c:u})})}function Ke(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=ke(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[m.jsx(ae,{}),m.jsx(ie,{})];return m.jsx("div",{className:ne,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:Xe}=n.Layout,{useToken:Ve}=n.theme;function Ge(e){const{layoutConfig:r}=b(),{token:o}=Ve(),i=t.useNavigate(),a=r.headerTransparent||r.headerBlur?P(o.colorBorderSecondary,.6):o.colorBorderSecondary,s=r.hideBorder?"0px":"1px solid "+a,l=r.flated&&"headMenu"==r.layoutType||"dark"==r.theme?"dark":"light",d=r.flated&&"headMenu"==r.layoutType?"dark":"light",c=r.flated&&"headMenu"==r.layoutType?o.colorPrimary:o.colorBgContainer,u={height:e.height+"px",lineHeight:e.height+"px"};let p=m.jsx(m.Fragment,{}),h={...u,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":c};r.headerBlur&&(h={...h,backgroundColor:P(c,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let x={...u,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[I],f=m.jsx(m.Fragment,{});"headMenu"==r.layoutType?(p=m.jsx("div",{style:u}),h={...h,paddingInlineEnd:o.paddingXS+"px"},f=m.jsx("div",{className:E,style:{width:r?.asideWidth+"px"},children:m.jsx(Ie,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),g.push(L)):(h={...h,paddingInline:o.paddingXS+"px"},g.push(z));let y=m.jsx(Le,{children:e.title}),_=m.jsx(Ke,{iconSize:r.compact?12:14});const v=[N];r.flated||v.push(re);let j="dark"==l?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return m.jsxs(m.Fragment,{children:[p,m.jsx(n.ConfigProvider,{theme:{algorithm:j},children:m.jsx(n.Layout,{className:g.join(" "),style:x,children:m.jsxs(Xe,{className:v.join(" "),style:h,children:[_,f,y,m.jsx(n.Menu,{onClick:e=>{i(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:d,classNames:{root:T},items:e.menuData||[]}),m.jsx(Re,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:Ue}=n.Layout,{useToken:Je}=n.theme,{useBreakpoint:Ye}=n.Grid;function Ze(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:s}=b(),{asideWidth:l}=s,d=r.headerHeight,{collapsed:c,setCollapsed:u}=ke(),{token:p}=Je(),h=t.useNavigate(),x=Ye().xs?0:d,g=s.headerTransparent||s.headerBlur?P(p.colorBorderSecondary,.6):p.colorBorderSecondary,f=s.hideBorder||0==x&&c?"0px":"1px solid "+g,y="headMenu"==s.layoutType?r.headerHeight:0,_="headMenu"==s.layoutType?"calc(100% - "+r.headerHeight+"px)":"100%";let v={width:`${s.asideWidth}px`,height:`${_}`,insetBlockStart:y+"px",maxWidth:`${s.asideWidth}px`,minWidth:`${s.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)"},j={overflow:"auto",flex:1};const w=p.Menu?.iconSize,k="dark"==s.theme?"dark":"light",S=k;let C=0,B=m.jsx(m.Fragment,{});"leftMenu"==s.layoutType&&(C=s.headerHeight||0,B=s.largeBrand?m.jsx(Ne,{collapsed:c,iconSize:w}):m.jsx(ze,{collapsed:c,iconSize:w,hideTitle:!0}));const M=s.asideTransparent?"transparent":s.asideBlur?P(p.colorBgContainer,.6):p.colorBgContainer;v={...v,backgroundColor:M},s.asideBlur&&(v={...v,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(j={...j,overflow:"hidden"});let I=[H];I.push(A);let z=m.jsx(m.Fragment,{});switch(s.collapsedPosition){case"bottom":z=m.jsx(De,{iconSize:w,style:{backgroundColor:M,width:`${d}px`,borderRight:f}});break;case"center":case"top":z=m.jsx(qe,{iconSize:12,top:"top"==s.collapsedPosition,flated:s.flated,offset:C,style:{backgroundColor:M}})}let L=r.menuData||[];return s.asideMenuGroup&&L.forEach(e=>{e.children&&(e.type="group")}),m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{width:c?d:l,flex:`0 0 ${c?d:l}px`,maxWidth:c?d:l,minWidth:c?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:$}),m.jsxs(Ue,{width:l,className:I.join(" "),style:v,theme:S,collapsedWidth:x,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[x>0?B:m.jsx(m.Fragment,{}),r.header,m.jsx("div",{style:j,children:m.jsx(n.Menu,{onClick:e=>{h(e.key)},onOpenChange:e=>{a(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:s.asideMenuInline?"inline":"vertical",selectedKeys:r.selectedKeys,openKeys:c?void 0:i,defaultSelectedKeys:r.selectedKeys,defaultOpenKeys:o.current,theme:k,items:L})}),r.footer,"leftBottom"==s.avatarPosition?m.jsx(Ee,{collapsed:c,iconSize:w}):m.jsx(m.Fragment,{}),z]})]})}const Qe=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Qe(r)),e},{});function en(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 nn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=on(e);r.children=nn(e.children),n.push(r)}),n},rn=(e,n)=>{if(e)return e.map(e=>{const r=tn(e,n),t={...e,label:r};return e.children&&(t.children=rn(e.children,n)),t})},tn=(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),on=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function an(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 sn(e){let n=an(e);return n&&n.length>1&&"/"==n[0]&&n.splice(0,1),n}function ln(e){const n=e.length;if(0===n)return[[],[]];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 dn(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=dn(r.path,n.children)),r})}const cn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:un}=n.theme;function mn(n){const{layoutConfig:o,themeSkin:i}=b(),a=r.useIntl(),{token:s}=un(),[l,d]=e.useState(!1),c={backgroundColor:s.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const p=o.disabledLocale?n.menuData:rn(n.menuData,a),h=p&&p?.length>0?p[0].children:[],x=Qe(p||[]),g=nn(h),f=t.useLocation(),y=t.useMatches(),{pathname:_}=f,v=sn(_),j=y[y.length-1];let w=[],k=[],S=[],B=[];if("leftMenu"==o.layoutType?(B=g||[],k=v):(S=g||[],w=v),o.splitMenu&&v.length>1){const[e,n]=ln(v),{rootMenuItems:r,childrenMenuItems:t}=en(g,v);"leftMenu"==o.layoutType?(B=r,S=t,k=e,w=n):(B=t,S=r,w=e,k=n)}const P=e.Children.toArray(n.children),M=P.find(n=>e.isValidElement(n)&&n.type.role===xe),I=P.find(n=>e.isValidElement(n)&&n.type.role===ge),z=P.find(n=>e.isValidElement(n)&&n.type.role===_e),L=P.find(n=>e.isValidElement(n)&&n.type.role===ve),N=P.find(n=>e.isValidElement(n)&&n.type.role===be),T=P.find(n=>e.isValidElement(n)&&n.type.role===je),F=P.find(n=>e.isValidElement(n)&&n.type.role===we),E=me,A=e.useMemo(()=>({collapsed:l,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:L,brandPopoverContent:N,toolbarExtraItems:F,flattenMenuMap:x,setCollapsed:d}),[l,u,n.layoutIcons,x]),O=t.useNavigation();Boolean(O.location),console.log(O);const W=x[j.pathname].label||"";return document.title=W,m.jsxs(m.Fragment,{children:[m.jsx(E,{value:A,children:m.jsxs(C,{...n,style:c,children:[m.jsx(C.Aside,{children:m.jsx(Ze,{headerHeight:u,header:M,footer:I,menuData:B,selectedKeys:k,openerKeys:k})}),m.jsx(C.Header,{children:m.jsx(Ge,{height:u,menuData:S,selectedKeys:w,title:W})}),m.jsx(C.Content,{children:m.jsx(t.Outlet,{context:{title:W,footer:z}})}),m.jsx(C.Background,{children:i?i.backgroundContent:m.jsx(m.Fragment,{})})]})}),T]})}const pn=e=>i.generate(e),hn=()=>pn("#22222222");function xn(e){const n=Se(),{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?m.jsx(m.Fragment,{}):m.jsxs("div",{className:q,style:o,children:[m.jsx("div",{children:e.icon}),m.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function gn(e){return m.jsx(m.Fragment,{children:e.children})}function fn(e){return m.jsx("div",{className:D,children:e.children})}function yn(e){return m.jsx("div",{className:D,children:e.children})}gn.displayName="AsideContentItems",xn.displayName="AsideContentItem",yn.displayName="AsideHeaderContent",yn.Items=gn,yn.Item=xn,fn.displayName="AsideFooterContent",fn.Items=gn,fn.Item=xn,fn.role=ge,yn.role=xe,gn.role=fe,xn.role=ye;const _n="adminui-default-config",vn=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()}),bn=e=>{e||(e=_n);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},jn=(e,n)=>{n||(n=_n);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},wn=(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},{useToken:kn}=n.theme,Sn=e=>m.jsx("div",{...e,children:e.children});function Cn(e){return m.jsx(m.Fragment,{children:e.children})}Sn.displayName="ContentFooter",Sn.role=_e,Cn.displayName="SoltContent",Cn.role=je;const Bn="adminui-locale",Pn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Mn(o){const i=t.useMatches(),{pathname:a}=i[0],s={...y,...o.layoutConfig,...bn(a)};let l=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})(l),[l]),c=o.locale||localStorage.getItem(Bn)||s.locale||"en-US",u=o.menuData?dn("/",[o.menuData]):[],[p,h]=e.useState(()=>{if(s.skinName){const e=Pn(s.skinName,d);return wn(s,e)}return s}),[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(Bn,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 S=e.useMemo(()=>{if(p.skinName)return Pn(p.skinName,d)},[l,p.skinName]),C="system"==(B=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const P=e=>{h(e),jn(e,a)},M=e.useMemo(()=>({layoutConfig:p,locale:x,languages:w,themeSkin:S,themeSkinMap:d}),[w,x,w,d,S,p]),I=e.useMemo(()=>({setLayoutConfig:P,setLocale:k}),[]),z=j[x]||j["en-US"],L=["he","ar","fa","ku"].filter(e=>x.startsWith(e)).length?"rtl":"ltr";let N="dark"===C?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],T=p.menuIconSize||14;const F=p.menuIconSize?.1*(T-10)+10:10;p.compact&&(N.push(n.theme.compactAlgorithm),T-=2);let E={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:T,fontSize:T,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:F,activeBarHeight:p.compact?2:4,darkPopupBg:hn()[4]};const A={algorithm:N,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:M,children:m.jsx(b.Provider,{value:I,children:m.jsx(n.ConfigProvider,{theme:A,locale:z?.antdLocale,direction:L,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(mn,{menuData:u,layoutIcons:o.layoutIcons,children:o.children})})})})})})}Mn.AsideHeader=yn,Mn.AsideFooter=fn,Mn.Footer=Sn,Mn.AvatarPopoverContent=Oe,Mn.BrandPopoverContent=Te,Mn.SoltContent=Cn,Mn.HeaderToolbarExtra=He;var In={exports:{}},zn=a(In.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,s(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),l(d,a(e,c,u)),1===e?(l(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){l(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),s=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,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 s=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),l=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?l.exports=function(){if(s)return d;s=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}():l.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 f:return"Profiler";case g:return"StrictMode";case b: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 _: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 s(e,r,o,i,s,d){var u,m=r.children;if(void 0!==m)if(i)if(M(m)){for(i=0;i<m.length;i++)l(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 l(m);if(P.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(P.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 s=r.ref;return e={$$typeof:p,type:e,key:n,props:r,_owner:t},null!==(void 0!==s?s: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(),s,d)}function l(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"),_=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=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,P=Object.prototype.hasOwnProperty,M=Array.isArray,I=console.createTask?console.createTask:function(){return null},z={},L=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,i)(),T=I(o(i)),N={};u.Fragment=x,u.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return s(e,n,r,!1,t?Error("react-stack-top-frame"):L,t?I(o(e)):T)},u.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return s(e,n,r,!0,t?Error("react-stack-top-frame"):L,t?I(o(e)):T)}}()),u);var m=l.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}\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",primaryColor:"#417ffb"},_=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),v=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),b=()=>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 S(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,S.displayName="LayoutHeader",S.role=g;function C(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(),s())};e.useEffect(()=>(document.addEventListener("fullscreenchange",i),document.addEventListener("keydown",a,!0),()=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("keydown",a)}),[]);const s=()=>{t?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return m.jsx(m.Fragment,{});const[l,d]=n.buttons,c=t?l:d;return e.cloneElement(c,{onClick:e=>{console.log(e),s()}})}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}\r\n"),C.Aside=k,C.Content=w,C.Header=S,C.Background=j;const P=(e,n)=>{const{r:r,g:t,b:o}=(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}))(e);return`rgba(${r}, ${t}, ${o}, ${n})`};function M(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))}}M("@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\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");var I="index-module_headerLayout__rv59v",z="index-module_headerLayoutSticky__6uFCj",L="index-module_headerLayoutFixed__t5Hmo",T="index-module_headerLayoutBox__h0fIt",N="index-module_headerMenu__WHmJN",F="index-module_headerTitle__jGbCX",E="index-module_headerBrandBox__U2J16",A="index-module_layoutBlur__GpCPx",O="index-module_toolbarPanel__Pp8PS",W="index-module_toolbarItem__RkaXd",R="index-module_toolbarAvatarItem__p6TXY",H="index-module_siderBaseStyle__zg1FM",$="index-module_siderMask__cCjMh",D="index-module_siderContentBox__dGgRe",q="index-module_siderContentItem__kl3cR",K="index-module_collapsedTrack__LoJ3V",X="index-module_collapsedTrackButton__m33XS",V="index-module_brandPanel__2GRgq",G="index-module_labelBox__dX8fY",U="index-module_brandNodeBox__W-iM6",J="index-module_brandMobilePanel__m1Diu",Y="index-module_largeBrandPanel__pLn--",Z="index-module_title__SbfFY",Q="index-module_largeBrandCollPanel__nsGKB",ee="index-module_avatarPanel__fFvCS",ne="index-module_collapsedMobile__Yu8F4",re="index-module_round__WoVxM";function te(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 oe(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 ie(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 ae(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 se(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 le(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 de(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 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:"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 ue(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"},s=m.jsx("img",{...i});return n.hasChild?s:m.jsx("div",{style:a,children:s})}M('@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\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.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\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 me=e.createContext({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),pe=e.createContext({close:()=>{}}),he=e.createContext({close:()=>{}}),xe=Symbol("AsideFooter"),ge=Symbol("AsideHeader"),fe=Symbol("AsideContentItems"),ye=Symbol("AsideContentItem"),_e=Symbol("ContentFooter"),ve=Symbol("AvatarPopoverContent"),be=Symbol("BrandPopoverContent"),je=Symbol("SoltContent"),we=Symbol("ToolbarExtraItems"),ke=()=>e.useContext(me),Se=()=>ke().collapsed,Ce=()=>pe,Be=()=>he;function Pe(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:Me}=n.theme;function Ie(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=b(),{token:s}=Me(),{layoutIcons:l,brandPopoverContent:d}=ke(),[c,u]=e.useState(!1),p=Be(),h=a.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:a.compact?s.paddingXXS:s.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:s.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 _=m.jsx(m.Fragment,{});y?.logo&&(_="string"==typeof y.logo?m.jsx(ue,{style:{width:h},src:y.logo,alt:y.name}):m.jsx("div",{className:U,style:{width:h},children:y.logo}));const v=l?.itemMoreIcon||m.jsx(se,{}),j=m.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?m.jsx(Pe,{icon:v,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:m.jsxs("div",{style:f,children:[_,m.jsxs("div",{className:G,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:y?.name}),i?void 0:m.jsx("span",{style:{color:s.colorTextSecondary},children:y?.title})]})]})});return m.jsx("div",{className:V,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 ze(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=b(),{layoutIcons:s,brandPopoverContent:l}=ke(),{token:d}=Me(),[c,u]=e.useState(!1),p=Be(),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 _=m.jsx(m.Fragment,{});y?.logo&&(_="string"==typeof y.logo?m.jsx(ue,{style:{width:h},src:y.logo,alt:y.name}):m.jsx("div",{className:U,style:{width:h},children:y.logo}));const v=s?.itemMoreIcon||m.jsx(se,{}),j=l?{}:{href:y?.url},w=m.jsxs("a",{...j,style:x,children:[m.jsxs("div",{style:f,children:[_,m.jsxs("div",{className:G,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})]})]}),l?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Pe,{icon:v,size:o||14})}):m.jsx(m.Fragment,{})]});return m.jsx("div",{className:V,style:g,children:l?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:l,children:w})}):w})}function Le(r){const{layoutConfig:t}=b(),{brandPopoverContent:o}=ke(),[i,a]=e.useState(!1),s=Be(),l=t.compact?"16px":"20px",{brandInfo:d}=t;let c=m.jsx(m.Fragment,{});d?.logo&&(c="string"==typeof d.logo?m.jsx(ue,{style:{width:l},src:d.logo,alt:d.name}):m.jsx("div",{className:U,style:{width:l},children:d.logo}));let u=o?m.jsx(s.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:F,children:r.children})]})}function Te(r){const{collapsed:t}=r,{brandPopoverContent:o}=ke(),{layoutConfig:i}=b(),[a,s]=e.useState(!1),l=Be(),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=[Y];t&&h.push(Q),c?.logo&&(p="string"==typeof c.logo?m.jsx(ue,{style:{width:d},src:c.logo,alt:c.name}):m.jsx("div",{className:U,style:{width:d},children:c.logo}));let x=o?m.jsx(l.Provider,{value:{close:()=>{s(!1)},record:c},children:m.jsx(n.Popover,{open:a,onOpenChange:s,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:Z,children:c?.title}):m.jsx(m.Fragment,{})]})]})}function Ne(e){return m.jsx("div",{style:{...e.style},children:e.children})}Ne.displayName="BrandPopoverContent",Ne.role=be;const{useToken:Fe}=n.theme;function Ee(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=b(),{layoutIcons:a,avatarPopoverContent:s}=ke(),[l,d]=e.useState(!1),c=Ce(),{token:u}=Fe(),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(ue,{style:{width:p,borderRadius:"999px"},src:f.avatar,alt:f.uid}):f.avatar);const _=a?.itemMoreIcon||m.jsx(se,{}),v=m.jsx("div",{className:ee,style:x,children:m.jsxs("a",{style:h,children:[m.jsxs("div",{style:g,children:[y,m.jsxs("div",{className:G,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})]})]}),s?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Pe,{icon:_,size:o||14})}):m.jsx(m.Fragment,{})]})});return s?m.jsx(c.Provider,{value:{close:()=>d(!1),record:f},children:m.jsx(n.Popover,{open:l,onOpenChange:d,placement:"right",content:s,children:v})}):v}function Ae(r){const{iconSize:t=14}=r,{layoutConfig:o}=b(),{userInfo:i}=o,{avatarPopoverContent:a}=ke(),[s,l]=e.useState(!1),d=Ce();let c=m.jsx(le,{});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(ue,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const h=m.jsxs("div",{className:R,children:[m.jsx("div",{style:p,children:c}),m.jsx("span",{children:i?.uid})]});return a?m.jsx(d.Provider,{value:{close:()=>l(!1),record:i},children:m.jsx(n.Popover,{open:s,onOpenChange:l,placement:"left",content:a,children:h})}):m.jsx(m.Fragment,{children:h})}function Oe(e){return m.jsx("div",{style:{...e.style},children:e.children})}Oe.displayName="AvatarPopoverContent",Oe.role=ve;const{useToken:We}=n.theme;function Re(e){const{token:r}=We(),{layoutIcons:t,toolbarExtraItems:o}=ke(),i=r.Menu?.iconSize||16,[a,s]=t?.fullScreenIcons?.slice(0,2)||[m.jsx(ce,{}),m.jsx(de,{})],l=m.jsx(Pe,{icon:a,size:i}),d=m.jsx(Pe,{icon:s,size:i});return m.jsxs("div",{className:O,children:[e.showAvatar?m.jsxs("div",{className:W,children:[m.jsx(Ae,{iconSize:i+4}),m.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):m.jsx(m.Fragment,{}),o,m.jsx("div",{className:W,"data-adminui-role":"desk-toolbar",children:m.jsx(B,{buttons:[m.jsx(n.Button,{icon:d,type:"text"},"minimize"),m.jsx(n.Button,{icon:l,type:"text"},"maximize")]})})]})}function He(e){const n=m.jsx("div",{className:W,"data-adminui-role":"desk-toolbar",children:e.children});return e?m.jsx(m.Fragment,{children:n}):m.jsx(m.Fragment,{})}He.displayName="ToolbarExtraItems",He.role=we;const{useToken:$e}=n.theme;function De(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=ke(),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"},[s,l]=o?.collapsedIcons?.slice(0,2)||[m.jsx(oe,{}),m.jsx(te,{})];return m.jsx("div",{style:i,children:m.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?s:l})})}function qe(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=ke(),{token:s}=$e();let l={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${s.colorBorderSecondary}`};t&&(l={...l,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(te,{}),m.jsx(oe,{})];return m.jsx("div",{className:K,style:l,onClick:()=>{i(!o)},children:m.jsx("div",{style:d,className:X,children:o?c:u})})}function Ke(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=ke(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[m.jsx(ae,{}),m.jsx(ie,{})];return m.jsx("div",{className:ne,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:Xe}=n.Layout,{useToken:Ve}=n.theme;function Ge(e){const{layoutConfig:r}=b(),{token:o}=Ve(),i=t.useNavigate(),a=r.headerTransparent||r.headerBlur?P(o.colorBorderSecondary,.6):o.colorBorderSecondary,s=r.hideBorder?"0px":"1px solid "+a,l=r.flated&&"headMenu"==r.layoutType||"dark"==r.theme?"dark":"light",d=r.flated&&"headMenu"==r.layoutType?"dark":"light",c=r.flated&&"headMenu"==r.layoutType?o.colorPrimary:o.colorBgContainer,u={height:e.height+"px",lineHeight:e.height+"px"};let p=m.jsx(m.Fragment,{}),h={...u,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":c};r.headerBlur&&(h={...h,backgroundColor:P(c,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let x={...u,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[I],f=m.jsx(m.Fragment,{});"headMenu"==r.layoutType?(p=m.jsx("div",{style:u}),h={...h,paddingInlineEnd:o.paddingXS+"px"},f=m.jsx("div",{className:E,style:{width:r?.asideWidth+"px"},children:m.jsx(Ie,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),g.push(L)):(h={...h,paddingInline:o.paddingXS+"px"},g.push(z));let y=m.jsx(Le,{children:e.title}),_=m.jsx(Ke,{iconSize:r.compact?12:14});const v=[T];r.flated||v.push(re);let j="dark"==l?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return m.jsxs(m.Fragment,{children:[p,m.jsx(n.ConfigProvider,{theme:{algorithm:j},children:m.jsx(n.Layout,{className:g.join(" "),style:x,children:m.jsxs(Xe,{className:v.join(" "),style:h,children:[_,f,y,m.jsx(n.Menu,{onClick:e=>{i(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:d,classNames:{root:N},items:e.menuData||[]}),m.jsx(Re,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:Ue}=n.Layout,{useToken:Je}=n.theme,{useBreakpoint:Ye}=n.Grid;function Ze(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:s}=b(),{asideWidth:l}=s,d=r.headerHeight,{collapsed:c,setCollapsed:u}=ke(),{token:p}=Je(),h=t.useNavigate(),x=Ye().xs?0:d,g=s.headerTransparent||s.headerBlur?P(p.colorBorderSecondary,.6):p.colorBorderSecondary,f=s.hideBorder||0==x&&c?"0px":"1px solid "+g,y="headMenu"==s.layoutType?r.headerHeight:0,_="headMenu"==s.layoutType?"calc(100% - "+r.headerHeight+"px)":"100%";let v={width:`${s.asideWidth}px`,height:`${_}`,insetBlockStart:y+"px",maxWidth:`${s.asideWidth}px`,minWidth:`${s.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)"},j={overflow:"auto",flex:1};const w=p.Menu?.iconSize,k="dark"==s.theme?"dark":"light",S=k;let C=0,B=m.jsx(m.Fragment,{});"leftMenu"==s.layoutType&&(C=s.headerHeight||0,B=s.largeBrand?m.jsx(Te,{collapsed:c,iconSize:w}):m.jsx(ze,{collapsed:c,iconSize:w,hideTitle:!0}));const M=s.asideTransparent?"transparent":s.asideBlur?P(p.colorBgContainer,.6):p.colorBgContainer;v={...v,backgroundColor:M},s.asideBlur&&(v={...v,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(j={...j,overflow:"hidden"});let I=[H];I.push(A);let z=m.jsx(m.Fragment,{});switch(s.collapsedPosition){case"bottom":z=m.jsx(De,{iconSize:w,style:{backgroundColor:M,width:`${d}px`,borderRight:f}});break;case"center":case"top":z=m.jsx(qe,{iconSize:12,top:"top"==s.collapsedPosition,flated:s.flated,offset:C,style:{backgroundColor:M}})}let L=r.menuData||[];return s.asideMenuGroup&&L.forEach(e=>{e.children&&(e.type="group")}),m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{width:c?d:l,flex:`0 0 ${c?d:l}px`,maxWidth:c?d:l,minWidth:c?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:$}),m.jsxs(Ue,{width:l,className:I.join(" "),style:v,theme:S,collapsedWidth:x,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[x>0?B:m.jsx(m.Fragment,{}),r.header,m.jsx("div",{style:j,children:m.jsx(n.Menu,{onClick:e=>{h(e.key)},onOpenChange:e=>{a(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:s.asideMenuInline?"inline":"vertical",selectedKeys:r.selectedKeys,openKeys:c?void 0:i,defaultSelectedKeys:r.selectedKeys,defaultOpenKeys:o.current,theme:k,items:L})}),r.footer,"leftBottom"==s.avatarPosition?m.jsx(Ee,{collapsed:c,iconSize:w}):m.jsx(m.Fragment,{}),z]})]})}const Qe=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Qe(r)),e},{});function en(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 nn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=on(e);r.children=nn(e.children),n.push(r)}),n},rn=(e,n)=>{if(e)return e.map(e=>{const r=tn(e,n),t={...e,label:r};return e.children&&(t.children=rn(e.children,n)),t})},tn=(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),on=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function an(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 sn(e){let n=an(e);return n&&n.length>1&&"/"==n[0]&&n.splice(0,1),n}function ln(e){const n=e.length;if(0===n)return[[],[]];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 dn(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=dn(r.path,n.children)),r})}const cn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:un}=n.theme;function mn(n){const{layoutConfig:o,themeSkin:i}=b(),a=r.useIntl(),{token:s}=un(),[l,d]=e.useState(!1),c={backgroundColor:s.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const p=o.disabledLocale?n.menuData:rn(n.menuData,a),h=p&&p?.length>0?p[0].children:[],x=Qe(p||[]),g=nn(h),f=t.useLocation(),y=t.useMatches(),{pathname:_}=f,v=sn(_),j=y[y.length-1];let w=[],k=[],S=[],B=[];if("leftMenu"==o.layoutType?(B=g||[],k=v):(S=g||[],w=v),o.splitMenu&&v.length>1){const[e,n]=ln(v),{rootMenuItems:r,childrenMenuItems:t}=en(g,v);"leftMenu"==o.layoutType?(B=r,S=t,k=e,w=n):(B=t,S=r,w=e,k=n)}const P=e.Children.toArray(n.children),M=P.find(n=>e.isValidElement(n)&&n.type.role===xe),I=P.find(n=>e.isValidElement(n)&&n.type.role===ge),z=P.find(n=>e.isValidElement(n)&&n.type.role===_e),L=P.find(n=>e.isValidElement(n)&&n.type.role===ve),T=P.find(n=>e.isValidElement(n)&&n.type.role===be),N=P.find(n=>e.isValidElement(n)&&n.type.role===je),F=P.find(n=>e.isValidElement(n)&&n.type.role===we),E=me,A=e.useMemo(()=>({collapsed:l,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:L,brandPopoverContent:T,toolbarExtraItems:F,flattenMenuMap:x,setCollapsed:d}),[l,u,n.layoutIcons,x]),O=t.useNavigation();Boolean(O.location),console.log(O);const W=x[j.pathname].label||"";return document.title=W,m.jsxs(m.Fragment,{children:[m.jsx(E,{value:A,children:m.jsxs(C,{...n,style:c,children:[m.jsx(C.Aside,{children:m.jsx(Ze,{headerHeight:u,header:M,footer:I,menuData:B,selectedKeys:k,openerKeys:k})}),m.jsx(C.Header,{children:m.jsx(Ge,{height:u,menuData:S,selectedKeys:w,title:W})}),m.jsx(C.Content,{children:m.jsx(t.Outlet,{context:{title:W,footer:z}})}),m.jsx(C.Background,{children:i?i.backgroundContent:m.jsx(m.Fragment,{})})]})}),N]})}const pn=e=>i.generate(e),hn=()=>pn("#22222222");function xn(e){const n=Se(),{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?m.jsx(m.Fragment,{}):m.jsxs("div",{className:q,style:o,children:[m.jsx("div",{children:e.icon}),m.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function gn(e){return m.jsx(m.Fragment,{children:e.children})}function fn(e){return m.jsx("div",{className:D,children:e.children})}function yn(e){return m.jsx("div",{className:D,children:e.children})}gn.displayName="AsideContentItems",xn.displayName="AsideContentItem",yn.displayName="AsideHeaderContent",yn.Items=gn,yn.Item=xn,fn.displayName="AsideFooterContent",fn.Items=gn,fn.Item=xn,fn.role=ge,yn.role=xe,gn.role=fe,xn.role=ye;const _n="adminui-default-config",vn=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()}),bn=e=>{e||(e=_n);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},jn=(e,n)=>{n||(n=_n);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},wn=(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},{useToken:kn}=n.theme,Sn=e=>m.jsx("div",{...e,children:e.children});function Cn(e){return m.jsx(m.Fragment,{children:e.children})}Sn.displayName="ContentFooter",Sn.role=_e,Cn.displayName="SoltContent",Cn.role=je;const Bn="adminui-locale",Pn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Mn(o){const i=t.useMatches(),{pathname:a}=i[0],s={...y,...o.layoutConfig,...bn(a)};let l=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})(l),[l]),c=o.locale||localStorage.getItem(Bn)||s.locale||"en-US",u=o.menuData?dn("/",[o.menuData]):[],[p,h]=e.useState(()=>{if(s.skinName){const e=Pn(s.skinName,d);return wn(s,e)}return s}),[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(Bn,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 S=e.useMemo(()=>{if(p.skinName)return Pn(p.skinName,d)},[l,p.skinName]),C="system"==(B=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const P=e=>{h(e),jn(e,a)},M=e.useMemo(()=>({layoutConfig:p,locale:x,languages:w,themeSkin:S,themeSkinMap:d}),[w,x,w,d,S,p]),I=e.useMemo(()=>({setLayoutConfig:P,setLocale:k}),[]),z=j[x]||j["en-US"],L=["he","ar","fa","ku"].filter(e=>x.startsWith(e)).length?"rtl":"ltr";let T="dark"===C?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],N=p.menuIconSize||14;const F=p.menuIconSize?.1*(N-10)+10:10;p.compact&&(T.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:hn()[4]};const A={algorithm:T,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:M,children:m.jsx(b.Provider,{value:I,children:m.jsx(n.ConfigProvider,{theme:A,locale:z?.antdLocale,direction:L,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(mn,{menuData:u,layoutIcons:o.layoutIcons,children:o.children})})})})})})}Mn.AsideHeader=yn,Mn.AsideFooter=fn,Mn.Footer=Sn,Mn.AvatarPopoverContent=Oe,Mn.BrandPopoverContent=Ne,Mn.SoltContent=Cn,Mn.HeaderToolbarExtra=He;var In={exports:{}},zn=a(In.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,s(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),l(d,a(e,c,u)),1===e?(l(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){l(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),s=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,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 s=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),l=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}());
|
|
11
11
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
12
|
-
* @license MIT */M("/* Make clicks pass-through */\n#nprogress_nprogress__aqNSX {\n pointer-events: none;\n}\n\n#nprogress_nprogress__aqNSX .nprogress_bar__jdnDD {\n background: #29d;\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n}\n\n/* Fancy blur effect */\n#nprogress_nprogress__aqNSX .nprogress_peg__hwnh6 {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px #29d, 0 0 5px #29d;\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n}\n\n/* Remove these to get rid of the spinner */\n#nprogress_nprogress__aqNSX .nprogress_spinner__-lLoD {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n}\n\n#nprogress_nprogress__aqNSX .nprogress_spinner-icon__7g0sk {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: #29d;\n border-left-color: #29d;\n border-radius: 50%;\n\n -webkit-animation: nprogress_nprogress-spinner__agk-h 400ms linear infinite;\n animation: nprogress_nprogress-spinner__agk-h 400ms linear infinite;\n}\n\n.nprogress_nprogress-custom-parent__KxnjL {\n overflow: hidden;\n position: relative;\n}\n\n.nprogress_nprogress-custom-parent__KxnjL #nprogress_nprogress__aqNSX .nprogress_spinner__-lLoD,\n.nprogress_nprogress-custom-parent__KxnjL #nprogress_nprogress__aqNSX .nprogress_bar__jdnDD {\n position: absolute;\n}\n\n@-webkit-keyframes nprogress_nprogress-spinner__agk-h {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n}\n@keyframes nprogress_nprogress-spinner__agk-h {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n");const Ln=()=>(e.useEffect(()=>{const e=setTimeout(()=>{zn.start()},200);return()=>{clearTimeout(e),zn.done()}},[]),m.jsx("div",{style:{height:"auto"}}));Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return i.generate}}),exports.AntdLayout=Mn,exports.FullScreenButton=B,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return m.jsx(e.Suspense,{fallback:m.jsx(Ln,{}),children:m.jsx(r,{...n})})}},exports.PageLoading=Ln,exports.RouteLoading=()=>(e.useEffect(()=>(zn.start(),()=>{zn.done()}),[location.hostname]),m.jsx("div",{style:{height:"auto"}})),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=Qe,exports.getAntdMenuItem=on,exports.getAppIntl=vn,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=hn,exports.getMenuLabel=tn,exports.getStorageConfig=bn,exports.getWhiteColors=()=>pn("#FFFFFF"),exports.localeMenuData=rn,exports.matchPathToKeys=sn,exports.pathToKeys=an,exports.separateMenuData=en,exports.setSkinConfig=wn,exports.setStorageConfig=jn,exports.splitMenuKeys=ln,exports.transformMenuData=dn,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=nn,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=b(),{f:t,t:o}=vn(n.disabledLocale?void 0:e);return{...e,f:t,t:o}},exports.useAvatarPopover=()=>e.useContext(pe),exports.useBrandPopover=()=>e.useContext(he),exports.useConfigAction=()=>e.useContext(_),exports.useConfigState=b,exports.useContainerOutlet=()=>t.useOutletContext(),exports.useMainCollapsed=Se,exports.useTheme=()=>b().layoutConfig.theme;
|
|
12
|
+
* @license MIT */M("/* Make clicks pass-through */\n#nprogress_nprogress__aqNSX {\n pointer-events: none;\n}\n\n#nprogress_nprogress__aqNSX .nprogress_bar__jdnDD {\n background: #29d;\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n}\n\n/* Fancy blur effect */\n#nprogress_nprogress__aqNSX .nprogress_peg__hwnh6 {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px #29d, 0 0 5px #29d;\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n}\n\n/* Remove these to get rid of the spinner */\n#nprogress_nprogress__aqNSX .nprogress_spinner__-lLoD {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n}\n\n#nprogress_nprogress__aqNSX .nprogress_spinner-icon__7g0sk {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: #29d;\n border-left-color: #29d;\n border-radius: 50%;\n\n -webkit-animation: nprogress_nprogress-spinner__agk-h 400ms linear infinite;\n animation: nprogress_nprogress-spinner__agk-h 400ms linear infinite;\n}\n\n.nprogress_nprogress-custom-parent__KxnjL {\n overflow: hidden;\n position: relative;\n}\n\n.nprogress_nprogress-custom-parent__KxnjL #nprogress_nprogress__aqNSX .nprogress_spinner__-lLoD,\n.nprogress_nprogress-custom-parent__KxnjL #nprogress_nprogress__aqNSX .nprogress_bar__jdnDD {\n position: absolute;\n}\n\n@-webkit-keyframes nprogress_nprogress-spinner__agk-h {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n}\n@keyframes nprogress_nprogress-spinner__agk-h {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n");const Ln=()=>(e.useEffect(()=>{const e=setTimeout(()=>{zn.start()},200);return()=>{clearTimeout(e),zn.done()}},[]),m.jsx("div",{style:{height:"auto"}}));Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return i.generate}}),exports.AntdLayout=Mn,exports.FullScreenButton=B,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]),m.jsx(n.Avatar,{...r,style:{...r.style,opacity:t?1:0,transition:"opacity 0.3s ease-out"}})},exports.LazyImage=ue,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return m.jsx(e.Suspense,{fallback:m.jsx(Ln,{}),children:m.jsx(r,{...n})})}},exports.PageLoading=Ln,exports.RouteLoading=()=>(e.useEffect(()=>(zn.start(),()=>{zn.done()}),[location.hostname]),m.jsx("div",{style:{height:"auto"}})),exports.ToolbarIcon=Pe,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=Qe,exports.getAntdMenuItem=on,exports.getAppIntl=vn,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=hn,exports.getMenuLabel=tn,exports.getStorageConfig=bn,exports.getWhiteColors=()=>pn("#FFFFFF"),exports.localeMenuData=rn,exports.matchPathToKeys=sn,exports.pathToKeys=an,exports.separateMenuData=en,exports.setSkinConfig=wn,exports.setStorageConfig=jn,exports.splitMenuKeys=ln,exports.transformMenuData=dn,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=nn,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=b(),{f:t,t:o}=vn(n.disabledLocale?void 0:e);return{...e,f:t,t:o}},exports.useAvatarPopover=()=>e.useContext(pe),exports.useBrandPopover=()=>e.useContext(he),exports.useConfigAction=()=>e.useContext(_),exports.useConfigState=b,exports.useContainerOutlet=()=>t.useOutletContext(),exports.useMainCollapsed=Se,exports.useTheme=()=>b().layoutConfig.theme;
|