@adminui-dev/antd-layout 1.0.1 → 1.0.2

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.
@@ -24,4 +24,4 @@ declare namespace AntdLayout {
24
24
  var SoltContent: typeof SoltPanel;
25
25
  var HeaderToolbarExtra: typeof ToolbarExtraItems;
26
26
  }
27
- export default AntdLayout;
27
+ export { AntdLayout };
@@ -1,4 +1,5 @@
1
- import AntdLayout from "./AntdLayout";
1
+ import { AntdLayout } from "./AntdLayout";
2
+ import { PageLoading, RouteLoading, LazyPage } from "./AntdLayout/LazyPage";
2
3
  import { useAvatarPopover, useBrandPopover, useMainCollapsed, useContainerOutlet } from "./AntdLayout/MainContext";
3
4
  import { useConfigAction, useConfigState, useTheme } from "@adminui-dev/layout";
4
5
  export * from "./AntdLayout/common/ColorUtil";
@@ -6,4 +7,4 @@ export * from "./AntdLayout/common/MenuUtil";
6
7
  export * from "./AntdLayout/common/RouteUtil";
7
8
  export * from "./AntdLayout/common/StringUtil";
8
9
  export { useAvatarPopover, useBrandPopover, useMainCollapsed, useContainerOutlet, useConfigAction, useConfigState, useTheme };
