@adminui-dev/antd-layout 1.1.0 → 1.1.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.
package/dist/index.cjs.js CHANGED
@@ -9,4 +9,4 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */"production"===process.env.NODE_ENV?l.exports=function(){if(s)return d;s=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return d.Fragment=n,d.jsx=r,d.jsxs=r,d}():l.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case f:return"Profiler";case g:return"StrictMode";case b:return"Suspense";case j:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case h:return"Portal";case _:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case v:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case k:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===x)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return z[e]||(z[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,r,o,i,s,d){var u,m=r.children;if(void 0!==m)if(i)if(M(m)){for(i=0;i<m.length;i++)l(m[i]);Object.freeze&&Object.freeze(m)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(m);if(P.call(r,"key")){m=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",N[m+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,m,h,m),N[m+i]=!0)}if(m=null,void 0!==o&&(t(o),m=""+o),function(e){if(P.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),m=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return m&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var s=r.ref;return e={$$typeof:p,type:e,key:n,props:r,_owner:t},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,m,o,null===(u=B.A)?null:u.getOwner(),s,d)}function l(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var c,m=e,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),_=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),B=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,M=Array.isArray,I=console.createTask?console.createTask:function(){return null},z={},L=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,i)(),T=I(o(i)),N={};u.Fragment=x,u.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return s(e,n,r,!1,t?Error("react-stack-top-frame"):L,t?I(o(e)):T)},u.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return s(e,n,r,!0,t?Error("react-stack-top-frame"):L,t?I(o(e)):T)}}()),u);var m=l.exports;function p(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}p("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n}\r\n");const h=Symbol("LayoutAside"),x=Symbol("LayoutContent"),g=Symbol("LayoutHeader"),f=Symbol("LayoutBackground"),y={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",primaryColor:"#417ffb"},_=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),v=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),b=()=>e.useContext(v);function j(e){return m.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:m.jsx(m.Fragment,{children:e.children})})}function w(e){return m.jsx(m.Fragment,{children:e.children})}function k(e){return m.jsx(m.Fragment,{children:e.children})}function S(e){return m.jsx(m.Fragment,{children:e.children})}j.displayName="LayoutBackground",j.role=f,w.displayName="LayoutContent",w.role=x,k.displayName="LayoutAside",k.role=h,S.displayName="LayoutHeader",S.role=g;function C(n){let r=null,t=null,o=null,i=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===g?r=e:n===x?t=e:n===h?o=e:n===f&&(i=e)}),m.jsx(m.Fragment,{children:m.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[i,m.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,m.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function B(n){const r=!!document.fullscreenElement,[t,o]=e.useState(r),i=()=>{o(!!document.fullscreenElement)},a=e=>{"F11"===e.code&&(e.preventDefault(),s())};e.useEffect(()=>(document.addEventListener("fullscreenchange",i),document.addEventListener("keydown",a,!0),()=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("keydown",a)}),[]);const s=()=>{t?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return m.jsx(m.Fragment,{});const[l,d]=n.buttons,c=t?l:d;return e.cloneElement(c,{onClick:e=>{console.log(e),s()}})}p("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n}\r\n"),C.Aside=k,C.Content=w,C.Header=S,C.Background=j;const P=(e,n)=>{const{r:r,g:t,b:o}=(e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}))(e);return`rgba(${r}, ${t}, ${o}, ${n})`};function M(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}M("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n");var I="index-module_headerLayout__rv59v",z="index-module_headerLayoutSticky__6uFCj",L="index-module_headerLayoutFixed__t5Hmo",T="index-module_headerLayoutBox__h0fIt",N="index-module_headerMenu__WHmJN",F="index-module_headerTitle__jGbCX",E="index-module_headerBrandBox__U2J16",A="index-module_layoutBlur__GpCPx",O="index-module_toolbarPanel__Pp8PS",W="index-module_toolbarItem__RkaXd",R="index-module_toolbarAvatarItem__p6TXY",H="index-module_siderBaseStyle__zg1FM",$="index-module_siderMask__cCjMh",D="index-module_siderContentBox__dGgRe",q="index-module_siderContentItem__kl3cR",K="index-module_collapsedTrack__LoJ3V",X="index-module_collapsedTrackButton__m33XS",V="index-module_brandPanel__2GRgq",G="index-module_labelBox__dX8fY",U="index-module_brandNodeBox__W-iM6",J="index-module_brandMobilePanel__m1Diu",Y="index-module_largeBrandPanel__pLn--",Z="index-module_title__SbfFY",Q="index-module_largeBrandCollPanel__nsGKB",ee="index-module_avatarPanel__fFvCS",ne="index-module_collapsedMobile__Yu8F4",re="index-module_round__WoVxM";function te(e){const{size:n=16}=e;return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m15 18-6-6 6-6"})})}function oe(e){const{size:n=16}=e;return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m9 18 6-6-6-6"})})}function ie(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m7 8-4 4 4 4"})]})}function ae(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m3 8 4 4-4 4"})]})}function se(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"m7 15 5 5 5-5"}),m.jsx("path",{d:"m7 9 5-5 5 5"})]})}function le(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),m.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function de(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),m.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),m.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),m.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function ce(e){const{size:n=16}=e;return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),m.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),m.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),m.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function ue(n){const[r,t]=e.useState(!1),{hasChild:o,...i}=n;e.useEffect(()=>{if(n.src)if("string"==typeof n.src){const e=new Image;e.src=n.src,e.onload=()=>t(!0),e.onerror=()=>t(!0)}else t(!0)},[n.src]);const a={...n.style,transition:"opacity 0.3s ease-out",opacity:r?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=m.jsx("img",{...i});return n.hasChild?s:m.jsx("div",{style:a,children:s})}M('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n.index-module_containerBox__pv0qs>h3 {\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0 0 var(--adminui-margin);\r\n}\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const me=e.createContext({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),pe=e.createContext({close:()=>{}}),he=e.createContext({close:()=>{}}),xe=Symbol("AsideFooter"),ge=Symbol("AsideHeader"),fe=Symbol("AsideContentItems"),ye=Symbol("AsideContentItem"),_e=Symbol("ContentFooter"),ve=Symbol("AvatarPopoverContent"),be=Symbol("BrandPopoverContent"),je=Symbol("SoltContent"),we=Symbol("ToolbarExtraItems"),ke=()=>e.useContext(me),Se=()=>ke().collapsed,Ce=()=>pe,Be=()=>he;function Pe(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:Me}=n.theme;function Ie(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=b(),{token:s}=Me(),{layoutIcons:l,brandPopoverContent:d}=ke(),[c,u]=e.useState(!1),p=Be(),h=a.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:a.compact?s.paddingXXS:s.paddingXS,height:"40px",gap:(a.compact?6:8)+"px"},g={height:`${a.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};a.flated&&(x={...x,paddingInline:s.padding,height:"100%"},g={...g,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:f={...f,overflow:"hidden"};let _=m.jsx(m.Fragment,{});y?.logo&&(_="string"==typeof y.logo?m.jsx(ue,{style:{width:h},src:y.logo,alt:y.name}):m.jsx("div",{className:U,style:{width:h},children:y.logo}));const v=l?.itemMoreIcon||m.jsx(se,{}),j=m.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?m.jsx(Pe,{icon:v,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:m.jsxs("div",{style:f,children:[_,m.jsxs("div",{className:G,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:y?.name}),i?void 0:m.jsx("span",{style:{color:s.colorTextSecondary},children:y?.title})]})]})});return m.jsx("div",{className:V,style:g,children:d?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:d,children:j})}):j})}function ze(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=b(),{layoutIcons:s,brandPopoverContent:l}=ke(),{token:d}=Me(),[c,u]=e.useState(!1),p=Be(),h=a.compact?"16px":"20px";let x={justifyContent:"flex-start",gap:(a.compact?6:8)+"px"},g={height:`${a.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};a.flated&&(x={...x,paddingInline:d.padding},g={...g,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:f={...f,overflow:"hidden"};let _=m.jsx(m.Fragment,{});y?.logo&&(_="string"==typeof y.logo?m.jsx(ue,{style:{width:h},src:y.logo,alt:y.name}):m.jsx("div",{className:U,style:{width:h},children:y.logo}));const v=s?.itemMoreIcon||m.jsx(se,{}),j=l?{}:{href:y?.url},w=m.jsxs("a",{...j,style:x,children:[m.jsxs("div",{style:f,children:[_,m.jsxs("div",{className:G,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{style:{width:"90%"},children:y?.name}),i?void 0:m.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:y?.title})]})]}),l?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Pe,{icon:v,size:o||14})}):m.jsx(m.Fragment,{})]});return m.jsx("div",{className:V,style:g,children:l?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:l,children:w})}):w})}function Le(r){const{layoutConfig:t}=b(),{brandPopoverContent:o}=ke(),[i,a]=e.useState(!1),s=Be(),l=t.compact?"16px":"20px",{brandInfo:d}=t;let c=m.jsx(m.Fragment,{});d?.logo&&(c="string"==typeof d.logo?m.jsx(ue,{style:{width:l},src:d.logo,alt:d.name}):m.jsx("div",{className:U,style:{width:l},children:d.logo}));let u=o?m.jsx(s.Provider,{value:{close:()=>{a(!1)},record:d},children:m.jsx(n.Popover,{open:i,onOpenChange:a,content:o,placement:"rightTop",children:m.jsx("a",{children:c})})}):m.jsx("a",{href:d?.url,children:c});return m.jsxs("div",{className:J,style:r.style,children:[u,m.jsx("div",{className:F,children:r.children})]})}function Te(r){const{collapsed:t}=r,{brandPopoverContent:o}=ke(),{layoutConfig:i}=b(),[a,s]=e.useState(!1),l=Be(),d=t?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:c}=i,u={opacity:t?"0":"1",height:t?"0px":"auto"};let p=m.jsx(m.Fragment,{});if(!c)return m.jsx(m.Fragment,{});let h=[Y];t&&h.push(Q),c?.logo&&(p="string"==typeof c.logo?m.jsx(ue,{style:{width:d},src:c.logo,alt:c.name}):m.jsx("div",{className:U,style:{width:d},children:c.logo}));let x=o?m.jsx(l.Provider,{value:{close:()=>{s(!1)},record:c},children:m.jsx(n.Popover,{open:a,onOpenChange:s,content:o,placement:"rightTop",children:m.jsx("a",{children:p})})}):m.jsx("a",{href:c?.url,children:p});return m.jsxs("div",{className:h.join(" "),children:[x,m.jsxs("div",{style:u,children:[m.jsx("span",{children:c?.name}),c.title?m.jsx("span",{className:Z,children:c?.title}):m.jsx(m.Fragment,{})]})]})}function Ne(e){return m.jsx("div",{style:{...e.style},children:e.children})}Ne.displayName="BrandPopoverContent",Ne.role=be;const{useToken:Fe}=n.theme;function Ee(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=b(),{layoutIcons:a,avatarPopoverContent:s}=ke(),[l,d]=e.useState(!1),c=Ce(),{token:u}=Fe(),p=i.compact?"20px":"24px";let h={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(h={...h,paddingInline:u.padding,margin:"0px",height:"100%"},x={...x,padding:"0px"});const{userInfo:f}=i;t?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let y=m.jsx(m.Fragment,{});f?.avatar&&(y="string"==typeof f.avatar?m.jsx(ue,{style:{width:p,borderRadius:"999px"},src:f.avatar,alt:f.uid}):f.avatar);const _=a?.itemMoreIcon||m.jsx(se,{}),v=m.jsx("div",{className:ee,style:x,children:m.jsxs("a",{style:h,children:[m.jsxs("div",{style:g,children:[y,m.jsxs("div",{className:G,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:f?.uid}),f?.title?void 0:m.jsx("span",{style:{color:u.colorTextSecondary},children:f?.title})]})]}),s?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Pe,{icon:_,size:o||14})}):m.jsx(m.Fragment,{})]})});return s?m.jsx(c.Provider,{value:{close:()=>d(!1),record:f},children:m.jsx(n.Popover,{open:l,onOpenChange:d,placement:"right",content:s,children:v})}):v}function Ae(r){const{iconSize:t=14}=r,{layoutConfig:o}=b(),{userInfo:i}=o,{avatarPopoverContent:a}=ke(),[s,l]=e.useState(!1),d=Ce();let c=m.jsx(le,{});const u=t+4,p={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(c="string"==typeof i.avatar?m.jsx(ue,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const h=m.jsxs("div",{className:R,children:[m.jsx("div",{style:p,children:c}),m.jsx("span",{children:i?.uid})]});return a?m.jsx(d.Provider,{value:{close:()=>l(!1),record:i},children:m.jsx(n.Popover,{open:s,onOpenChange:l,placement:"left",content:a,children:h})}):m.jsx(m.Fragment,{children:h})}function Oe(e){return m.jsx("div",{style:{...e.style},children:e.children})}Oe.displayName="AvatarPopoverContent",Oe.role=ve;const{useToken:We}=n.theme;function Re(e){const{token:r}=We(),{layoutIcons:t,toolbarExtraItems:o}=ke(),i=r.Menu?.iconSize||16,[a,s]=t?.fullScreenIcons?.slice(0,2)||[m.jsx(ce,{}),m.jsx(de,{})],l=m.jsx(Pe,{icon:a,size:i}),d=m.jsx(Pe,{icon:s,size:i});return m.jsxs("div",{className:O,children:[e.showAvatar?m.jsxs("div",{className:W,children:[m.jsx(Ae,{iconSize:i+4}),m.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):m.jsx(m.Fragment,{}),o,m.jsx("div",{className:W,"data-adminui-role":"desk-toolbar",children:m.jsx(B,{buttons:[m.jsx(n.Button,{icon:d,type:"text"},"minimize"),m.jsx(n.Button,{icon:l,type:"text"},"maximize")]})})]})}function He(e){const n=m.jsx("div",{className:W,"data-adminui-role":"desk-toolbar",children:e.children});return e?m.jsx(m.Fragment,{children:n}):m.jsx(m.Fragment,{})}He.displayName="ToolbarExtraItems",He.role=we;const{useToken:$e}=n.theme;function De(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=ke(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[s,l]=o?.collapsedIcons?.slice(0,2)||[m.jsx(oe,{}),m.jsx(te,{})];return m.jsx("div",{style:i,children:m.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?s:l})})}function qe(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=ke(),{token:s}=$e();let l={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${s.colorBorderSecondary}`};t&&(l={...l,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[m.jsx(te,{}),m.jsx(oe,{})];return m.jsx("div",{className:K,style:l,onClick:()=>{i(!o)},children:m.jsx("div",{style:d,className:X,children:o?c:u})})}function Ke(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=ke(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[m.jsx(ae,{}),m.jsx(ie,{})];return m.jsx("div",{className:ne,children:m.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}const{Header:Xe}=n.Layout,{useToken:Ve}=n.theme;function Ge(e){const{layoutConfig:r}=b(),{token:o}=Ve(),i=t.useNavigate(),a=r.headerTransparent||r.headerBlur?P(o.colorBorderSecondary,.6):o.colorBorderSecondary,s=r.hideBorder?"0px":"1px solid "+a,l=r.flated&&"headMenu"==r.layoutType||"dark"==r.theme?"dark":"light",d=r.flated&&"headMenu"==r.layoutType?"dark":"light",c=r.flated&&"headMenu"==r.layoutType?o.colorPrimary:o.colorBgContainer,u={height:e.height+"px",lineHeight:e.height+"px"};let p=m.jsx(m.Fragment,{}),h={...u,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":c};r.headerBlur&&(h={...h,backgroundColor:P(c,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let x={...u,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[I],f=m.jsx(m.Fragment,{});"headMenu"==r.layoutType?(p=m.jsx("div",{style:u}),h={...h,paddingInlineEnd:o.paddingXS+"px"},f=m.jsx("div",{className:E,style:{width:r?.asideWidth+"px"},children:m.jsx(Ie,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),g.push(L)):(h={...h,paddingInline:o.paddingXS+"px"},g.push(z));let y=m.jsx(Le,{children:e.title}),_=m.jsx(Ke,{iconSize:r.compact?12:14});const v=[T];r.flated||v.push(re);let j="dark"==l?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return m.jsxs(m.Fragment,{children:[p,m.jsx(n.ConfigProvider,{theme:{algorithm:j},children:m.jsx(n.Layout,{className:g.join(" "),style:x,children:m.jsxs(Xe,{className:v.join(" "),style:h,children:[_,f,y,m.jsx(n.Menu,{onClick:e=>{i(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:d,classNames:{root:N},items:e.menuData||[]}),m.jsx(Re,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:Ue}=n.Layout,{useToken:Je}=n.theme,{useBreakpoint:Ye}=n.Grid;function Ze(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:s}=b(),{asideWidth:l}=s,d=r.headerHeight,{collapsed:c,setCollapsed:u}=ke(),{token:p}=Je(),h=t.useNavigate(),x=Ye().xs?0:d,g=s.headerTransparent||s.headerBlur?P(p.colorBorderSecondary,.6):p.colorBorderSecondary,f=s.hideBorder||0==x&&c?"0px":"1px solid "+g,y="headMenu"==s.layoutType||0==x?r.headerHeight:0,_="headMenu"==s.layoutType||0==x?"calc(100% - "+r.headerHeight+"px)":"100%";let v={width:`${s.asideWidth}px`,height:`${_}`,insetBlockStart:y+"px",maxWidth:`${s.asideWidth}px`,minWidth:`${s.asideWidth}px`,borderRight:f,position:"fixed",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},j={overflow:"auto",flex:1};const w=p.Menu?.iconSize,k="dark"==s.theme?"dark":"light",S=k;let C=0,B=m.jsx(m.Fragment,{});"leftMenu"==s.layoutType&&(C=s.headerHeight||0,B=s.largeBrand?m.jsx(Te,{collapsed:c,iconSize:w}):m.jsx(ze,{collapsed:c,iconSize:w,hideTitle:!0}));const M=s.asideTransparent?"transparent":s.asideBlur?P(p.colorBgContainer,.6):p.colorBgContainer;v={...v,backgroundColor:M},s.asideBlur&&(v={...v,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(j={...j,overflow:"hidden"});let I=[H];I.push(A);let z=m.jsx(m.Fragment,{});switch(s.collapsedPosition){case"bottom":z=m.jsx(De,{iconSize:w,style:{backgroundColor:M,width:`${d}px`,borderRight:f}});break;case"center":case"top":z=m.jsx(qe,{iconSize:12,top:"top"==s.collapsedPosition,flated:s.flated,offset:C,style:{backgroundColor:M}})}let L=r.menuData||[];return s.asideMenuGroup&&L.forEach(e=>{e.children&&(e.type="group")}),m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{width:c?d:l,flex:`0 0 ${c?d:l}px`,maxWidth:c?d:l,minWidth:c?d:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:$}),m.jsxs(Ue,{width:l,className:I.join(" "),style:v,theme:S,collapsedWidth:x,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[x>0?B:m.jsx(m.Fragment,{}),r.header,m.jsx("div",{style:j,children:m.jsx(n.Menu,{onClick:e=>{h(e.key)},onOpenChange:e=>{a(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:s.asideMenuInline?"inline":"vertical",selectedKeys:r.selectedKeys,openKeys:c?void 0:i,defaultSelectedKeys:r.selectedKeys,defaultOpenKeys:o.current,theme:k,items:L})}),r.footer,"leftBottom"==s.avatarPosition?m.jsx(Ee,{collapsed:c,iconSize:w}):m.jsx(m.Fragment,{}),z]})]})}const Qe=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Qe(r)),e},{});function en(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const nn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=on(e);r.children=nn(e.children),n.push(r)}),n},rn=(e,n)=>{if(e)return e.map(e=>{const r=tn(e,n),t={...e,label:r};return e.children&&(t.children=rn(e.children,n)),t})},tn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),on=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function an(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function sn(e){let n=an(e);return n&&n.length>1&&"/"==n[0]&&n.splice(0,1),n}function ln(e){const n=e.length;if(0===n)return[[],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function dn(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:cn(n.extra),icon:cn(n.icon)};return o}(e,n);return n.children&&(r.children=dn(r.path,n.children)),r})}const cn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:un}=n.theme;function mn(n){const{layoutConfig:o,themeSkin:i}=b(),a=r.useIntl(),{token:s}=un(),[l,d]=e.useState(!1),c={backgroundColor:s.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const p=o.disabledLocale?n.menuData:rn(n.menuData,a),h=p&&p?.length>0?p[0].children:[],x=Qe(p||[]),g=nn(h),f=t.useLocation(),y=t.useMatches(),{pathname:_}=f,v=sn(_),j=y[y.length-1];let w=[],k=[],S=[],B=[];if("leftMenu"==o.layoutType?(B=g||[],k=v):(S=g||[],w=v),o.splitMenu&&v.length>1){const[e,n]=ln(v),{rootMenuItems:r,childrenMenuItems:t}=en(g,v);"leftMenu"==o.layoutType?(B=r,S=t,k=e,w=n):(B=t,S=r,w=e,k=n)}const P=e.Children.toArray(n.children),M=P.find(n=>e.isValidElement(n)&&n.type.role===xe),I=P.find(n=>e.isValidElement(n)&&n.type.role===ge),z=P.find(n=>e.isValidElement(n)&&n.type.role===_e),L=P.find(n=>e.isValidElement(n)&&n.type.role===ve),T=P.find(n=>e.isValidElement(n)&&n.type.role===be),N=P.find(n=>e.isValidElement(n)&&n.type.role===je),F=P.find(n=>e.isValidElement(n)&&n.type.role===we),E=me,A=e.useMemo(()=>({collapsed:l,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:L,brandPopoverContent:T,toolbarExtraItems:F,flattenMenuMap:x,setCollapsed:d}),[l,u,n.layoutIcons,x]),O=t.useNavigation();Boolean(O.location);const W=x[j.pathname].label||"";return document.title=W,m.jsxs(m.Fragment,{children:[m.jsx(E,{value:A,children:m.jsxs(C,{...n,style:c,children:[m.jsx(C.Aside,{children:m.jsx(Ze,{headerHeight:u,header:M,footer:I,menuData:B,selectedKeys:k,openerKeys:k})}),m.jsx(C.Header,{children:m.jsx(Ge,{height:u,menuData:S,selectedKeys:w,title:W})}),m.jsx(C.Content,{children:m.jsx(t.Outlet,{context:{title:W,footer:z}})}),m.jsx(C.Background,{children:i?i.backgroundContent:m.jsx(m.Fragment,{})})]})}),N]})}const pn=e=>i.generate(e),hn=()=>pn("#22222222");function xn(e){const n=Se(),{layoutConfig:r}=b(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?m.jsx(m.Fragment,{}):m.jsxs("div",{className:q,style:o,children:[m.jsx("div",{children:e.icon}),m.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function gn(e){return m.jsx(m.Fragment,{children:e.children})}function fn(e){return m.jsx("div",{className:D,children:e.children})}function yn(e){return m.jsx("div",{className:D,children:e.children})}gn.displayName="AsideContentItems",xn.displayName="AsideContentItem",yn.displayName="AsideHeaderContent",yn.Items=gn,yn.Item=xn,fn.displayName="AsideFooterContent",fn.Items=gn,fn.Item=xn,fn.role=ge,yn.role=xe,gn.role=fe,xn.role=ye;const _n="adminui-default-config",vn=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),bn=e=>{e||(e=_n);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},jn=(e,n)=>{n||(n=_n);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},wn=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r},{useToken:kn}=n.theme,Sn=e=>m.jsx("div",{...e,children:e.children});function Cn(e){return m.jsx(m.Fragment,{children:e.children})}Sn.displayName="ContentFooter",Sn.role=_e,Cn.displayName="SoltContent",Cn.role=je;const Bn="adminui-locale",Pn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Mn(o){const i=t.useMatches(),{pathname:a}=i[0],s={...y,...o.layoutConfig,...bn(a)};let l=o.themeSkins||[];const d=e.useMemo(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(l),[l]),c=o.locale||localStorage.getItem(Bn)||s.locale||"en-US",u=o.menuData?dn("/",[o.menuData]):[],[p,h]=e.useState(()=>{if(s.skinName){const e=Pn(s.skinName,d);return wn(s,e)}return s}),[x,g]=e.useState(c),f=v,b=_;let j=o.localeMessages||{};const w=e.useMemo(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(j),[j]),k=e=>{localStorage.setItem(Bn,e),g(e)};document.documentElement.style.setProperty("--pageload-bar-color",p.primaryColor),e.useEffect(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===p.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(p.theme)},[p.theme]);const S=e.useMemo(()=>{if(p.skinName)return Pn(p.skinName,d)},[l,p.skinName]),C="system"==(B=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const P=e=>{h(e),jn(e,a)},M=e.useMemo(()=>({layoutConfig:p,locale:x,languages:w,themeSkin:S,themeSkinMap:d}),[w,x,w,d,S,p]),I=e.useMemo(()=>({setLayoutConfig:P,setLocale:k}),[]),z=j[x]||j["en-US"],L=["he","ar","fa","ku"].filter(e=>x.startsWith(e)).length?"rtl":"ltr";let T="dark"===C?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],N=p.menuIconSize||14;const F=p.menuIconSize?.1*(N-10)+10:10;p.compact&&(T.push(n.theme.compactAlgorithm),N-=2);let E={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:N,fontSize:N,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:F,activeBarHeight:p.compact?2:4,darkPopupBg:hn()[4]};const A={algorithm:T,token:{colorPrimary:p.primaryColor,borderRadius:p.flated?0:6},components:{Menu:E,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return m.jsx(f.Provider,{value:M,children:m.jsx(b.Provider,{value:I,children:m.jsx(n.ConfigProvider,{theme:A,locale:z?.antdLocale,direction:L,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:m.jsx(n.App,{style:{height:"100%",width:"100%"},children:m.jsx(r.IntlProvider,{locale:x,messages:z?.messages,children:m.jsx(mn,{menuData:u,layoutIcons:o.layoutIcons,children:o.children})})})})})})}Mn.AsideHeader=yn,Mn.AsideFooter=fn,Mn.Footer=Sn,Mn.AvatarPopoverContent=Oe,Mn.BrandPopoverContent=Ne,Mn.SoltContent=Cn,Mn.HeaderToolbarExtra=He;var In={exports:{}},zn=a(In.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,s(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),l(d,a(e,c,u)),1===e?(l(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){l(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),s=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),l=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}());
11
11
  /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
12
- * @license MIT */M("/* Make clicks pass-through */\n#nprogress_nprogress__aqNSX {\n pointer-events: none;\n}\n\n#nprogress_nprogress__aqNSX .nprogress_bar__jdnDD {\n background: #29d;\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n}\n\n/* Fancy blur effect */\n#nprogress_nprogress__aqNSX .nprogress_peg__hwnh6 {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px #29d, 0 0 5px #29d;\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n}\n\n/* Remove these to get rid of the spinner */\n#nprogress_nprogress__aqNSX .nprogress_spinner__-lLoD {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n}\n\n#nprogress_nprogress__aqNSX .nprogress_spinner-icon__7g0sk {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: #29d;\n border-left-color: #29d;\n border-radius: 50%;\n\n -webkit-animation: nprogress_nprogress-spinner__agk-h 400ms linear infinite;\n animation: nprogress_nprogress-spinner__agk-h 400ms linear infinite;\n}\n\n.nprogress_nprogress-custom-parent__KxnjL {\n overflow: hidden;\n position: relative;\n}\n\n.nprogress_nprogress-custom-parent__KxnjL #nprogress_nprogress__aqNSX .nprogress_spinner__-lLoD,\n.nprogress_nprogress-custom-parent__KxnjL #nprogress_nprogress__aqNSX .nprogress_bar__jdnDD {\n position: absolute;\n}\n\n@-webkit-keyframes nprogress_nprogress-spinner__agk-h {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n}\n@keyframes nprogress_nprogress-spinner__agk-h {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n");const Ln=()=>(e.useEffect(()=>{const e=setTimeout(()=>{zn.start()},200);return()=>{clearTimeout(e),zn.done()}},[]),m.jsx("div",{style:{height:"auto"}}));Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return i.generate}}),exports.AntdLayout=Mn,exports.FullScreenButton=B,exports.LazyAvatar=function(r){const[t,o]=e.useState(!1);return e.useEffect(()=>{if(r.src)if("string"==typeof r.src){const e=new Image;e.src=r.src,e.onload=()=>o(!0),e.onerror=()=>o(!0)}else o(!0)},[r.src]),m.jsx(n.Avatar,{...r,style:{...r.style,opacity:t?1:0,transition:"opacity 0.3s ease-out"}})},exports.LazyImage=ue,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return m.jsx(e.Suspense,{fallback:m.jsx(Ln,{}),children:m.jsx(r,{...n})})}},exports.PageLoading=Ln,exports.RouteLoading=()=>(e.useEffect(()=>(zn.start(),()=>{zn.done()}),[location.hostname]),m.jsx("div",{style:{height:"auto"}})),exports.ToolbarIcon=Pe,exports.buildRouteWithParams=function(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")},exports.flattenMenuData=Qe,exports.getAntdMenuItem=on,exports.getAppIntl=vn,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=hn,exports.getMenuLabel=tn,exports.getStorageConfig=bn,exports.getWhiteColors=()=>pn("#FFFFFF"),exports.localeMenuData=rn,exports.matchPathToKeys=sn,exports.pathToKeys=an,exports.separateMenuData=en,exports.setSkinConfig=wn,exports.setStorageConfig=jn,exports.splitMenuKeys=ln,exports.transformMenuData=dn,exports.transformRouteToMenuData=function e(n,r){if(r)return!n.endsWith("/")&&n.length>1&&(n+="/"),r.filter(e=>!!e.handle).map(r=>{const t=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=o.generatePath(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let i=e+t,a={...r,path:i,originalPath:n.path,extra:cn(r.extra),icon:cn(r.icon)};return a}(n,r);return r.children&&(t.children=e(t.path,r.children)),t})},exports.transformToAntdMenuData=nn,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=b(),{f:t,t:o}=vn(n.disabledLocale?void 0:e);return{...e,f:t,t:o}},exports.useAvatarPopover=()=>e.useContext(pe),exports.useBrandPopover=()=>e.useContext(he),exports.useConfigAction=()=>e.useContext(_),exports.useConfigState=b,exports.useContainerOutlet=()=>t.useOutletContext(),exports.useMainCollapsed=Se,exports.useTheme=()=>b().layoutConfig.theme;
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"),zn.configure({showSpinner:!1});const Ln=()=>(e.useEffect(()=>{const e=setTimeout(()=>{zn.start()},200);return()=>{clearTimeout(e),zn.done()}},[]),m.jsx("div",{style:{height:"auto"}}));Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return i.generate}}),exports.AntdLayout=Mn,exports.FullScreenButton=B,exports.LazyAvatar=function(r){const[t,o]=e.useState(!1);return e.useEffect(()=>{if(r.src)if("string"==typeof r.src){const e=new Image;e.src=r.src,e.onload=()=>o(!0),e.onerror=()=>o(!0)}else o(!0)},[r.src]),m.jsx(n.Avatar,{...r,style:{...r.style,opacity:t?1:0,transition:"opacity 0.3s ease-out"}})},exports.LazyImage=ue,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return m.jsx(e.Suspense,{fallback:m.jsx(Ln,{}),children:m.jsx(r,{...n})})}},exports.PageLoading=Ln,exports.RouteLoading=()=>(e.useEffect(()=>(zn.start(),()=>{zn.done()}),[location.hostname]),m.jsx("div",{style:{height:"auto"}})),exports.ToolbarIcon=Pe,exports.buildRouteWithParams=function(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")},exports.flattenMenuData=Qe,exports.getAntdMenuItem=on,exports.getAppIntl=vn,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=hn,exports.getMenuLabel=tn,exports.getStorageConfig=bn,exports.getWhiteColors=()=>pn("#FFFFFF"),exports.localeMenuData=rn,exports.matchPathToKeys=sn,exports.pathToKeys=an,exports.separateMenuData=en,exports.setSkinConfig=wn,exports.setStorageConfig=jn,exports.splitMenuKeys=ln,exports.transformMenuData=dn,exports.transformRouteToMenuData=function e(n,r){if(r)return!n.endsWith("/")&&n.length>1&&(n+="/"),r.filter(e=>!!e.handle).map(r=>{const t=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=o.generatePath(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let i=e+t,a={...r,path:i,originalPath:n.path,extra:cn(r.extra),icon:cn(r.icon)};return a}(n,r);return r.children&&(t.children=e(t.path,r.children)),t})},exports.transformToAntdMenuData=nn,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=b(),{f:t,t:o}=vn(n.disabledLocale?void 0:e);return{...e,f:t,t:o}},exports.useAvatarPopover=()=>e.useContext(pe),exports.useBrandPopover=()=>e.useContext(he),exports.useConfigAction=()=>e.useContext(_),exports.useConfigState=b,exports.useContainerOutlet=()=>t.useOutletContext(),exports.useMainCollapsed=Se,exports.useTheme=()=>b().layoutConfig.theme;
package/dist/index.esm.js CHANGED
@@ -9,4 +9,4 @@ import e,{createContext as n,useContext as r,useState as t,useEffect as o,useRef
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */"production"===process.env.NODE_ENV?M.exports=function(){if(z)return N;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 N.Fragment=n,N.jsx=r,N.jsxs=r,N}():M.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 b:return"Suspense";case v:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case f:return(e._context.displayName||"Context")+".Consumer";case _: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"),b=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,P=console.createTask?console.createTask:function(){return null},z={},M=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),N=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"):M,t?P(o(e)):N)},L.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):M,t?P(o(e)):N)}}()),L);var F=M.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 #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n}\r\n");const O=Symbol("LayoutAside"),A=Symbol("LayoutContent"),W=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:[]}}),D=()=>r(X),V=()=>r($),q=()=>D().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=A,U.displayName="LayoutAside",U.role=O,J.displayName="LayoutHeader",J.role=W;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===W?r=e:n===A?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 #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n}\r\n"),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 adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size);\r\n}\r\n");var 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",be="index-module_brandNodeBox__W-iM6",ve="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 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:"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 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:"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);return o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]),F.jsx(d,{...e,style:{...e.style,opacity:n?1:0,transition:"opacity 0.3s ease-out"}})}function Oe(e){const[n,r]=t(!1),{hasChild:i,...a}=e;o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=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 Ae=n({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),We=n({close:()=>{}}),Re=n({close:()=>{}}),He=Symbol("AsideFooter"),$e=Symbol("AsideHeader"),Xe=Symbol("AsideContentItems"),De=Symbol("AsideContentItem"),Ve=Symbol("ContentFooter"),qe=Symbol("AvatarPopoverContent"),Ke=Symbol("BrandPopoverContent"),Ge=Symbol("SoltContent"),Ue=Symbol("ToolbarExtraItems"),Je=()=>r(Ae),Ye=()=>Je().collapsed,Ze=()=>v(),Qe=()=>We,en=()=>Re,nn=()=>r(We),rn=()=>r(Re);function tn(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:on}=c;function an(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=D(),{token:a}=on(),{layoutIcons:l,brandPopoverContent:s}=Je(),[d,c]=t(!1),p=en(),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(Oe,{style:{width:h},src:y.logo,alt:y.name}):F.jsx("div",{className:be,style:{width:h},children:y.logo}));const b=l?.itemMoreIcon||F.jsx(Ne,{}),v=F.jsx(m,{type:"text",style:x,iconPlacement:"end",icon:s?F.jsx(tn,{icon:b,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:()=>{c(!1)},record:y},children:F.jsx(u,{open:d,onOpenChange:c,placement:"rightTop",content:s,children:v})}):v})}function ln(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=D(),{layoutIcons:a,brandPopoverContent:l}=Je(),{token:s}=on(),[d,c]=t(!1),m=en(),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(Oe,{style:{width:p},src:f.logo,alt:f.name}):F.jsx("div",{className:be,style:{width:p},children:f.logo}));const _=a?.itemMoreIcon||F.jsx(Ne,{}),b=l?{}:{href:f?.url},v=F.jsxs("a",{...b,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(tn,{icon:_,size:r||14})}):F.jsx(F.Fragment,{})]});return F.jsx("div",{className:ye,style:x,children:l?F.jsx(m.Provider,{value:{close:()=>{c(!1)},record:f},children:F.jsx(u,{open:d,onOpenChange:c,placement:"rightTop",content:l,children:v})}):v})}function sn(e){const{layoutConfig:n}=D(),{brandPopoverContent:r}=Je(),[o,i]=t(!1),a=en(),l=n.compact?"16px":"20px",{brandInfo:s}=n;let d=F.jsx(F.Fragment,{});s?.logo&&(d="string"==typeof s.logo?F.jsx(Oe,{style:{width:l},src:s.logo,alt:s.name}):F.jsx("div",{className:be,style:{width:l},children:s.logo}));let c=r?F.jsx(a.Provider,{value:{close:()=>{i(!1)},record:s},children:F.jsx(u,{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:ve,style:e.style,children:[c,F.jsx("div",{className:ae,children:e.children})]})}function dn(e){const{collapsed:n}=e,{brandPopoverContent:r}=Je(),{layoutConfig:o}=D(),[i,a]=t(!1),l=en(),s=n?o.compact?"16px":"20px":o.compact?"56px":"64px",{brandInfo:d}=o,c={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(Oe,{style:{width:s},src:d.logo,alt:d.name}):F.jsx("div",{className:be,style:{width:s},children:d.logo}));let h=r?F.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:F.jsx(u,{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:c,children:[F.jsx("span",{children:d?.name}),d.title?F.jsx("span",{className:we,children:d?.title}):F.jsx(F.Fragment,{})]})]})}function cn(e){return F.jsx("div",{style:{...e.style},children:e.children})}cn.displayName="BrandPopoverContent",cn.role=Ke;const{useToken:un}=c;function mn(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:o}=D(),{layoutIcons:i,avatarPopoverContent:a}=Je(),[l,s]=t(!1),d=Qe(),{token:c}=un(),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:c.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(Oe,{style:{width:m,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const y=i?.itemMoreIcon||F.jsx(Ne,{}),_=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:c.colorTextSecondary},children:g?.title})]})]}),a?F.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:F.jsx(tn,{icon:y,size:r||14})}):F.jsx(F.Fragment,{})]})});return a?F.jsx(d.Provider,{value:{close:()=>s(!1),record:g},children:F.jsx(u,{open:l,onOpenChange:s,placement:"right",content:a,children:_})}):_}function pn(e){const{iconSize:n=14}=e,{layoutConfig:r}=D(),{userInfo:o}=r,{avatarPopoverContent:i}=Je(),[a,l]=t(!1),s=Qe();let d=F.jsx(Te,{});const c=n+4,m={width:`${c}px`,height:`${c}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};o?.avatar&&(d="string"==typeof o.avatar?F.jsx(Oe,{style:{width:c,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(u,{open:a,onOpenChange:l,placement:"left",content:i,children:p})}):F.jsx(F.Fragment,{children:p})}function hn(e){return F.jsx("div",{style:{...e.style},children:e.children})}hn.displayName="AvatarPopoverContent",hn.role=qe;const{useToken:xn}=c;function gn(e){const{token:n}=xn(),{layoutIcons:r,toolbarExtraItems:t}=Je(),o=n.Menu?.iconSize||16,[i,a]=r?.fullScreenIcons?.slice(0,2)||[F.jsx(Fe,{}),F.jsx(Le,{})],l=F.jsx(tn,{icon:i,size:o}),s=F.jsx(tn,{icon:a,size:o});return F.jsxs("div",{className:de,children:[e.showAvatar?F.jsxs("div",{className:ce,children:[F.jsx(pn,{iconSize:o+4}),F.jsx(p,{"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(m,{icon:s,type:"text"},"minimize"),F.jsx(m,{icon:l,type:"text"},"maximize")]})})]})}function fn(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,{})}fn.displayName="ToolbarExtraItems",fn.role=Ue;const{useToken:yn}=c;function _n(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Je(),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 bn(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Je(),{token:l}=yn();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}=Je(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[F.jsx(Me,{}),F.jsx(ze,{})];return F.jsx("div",{className:Ce,children:F.jsx(m,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}const{Header:jn}=h,{useToken:wn}=c;function kn(e){const{layoutConfig:n}=D(),{token:r}=wn(),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,d={height:e.height+"px",lineHeight:e.height+"px"};let u=F.jsx(F.Fragment,{}),m={...d,borderBottom:i,backgroundColor:n.headerTransparent?"transparent":s};n.headerBlur&&(m={...m,backgroundColor:Q(s,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let p={...d,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},f=[ne],y=F.jsx(F.Fragment,{});"headMenu"==n.layoutType?(u=F.jsx("div",{style:d}),m={...m,paddingInlineEnd:r.paddingXS+"px"},y=F.jsx("div",{className:le,style:{width:n?.asideWidth+"px"},children:F.jsx(an,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),f.push(te)):(m={...m,paddingInline:r.paddingXS+"px"},f.push(re));let _=F.jsx(sn,{children:e.title}),b=F.jsx(vn,{iconSize:n.compact?12:14});const v=[oe];n.flated||v.push(Be);let w="dark"==a?[c.darkAlgorithm]:[c.defaultAlgorithm];return F.jsxs(F.Fragment,{children:[u,F.jsx(x,{theme:{algorithm:w},children:F.jsx(h,{className:f.join(" "),style:p,children:F.jsxs(jn,{className:v.join(" "),style:m,children:[b,y,_,F.jsx(g,{onClick:e=>{t(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:l,classNames:{root:ie},items:e.menuData||[]}),F.jsx(gn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:Sn}=h,{useToken:Cn}=c,{useBreakpoint:Bn}=f;function In(e){const n=i([]);n.current=e.openerKeys||[];const[r,o]=t(e.openerKeys),{layoutConfig:a}=D(),{asideWidth:l}=a,s=e.headerHeight,{collapsed:d,setCollapsed:c}=Je(),{token:u}=Cn(),m=j(),p=Bn().xs?0:s,h=a.headerTransparent||a.headerBlur?Q(u.colorBorderSecondary,.6):u.colorBorderSecondary,x=a.hideBorder||0==p&&d?"0px":"1px solid "+h,f="headMenu"==a.layoutType||0==p?e.headerHeight:0,y="headMenu"==a.layoutType||0==p?"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:x,position:"fixed",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},b={overflow:"auto",flex:1};const v=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(dn,{collapsed:d,iconSize:v}):F.jsx(ln,{collapsed:d,iconSize:v,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&&(b={...b,overflow:"hidden"});let I=[me];I.push(se);let P=F.jsx(F.Fragment,{});switch(a.collapsedPosition){case"bottom":P=F.jsx(_n,{iconSize:v,style:{backgroundColor:B,width:`${s}px`,borderRight:x}});break;case"center":case"top":P=F.jsx(bn,{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(Sn,{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:b,children:F.jsx(g,{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(mn,{collapsed:d,iconSize:v}):F.jsx(F.Fragment,{}),P]})]})}const Pn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Pn(r)),e},{});function zn(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 Mn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=Ln(e);r.children=Mn(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})},Tn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),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 An(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:Hn(n.extra),icon:Hn(n.icon)};return o}(e,n);return n.children&&(r.children=An(r.path,n.children)),r})}function Wn(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=Wn(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}=c;function Xn(n){const{layoutConfig:r,themeSkin:o}=D(),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:Nn(n.menuData,i),p=m&&m?.length>0?m[0].children:[],h=Pn(m||[]),x=Mn(p),g=w(),f=k(),{pathname:y}=g,b=En(y),v=f[f.length-1];let j=[],B=[],I=[],P=[];if("leftMenu"==r.layoutType?(P=x||[],B=b):(I=x||[],j=b),r.splitMenu&&b.length>1){const[e,n]=On(b),{rootMenuItems:t,childrenMenuItems:o}=zn(x,b);"leftMenu"==r.layoutType?(P=t,I=o,B=e,j=n):(P=o,I=t,j=e,B=n)}const z=e.Children.toArray(n.children),M=z.find(n=>e.isValidElement(n)&&n.type.role===He),N=z.find(n=>e.isValidElement(n)&&n.type.role===$e),T=z.find(n=>e.isValidElement(n)&&n.type.role===Ve),L=z.find(n=>e.isValidElement(n)&&n.type.role===qe),E=z.find(n=>e.isValidElement(n)&&n.type.role===Ke),O=z.find(n=>e.isValidElement(n)&&n.type.role===Ge),A=z.find(n=>e.isValidElement(n)&&n.type.role===Ue),W=Ae,R=a(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:L,brandPopoverContent:E,toolbarExtraItems:A,flattenMenuMap:h,setCollapsed:d}),[s,u,n.layoutIcons,h]),H=S();Boolean(H.location);const $=h[v.pathname].label||"";return document.title=$,F.jsxs(F.Fragment,{children:[F.jsx(W,{value:R,children:F.jsxs(Y,{...n,style:c,children:[F.jsx(Y.Aside,{children:F.jsx(In,{headerHeight:u,header:M,footer:N,menuData:P,selectedKeys:B,openerKeys:B})}),F.jsx(Y.Header,{children:F.jsx(kn,{height:u,menuData:I,selectedKeys:j,title:$})}),F.jsx(Y.Content,{children:F.jsx(C,{context:{title:$,footer:T}})}),F.jsx(Y.Background,{children:o?o.backgroundContent:F.jsx(F.Fragment,{})})]})}),O]})}const Dn=e=>I(e),Vn=()=>Dn("#22222222"),qn=()=>Dn("#FFFFFF");function Kn(e){const n=Ye(),{layoutConfig:r}=D(),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=$e,Jn.role=He,Gn.role=Xe,Kn.role=De;const Yn="adminui-default-config",Zn=()=>{const e=_(),{layoutConfig:n}=D(),{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}=c,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=Ve,ar.displayName="SoltContent",ar.role=Ge;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]),d=e.locale||localStorage.getItem(lr)||i.locale||"en-US",u=e.menuData?An("/",[e.menuData]):[],[m,p]=t(()=>{if(i.skinName){const e=sr(i.skinName,s);return tr(i,e)}return i}),[h,g]=t(d),f=X,_=$;let v=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})(v),[v]),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:h,languages:j,themeSkin:S,themeSkinMap:s}),[j,h,j,s,S,m]),z=a(()=>({setLayoutConfig:I,setLocale:w}),[]),M=v[h]||v["en-US"],N=["he","ar","fa","ku"].filter(e=>h.startsWith(e)).length?"rtl":"ltr";let T="dark"===C?[c.darkAlgorithm]:[c.defaultAlgorithm],L=m.menuIconSize||14;const E=m.menuIconSize?.1*(L-10)+10:10;m.compact&&(T.push(c.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:Vn()[4]};const A={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(x,{theme:A,locale:M?.antdLocale,direction:N,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:F.jsx(y,{style:{height:"100%",width:"100%"},children:F.jsx(b,{locale:h,messages:M?.messages,children:F.jsx(Xn,{menuData:u,layoutIcons:e.layoutIcons,children:e.children})})})})})})}dr.AsideHeader=Jn,dr.AsideFooter=Un,dr.Footer=ir,dr.AvatarPopoverContent=hn,dr.BrandPopoverContent=cn,dr.SoltContent=ar,dr.HeaderToolbarExtra=fn;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
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,Z as FullScreenButton,Ee as LazyAvatar,Oe as LazyImage,mr as LazyPage,pr as PageLoading,hr as RouteLoading,tn as ToolbarIcon,Rn as buildRouteWithParams,Pn as flattenMenuData,Ln as getAntdMenuItem,Qn as getAppIntl,er as getBasicLayoutConfig,Vn as getBlackColors,Tn as getMenuLabel,nr as getStorageConfig,qn as getWhiteColors,Nn as localeMenuData,En as matchPathToKeys,Fn as pathToKeys,zn as separateMenuData,tr as setSkinConfig,rr as setStorageConfig,On as splitMenuKeys,An as transformMenuData,Wn as transformRouteToMenuData,Mn as transformToAntdMenuData,Zn as useAppIntl,nn as useAvatarPopover,rn as useBrandPopover,V as useConfigAction,D as useConfigState,Ze as useContainerOutlet,Ye as useMainCollapsed,q as useTheme};
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"),ur.configure({showSpinner:!1});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,Z as FullScreenButton,Ee as LazyAvatar,Oe as LazyImage,mr as LazyPage,pr as PageLoading,hr as RouteLoading,tn as ToolbarIcon,Rn as buildRouteWithParams,Pn as flattenMenuData,Ln as getAntdMenuItem,Qn as getAppIntl,er as getBasicLayoutConfig,Vn as getBlackColors,Tn as getMenuLabel,nr as getStorageConfig,qn as getWhiteColors,Nn as localeMenuData,En as matchPathToKeys,Fn as pathToKeys,zn as separateMenuData,tr as setSkinConfig,rr as setStorageConfig,On as splitMenuKeys,An as transformMenuData,Wn as transformRouteToMenuData,Mn as transformToAntdMenuData,Zn as useAppIntl,nn as useAvatarPopover,rn as useBrandPopover,V as useConfigAction,D as useConfigState,Ze as useContainerOutlet,Ye as useMainCollapsed,q as useTheme};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminui-dev/antd-layout",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "this project name is @adminui-dev/antd-layout",
5
5
  "keywords": [
6
6
  "layut",
@@ -46,6 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "tslib": "^2.6.0",
49
+ "nprogress": "^0.2.0",
49
50
  "@adminui-dev/layout":"1.0.9"
50
51
  },
51
52
  "devDependencies": {