9
- export default AntdLayout;
10
+ export { AntdLayout, PageLoading, RouteLoading, LazyPage };
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var n,r=require("react"),e=require("antd"),t=require("react-intl"),o=require("react-router"),i=require("react-router-dom"),a=require("@ant-design/colors"),d={exports:{}},l={};var s,u={};
1
+ "use strict";var e=require("react"),n=require("antd"),r=require("react-intl"),t=require("react-router"),o=require("react-router-dom"),i=require("@ant-design/colors");"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,l={exports:{}},d={};var c,u={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,4 +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?d.exports=function(){if(n)return l;n=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,e,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in t={},e)"key"!==i&&(t[i]=e[i]);else t=e;return e=t.ref,{$$typeof:r,type:n,key:o,ref:void 0!==e?e:null,props:t}}return l.Fragment=e,l.jsx=t,l.jsxs=t,l}():d.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){function n(r){if(null==r)return null;if("function"==typeof r)return r.$$typeof===j?null:r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case f:return"Fragment";case _:return"Profiler";case x:return"StrictMode";case v:return"Suspense";case w:return"SuspenseList";case S:return"Activity"}if("object"==typeof r)switch("number"==typeof r.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case h:return"Portal";case y:return r.displayName||"Context";case g:return(r._context.displayName||"Context")+".Consumer";case b:var e=r.render;return(r=r.displayName)||(r=""!==(r=e.displayName||e.name||"")?"ForwardRef("+r+")":"ForwardRef"),r;case k:return null!==(e=r.displayName||null)?e:n(r.type)||"Memo";case C:e=r._payload,r=r._init;try{return n(r(e))}catch(n){}}return null}function e(n){return""+n}function t(n){try{e(n);var r=!1}catch(n){r=!0}if(r){var t=(r=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),e(n)}}function o(r){if(r===f)return"<>";if("object"==typeof r&&null!==r&&r.$$typeof===C)return"<...>";try{var e=n(r);return e?"<"+e+">":"<...>"}catch(n){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var r=n(this.type);return z[r]||(z[r]=!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!==(r=this.props.ref)?r:null}function d(r,e,o,i,d,s){var u,m=e.children;if(void 0!==m)if(i)if(L(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(e,"key")){m=n(r);var h=Object.keys(e).filter(function(n){return"key"!==n});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",I[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),I[m+i]=!0)}if(m=null,void 0!==o&&(t(o),m=""+o),function(n){if(P.call(n,"key")){var r=Object.getOwnPropertyDescriptor(n,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==n.key}(e)&&(t(e.key),m=""+e.key),"key"in e)for(var f in o={},e)"key"!==f&&(o[f]=e[f]);else o=e;return m&&function(n,r){function e(){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)",r))}e.isReactWarning=!0,Object.defineProperty(n,"key",{get:e,configurable:!0})}(o,"function"==typeof r?r.displayName||r.name||"Unknown":r),function(n,r,e,t,o,i){var d=e.ref;return n={$$typeof:p,type:n,key:r,props:e,_owner:t},null!==(void 0!==d?d:null)?Object.defineProperty(n,"ref",{enumerable:!1,get:a}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}(r,m,o,null===(u=B.A)?null:u.getOwner(),d,s)}function l(n){s(n)?n._store&&(n._store.validated=1):"object"==typeof n&&null!==n&&n.$$typeof===C&&("fulfilled"===n._payload.status?s(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function s(n){return"object"==typeof n&&null!==n&&n.$$typeof===p}var c,m=r,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),B=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,L=Array.isArray,T=console.createTask?console.createTask:function(){return null},z={},N=(m={react_stack_bottom_frame:function(n){return n()}}).react_stack_bottom_frame.bind(m,i)(),F=T(o(i)),I={};u.Fragment=f,u.jsx=function(n,r,e){var t=1e4>B.recentlyCreatedOwnerStacks++;return d(n,r,e,!1,t?Error("react-stack-top-frame"):N,t?T(o(n)):F)},u.jsxs=function(n,r,e){var t=1e4>B.recentlyCreatedOwnerStacks++;return d(n,r,e,!0,t?Error("react-stack-top-frame"):N,t?T(o(n)):F)}}()),u);var c=d.exports;function m(n,r){void 0===r&&(r={});var e=r.insertAt;if(n&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===e&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}m("@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 #Layout-module_root__3x-pW { \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 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 p=Symbol("LayoutAside"),h=Symbol("LayoutContent"),f=Symbol("LayoutHeader"),x=Symbol("LayoutBackground"),_=r.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),g=r.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),y=()=>r.useContext(g);function b(n){return c.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:c.jsx(c.Fragment,{children:n.children})})}function v(n){return c.jsx(c.Fragment,{children:n.children})}function w(n){return c.jsx(c.Fragment,{children:n.children})}function k(n){return c.jsx(c.Fragment,{children:n.children})}function C(n,r){void 0===r&&(r={});var e=r.insertAt;if(n&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===e&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}b.displayName="LayoutBackground",b.role=x,v.displayName="LayoutContent",v.role=h,w.displayName="LayoutAside",w.role=p,k.displayName="LayoutHeader",k.role=f,m("@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 #layout-module_root__0efzq { \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 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("@layer base { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n");var S="index-module_toolbarItem__RkaXd",j="index-module_siderContentBox__dGgRe",B="index-module_siderContentItem__kl3cR";C('@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 P=r.createContext({collapsed:!1,headerHeight:50,setCollapsed:()=>{}}),L=r.createContext({close:()=>{}}),T=r.createContext({close:()=>{}}),z=Symbol("AsideFooter"),N=Symbol("AsideHeader"),F=Symbol("AsideContentItems"),I=Symbol("AsideContentItem"),M=Symbol("ContentFooter"),A=Symbol("AvatarPopoverContent"),R=Symbol("BrandPopoverContent"),O=Symbol("SoltContent"),E=Symbol("ToolbarExtraItems"),W=()=>r.useContext(P).collapsed,{useToken:G}=e.theme;function q(n){return c.jsx("div",{style:{...n.style},children:n.children})}q.displayName="BrandPopoverContent",q.role=R;const{useToken:$}=e.theme;function D(n){return c.jsx("div",{style:{...n.style},children:n.children})}D.displayName="AvatarPopoverContent",D.role=A;const{useToken:V}=e.theme;function J(n){const r=c.jsx("div",{className:S,"data-adminui-role":"desk-toolbar",children:n.children});return n?c.jsx(c.Fragment,{children:r}):c.jsx(c.Fragment,{})}J.displayName="ToolbarExtraItems",J.role=E;const{useToken:X}=e.theme,{Header:U}=e.Layout,{useToken:H}=e.theme,{Sider:Y}=e.Layout,{useToken:K}=e.theme,{useBreakpoint:Q}=e.Grid;const Z=n=>{let r=[];if(!(null==n||n.length<=0))return n.forEach(n=>{let e=tn(n);e.children=Z(n.children),r.push(e)}),r},nn=(n,r)=>{if(n)return n.map(n=>{const e=en(n,r),t={...n,label:e};return n.children&&(t.children=nn(n.children,r)),t})},rn=(n,r,e,t)=>{if(t){const o="menu"+n.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:e||r})}return e||r},en=(n,r)=>{const e=n.path||"";return rn(e,n.name,n.label,r)},tn=n=>({key:n.path||n.name,label:n.label||n.name,icon:n.icon,extra:n.extra,title:n.label});function on(n){const r="/"===n?"/":n.replace(/\/+$/,"");if("/"===r)return["/"];const e=r.split("/").filter(Boolean),t=["/"];let o="";for(const n of e)o+=`/${n}`,t.push(o);return t}const an=n=>r.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?r.createElement(n):null,{useToken:dn}=e.theme,ln=n=>a.generate(n);function sn(n){const r=W(),{layoutConfig:e}=y(),t=e.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:e.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(e.compact?6:8)+"px"};return r&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!n.icon&&r?c.jsx(c.Fragment,{}):c.jsxs("div",{className:B,style:o,children:[c.jsx("div",{children:n.icon}),c.jsx("div",{style:{opacity:r?"0":"1"},children:n.children})]})}function un(n){return c.jsx(c.Fragment,{children:n.children})}function cn(n){return c.jsx("div",{className:j,children:n.children})}function mn(n){return c.jsx("div",{className:j,children:n.children})}un.displayName="AsideContentItems",sn.displayName="AsideContentItem",mn.displayName="AsideHeaderContent",mn.Items=un,mn.Item=sn,cn.displayName="AsideFooterContent",cn.Items=un,cn.Item=sn,cn.role=N,mn.role=z,un.role=F,sn.role=I;const pn="adminui-default-config",hn=n=>({f:r=>{const{id:e,defaultMessage:t}=r;return n?n.formatMessage({id:e,defaultMessage:t}):t||e.split(".").pop()},t:(r,e)=>n?n.formatMessage({id:r,defaultMessage:e}):e||r.split(".").pop()}),{useToken:fn}=e.theme,xn=n=>c.jsx("div",{...n,children:n.children});function _n(n){return c.jsx(c.Fragment,{children:n.children})}xn.displayName="ContentFooter",xn.role=M,_n.displayName="SoltContent",_n.role=O,Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return a.generate}}),exports.buildRouteWithParams=function(n,r={}){if(!Object.keys(r).some(n=>null!=r[n]))return n.split("/:")[0];const e=n.split("/"),t=[];for(const n of e)if(n.startsWith(":")){const e=n.slice(1),o=r[e];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(n);return t.join("/")},exports.getAntdMenuItem=tn,exports.getAppIntl=hn,exports.getBasicLayoutConfig=n=>{const{brandInfo:r,userInfo:e,...t}=n;return t},exports.getBlackColors=()=>ln("#22222222"),exports.getMenuLabel=en,exports.getRouterLabel=(n,r)=>rn(n.pathname,n.id,"",r),exports.getStorageConfig=n=>{n||(n=pn);const r=window.localStorage.getItem(n);try{if(r)return JSON.parse(r)}catch(n){console.error(n)}},exports.getWhiteColors=()=>ln("#FFFFFF"),exports.localeMenuData=nn,exports.matchPathToKeys=function(n){let r=on(n);return r&&r.length>1&&"/"==r[0]&&r.splice(0,1),r},exports.pathToKeys=on,exports.separateMenuData=function(n,r){let e=[],t=[];return n.forEach(n=>{n.key==r[1]&&(t=n.children??[]);const o={...n,children:void 0};e.push(o)}),{rootMenuItems:e,childrenMenuItems:t}},exports.setSkinConfig=(n,r)=>{let e={...n};if(r){const n=r.theme.length<2?r.theme[0]:e.theme;e={...e,primaryColor:r.primaryColor??e.primaryColor,containerBlur:r.containerBlur??e.containerBlur,asideBlur:r.asideBlur??e.asideBlur,asideWidth:r.asideWidth??e.asideWidth,headerBlur:r.asideBlur??e.headerBlur,theme:n}}return e},exports.setStorageConfig=(n,r)=>{r||(r=pn);const{brandInfo:e,userInfo:t,...o}=n,i=JSON.stringify(o);window.localStorage.setItem(r,i)},exports.splitMenuKeys=function(n){const r=n.length;if(0===r)return[[],[]];const e=[n[1]],t=new Array(r-2);for(let e=1;e<r;e++)t[e-1]=n[e];return[e,t]},exports.transformMenuData=function n(r,e){if(e)return!r.endsWith("/")&&r.length>1&&(r+="/"),e.map(e=>{const t=function(n,r){let e=r.path||r.name;e?.startsWith("/")&&(e=e.slice(1));e?.startsWith("./")&&(e=e.slice(2));let t=n+e,o={name:t,path:t,originalPath:t,extra:an(r.extra),icon:an(r.icon)};return o}(r,e);return e.children&&(t.children=n(t.path,e.children)),t})},exports.transformRouteToMenuData=function n(r,e){if(e)return!r.endsWith("/")&&r.length>1&&(r+="/"),e.filter(n=>!!n.handle).map(e=>{const t=function(n,r){const{handle:e}=r;let t=r.path;t&&e.params&&(t=i.generatePath(t,e.params));t?.startsWith("/")&&(t=t.slice(1));let o=n+t,a={...e,path:o,originalPath:r.path,extra:an(e.extra),icon:an(e.icon)};return a}(r,e);return e.children&&(t.children=n(t.path,e.children)),t})},exports.transformToAntdMenuData=Z,exports.useAppIntl=()=>{const n=t.useIntl(),{layoutConfig:r}=y(),{f:e,t:o}=hn(r.disabledLocale?void 0:n);return{...n,f:e,t:o}},exports.useAvatarPopover=()=>r.useContext(L),exports.useBrandPopover=()=>r.useContext(T),exports.useConfigAction=()=>r.useContext(_),exports.useConfigState=y,exports.useContainerOutlet=()=>o.useOutletContext(),exports.useMainCollapsed=W,exports.useTheme=()=>y().layoutConfig.theme;
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 L[e]||(L[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},L={},z=(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"):z,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"):z,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 #Layout-module_root__3x-pW { \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 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 #layout-module_root__0efzq { \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 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 base { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n");var I="index-module_headerLayout__rv59v",L="index-module_headerLayoutSticky__6uFCj",z="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",q="index-module_siderContentBox__dGgRe",D="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,overflow:"hidden",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,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 Le(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 ze(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 qe(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 De(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(z)):(h={...h,paddingInline:o.paddingXS+"px"},g.push(L));let y=m.jsx(ze,{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(Le,{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 L=m.jsx(m.Fragment,{});switch(s.collapsedPosition){case"bottom":L=m.jsx(qe,{iconSize:w,style:{backgroundColor:M,width:`${d}px`,borderRight:f}});break;case"center":case"top":L=m.jsx(De,{iconSize:12,top:"top"==s.collapsedPosition,flated:s.flated,offset:C,style:{backgroundColor:M}})}let z=r.menuData||[];return s.asideMenuGroup&&z.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:z})}),r.footer,"leftBottom"==s.avatarPosition?m.jsx(Ee,{collapsed:c,iconSize:w}):m.jsx(m.Fragment,{}),L]})]})}function Qe(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 en=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=an(e);r.children=en(e.children),n.push(r)}),n},nn=(e,n)=>{if(e)return e.map(e=>{const r=tn(e,n),t={...e,label:r};return e.children&&(t.children=nn(e.children,n)),t})},rn=(e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n},tn=(e,n)=>{const r=e.path||"";return rn(r,e.name,e.label,n)},on=(e,n)=>rn(e.pathname,e.id,"",n),an=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function sn(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 ln(e){let n=sn(e);return n&&n.length>1&&"/"==n[0]&&n.splice(0,1),n}function dn(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 cn(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,originalPath:t,extra:un(n.extra),icon:un(n.icon)};return o}(e,n);return n.children&&(r.children=cn(r.path,n.children)),r})}const un=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:mn}=n.theme;function pn(o){const{layoutConfig:i,themeSkin:a}=b(),s=r.useIntl(),{token:l}=mn(),[d,c]=e.useState(!1),u={backgroundColor:l.colorBgLayout};let p=i.headerHeight||56;i.compact&&(p-=4);const h=i.disabledLocale?o.menuData:nn(o.menuData,s),x=h&&h?.length>0?h[0].children:[],g=en(x),f=t.useLocation();console.log(f);const y=t.useMatches(),{pathname:_}=f,v=ln(_),j=y[y.length-1],w=j.handle=on(j,i.disabledLocale?void 0:s);let k=[],S=[],B=[],P=[];if("leftMenu"==i.layoutType?(P=g||[],S=v):(B=g||[],k=v),i.splitMenu&&v.length>1){const[e,n]=dn(v),{rootMenuItems:r,childrenMenuItems:t}=Qe(g,v);"leftMenu"==i.layoutType?(P=r,B=t,S=e,k=n):(P=t,B=r,k=e,S=n)}const M=e.Children.toArray(o.children),I=M.find(n=>e.isValidElement(n)&&n.type.role===xe),L=M.find(n=>e.isValidElement(n)&&n.type.role===ge),z=M.find(n=>e.isValidElement(n)&&n.type.role===_e),N=M.find(n=>e.isValidElement(n)&&n.type.role===ve),T=M.find(n=>e.isValidElement(n)&&n.type.role===be),F=M.find(n=>e.isValidElement(n)&&n.type.role===je),E=M.find(n=>e.isValidElement(n)&&n.type.role===we),A=me,O=e.useMemo(()=>({collapsed:d,headerHeight:p,layoutIcons:o.layoutIcons,avatarPopoverContent:N,brandPopoverContent:T,toolbarExtraItems:E,setCollapsed:c}),[d,p,o.layoutIcons]),W=t.useNavigation(),R=Boolean(W.location);return console.log(W),document.title=w,m.jsxs(m.Fragment,{children:[m.jsx(A,{value:O,children:m.jsxs(C,{...o,style:u,children:[m.jsx(C.Aside,{children:m.jsx(Ze,{headerHeight:p,header:I,footer:L,menuData:P,selectedKeys:S,openerKeys:S})}),m.jsx(C.Header,{children:m.jsx(Ge,{height:p,menuData:B,selectedKeys:k,title:w})}),m.jsxs(C.Content,{children:[R&&m.jsx(n.Spin,{}),m.jsx(t.Outlet,{context:{title:w,footer:z}})]}),m.jsx(C.Background,{children:a?a.backgroundContent:m.jsx(m.Fragment,{})})]})}),F]})}const hn=e=>i.generate(e),xn=()=>hn("#22222222");function gn(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:D,style:o,children:[m.jsx("div",{children:e.icon}),m.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function fn(e){return m.jsx(m.Fragment,{children:e.children})}function yn(e){return m.jsx("div",{className:q,children:e.children})}function _n(e){return m.jsx("div",{className:q,children:e.children})}fn.displayName="AsideContentItems",gn.displayName="AsideContentItem",_n.displayName="AsideHeaderContent",_n.Items=fn,_n.Item=gn,yn.displayName="AsideFooterContent",yn.Items=fn,yn.Item=gn,yn.role=ge,_n.role=xe,fn.role=fe,gn.role=ye;const vn="adminui-default-config",bn=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()}),jn=e=>{e||(e=vn);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},wn=(e,n)=>{n||(n=vn);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},kn=(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:Sn}=n.theme,Cn=e=>m.jsx("div",{...e,children:e.children});function Bn(e){return m.jsx(m.Fragment,{children:e.children})}Cn.displayName="ContentFooter",Cn.role=_e,Bn.displayName="SoltContent",Bn.role=je;const Pn="adminui-locale",Mn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function In(o){const i=t.useMatches(),{pathname:a}=i[0],s={...y,...o.layoutConfig,...jn(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(Pn)||s.locale||"en-US",u=o.menuData?cn("/",[o.menuData]):[],[p,h]=e.useState(()=>{if(s.skinName){const e=Mn(s.skinName,d);return kn(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(Pn,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 Mn(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),wn(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}),[]),L=j[x]||j["en-US"],z=["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:xn()[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:L?.antdLocale,direction:z,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:L?.messages,children:m.jsx(pn,{menuData:u,layoutIcons:o.layoutIcons,children:o.children})})})})})})}In.AsideHeader=_n,In.AsideFooter=yn,In.Footer=Cn,In.AvatarPopoverContent=Oe,In.BrandPopoverContent=Te,In.SoltContent=Bn,In.HeaderToolbarExtra=He;var Ln={exports:{}},zn=a(Ln.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
+ /* 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 Nn=()=>(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=In,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return m.jsx(e.Suspense,{fallback:m.jsx(Nn,{}),children:m.jsx(r,{...n})})}},exports.PageLoading=Nn,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.getAntdMenuItem=an,exports.getAppIntl=bn,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=xn,exports.getMenuLabel=tn,exports.getRouterLabel=on,exports.getStorageConfig=jn,exports.getWhiteColors=()=>hn("#FFFFFF"),exports.localeMenuData=nn,exports.matchPathToKeys=ln,exports.pathToKeys=sn,exports.separateMenuData=Qe,exports.setSkinConfig=kn,exports.setStorageConfig=wn,exports.splitMenuKeys=dn,exports.transformMenuData=cn,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:un(r.extra),icon:un(r.icon)};return a}(n,r);return r.children&&(t.children=e(t.path,r.children)),t})},exports.transformToAntdMenuData=en,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=b(),{f:t,t:o}=bn(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;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import react__default, { ReactNode } from 'react';
1
4
  import * as _adminui_dev_layout from '@adminui-dev/layout';
2
- import { LocaleMessageData, MenuData, UserInfo, BrandInfo, OutletContainer, LayoutConfig, Theme, ThemeSkin } from '@adminui-dev/layout';
5
+ import { LocaleMessageData, MenuData, UserInfo, BrandInfo, OutletContainer, RootLayoutProps, LayoutConfig, Theme, ThemeSkin } from '@adminui-dev/layout';
3
6
  export { useConfigAction, useConfigState, useTheme } from '@adminui-dev/layout';
4
7
  import { Locale } from 'antd/es/locale';
5
- import * as react from 'react';
6
- import { ReactNode } from 'react';
7
8
  import * as react_intl from 'react-intl';
8
9
  import { IntlShape } from 'react-intl';
9
10
  import { UIMatch, RouteObject } from 'react-router-dom';
@@ -103,11 +104,109 @@ declare namespace typings {
103
104
  export type { typings_AntdMenuData as AntdMenuData, typings_AsideContentProps as AsideContentProps, typings_AsideLayoutProps as AsideLayoutProps, typings_AsidePanelProps as AsidePanelProps, typings_AvatarPanelProps as AvatarPanelProps, typings_BrandPanelProps as BrandPanelProps, typings_CollapsedPanelProps as CollapsedPanelProps, typings_HeaderLayoutProps as HeaderLayoutProps, typings_IconComponents as IconComponents, typings_LocaleMessage as LocaleMessage, typings_MainDispatcher as MainDispatcher, typings_MainLayoutProps as MainLayoutProps, typings_PopoverDispatcher as PopoverDispatcher };
104
105
  }
105
106
 
107
+ declare const ROLE_ASIDE_HEADER: unique symbol;
108
+ declare const ROLE_ASIDE_FOOTER: unique symbol;
109
+ declare const ROLE_ASIDE_CONTENT_ITEMS: unique symbol;
110
+ declare const ROLE_ASIDE_CONTENT_ITEM: unique symbol;
111
+ declare const ROLE_CONTENT_FOOTER: unique symbol;
112
+ declare const ROLE_AVATAR_POPOVER_CONTENT: unique symbol;
113
+ declare const ROLE_BRAND_POPOVER_CONTENT: unique symbol;
114
+ declare const ROLE_SOLT_CONTENT: unique symbol;
115
+ declare const ROLE_TOOLBAR_EXTRA_ITEMS: unique symbol;
106
116
  declare const useMainCollapsed: () => boolean;
107
117
  declare const useContainerOutlet: () => OutletContainer;
108
118
  declare const useAvatarPopover: () => PopoverDispatcher<UserInfo>;
109
119
  declare const useBrandPopover: () => PopoverDispatcher<BrandInfo>;
110
120
 
121
+ declare function BrandPopoverContent(props: react__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
122
+ declare namespace BrandPopoverContent {
123
+ var displayName: string;
124
+ var role: typeof ROLE_BRAND_POPOVER_CONTENT;
125
+ }
126
+
127
+ declare function AvatarPopoverContent(props: react__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
128
+ declare namespace AvatarPopoverContent {
129
+ var displayName: string;
130
+ var role: typeof ROLE_AVATAR_POPOVER_CONTENT;
131
+ }
132
+
133
+ declare function AsideContentItem(props: React.HTMLAttributes<HTMLDivElement> & {
134
+ icon?: React.ReactNode;
135
+ }): react_jsx_runtime.JSX.Element;
136
+ declare namespace AsideContentItem {
137
+ var displayName: string;
138
+ var role: typeof ROLE_ASIDE_CONTENT_ITEM;
139
+ }
140
+ declare function AsideContentItems(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
141
+ declare namespace AsideContentItems {
142
+ var displayName: string;
143
+ var role: typeof ROLE_ASIDE_CONTENT_ITEMS;
144
+ }
145
+ declare function AsideFooter(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
146
+ declare namespace AsideFooter {
147
+ var displayName: string;
148
+ var Items: typeof AsideContentItems;
149
+ var Item: typeof AsideContentItem;
150
+ var role: typeof ROLE_ASIDE_FOOTER;
151
+ }
152
+ declare function AsideHeader(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
153
+ declare namespace AsideHeader {
154
+ var displayName: string;
155
+ var Items: typeof AsideContentItems;
156
+ var Item: typeof AsideContentItem;
157
+ var role: typeof ROLE_ASIDE_HEADER;
158
+ }
159
+
160
+ /**
161
+ * Solt - layout
162
+ * @param props
163
+ * @returns
164
+ */
165
+ declare function SoltPanel(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
166
+ declare namespace SoltPanel {
167
+ var displayName: string;
168
+ var role: typeof ROLE_SOLT_CONTENT;
169
+ }
170
+
171
+ /**
172
+ * Toolbar extra items
173
+ * @param props
174
+ * @returns
175
+ */
176
+ declare function ToolbarExtraItems(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
177
+ declare namespace ToolbarExtraItems {
178
+ var displayName: string;
179
+ var role: typeof ROLE_TOOLBAR_EXTRA_ITEMS;
180
+ }
181
+
182
+ /**
183
+ * adminui-dev / antd layout
184
+ * @param props layout properites
185
+ * @returns
186
+ */
187
+ declare function AntdLayout(props: RootLayoutProps<LocaleMessage> & {
188
+ layoutIcons?: IconComponents;
189
+ }): react_jsx_runtime.JSX.Element;
190
+ declare namespace AntdLayout {
191
+ var AsideHeader: typeof AsideHeader;
192
+ var AsideFooter: typeof AsideFooter;
193
+ var Footer: {
194
+ (props: _adminui_dev_layout.LayoutProps): react_jsx_runtime.JSX.Element;
195
+ displayName: string;
196
+ role: typeof ROLE_CONTENT_FOOTER;
197
+ };
198
+ var AvatarPopoverContent: typeof AvatarPopoverContent;
199
+ var BrandPopoverContent: typeof BrandPopoverContent;
200
+ var SoltContent: typeof SoltPanel;
201
+ var HeaderToolbarExtra: typeof ToolbarExtraItems;
202
+ }
203
+
204
+ declare function LazyPage<T extends React.ComponentType<any>>(loader: () => Promise<{
205
+ default: T;
206
+ }>): (props: React.ComponentProps<T>) => react_jsx_runtime.JSX.Element;
207
+ declare const PageLoading: () => react_jsx_runtime.JSX.Element;
208
+ declare const RouteLoading: () => react_jsx_runtime.JSX.Element;
209
+
111
210
  declare const getBlackColors: () => string[];
112
211
  declare const getWhiteColors: () => string[];
113
212
 
@@ -250,4 +349,4 @@ declare const setStorageConfig: (config: LayoutConfig, name?: string) => void;
250
349
  */
251
350
  declare const setSkinConfig: (layoutConfig: LayoutConfig, themeSkin?: ThemeSkin) => LayoutConfig;
252
351
 
253
- export { buildRouteWithParams, getAntdMenuItem, getAppIntl, getBasicLayoutConfig, getBlackColors, getMenuLabel, getRouterLabel, getStorageConfig, getWhiteColors, localeMenuData, matchPathToKeys, pathToKeys, separateMenuData, setSkinConfig, setStorageConfig, splitMenuKeys, transformMenuData, transformRouteToMenuData, transformToAntdMenuData, typings as types, useAppIntl, useAvatarPopover, useBrandPopover, useContainerOutlet, useMainCollapsed };
352
+ export { AntdLayout, LazyPage, PageLoading, RouteLoading, buildRouteWithParams, getAntdMenuItem, getAppIntl, getBasicLayoutConfig, getBlackColors, getMenuLabel, getRouterLabel, getStorageConfig, getWhiteColors, localeMenuData, matchPathToKeys, pathToKeys, separateMenuData, setSkinConfig, setStorageConfig, splitMenuKeys, transformMenuData, transformRouteToMenuData, transformToAntdMenuData, typings as types, useAppIntl, useAvatarPopover, useBrandPopover, useContainerOutlet, useMainCollapsed };
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import n,{createContext as r,useContext as e}from"react";import{theme as i,Layout as t,Grid as o}from"antd";import{useIntl as a}from"react-intl";import{useOutletContext as d}from"react-router";import{generatePath as l}from"react-router-dom";import{generate as s}from"@ant-design/colors";export{generate}from"@ant-design/colors";var u,c={exports:{}},m={};var p,h={};
1
+ import e,{createContext as n,useContext as r,useState as t,useEffect as o,useRef as i,useMemo as a,lazy as l,Suspense as s}from"react";import{theme as d,Popover as c,Button as u,Divider as m,Layout as p,ConfigProvider as h,Menu as x,Grid as g,Spin as f,App as y}from"antd";import{useIntl as _,IntlProvider as v}from"react-intl";import{useOutletContext as b,useNavigate as j,useLocation as w,useMatches as k,useNavigation as S,Outlet as C}from"react-router";import{generatePath as B}from"react-router-dom";import{generate as I}from"@ant-design/colors";export{generate}from"@ant-design/colors";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z,N={exports:{}},M={};var T,L={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,4 +7,6 @@ import n,{createContext as r,useContext as e}from"react";import{theme as i,Layou
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?c.exports=function(){if(u)return m;u=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function e(r,e,i){var t=null;if(void 0!==i&&(t=""+i),void 0!==e.key&&(t=""+e.key),"key"in e)for(var o in i={},e)"key"!==o&&(i[o]=e[o]);else i=e;return e=i.ref,{$$typeof:n,type:r,key:t,ref:void 0!==e?e:null,props:i}}return m.Fragment=r,m.jsx=e,m.jsxs=e,m}():c.exports=(p||(p=1,"production"!==process.env.NODE_ENV&&function(){function r(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===C?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case f:return"Fragment";case x:return"Profiler";case _:return"StrictMode";case v:return"Suspense";case w:return"SuspenseList";case S:return"Activity"}if("object"==typeof n)switch("number"==typeof n.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case p:return"Portal";case g:return n.displayName||"Context";case y:return(n._context.displayName||"Context")+".Consumer";case b:var e=n.render;return(n=n.displayName)||(n=""!==(n=e.displayName||e.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case k:return null!==(e=n.displayName||null)?e:r(n.type)||"Memo";case j:e=n._payload,n=n._init;try{return r(n(e))}catch(n){}}return null}function e(n){return""+n}function i(n){try{e(n);var r=!1}catch(n){r=!0}if(r){var i=(r=console).error,t="function"==typeof Symbol&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return i.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),e(n)}}function t(n){if(n===f)return"<>";if("object"==typeof n&&null!==n&&n.$$typeof===j)return"<...>";try{var e=r(n);return e?"<"+e+">":"<...>"}catch(n){return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var n=r(this.type);return N[n]||(N[n]=!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!==(n=this.props.ref)?n:null}function d(n,e,t,o,d,s){var c,p=e.children;if(void 0!==p)if(o)if(L(p)){for(o=0;o<p.length;o++)l(p[o]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(p);if(P.call(e,"key")){p=r(n);var h=Object.keys(e).filter(function(n){return"key"!==n});o=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",I[p+o]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',o,p,h,p),I[p+o]=!0)}if(p=null,void 0!==t&&(i(t),p=""+t),function(n){if(P.call(n,"key")){var r=Object.getOwnPropertyDescriptor(n,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==n.key}(e)&&(i(e.key),p=""+e.key),"key"in e)for(var f in t={},e)"key"!==f&&(t[f]=e[f]);else t=e;return p&&function(n,r){function e(){u||(u=!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)",r))}e.isReactWarning=!0,Object.defineProperty(n,"key",{get:e,configurable:!0})}(t,"function"==typeof n?n.displayName||n.name||"Unknown":n),function(n,r,e,i,t,o){var d=e.ref;return n={$$typeof:m,type:n,key:r,props:e,_owner:i},null!==(void 0!==d?d:null)?Object.defineProperty(n,"ref",{enumerable:!1,get:a}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:t}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}(n,p,t,null===(c=B.A)?null:c.getOwner(),d,s)}function l(n){s(n)?n._store&&(n._store.validated=1):"object"==typeof n&&null!==n&&n.$$typeof===j&&("fulfilled"===n._payload.status?s(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function s(n){return"object"==typeof n&&null!==n&&n.$$typeof===m}var u,c=n,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),B=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,L=Array.isArray,z=console.createTask?console.createTask:function(){return null},N={},T=(c={react_stack_bottom_frame:function(n){return n()}}).react_stack_bottom_frame.bind(c,o)(),F=z(t(o)),I={};h.Fragment=f,h.jsx=function(n,r,e){var i=1e4>B.recentlyCreatedOwnerStacks++;return d(n,r,e,!1,i?Error("react-stack-top-frame"):T,i?z(t(n)):F)},h.jsxs=function(n,r,e){var i=1e4>B.recentlyCreatedOwnerStacks++;return d(n,r,e,!0,i?Error("react-stack-top-frame"):T,i?z(t(n)):F)}}()),h);var f=c.exports;function _(n,r){void 0===r&&(r={});var e=r.insertAt;if(n&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css","top"===e&&i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}}_("@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 #Layout-module_root__3x-pW { \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 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 x=Symbol("LayoutAside"),y=Symbol("LayoutContent"),g=Symbol("LayoutHeader"),b=Symbol("LayoutBackground"),v=r({setLayoutConfig:()=>{},setLocale:()=>{}}),w=r({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),k=()=>e(w),j=()=>e(v),S=()=>k().layoutConfig.theme;function C(n){return f.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:f.jsx(f.Fragment,{children:n.children})})}function B(n){return f.jsx(f.Fragment,{children:n.children})}function P(n){return f.jsx(f.Fragment,{children:n.children})}function L(n){return f.jsx(f.Fragment,{children:n.children})}function z(n,r){void 0===r&&(r={});var e=r.insertAt;if(n&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css","top"===e&&i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}}C.displayName="LayoutBackground",C.role=b,B.displayName="LayoutContent",B.role=y,P.displayName="LayoutAside",P.role=x,L.displayName="LayoutHeader",L.role=g,_("@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 #layout-module_root__0efzq { \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 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");z("@layer base { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n");var N="index-module_toolbarItem__RkaXd",T="index-module_siderContentBox__dGgRe",F="index-module_siderContentItem__kl3cR";z('@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 I=r({collapsed:!1,headerHeight:50,setCollapsed:()=>{}}),R=r({close:()=>{}}),M=r({close:()=>{}}),A=Symbol("AsideFooter"),E=Symbol("AsideHeader"),O=Symbol("AsideContentItems"),G=Symbol("AsideContentItem"),W=Symbol("ContentFooter"),$=Symbol("AvatarPopoverContent"),V=Symbol("BrandPopoverContent"),J=Symbol("SoltContent"),q=Symbol("ToolbarExtraItems"),X=()=>e(I).collapsed,U=()=>d(),H=()=>e(R),Y=()=>e(M),{useToken:D}=i;function K(n){return f.jsx("div",{style:{...n.style},children:n.children})}K.displayName="BrandPopoverContent",K.role=V;const{useToken:Q}=i;function Z(n){return f.jsx("div",{style:{...n.style},children:n.children})}Z.displayName="AvatarPopoverContent",Z.role=$;const{useToken:nn}=i;function rn(n){const r=f.jsx("div",{className:N,"data-adminui-role":"desk-toolbar",children:n.children});return n?f.jsx(f.Fragment,{children:r}):f.jsx(f.Fragment,{})}rn.displayName="ToolbarExtraItems",rn.role=q;const{useToken:en}=i,{Header:tn}=t,{useToken:on}=i,{Sider:an}=t,{useToken:dn}=i,{useBreakpoint:ln}=o;function sn(n,r){let e=[],i=[];return n.forEach(n=>{n.key==r[1]&&(i=n.children??[]);const t={...n,children:void 0};e.push(t)}),{rootMenuItems:e,childrenMenuItems:i}}const un=n=>{let r=[];if(!(null==n||n.length<=0))return n.forEach(n=>{let e=fn(n);e.children=un(n.children),r.push(e)}),r},cn=(n,r)=>{if(n)return n.map(n=>{const e=pn(n,r),i={...n,label:e};return n.children&&(i.children=cn(n.children,r)),i})},mn=(n,r,e,i)=>{if(i){const t="menu"+n.replaceAll("/",".");return i.formatMessage({id:t,defaultMessage:e||r})}return e||r},pn=(n,r)=>{const e=n.path||"";return mn(e,n.name,n.label,r)},hn=(n,r)=>mn(n.pathname,n.id,"",r),fn=n=>({key:n.path||n.name,label:n.label||n.name,icon:n.icon,extra:n.extra,title:n.label});function _n(n){const r="/"===n?"/":n.replace(/\/+$/,"");if("/"===r)return["/"];const e=r.split("/").filter(Boolean),i=["/"];let t="";for(const n of e)t+=`/${n}`,i.push(t);return i}function xn(n){let r=_n(n);return r&&r.length>1&&"/"==r[0]&&r.splice(0,1),r}function yn(n){const r=n.length;if(0===r)return[[],[]];const e=[n[1]],i=new Array(r-2);for(let e=1;e<r;e++)i[e-1]=n[e];return[e,i]}function gn(n,r){if(r)return!n.endsWith("/")&&n.length>1&&(n+="/"),r.map(r=>{const e=function(n,r){let e=r.path||r.name;e?.startsWith("/")&&(e=e.slice(1));e?.startsWith("./")&&(e=e.slice(2));let i=n+e,t={name:i,path:i,originalPath:i,extra:wn(r.extra),icon:wn(r.icon)};return t}(n,r);return r.children&&(e.children=gn(e.path,r.children)),e})}function bn(n,r){if(r)return!n.endsWith("/")&&n.length>1&&(n+="/"),r.filter(n=>!!n.handle).map(r=>{const e=function(n,r){const{handle:e}=r;let i=r.path;i&&e.params&&(i=l(i,e.params));i?.startsWith("/")&&(i=i.slice(1));let t=n+i,o={...e,path:t,originalPath:r.path,extra:wn(e.extra),icon:wn(e.icon)};return o}(n,r);return r.children&&(e.children=bn(e.path,r.children)),e})}function vn(n,r={}){if(!Object.keys(r).some(n=>null!=r[n]))return n.split("/:")[0];const e=n.split("/"),i=[];for(const n of e)if(n.startsWith(":")){const e=n.slice(1),t=r[e];if(null==t)break;i.push(encodeURIComponent(String(t)))}else i.push(n);return i.join("/")}const wn=r=>n.isValidElement(r)?r:"function"==typeof r||"object"==typeof r?n.createElement(r):null,{useToken:kn}=i,jn=n=>s(n),Sn=()=>jn("#22222222"),Cn=()=>jn("#FFFFFF");function Bn(n){const r=X(),{layoutConfig:e}=k(),i=e.compact?"16px":"20px";let t={justifyContent:"flex-start",paddingInline:e.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(e.compact?6:8)+"px"};return r&&(t={...t,paddingInline:`calc(50% - calc(${i} / 2))`}),!n.icon&&r?f.jsx(f.Fragment,{}):f.jsxs("div",{className:F,style:t,children:[f.jsx("div",{children:n.icon}),f.jsx("div",{style:{opacity:r?"0":"1"},children:n.children})]})}function Pn(n){return f.jsx(f.Fragment,{children:n.children})}function Ln(n){return f.jsx("div",{className:T,children:n.children})}function zn(n){return f.jsx("div",{className:T,children:n.children})}Pn.displayName="AsideContentItems",Bn.displayName="AsideContentItem",zn.displayName="AsideHeaderContent",zn.Items=Pn,zn.Item=Bn,Ln.displayName="AsideFooterContent",Ln.Items=Pn,Ln.Item=Bn,Ln.role=E,zn.role=A,Pn.role=O,Bn.role=G;const Nn="adminui-default-config",Tn=()=>{const n=a(),{layoutConfig:r}=k(),{f:e,t:i}=Fn(r.disabledLocale?void 0:n);return{...n,f:e,t:i}},Fn=n=>({f:r=>{const{id:e,defaultMessage:i}=r;return n?n.formatMessage({id:e,defaultMessage:i}):i||e.split(".").pop()},t:(r,e)=>n?n.formatMessage({id:r,defaultMessage:e}):e||r.split(".").pop()}),In=n=>{const{brandInfo:r,userInfo:e,...i}=n;return i},Rn=n=>{n||(n=Nn);const r=window.localStorage.getItem(n);try{if(r)return JSON.parse(r)}catch(n){console.error(n)}},Mn=(n,r)=>{r||(r=Nn);const{brandInfo:e,userInfo:i,...t}=n,o=JSON.stringify(t);window.localStorage.setItem(r,o)},An=(n,r)=>{let e={...n};if(r){const n=r.theme.length<2?r.theme[0]:e.theme;e={...e,primaryColor:r.primaryColor??e.primaryColor,containerBlur:r.containerBlur??e.containerBlur,asideBlur:r.asideBlur??e.asideBlur,asideWidth:r.asideWidth??e.asideWidth,headerBlur:r.asideBlur??e.headerBlur,theme:n}}return e},{useToken:En}=i,On=n=>f.jsx("div",{...n,children:n.children});function Gn(n){return f.jsx(f.Fragment,{children:n.children})}On.displayName="ContentFooter",On.role=W,Gn.displayName="SoltContent",Gn.role=J;export{vn as buildRouteWithParams,fn as getAntdMenuItem,Fn as getAppIntl,In as getBasicLayoutConfig,Sn as getBlackColors,pn as getMenuLabel,hn as getRouterLabel,Rn as getStorageConfig,Cn as getWhiteColors,cn as localeMenuData,xn as matchPathToKeys,_n as pathToKeys,sn as separateMenuData,An as setSkinConfig,Mn as setStorageConfig,yn as splitMenuKeys,gn as transformMenuData,bn as transformRouteToMenuData,un as transformToAntdMenuData,Tn as useAppIntl,H as useAvatarPopover,Y as useBrandPopover,j as useConfigAction,k as useConfigState,U as useContainerOutlet,X as useMainCollapsed,S as useTheme};
10
+ */"production"===process.env.NODE_ENV?N.exports=function(){if(z)return M;z=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return M.Fragment=n,M.jsx=r,M.jsxs=r,M}():N.exports=(T||(T=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case x:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case f:return(e._context.displayName||"Context")+".Consumer";case _:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return z[e]||(z[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",T[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,p,h,p),T[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=C.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),y=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,P=console.createTask?console.createTask:function(){return null},z={},N=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),M=P(o(i)),T={};L.Fragment=h,L.jsx=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):N,t?P(o(e)):M)},L.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):N,t?P(o(e)):M)}}()),L);var F=N.exports;function E(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}E("@layer base {\r\n 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 #Layout-module_root__3x-pW { \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 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 O=Symbol("LayoutAside"),W=Symbol("LayoutContent"),A=Symbol("LayoutHeader"),R=Symbol("LayoutBackground"),H={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",primaryColor:"#417ffb"},$=n({setLayoutConfig:()=>{},setLocale:()=>{}}),X=n({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),q=()=>r(X),D=()=>r($),V=()=>q().layoutConfig.theme;function K(e){return F.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:F.jsx(F.Fragment,{children:e.children})})}function G(e){return F.jsx(F.Fragment,{children:e.children})}function U(e){return F.jsx(F.Fragment,{children:e.children})}function J(e){return F.jsx(F.Fragment,{children:e.children})}K.displayName="LayoutBackground",K.role=R,G.displayName="LayoutContent",G.role=W,U.displayName="LayoutAside",U.role=O,J.displayName="LayoutHeader",J.role=A;function Y(n){let r=null,t=null,o=null,i=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===A?r=e:n===W?t=e:n===O?o=e:n===R&&(i=e)}),F.jsx(F.Fragment,{children:F.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[i,F.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,F.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function Z(n){const r=!!document.fullscreenElement,[i,a]=t(r),l=()=>{a(!!document.fullscreenElement)},s=e=>{"F11"===e.code&&(e.preventDefault(),d())};o(()=>(document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",s)}),[]);const d=()=>{i?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return F.jsx(F.Fragment,{});const[c,u]=n.buttons,m=i?c:u;return e.cloneElement(m,{onClick:e=>{console.log(e),d()}})}E("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #layout-module_root__0efzq { \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 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"),Y.Aside=U,Y.Content=G,Y.Header=J,Y.Background=K;const Q=(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 ee(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))}}ee("@layer base { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n");var ne="index-module_headerLayout__rv59v",re="index-module_headerLayoutSticky__6uFCj",te="index-module_headerLayoutFixed__t5Hmo",oe="index-module_headerLayoutBox__h0fIt",ie="index-module_headerMenu__WHmJN",ae="index-module_headerTitle__jGbCX",le="index-module_headerBrandBox__U2J16",se="index-module_layoutBlur__GpCPx",de="index-module_toolbarPanel__Pp8PS",ce="index-module_toolbarItem__RkaXd",ue="index-module_toolbarAvatarItem__p6TXY",me="index-module_siderBaseStyle__zg1FM",pe="index-module_siderMask__cCjMh",he="index-module_siderContentBox__dGgRe",xe="index-module_siderContentItem__kl3cR",ge="index-module_collapsedTrack__LoJ3V",fe="index-module_collapsedTrackButton__m33XS",ye="index-module_brandPanel__2GRgq",_e="index-module_labelBox__dX8fY",ve="index-module_brandNodeBox__W-iM6",be="index-module_brandMobilePanel__m1Diu",je="index-module_largeBrandPanel__pLn--",we="index-module_title__SbfFY",ke="index-module_largeBrandCollPanel__nsGKB",Se="index-module_avatarPanel__fFvCS",Ce="index-module_collapsedMobile__Yu8F4",Be="index-module_round__WoVxM";function Ie(e){const{size:n=16}=e;return F.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:F.jsx("path",{d:"m15 18-6-6 6-6"})})}function Pe(e){const{size:n=16}=e;return F.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:F.jsx("path",{d:"m9 18 6-6-6-6"})})}function ze(e){const{size:n=16}=e;return F.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:[F.jsx("path",{d:"M21 5H11"}),F.jsx("path",{d:"M21 12H11"}),F.jsx("path",{d:"M21 19H11"}),F.jsx("path",{d:"m7 8-4 4 4 4"})]})}function Ne(e){const{size:n=16}=e;return F.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:[F.jsx("path",{d:"M21 5H11"}),F.jsx("path",{d:"M21 12H11"}),F.jsx("path",{d:"M21 19H11"}),F.jsx("path",{d:"m3 8 4 4-4 4"})]})}function Me(e){const{size:n=16}=e;return F.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:[F.jsx("path",{d:"m7 15 5 5 5-5"}),F.jsx("path",{d:"m7 9 5-5 5 5"})]})}function Te(e){const{size:n=16}=e;return F.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:[F.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),F.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Le(e){const{size:n=16}=e;return F.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:[F.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),F.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),F.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),F.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function Fe(e){const{size:n=16}=e;return F.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:[F.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),F.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),F.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),F.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Ee(e){const[n,r]=t(!1),{hasChild:i,...a}=e;o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,overflow:"hidden",display:"flex",justifyItems:"center",alignItems:"center"},s=F.jsx("img",{...a});return e.hasChild?s:F.jsx("div",{style:l,children:s})}ee('@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 Oe=n({collapsed:!1,headerHeight:50,setCollapsed:()=>{}}),We=n({close:()=>{}}),Ae=n({close:()=>{}}),Re=Symbol("AsideFooter"),He=Symbol("AsideHeader"),$e=Symbol("AsideContentItems"),Xe=Symbol("AsideContentItem"),qe=Symbol("ContentFooter"),De=Symbol("AvatarPopoverContent"),Ve=Symbol("BrandPopoverContent"),Ke=Symbol("SoltContent"),Ge=Symbol("ToolbarExtraItems"),Ue=()=>r(Oe),Je=()=>Ue().collapsed,Ye=()=>b(),Ze=()=>We,Qe=()=>Ae,en=()=>r(We),nn=()=>r(Ae);function rn(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:tn}=d;function on(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{token:a}=tn(),{layoutIcons:l,brandPopoverContent:s}=Ue(),[d,m]=t(!1),p=Qe(),h=i.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:i.compact?a.paddingXXS:a.paddingXS,height:"40px",gap:(i.compact?6:8)+"px"},g={height:`${i.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};i.flated&&(x={...x,paddingInline:a.padding,height:"100%"},g={...g,padding:"0px"});const{brandInfo:y}=i;n?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:f={...f,overflow:"hidden"};let _=F.jsx(F.Fragment,{});y?.logo&&(_="string"==typeof y.logo?F.jsx(Ee,{style:{width:h},src:y.logo,alt:y.name}):F.jsx("div",{className:ve,style:{width:h},children:y.logo}));const v=l?.itemMoreIcon||F.jsx(Me,{}),b=F.jsx(u,{type:"text",style:x,iconPlacement:"end",icon:s?F.jsx(rn,{icon:v,size:r||14,style:{opacity:n?"0":"1"}}):void 0,children:F.jsxs("div",{style:f,children:[_,F.jsxs("div",{className:_e,style:{opacity:n?"0":"1"},children:[F.jsx("h4",{children:y?.name}),o?void 0:F.jsx("span",{style:{color:a.colorTextSecondary},children:y?.title})]})]})});return F.jsx("div",{className:ye,style:g,children:s?F.jsx(p.Provider,{value:{close:()=>{m(!1)},record:y},children:F.jsx(c,{open:d,onOpenChange:m,placement:"rightTop",content:s,children:b})}):b})}function an(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{layoutIcons:a,brandPopoverContent:l}=Ue(),{token:s}=tn(),[d,u]=t(!1),m=Qe(),p=i.compact?"16px":"20px";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:s.padding},x={...x,padding:"0px"});const{brandInfo:f}=i;n?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let y=F.jsx(F.Fragment,{});f?.logo&&(y="string"==typeof f.logo?F.jsx(Ee,{style:{width:p},src:f.logo,alt:f.name}):F.jsx("div",{className:ve,style:{width:p},children:f.logo}));const _=a?.itemMoreIcon||F.jsx(Me,{}),v=l?{}:{href:f?.url},b=F.jsxs("a",{...v,style:h,children:[F.jsxs("div",{style:g,children:[y,F.jsxs("div",{className:_e,style:{opacity:n?"0":"1"},children:[F.jsx("h4",{style:{width:"90%"},children:f?.name}),o?void 0:F.jsx("span",{style:{color:s.colorTextSecondary,width:"90%"},children:f?.title})]})]}),l?F.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:F.jsx(rn,{icon:_,size:r||14})}):F.jsx(F.Fragment,{})]});return F.jsx("div",{className:ye,style:x,children:l?F.jsx(m.Provider,{value:{close:()=>{u(!1)},record:f},children:F.jsx(c,{open:d,onOpenChange:u,placement:"rightTop",content:l,children:b})}):b})}function ln(e){const{layoutConfig:n}=q(),{brandPopoverContent:r}=Ue(),[o,i]=t(!1),a=Qe(),l=n.compact?"16px":"20px",{brandInfo:s}=n;let d=F.jsx(F.Fragment,{});s?.logo&&(d="string"==typeof s.logo?F.jsx(Ee,{style:{width:l},src:s.logo,alt:s.name}):F.jsx("div",{className:ve,style:{width:l},children:s.logo}));let u=r?F.jsx(a.Provider,{value:{close:()=>{i(!1)},record:s},children:F.jsx(c,{open:o,onOpenChange:i,content:r,placement:"rightTop",children:F.jsx("a",{children:d})})}):F.jsx("a",{href:s?.url,children:d});return F.jsxs("div",{className:be,style:e.style,children:[u,F.jsx("div",{className:ae,children:e.children})]})}function sn(e){const{collapsed:n}=e,{brandPopoverContent:r}=Ue(),{layoutConfig:o}=q(),[i,a]=t(!1),l=Qe(),s=n?o.compact?"16px":"20px":o.compact?"56px":"64px",{brandInfo:d}=o,u={opacity:n?"0":"1",height:n?"0px":"auto"};let m=F.jsx(F.Fragment,{});if(!d)return F.jsx(F.Fragment,{});let p=[je];n&&p.push(ke),d?.logo&&(m="string"==typeof d.logo?F.jsx(Ee,{style:{width:s},src:d.logo,alt:d.name}):F.jsx("div",{className:ve,style:{width:s},children:d.logo}));let h=r?F.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:F.jsx(c,{open:i,onOpenChange:a,content:r,placement:"rightTop",children:F.jsx("a",{children:m})})}):F.jsx("a",{href:d?.url,children:m});return F.jsxs("div",{className:p.join(" "),children:[h,F.jsxs("div",{style:u,children:[F.jsx("span",{children:d?.name}),d.title?F.jsx("span",{className:we,children:d?.title}):F.jsx(F.Fragment,{})]})]})}function dn(e){return F.jsx("div",{style:{...e.style},children:e.children})}dn.displayName="BrandPopoverContent",dn.role=Ve;const{useToken:cn}=d;function un(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:o}=q(),{layoutIcons:i,avatarPopoverContent:a}=Ue(),[l,s]=t(!1),d=Ze(),{token:u}=cn(),m=o.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(o.compact?6:8)+"px"},h={height:`${o.headerHeight}px`},x={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};o.flated&&(p={...p,paddingInline:u.padding,margin:"0px",height:"100%"},h={...h,padding:"0px"});const{userInfo:g}=o;n?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:x={...x,overflow:"hidden"};let f=F.jsx(F.Fragment,{});g?.avatar&&(f="string"==typeof g.avatar?F.jsx(Ee,{style:{width:m,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const y=i?.itemMoreIcon||F.jsx(Me,{}),_=F.jsx("div",{className:Se,style:h,children:F.jsxs("a",{style:p,children:[F.jsxs("div",{style:x,children:[f,F.jsxs("div",{className:_e,style:{opacity:n?"0":"1"},children:[F.jsx("h4",{children:g?.uid}),g?.title?void 0:F.jsx("span",{style:{color:u.colorTextSecondary},children:g?.title})]})]}),a?F.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:F.jsx(rn,{icon:y,size:r||14})}):F.jsx(F.Fragment,{})]})});return a?F.jsx(d.Provider,{value:{close:()=>s(!1),record:g},children:F.jsx(c,{open:l,onOpenChange:s,placement:"right",content:a,children:_})}):_}function mn(e){const{iconSize:n=14}=e,{layoutConfig:r}=q(),{userInfo:o}=r,{avatarPopoverContent:i}=Ue(),[a,l]=t(!1),s=Ze();let d=F.jsx(Te,{});const u=n+4,m={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};o?.avatar&&(d="string"==typeof o.avatar?F.jsx(Ee,{style:{width:u,borderRadius:"999px"},src:o.avatar,alt:o.uid}):o.avatar);const p=F.jsxs("div",{className:ue,children:[F.jsx("div",{style:m,children:d}),F.jsx("span",{children:o?.uid})]});return i?F.jsx(s.Provider,{value:{close:()=>l(!1),record:o},children:F.jsx(c,{open:a,onOpenChange:l,placement:"left",content:i,children:p})}):F.jsx(F.Fragment,{children:p})}function pn(e){return F.jsx("div",{style:{...e.style},children:e.children})}pn.displayName="AvatarPopoverContent",pn.role=De;const{useToken:hn}=d;function xn(e){const{token:n}=hn(),{layoutIcons:r,toolbarExtraItems:t}=Ue(),o=n.Menu?.iconSize||16,[i,a]=r?.fullScreenIcons?.slice(0,2)||[F.jsx(Fe,{}),F.jsx(Le,{})],l=F.jsx(rn,{icon:i,size:o}),s=F.jsx(rn,{icon:a,size:o});return F.jsxs("div",{className:de,children:[e.showAvatar?F.jsxs("div",{className:ce,children:[F.jsx(mn,{iconSize:o+4}),F.jsx(m,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):F.jsx(F.Fragment,{}),t,F.jsx("div",{className:ce,"data-adminui-role":"desk-toolbar",children:F.jsx(Z,{buttons:[F.jsx(u,{icon:s,type:"text"},"minimize"),F.jsx(u,{icon:l,type:"text"},"maximize")]})})]})}function gn(e){const n=F.jsx("div",{className:ce,"data-adminui-role":"desk-toolbar",children:e.children});return e?F.jsx(F.Fragment,{children:n}):F.jsx(F.Fragment,{})}gn.displayName="ToolbarExtraItems",gn.role=Ge;const{useToken:fn}=d;function yn(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Ue(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[F.jsx(Pe,{}),F.jsx(Ie,{})];return F.jsx("div",{style:i,children:F.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function _n(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Ue(),{token:l}=fn();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[F.jsx(Ie,{}),F.jsx(Pe,{})];return F.jsx("div",{className:ge,style:s,onClick:()=>{i(!o)},children:F.jsx("div",{style:d,className:fe,children:o?c:u})})}function vn(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=Ue(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[F.jsx(Ne,{}),F.jsx(ze,{})];return F.jsx("div",{className:Ce,children:F.jsx(u,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}const{Header:bn}=p,{useToken:jn}=d;function wn(e){const{layoutConfig:n}=q(),{token:r}=jn(),t=j(),o=n.headerTransparent||n.headerBlur?Q(r.colorBorderSecondary,.6):r.colorBorderSecondary,i=n.hideBorder?"0px":"1px solid "+o,a=n.flated&&"headMenu"==n.layoutType||"dark"==n.theme?"dark":"light",l=n.flated&&"headMenu"==n.layoutType?"dark":"light",s=n.flated&&"headMenu"==n.layoutType?r.colorPrimary:r.colorBgContainer,c={height:e.height+"px",lineHeight:e.height+"px"};let u=F.jsx(F.Fragment,{}),m={...c,borderBottom:i,backgroundColor:n.headerTransparent?"transparent":s};n.headerBlur&&(m={...m,backgroundColor:Q(s,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let g={...c,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},f=[ne],y=F.jsx(F.Fragment,{});"headMenu"==n.layoutType?(u=F.jsx("div",{style:c}),m={...m,paddingInlineEnd:r.paddingXS+"px"},y=F.jsx("div",{className:le,style:{width:n?.asideWidth+"px"},children:F.jsx(on,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),f.push(te)):(m={...m,paddingInline:r.paddingXS+"px"},f.push(re));let _=F.jsx(ln,{children:e.title}),v=F.jsx(vn,{iconSize:n.compact?12:14});const b=[oe];n.flated||b.push(Be);let w="dark"==a?[d.darkAlgorithm]:[d.defaultAlgorithm];return F.jsxs(F.Fragment,{children:[u,F.jsx(h,{theme:{algorithm:w},children:F.jsx(p,{className:f.join(" "),style:g,children:F.jsxs(bn,{className:b.join(" "),style:m,children:[v,y,_,F.jsx(x,{onClick:e=>{t(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:l,classNames:{root:ie},items:e.menuData||[]}),F.jsx(xn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:kn}=p,{useToken:Sn}=d,{useBreakpoint:Cn}=g;function Bn(e){const n=i([]);n.current=e.openerKeys||[];const[r,o]=t(e.openerKeys),{layoutConfig:a}=q(),{asideWidth:l}=a,s=e.headerHeight,{collapsed:d,setCollapsed:c}=Ue(),{token:u}=Sn(),m=j(),p=Cn().xs?0:s,h=a.headerTransparent||a.headerBlur?Q(u.colorBorderSecondary,.6):u.colorBorderSecondary,g=a.hideBorder||0==p&&d?"0px":"1px solid "+h,f="headMenu"==a.layoutType?e.headerHeight:0,y="headMenu"==a.layoutType?"calc(100% - "+e.headerHeight+"px)":"100%";let _={width:`${a.asideWidth}px`,height:`${y}`,insetBlockStart:f+"px",maxWidth:`${a.asideWidth}px`,minWidth:`${a.asideWidth}px`,borderRight:g,position:"fixed",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},v={overflow:"auto",flex:1};const b=u.Menu?.iconSize,w="dark"==a.theme?"dark":"light",k=w;let S=0,C=F.jsx(F.Fragment,{});"leftMenu"==a.layoutType&&(S=a.headerHeight||0,C=a.largeBrand?F.jsx(sn,{collapsed:d,iconSize:b}):F.jsx(an,{collapsed:d,iconSize:b,hideTitle:!0}));const B=a.asideTransparent?"transparent":a.asideBlur?Q(u.colorBgContainer,.6):u.colorBgContainer;_={..._,backgroundColor:B},a.asideBlur&&(_={..._,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),d&&(v={...v,overflow:"hidden"});let I=[me];I.push(se);let P=F.jsx(F.Fragment,{});switch(a.collapsedPosition){case"bottom":P=F.jsx(yn,{iconSize:b,style:{backgroundColor:B,width:`${s}px`,borderRight:g}});break;case"center":case"top":P=F.jsx(_n,{iconSize:12,top:"top"==a.collapsedPosition,flated:a.flated,offset:S,style:{backgroundColor:B}})}let z=e.menuData||[];return a.asideMenuGroup&&z.forEach(e=>{e.children&&(e.type="group")}),F.jsxs(F.Fragment,{children:[F.jsx("div",{style:{width:d?s:l,flex:`0 0 ${d?s:l}px`,maxWidth:d?s:l,minWidth:d?s:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:pe}),F.jsxs(kn,{width:l,className:I.join(" "),style:_,theme:k,collapsedWidth:p,collapsible:!0,trigger:null,breakpoint:"md",collapsed:d,onCollapse:c,children:[p>0?C:F.jsx(F.Fragment,{}),e.header,F.jsx("div",{style:v,children:F.jsx(x,{onClick:e=>{m(e.key)},onOpenChange:e=>{o(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:a.asideMenuInline?"inline":"vertical",selectedKeys:e.selectedKeys,openKeys:d?void 0:r,defaultSelectedKeys:e.selectedKeys,defaultOpenKeys:n.current,theme:w,items:z})}),e.footer,"leftBottom"==a.avatarPosition?F.jsx(un,{collapsed:d,iconSize:b}):F.jsx(F.Fragment,{}),P]})]})}function In(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 Pn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=Ln(e);r.children=Pn(e.children),n.push(r)}),n},zn=(e,n)=>{if(e)return e.map(e=>{const r=Mn(e,n),t={...e,label:r};return e.children&&(t.children=zn(e.children,n)),t})},Nn=(e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n},Mn=(e,n)=>{const r=e.path||"";return Nn(r,e.name,e.label,n)},Tn=(e,n)=>Nn(e.pathname,e.id,"",n),Ln=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function Fn(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 En(e){let n=Fn(e);return n&&n.length>1&&"/"==n[0]&&n.splice(0,1),n}function On(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 Wn(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,originalPath:t,extra:Hn(n.extra),icon:Hn(n.icon)};return o}(e,n);return n.children&&(r.children=Wn(r.path,n.children)),r})}function An(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.filter(e=>!!e.handle).map(n=>{const r=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=B(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let o=e+t,i={...r,path:o,originalPath:n.path,extra:Hn(r.extra),icon:Hn(r.icon)};return i}(e,n);return n.children&&(r.children=An(r.path,n.children)),r})}function Rn(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")}const Hn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:$n}=d;function Xn(n){const{layoutConfig:r,themeSkin:o}=q(),i=_(),{token:l}=$n(),[s,d]=t(!1),c={backgroundColor:l.colorBgLayout};let u=r.headerHeight||56;r.compact&&(u-=4);const m=r.disabledLocale?n.menuData:zn(n.menuData,i),p=m&&m?.length>0?m[0].children:[],h=Pn(p),x=w();console.log(x);const g=k(),{pathname:y}=x,v=En(y),b=g[g.length-1],j=b.handle=Tn(b,r.disabledLocale?void 0:i);let B=[],I=[],P=[],z=[];if("leftMenu"==r.layoutType?(z=h||[],I=v):(P=h||[],B=v),r.splitMenu&&v.length>1){const[e,n]=On(v),{rootMenuItems:t,childrenMenuItems:o}=In(h,v);"leftMenu"==r.layoutType?(z=t,P=o,I=e,B=n):(z=o,P=t,B=e,I=n)}const N=e.Children.toArray(n.children),M=N.find(n=>e.isValidElement(n)&&n.type.role===Re),T=N.find(n=>e.isValidElement(n)&&n.type.role===He),L=N.find(n=>e.isValidElement(n)&&n.type.role===qe),E=N.find(n=>e.isValidElement(n)&&n.type.role===De),O=N.find(n=>e.isValidElement(n)&&n.type.role===Ve),W=N.find(n=>e.isValidElement(n)&&n.type.role===Ke),A=N.find(n=>e.isValidElement(n)&&n.type.role===Ge),R=Oe,H=a(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:E,brandPopoverContent:O,toolbarExtraItems:A,setCollapsed:d}),[s,u,n.layoutIcons]),$=S(),X=Boolean($.location);return console.log($),document.title=j,F.jsxs(F.Fragment,{children:[F.jsx(R,{value:H,children:F.jsxs(Y,{...n,style:c,children:[F.jsx(Y.Aside,{children:F.jsx(Bn,{headerHeight:u,header:M,footer:T,menuData:z,selectedKeys:I,openerKeys:I})}),F.jsx(Y.Header,{children:F.jsx(wn,{height:u,menuData:P,selectedKeys:B,title:j})}),F.jsxs(Y.Content,{children:[X&&F.jsx(f,{}),F.jsx(C,{context:{title:j,footer:L}})]}),F.jsx(Y.Background,{children:o?o.backgroundContent:F.jsx(F.Fragment,{})})]})}),W]})}const qn=e=>I(e),Dn=()=>qn("#22222222"),Vn=()=>qn("#FFFFFF");function Kn(e){const n=Je(),{layoutConfig:r}=q(),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?F.jsx(F.Fragment,{}):F.jsxs("div",{className:xe,style:o,children:[F.jsx("div",{children:e.icon}),F.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function Gn(e){return F.jsx(F.Fragment,{children:e.children})}function Un(e){return F.jsx("div",{className:he,children:e.children})}function Jn(e){return F.jsx("div",{className:he,children:e.children})}Gn.displayName="AsideContentItems",Kn.displayName="AsideContentItem",Jn.displayName="AsideHeaderContent",Jn.Items=Gn,Jn.Item=Kn,Un.displayName="AsideFooterContent",Un.Items=Gn,Un.Item=Kn,Un.role=He,Jn.role=Re,Gn.role=$e,Kn.role=Xe;const Yn="adminui-default-config",Zn=()=>{const e=_(),{layoutConfig:n}=q(),{f:r,t:t}=Qn(n.disabledLocale?void 0:e);return{...e,f:r,t:t}},Qn=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()}),er=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},nr=e=>{e||(e=Yn);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},rr=(e,n)=>{n||(n=Yn);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},tr=(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:or}=d,ir=e=>F.jsx("div",{...e,children:e.children});function ar(e){return F.jsx(F.Fragment,{children:e.children})}ir.displayName="ContentFooter",ir.role=qe,ar.displayName="SoltContent",ar.role=Ke;const lr="adminui-locale",sr=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function dr(e){const n=k(),{pathname:r}=n[0],i={...H,...e.layoutConfig,...nr(r)};let l=e.themeSkins||[];const s=a(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(l),[l]),c=e.locale||localStorage.getItem(lr)||i.locale||"en-US",u=e.menuData?Wn("/",[e.menuData]):[],[m,p]=t(()=>{if(i.skinName){const e=sr(i.skinName,s);return tr(i,e)}return i}),[x,g]=t(c),f=X,_=$;let b=e.localeMessages||{};const j=a(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(b),[b]),w=e=>{localStorage.setItem(lr,e),g(e)};document.documentElement.style.setProperty("--pageload-bar-color",m.primaryColor),o(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===m.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(m.theme)},[m.theme]);const S=a(()=>{if(m.skinName)return sr(m.skinName,s)},[l,m.skinName]),C="system"==(B=m.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const I=e=>{p(e),rr(e,r)},P=a(()=>({layoutConfig:m,locale:x,languages:j,themeSkin:S,themeSkinMap:s}),[j,x,j,s,S,m]),z=a(()=>({setLayoutConfig:I,setLocale:w}),[]),N=b[x]||b["en-US"],M=["he","ar","fa","ku"].filter(e=>x.startsWith(e)).length?"rtl":"ltr";let T="dark"===C?[d.darkAlgorithm]:[d.defaultAlgorithm],L=m.menuIconSize||14;const E=m.menuIconSize?.1*(L-10)+10:10;m.compact&&(T.push(d.compactAlgorithm),L-=2);let O={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:L,fontSize:L,itemMarginInline:m.flated?0:4,iconMarginInlineEnd:E,activeBarHeight:m.compact?2:4,darkPopupBg:Dn()[4]};const W={algorithm:T,token:{colorPrimary:m.primaryColor,borderRadius:m.flated?0:6},components:{Menu:O,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return F.jsx(f.Provider,{value:P,children:F.jsx(_.Provider,{value:z,children:F.jsx(h,{theme:W,locale:N?.antdLocale,direction:M,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:F.jsx(y,{style:{height:"100%",width:"100%"},children:F.jsx(v,{locale:x,messages:N?.messages,children:F.jsx(Xn,{menuData:u,layoutIcons:e.layoutIcons,children:e.children})})})})})})}dr.AsideHeader=Jn,dr.AsideFooter=Un,dr.Footer=ir,dr.AvatarPopoverContent=pn,dr.BrandPopoverContent=dn,dr.SoltContent=ar,dr.HeaderToolbarExtra=gn;var cr={exports:{}},ur=P(cr.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),s(d,a(e,c,u)),1===e?(s(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){s(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),l=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}());
11
+ /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
12
+ * @license MIT */function mr(e){const n=l(e);return function(e){return F.jsx(s,{fallback:F.jsx(pr,{}),children:F.jsx(n,{...e})})}}ee("/* 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 pr=()=>(o(()=>{const e=setTimeout(()=>{ur.start()},200);return()=>{clearTimeout(e),ur.done()}},[]),F.jsx("div",{style:{height:"auto"}})),hr=()=>(o(()=>(ur.start(),()=>{ur.done()}),[location.hostname]),F.jsx("div",{style:{height:"auto"}}));export{dr as AntdLayout,mr as LazyPage,pr as PageLoading,hr as RouteLoading,Rn as buildRouteWithParams,Ln as getAntdMenuItem,Qn as getAppIntl,er as getBasicLayoutConfig,Dn as getBlackColors,Mn as getMenuLabel,Tn as getRouterLabel,nr as getStorageConfig,Vn as getWhiteColors,zn as localeMenuData,En as matchPathToKeys,Fn as pathToKeys,In as separateMenuData,tr as setSkinConfig,rr as setStorageConfig,On as splitMenuKeys,Wn as transformMenuData,An as transformRouteToMenuData,Pn as transformToAntdMenuData,Zn as useAppIntl,en as useAvatarPopover,nn as useBrandPopover,D as useConfigAction,q as useConfigState,Ye as useContainerOutlet,Je as useMainCollapsed,V as useTheme};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminui-dev/antd-layout",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "this project name is @adminui-dev/antd-layout",
5
5
  "keywords": [
6
6
  "layut",