Layout-feb2aa6d.js 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import{aM as wl,r as C,bI as So,k as _e,eb as je,bK as Po,d as R,aB as ue,J as f,o as k,q as Q,w as V,a as e,c as H,at as yl,Y as O,aR as Xe,aC as pe,f as n,aS as Qe,ec as Bo,O as Te,$ as Cl,aD as Ve,aE as yt,az as Re,aK as Ue,aU as He,aA as et,al as tt,aO as Ne,g,L as Ml,t as P,aI as lt,bY as he,ed as at,ai as Lo,ee as ot,ef as Ct,eg as zo,eh as Ao,dz as Oo,cz as Eo,bS as jo,e as nt,K as se,aw as kl,aP as te,bs as $e,b5 as Tl,du as Ro,v as Fe,a3 as Uo,F as oe,ei as Il,aJ as Ho,bw as No,cY as Fo,c3 as qo,ej as Do,aN as Wo,c1 as Vl,am as rt,aG as Go,aj as st,m as ie,a0 as Z,af as ut,n as qe,_ as ce,X as ne,N as Y,h as we,ek as De,d2 as Ko,U as Yo,p as $l,j as Sl,el as Pl,em as Zo,d$ as Jo,be as Bl,dT as Ll,dU as it,bz as Xo,B as Qo,en as ct,eo as Ce,u as Se,a1 as dt,bn as Me,c5 as zl,aZ as Mt,ep as Al,eq as en,dY as tn,V as ln,W as an,dW as on,b as nn,bf as rn,er as sn,Z as un,es as cn,P as pt,__tla as dn}from"./index-2eab2d23.js";import{E as pn,__tla as mn}from"./el-drawer-7ad3d607.js";import{c as Ol,l as El,h as jl}from"./color-6e929987.js";import{T as vn,_ as hn,__tla as fn}from"./LocaleDropdown.vue_vue_type_script_setup_true_lang-2060647b.js";import{_ as fe}from"./_plugin-vue_export-helper-1b428a4d.js";import{u as gn}from"./useWatermark-bbe83b57.js";import{b as bn,f as xn,c as _n}from"./tree-fd3a041e.js";import{u as kt,__tla as wn}from"./tagsView-fd4f3d23.js";import{E as Tt,a as It,b as Vt,__tla as yn}from"./el-dropdown-item-ca87bcd9.js";import{_ as Cn}from"./logo-469cb37c.js";import{_ as Mn,__tla as kn}from"./XButton-f05c5131.js";import{f as Tn,__tla as In}from"./formatTime-41155543.js";import{c as Vn,d as $n,__tla as Sn}from"./index-176c6c18.js";import{E as Pn,__tla as Bn}from"./el-avatar-399a18d6.js";import Ln,{__tla as zn}from"./ChangeAllInfo-f9fa889a.js";import{__tla as An}from"./useIcon-0c8123fd.js";import{__tla as On}from"./Dialog-c2716df6.js";import{__tla as En}from"./UserAvatar-4b0aaace.js";import{__tla as jn}from"./profile-b4eca64a.js";import{__tla as Rn}from"./useMessage-171aa63e.js";import{__tla as Un}from"./BasicInfo-9672641c.js";import{__tla as Hn}from"./index-44a34f60.js";import{__tla as Nn}from"./ResetPwd.vue_vue_type_script_setup_true_lang-3fd7417c.js";import{__tla as Fn}from"./InputPassword-37d35f11.js";import{__tla as qn}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-46e660ed.js";import{__tla as Dn}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-e264c7bf.js";let Rl,Wn=Promise.all([(()=>{try{return dn}catch{}})(),(()=>{try{return mn}catch{}})(),(()=>{try{return fn}catch{}})(),(()=>{try{return wn}catch{}})(),(()=>{try{return yn}catch{}})(),(()=>{try{return kn}catch{}})(),(()=>{try{return In}catch{}})(),(()=>{try{return Sn}catch{}})(),(()=>{try{return Bn}catch{}})(),(()=>{try{return zn}catch{}})(),(()=>{try{return An}catch{}})(),(()=>{try{return On}catch{}})(),(()=>{try{return En}catch{}})(),(()=>{try{return jn}catch{}})(),(()=>{try{return Rn}catch{}})(),(()=>{try{return Un}catch{}})(),(()=>{try{return Hn}catch{}})(),(()=>{try{return Nn}catch{}})(),(()=>{try{return Fn}catch{}})(),(()=>{try{return qn}catch{}})(),(()=>{try{return Dn}catch{}})()]).then(async()=>{const Ul={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Hl={click:t=>t instanceof MouseEvent},$t="ElBacktop",Nl=R({name:$t}),Fl=yt(Ve(R({...Nl,props:Ul,emits:Hl,setup(t,{emit:l}){const o=t,r=ue("backtop"),{handleClick:a,visible:d}=((i,c,v)=>{const p=wl(),m=wl(),x=C(!1),T=()=>{p.value&&(x.value=p.value.scrollTop>=i.visibilityHeight)},h=Po(T,300,!0);return So(m,"scroll",h),_e(()=>{var u;m.value=document,p.value=document.documentElement,i.target&&(p.value=(u=document.querySelector(i.target))!=null?u:void 0,p.value||je(v,`target does not exist: ${i.target}`),m.value=p.value),T()}),{visible:x,handleClick:u=>{var b;(b=p.value)==null||b.scrollTo({top:0,behavior:"smooth"}),c("click",u)}}})(o,l,$t),s=f(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(i,c)=>(k(),Q(Cl,{name:`${e(r).namespace.value}-fade-in`},{default:V(()=>[e(d)?(k(),H("div",{key:0,style:yl(e(s)),class:O(e(r).b()),onClick:c[0]||(c[0]=Xe((...v)=>e(a)&&e(a)(...v),["stop"]))},[pe(i.$slots,"default",{},()=>[n(e(Qe),{class:O(e(r).e("icon"))},{default:V(()=>[n(e(Bo))]),_:1},8,["class"])])],6)):Te("v-if",!0)]),_:3},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]])),St=Symbol("breadcrumbKey"),ql=Re({separator:{type:String,default:"/"},separatorIcon:{type:Ue}}),Dl=R({name:"ElBreadcrumb"}),Wl=R({...Dl,props:ql,setup(t){const l=t,o=ue("breadcrumb"),r=C();return He(St,l),_e(()=>{const a=r.value.querySelectorAll(`.${o.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,d)=>(k(),H("div",{ref_key:"breadcrumb",ref:r,class:O(e(o).b()),"aria-label":"Breadcrumb",role:"navigation"},[pe(a.$slots,"default")],2))}});var Gl=Ve(Wl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Kl=Re({to:{type:et([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Yl=R({name:"ElBreadcrumbItem"});var Pt=Ve(R({...Yl,props:Kl,setup(t){const l=t,o=tt(),r=Ne(St,void 0),a=ue("breadcrumb"),d=o.appContext.config.globalProperties.$router,s=C(),i=()=>{l.to&&d&&(l.replace?d.replace(l.to):d.push(l.to))};return(c,v)=>{var p,m;return k(),H("span",{class:O(e(a).e("item"))},[g("span",{ref_key:"link",ref:s,class:O([e(a).e("inner"),e(a).is("link",!!c.to)]),role:"link",onClick:i},[pe(c.$slots,"default")],2),(p=e(r))!=null&&p.separatorIcon?(k(),Q(e(Qe),{key:0,class:O(e(a).e("separator"))},{default:V(()=>[(k(),Q(Ml(e(r).separatorIcon)))]),_:1},8,["class"])):(k(),H("span",{key:1,class:O(e(a).e("separator")),role:"presentation"},P((m=e(r))==null?void 0:m.separator),3))],2)}}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Zl=yt(Gl,{BreadcrumbItem:Pt}),Jl=lt(Pt);let Xl=class{constructor(t,l){this.parent=t,this.domNode=l,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,l=>{l.addEventListener("keydown",o=>{let r=!1;switch(o.code){case he.down:this.gotoSubIndex(this.subIndex+1),r=!0;break;case he.up:this.gotoSubIndex(this.subIndex-1),r=!0;break;case he.tab:at(t,"mouseleave");break;case he.enter:case he.space:r=!0,o.currentTarget.click()}return r&&(o.preventDefault(),o.stopPropagation()),!1})})}},Ql=class{constructor(t,l){this.domNode=t,this.submenu=null,this.submenu=null,this.init(l)}init(t){this.domNode.setAttribute("tabindex","0");const l=this.domNode.querySelector(`.${t}-menu`);l&&(this.submenu=new Xl(this,l)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let l=!1;switch(t.code){case he.down:at(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),l=!0;break;case he.up:at(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),l=!0;break;case he.tab:at(t.currentTarget,"mouseleave");break;case he.enter:case he.space:l=!0,t.currentTarget.click()}l&&t.preventDefault()})}},ea=class{constructor(t,l){this.domNode=t,this.init(l)}init(t){const l=this.domNode.childNodes;Array.from(l).forEach(o=>{o.nodeType===1&&new Ql(o,t)})}};var ta=Ve(R({name:"ElMenuCollapseTransition",setup(){const t=ue("menu");return{listeners:{onBeforeEnter:l=>l.style.opacity="0.2",onEnter(l,o){ot(l,`${t.namespace.value}-opacity-transition`),l.style.opacity="1",o()},onAfterEnter(l){Ct(l,`${t.namespace.value}-opacity-transition`),l.style.opacity=""},onBeforeLeave(l){l.dataset||(l.dataset={}),zo(l,t.m("collapse"))?(Ct(l,t.m("collapse")),l.dataset.oldOverflow=l.style.overflow,l.dataset.scrollWidth=l.clientWidth.toString(),ot(l,t.m("collapse"))):(ot(l,t.m("collapse")),l.dataset.oldOverflow=l.style.overflow,l.dataset.scrollWidth=l.clientWidth.toString(),Ct(l,t.m("collapse"))),l.style.width=`${l.scrollWidth}px`,l.style.overflow="hidden"},onLeave(l){ot(l,"horizontal-collapse-transition"),l.style.width=`${l.dataset.scrollWidth}px`}}}}}),[["render",function(t,l,o,r,a,d){return k(),Q(Cl,Lo({mode:"out-in"},t.listeners),{default:V(()=>[pe(t.$slots,"default")]),_:3},16)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Bt(t,l){const o=f(()=>{let r=t.parent;const a=[l.value];for(;r.type.name!=="ElMenu";)r.props.index&&a.unshift(r.props.index),r=r.parent;return a});return{parentMenu:f(()=>{let r=t.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:o}}function la(t){return f(()=>{const l=t.backgroundColor;return l?new Ao(l).shade(20).toString():""})}const Lt=(t,l)=>{const o=ue("menu");return f(()=>o.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":la(t).value||"","active-color":t.activeTextColor||"",level:`${l}`}))},aa=Re({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Ue},expandOpenIcon:{type:Ue},collapseCloseIcon:{type:Ue},collapseOpenIcon:{type:Ue}}),We="ElSubMenu";var mt=R({name:We,props:aa,setup(t,{slots:l,expose:o}){Oo({from:"popper-append-to-body",replacement:"teleported",scope:We,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},f(()=>t.popperAppendToBody!==void 0));const r=tt(),{indexPath:a,parentMenu:d}=Bt(r,f(()=>t.index)),s=ue("menu"),i=ue("sub-menu"),c=Ne("rootMenu");c||je(We,"can not inject root menu");const v=Ne(`subMenu:${d.value.uid}`);v||je(We,"can not inject sub menu");const p=C({}),m=C({});let x;const T=C(!1),h=C(),u=C(null),b=f(()=>w.value==="horizontal"&&$.value?"bottom-start":"right-start"),M=f(()=>w.value==="horizontal"&&$.value||w.value==="vertical"&&!c.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?q.value?t.expandOpenIcon:t.expandCloseIcon:Eo:t.collapseCloseIcon&&t.collapseOpenIcon?q.value?t.collapseOpenIcon:t.collapseCloseIcon:jo),$=f(()=>v.level===0),N=f(()=>{var j;const E=(j=t.teleported)!=null?j:t.popperAppendToBody;return E===void 0?$.value:E}),K=f(()=>c.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),X=f(()=>w.value==="horizontal"&&$.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),q=f(()=>c.openedMenus.includes(t.index)),_=f(()=>{let j=!1;return Object.values(p.value).forEach(E=>{E.active&&(j=!0)}),Object.values(m.value).forEach(E=>{E.active&&(j=!0)}),j}),w=f(()=>c.props.mode),B=nt({index:t.index,indexPath:a,active:_}),U=Lt(c.props,v.level+1),W=j=>{var E,y,L;j||(L=(y=(E=u.value)==null?void 0:E.popperRef)==null?void 0:y.popperInstanceRef)==null||L.destroy()},le=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||t.disabled||c.handleSubMenuClick({index:t.index,indexPath:a.value,active:_.value})},ae=(j,E=t.showTimeout)=>{var y;j.type!=="focus"&&(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||t.disabled||(v.mouseInChild.value=!0,x==null||x(),{stop:x}=Il(()=>{c.openMenu(t.index,a.value)},E),N.value&&((y=d.value.vnode.el)==null||y.dispatchEvent(new MouseEvent("mouseenter")))))},ee=(j=!1)=>{var E,y;c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||(x==null||x(),v.mouseInChild.value=!1,{stop:x}=Il(()=>!T.value&&c.closeMenu(t.index,a.value),t.hideTimeout),N.value&&j&&((E=r.parent)==null?void 0:E.type.name)==="ElSubMenu"&&((y=v.handleMouseleave)==null||y.call(v,!0)))};se(()=>c.props.collapse,j=>W(!!j));{const j=y=>{m.value[y.index]=y},E=y=>{delete m.value[y.index]};He(`subMenu:${r.uid}`,{addSubMenu:j,removeSubMenu:E,handleMouseleave:ee,mouseInChild:T,level:v.level+1})}return o({opened:q}),_e(()=>{c.addSubMenu(B),v.addSubMenu(B)}),kl(()=>{v.removeSubMenu(B),c.removeSubMenu(B)}),()=>{var j;const E=[(j=l.title)==null?void 0:j.call(l),te(Qe,{class:i.e("icon-arrow"),style:{transform:q.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>$e(M.value)?te(r.appContext.components[M.value]):te(M.value)})],y=c.isMenuPopup?te(Tl,{ref:u,visible:q.value,effect:"light",pure:!0,offset:t.popperOffset,showArrow:!1,persistent:!0,popperClass:t.popperClass,placement:b.value,teleported:N.value,fallbackPlacements:X.value,transition:K.value,gpuAcceleration:!1},{content:()=>{var L;return te("div",{class:[s.m(w.value),s.m("popup-container"),t.popperClass],onMouseenter:D=>ae(D,100),onMouseleave:()=>ee(!0),onFocus:D=>ae(D,100)},[te("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${b.value}`)],style:U.value},[(L=l.default)==null?void 0:L.call(l)])])},default:()=>te("div",{class:i.e("title"),onClick:le},E)}):te(oe,{},[te("div",{class:i.e("title"),ref:h,onClick:le},E),te(Ro,{},{default:()=>{var L;return Fe(te("ul",{role:"menu",class:[s.b(),s.m("inline")],style:U.value},[(L=l.default)==null?void 0:L.call(l)]),[[Uo,q.value]])}})]);return te("li",{class:[i.b(),i.is("active",_.value),i.is("opened",q.value),i.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:q.value,onMouseenter:ae,onMouseleave:()=>ee(!0),onFocus:ae},[y])}}});const oa=Re({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:et(Array),default:()=>Ho([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),vt=t=>Array.isArray(t)&&t.every(l=>$e(l));var na=R({name:"ElMenu",props:oa,emits:{close:(t,l)=>$e(t)&&vt(l),open:(t,l)=>$e(t)&&vt(l),select:(t,l,o,r)=>$e(t)&&vt(l)&&Wo(o)&&(r===void 0||r instanceof Promise)},setup(t,{emit:l,slots:o,expose:r}){const a=tt(),d=a.appContext.config.globalProperties.$router,s=C(),i=ue("menu"),c=ue("sub-menu"),v=C(-1),p=C(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),m=C(t.defaultActive),x=C({}),T=C({}),h=f(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),u=(_,w)=>{p.value.includes(_)||(t.uniqueOpened&&(p.value=p.value.filter(B=>w.includes(B))),p.value.push(_),l("open",_,w))},b=_=>{const w=p.value.indexOf(_);w!==-1&&p.value.splice(w,1)},M=(_,w)=>{b(_),l("close",_,w)},$=({index:_,indexPath:w})=>{p.value.includes(_)?M(_,w):u(_,w)},N=_=>{(t.mode==="horizontal"||t.collapse)&&(p.value=[]);const{index:w,indexPath:B}=_;if(!Vl(w)&&!Vl(B))if(t.router&&d){const U=_.route||w,W=d.push(U).then(le=>(le||(m.value=w),le));l("select",w,B,{index:w,indexPath:B,route:U},W)}else m.value=w,l("select",w,B,{index:w,indexPath:B})};let K=!0;const X=()=>{const _=()=>{v.value=-1,rt(()=>{v.value=(()=>{var w,B;if(!s.value)return-1;const U=Array.from((B=(w=s.value)==null?void 0:w.childNodes)!=null?B:[]).filter(E=>E.nodeName!=="#comment"&&(E.nodeName!=="#text"||E.nodeValue)),W=Number.parseInt(getComputedStyle(s.value).paddingLeft,10),le=Number.parseInt(getComputedStyle(s.value).paddingRight,10),ae=s.value.clientWidth-W-le;let ee=0,j=0;return U.forEach((E,y)=>{ee+=E.offsetWidth||0,ee<=ae-64&&(j=y+1)}),j===U.length?-1:j})()})};K?_():((w,B=33.34)=>{let U;return()=>{U&&clearTimeout(U),U=setTimeout(()=>{w()},B)}})(_)(),K=!1};let q;se(()=>t.defaultActive,_=>{x.value[_]||(m.value=""),(w=>{const B=x.value,U=B[w]||m.value&&B[m.value]||B[t.defaultActive];m.value=U?U.index:w})(_)}),se(()=>t.collapse,_=>{_&&(p.value=[])}),se(x.value,()=>{const _=m.value&&x.value[m.value];!_||t.mode==="horizontal"||t.collapse||_.indexPath.forEach(w=>{const B=T.value[w];B&&u(w,B.indexPath)})}),No(()=>{t.mode==="horizontal"&&t.ellipsis?q=Fo(s,X).stop:q==null||q()});{const _=W=>{T.value[W.index]=W},w=W=>{delete T.value[W.index]};He("rootMenu",nt({props:t,openedMenus:p,items:x,subMenus:T,activeIndex:m,isMenuPopup:h,addMenuItem:W=>{x.value[W.index]=W},removeMenuItem:W=>{delete x.value[W.index]},addSubMenu:_,removeSubMenu:w,openMenu:u,closeMenu:M,handleMenuItemClick:N,handleSubMenuClick:$})),He(`subMenu:${a.uid}`,{addSubMenu:_,removeSubMenu:w,mouseInChild:C(!1),level:0})}return _e(()=>{t.mode==="horizontal"&&new ea(a.vnode.el,i.namespace.value)}),r({open:_=>{const{indexPath:w}=T.value[_];w.forEach(B=>u(B,w))},close:b,handleResize:X}),()=>{var _,w;let B=(w=(_=o.default)==null?void 0:_.call(o))!=null?w:[];const U=[];if(t.mode==="horizontal"&&s.value){const ae=qo(B),ee=v.value===-1?ae:ae.slice(0,v.value),j=v.value===-1?[]:ae.slice(v.value);j!=null&&j.length&&t.ellipsis&&(B=ee,U.push(te(mt,{index:"sub-menu-more",class:c.e("hide-arrow")},{title:()=>te(Qe,{class:c.e("icon-more")},{default:()=>te(Do)}),default:()=>j})))}const W=Lt(t,0),le=te("ul",{key:String(t.collapse),role:"menubar",ref:s,style:W.value,class:{[i.b()]:!0,[i.m(t.mode)]:!0,[i.m("collapse")]:t.collapse}},[...B,...U]);return t.collapseTransition&&t.mode==="vertical"?te(ta,()=>le):le}}});const ra=Re({index:{type:et([String,null]),default:null},route:{type:et([String,Object])},disabled:Boolean}),ht="ElMenuItem";var zt=Ve(R({name:ht,components:{ElTooltip:Tl},props:ra,emits:{click:t=>$e(t.index)&&Array.isArray(t.indexPath)},setup(t,{emit:l}){const o=tt(),r=Ne("rootMenu"),a=ue("menu"),d=ue("menu-item");r||je(ht,"can not inject root menu");const{parentMenu:s,indexPath:i}=Bt(o,Go(t,"index")),c=Ne(`subMenu:${s.value.uid}`);c||je(ht,"can not inject sub menu");const v=f(()=>t.index===r.activeIndex),p=nt({index:t.index,indexPath:i,active:v});return _e(()=>{c.addSubMenu(p),r.addMenuItem(p)}),kl(()=>{c.removeSubMenu(p),r.removeMenuItem(p)}),{parentMenu:s,rootMenu:r,active:v,nsMenu:a,nsMenuItem:d,handleClick:()=>{t.disabled||(r.handleMenuItemClick({index:t.index,indexPath:i.value,route:t.route}),l("click",p))}}}}),[["render",function(t,l,o,r,a,d){const s=st("el-tooltip");return k(),H("li",{class:O([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:l[0]||(l[0]=(...i)=>t.handleClick&&t.handleClick(...i))},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(k(),Q(s,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:V(()=>[pe(t.$slots,"title")]),default:V(()=>[g("div",{class:O(t.nsMenu.be("tooltip","trigger"))},[pe(t.$slots,"default")],2)]),_:3},8,["effect"])):(k(),H(oe,{key:1},[pe(t.$slots,"default"),pe(t.$slots,"title")],64))],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]),At=Ve(R({name:"ElMenuItemGroup",props:{title:String},setup:()=>({ns:ue("menu-item-group")})}),[["render",function(t,l,o,r,a,d){return k(),H("li",{class:O(t.ns.b())},[g("div",{class:O(t.ns.e("title"))},[t.$slots.title?pe(t.$slots,"title",{key:1}):(k(),H(oe,{key:0},[ie(P(t.title),1)],64))],2),g("ul",null,[pe(t.$slots,"default")])],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const sa=yt(na,{MenuItem:zt,MenuItemGroup:At,SubMenu:mt}),ua=lt(zt);lt(At);const ia=lt(mt),ca=R({name:"BackTop",__name:"Backtop",setup(t){const{getPrefixCls:l,variables:o}=Z(),r=l("backtop");return(a,d)=>(k(),Q(e(Fl),{class:O(`${e(r)}-backtop`),target:`.${e(o).namespace}-layout-content-scrollbar .${e(o).elNamespace}-scrollbar__wrap`},null,8,["class","target"]))}}),da=["onClick"],pa=R({name:"ColorRadioPicker",__name:"ColorRadioPicker",props:{schema:{type:Array,default:()=>[]},modelValue:ut.string.def("")},emits:["update:modelValue","change"],setup(t,{emit:l}){const{getPrefixCls:o}=Z(),r=o("color-radio-picker"),a=t,d=l,s=C(a.modelValue);return se(()=>a.modelValue,i=>{i!==e(s)&&(s.value=i)}),se(()=>s.value,i=>{d("update:modelValue",i),d("change",i)}),(i,c)=>{const v=ce;return k(),H("div",{class:O([e(r),"flex flex-wrap space-x-14px"])},[(k(!0),H(oe,null,qe(t.schema,(p,m)=>(k(),H("span",{key:`radio-${m}`,class:O([{"is-active":e(s)===p},"mb-5px h-20px w-20px cursor-pointer border-2px border-gray-300 rounded-2px border-solid text-center leading-20px"]),style:yl({background:p}),onClick:x=>s.value=p},[e(s)===p?(k(),Q(v,{key:0,size:16,color:"#fff",icon:"ep:check"})):Te("",!0)],14,da))),128))],2)}}}),ft=fe(pa,[["__scopeId","data-v-61582eab"]]),ma={class:"flex items-center justify-between"},va={class:"text-14px"},ha={class:"flex items-center justify-between"},fa={class:"text-14px"},ga={class:"flex items-center justify-between"},ba={class:"text-14px"},xa={class:"flex items-center justify-between"},_a={class:"text-14px"},wa={class:"flex items-center justify-between"},ya={class:"text-14px"},Ca={class:"flex items-center justify-between"},Ma={class:"text-14px"},ka={class:"flex items-center justify-between"},Ta={class:"text-14px"},Ia={class:"flex items-center justify-between"},Va={class:"text-14px"},$a={class:"flex items-center justify-between"},Sa={class:"text-14px"},Pa={class:"flex items-center justify-between"},Ba={class:"text-14px"},La={class:"flex items-center justify-between"},za={class:"text-14px"},Aa={class:"flex items-center justify-between"},Oa={class:"text-14px"},Ea={class:"flex items-center justify-between"},ja={class:"text-14px"},Ra={class:"flex items-center justify-between"},Ua={class:"text-14px"},Ha={class:"flex items-center justify-between"},Na={class:"text-14px"},Fa={class:"flex items-center justify-between"},qa={class:"text-14px"},Da=R({name:"InterfaceDisplay",__name:"InterfaceDisplay",setup(t){const{t:l}=we(),{getPrefixCls:o}=Z();gn();const r=o("interface-display"),a=ne(),d=C(),s=C(a.getBreadcrumb),i=I=>{a.setBreadcrumb(I)},c=C(a.getBreadcrumbIcon),v=I=>{a.setBreadcrumbIcon(I)},p=C(a.getHamburger),m=I=>{a.setHamburger(I)},x=C(a.getScreenfull),T=I=>{a.setScreenfull(I)},h=C(a.getSize),u=I=>{a.setSize(I)},b=C(a.getLocale),M=I=>{a.setLocale(I)},$=C(a.getMessage),N=I=>{a.setMessage(I)},K=C(a.getTagsView),X=I=>{De("--tags-view-height",I?"35px":"0px"),a.setTagsView(I)},q=C(a.getTagsViewIcon),_=I=>{a.setTagsViewIcon(I)},w=C(a.getLogo),B=I=>{a.setLogo(I)},U=C(a.getUniqueOpened),W=I=>{a.setUniqueOpened(I)},le=C(a.getFixedHeader),ae=I=>{a.setFixedHeader(I)},ee=C(a.getFooter),j=I=>{a.setFooter(I)},E=C(a.getGreyMode),y=I=>{a.setGreyMode(I)},L=C(a.getFixedMenu),D=I=>{a.setFixedMenu(I)},re=f(()=>a.getLayout);return se(()=>re.value,I=>{I==="top"&&a.setCollapse(!1)}),(I,S)=>{const F=Ko,ke=Yo;return k(),H("div",{class:O(e(r))},[g("div",ma,[g("span",va,P(e(l)("setting.breadcrumb")),1),n(F,{modelValue:e(s),"onUpdate:modelValue":S[0]||(S[0]=z=>Y(s)?s.value=z:null),onChange:i},null,8,["modelValue"])]),g("div",ha,[g("span",fa,P(e(l)("setting.breadcrumbIcon")),1),n(F,{modelValue:e(c),"onUpdate:modelValue":S[1]||(S[1]=z=>Y(c)?c.value=z:null),onChange:v},null,8,["modelValue"])]),g("div",ga,[g("span",ba,P(e(l)("setting.hamburgerIcon")),1),n(F,{modelValue:e(p),"onUpdate:modelValue":S[2]||(S[2]=z=>Y(p)?p.value=z:null),onChange:m},null,8,["modelValue"])]),g("div",xa,[g("span",_a,P(e(l)("setting.screenfullIcon")),1),n(F,{modelValue:e(x),"onUpdate:modelValue":S[3]||(S[3]=z=>Y(x)?x.value=z:null),onChange:T},null,8,["modelValue"])]),g("div",wa,[g("span",ya,P(e(l)("setting.sizeIcon")),1),n(F,{modelValue:e(h),"onUpdate:modelValue":S[4]||(S[4]=z=>Y(h)?h.value=z:null),onChange:u},null,8,["modelValue"])]),g("div",Ca,[g("span",Ma,P(e(l)("setting.localeIcon")),1),n(F,{modelValue:e(b),"onUpdate:modelValue":S[5]||(S[5]=z=>Y(b)?b.value=z:null),onChange:M},null,8,["modelValue"])]),g("div",ka,[g("span",Ta,P(e(l)("setting.messageIcon")),1),n(F,{modelValue:e($),"onUpdate:modelValue":S[6]||(S[6]=z=>Y($)?$.value=z:null),onChange:N},null,8,["modelValue"])]),g("div",Ia,[g("span",Va,P(e(l)("setting.tagsView")),1),n(F,{modelValue:e(K),"onUpdate:modelValue":S[7]||(S[7]=z=>Y(K)?K.value=z:null),onChange:X},null,8,["modelValue"])]),g("div",$a,[g("span",Sa,P(e(l)("setting.tagsViewIcon")),1),n(F,{modelValue:e(q),"onUpdate:modelValue":S[8]||(S[8]=z=>Y(q)?q.value=z:null),onChange:_},null,8,["modelValue"])]),g("div",Pa,[g("span",Ba,P(e(l)("setting.logo")),1),n(F,{modelValue:e(w),"onUpdate:modelValue":S[9]||(S[9]=z=>Y(w)?w.value=z:null),onChange:B},null,8,["modelValue"])]),g("div",La,[g("span",za,P(e(l)("setting.uniqueOpened")),1),n(F,{modelValue:e(U),"onUpdate:modelValue":S[10]||(S[10]=z=>Y(U)?U.value=z:null),onChange:W},null,8,["modelValue"])]),g("div",Aa,[g("span",Oa,P(e(l)("setting.fixedHeader")),1),n(F,{modelValue:e(le),"onUpdate:modelValue":S[11]||(S[11]=z=>Y(le)?le.value=z:null),onChange:ae},null,8,["modelValue"])]),g("div",Ea,[g("span",ja,P(e(l)("setting.footer")),1),n(F,{modelValue:e(ee),"onUpdate:modelValue":S[12]||(S[12]=z=>Y(ee)?ee.value=z:null),onChange:j},null,8,["modelValue"])]),g("div",Ra,[g("span",Ua,P(e(l)("setting.greyMode")),1),n(F,{modelValue:e(E),"onUpdate:modelValue":S[13]||(S[13]=z=>Y(E)?E.value=z:null),onChange:y},null,8,["modelValue"])]),g("div",Ha,[g("span",Na,P(e(l)("setting.fixedMenu")),1),n(F,{modelValue:e(L),"onUpdate:modelValue":S[14]||(S[14]=z=>Y(L)?L.value=z:null),onChange:D},null,8,["modelValue"])]),g("div",Fa,[g("span",qa,P(e(l)("watermark.watermark")),1),n(ke,{modelValue:e(d),"onUpdate:modelValue":S[15]||(S[15]=z=>Y(d)?d.value=z:null),class:"right-1 w-20",onChange:S[16]||(S[16]=z=>{})},null,8,["modelValue"])])],2)}}}),Wa=[(t=>($l("data-v-d0ae4a8f"),t=t(),Sl(),t))(()=>g("div",{class:"absolute left-[10%] top-0 h-full w-[33%] bg-gray-200"},null,-1))],Ga=R({name:"LayoutRadioPicker",__name:"LayoutRadioPicker",setup(t){const{getPrefixCls:l}=Z(),o=l("layout-radio-picker"),r=ne(),a=f(()=>r.getLayout);return(d,s)=>(k(),H("div",{class:O([e(o),"flex flex-wrap space-x-14px"])},[g("div",{class:O([`${e(o)}__classic`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(a)==="classic"}]),onClick:s[0]||(s[0]=i=>e(r).setLayout("classic"))},null,2),g("div",{class:O([`${e(o)}__top-left`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(a)==="topLeft"}]),onClick:s[1]||(s[1]=i=>e(r).setLayout("topLeft"))},null,2),g("div",{class:O([`${e(o)}__top`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(a)==="top"}]),onClick:s[2]||(s[2]=i=>e(r).setLayout("top"))},null,2),g("div",{class:O([`${e(o)}__cut-menu`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(a)==="cutMenu"}]),onClick:s[3]||(s[3]=i=>e(r).setLayout("cutMenu"))},Wa,2)],2))}}),Ka=fe(Ga,[["__scopeId","data-v-d0ae4a8f"]]),Ya={class:"text-16px font-700"},Za={class:"text-center"},Ja={class:"mt-5px"},Xa=R({name:"Setting",__name:"Setting",setup(t){const{t:l}=we(),o=ne(),{getPrefixCls:r}=Z();r("setting");const a=f(()=>o.getLayout),d=C(!1),s=C(o.getTheme.elColorPrimary),i=h=>{De("--el-color-primary",h),o.setTheme({elColorPrimary:h});const u=Pl("--left-menu-bg-color",document.documentElement);m(Zo(e(u)))},c=C(o.getTheme.topHeaderBgColor||""),v=h=>{const u=Ol(h),b=u?"#fff":"inherit",M=u?El(h,6):"#f6f6f6",$=u?h:"#eee";De("--top-header-bg-color",h),De("--top-header-text-color",b),De("--top-header-hover-color",M),o.setTheme({topHeaderBgColor:h,topHeaderTextColor:b,topHeaderHoverColor:M,topToolBorderColor:$}),e(a)==="top"&&m(h)},p=C(o.getTheme.leftMenuBgColor||""),m=h=>{const u=Pl("--el-color-primary",document.documentElement),b=Ol(h),M={leftMenuBorderColor:b?"inherit":"#eee",leftMenuBgColor:h,leftMenuBgLightColor:b?El(h,6):h,leftMenuBgActiveColor:b?"var(--el-color-primary)":jl(e(u),.1),leftMenuCollapseBgActiveColor:b?"var(--el-color-primary)":jl(e(u),.1),leftMenuTextColor:b?"#bfcbd9":"#333",leftMenuTextActiveColor:b?"#fff":"var(--el-color-primary)",logoTitleTextColor:b?"#fff":"inherit",logoBorderColor:b?h:"#eee"};o.setTheme(M),o.setCssVarTheme()};a.value!=="top"||o.getIsDark||(c.value="#fff",v("#fff")),se(()=>a.value,h=>{h!=="top"||o.getIsDark?m(e(p)):(c.value="#fff",v("#fff"))});const x=async()=>{const{copy:h,copied:u,isSupported:b}=Jo({source:`
  2. // \u9762\u5305\u5C51
  3. breadcrumb: ${o.getBreadcrumb},
  4. // \u9762\u5305\u5C51\u56FE\u6807
  5. breadcrumbIcon: ${o.getBreadcrumbIcon},
  6. // \u6298\u53E0\u56FE\u6807
  7. hamburger: ${o.getHamburger},
  8. // \u5168\u5C4F\u56FE\u6807
  9. screenfull: ${o.getScreenfull},
  10. // \u5C3A\u5BF8\u56FE\u6807
  11. size: ${o.getSize},
  12. // \u591A\u8BED\u8A00\u56FE\u6807
  13. locale: ${o.getLocale},
  14. // \u6D88\u606F\u56FE\u6807
  15. message: ${o.getMessage},
  16. // \u6807\u7B7E\u9875
  17. tagsView: ${o.getTagsView},
  18. // \u6807\u7B7E\u9875\u56FE\u6807
  19. getTagsViewIcon: ${o.getTagsViewIcon},
  20. // logo
  21. logo: ${o.getLogo},
  22. // \u83DC\u5355\u624B\u98CE\u7434
  23. uniqueOpened: ${o.getUniqueOpened},
  24. // \u56FA\u5B9Aheader
  25. fixedHeader: ${o.getFixedHeader},
  26. // \u9875\u811A
  27. footer: ${o.getFooter},
  28. // \u7070\u8272\u6A21\u5F0F
  29. greyMode: ${o.getGreyMode},
  30. // layout\u5E03\u5C40
  31. layout: '${o.getLayout}',
  32. // \u6697\u9ED1\u6A21\u5F0F
  33. isDark: ${o.getIsDark},
  34. // \u7EC4\u4EF6\u5C3A\u5BF8
  35. currentSize: '${o.getCurrentSize}',
  36. // \u4E3B\u9898\u76F8\u5173
  37. theme: {
  38. // \u4E3B\u9898\u8272
  39. elColorPrimary: '${o.getTheme.elColorPrimary}',
  40. // \u5DE6\u4FA7\u83DC\u5355\u8FB9\u6846\u989C\u8272
  41. leftMenuBorderColor: '${o.getTheme.leftMenuBorderColor}',
  42. // \u5DE6\u4FA7\u83DC\u5355\u80CC\u666F\u989C\u8272
  43. leftMenuBgColor: '${o.getTheme.leftMenuBgColor}',
  44. // \u5DE6\u4FA7\u83DC\u5355\u6D45\u8272\u80CC\u666F\u989C\u8272
  45. leftMenuBgLightColor: '${o.getTheme.leftMenuBgLightColor}',
  46. // \u5DE6\u4FA7\u83DC\u5355\u9009\u4E2D\u80CC\u666F\u989C\u8272
  47. leftMenuBgActiveColor: '${o.getTheme.leftMenuBgActiveColor}',
  48. // \u5DE6\u4FA7\u83DC\u5355\u6536\u8D77\u9009\u4E2D\u80CC\u666F\u989C\u8272
  49. leftMenuCollapseBgActiveColor: '${o.getTheme.leftMenuCollapseBgActiveColor}',
  50. // \u5DE6\u4FA7\u83DC\u5355\u5B57\u4F53\u989C\u8272
  51. leftMenuTextColor: '${o.getTheme.leftMenuTextColor}',
  52. // \u5DE6\u4FA7\u83DC\u5355\u9009\u4E2D\u5B57\u4F53\u989C\u8272
  53. leftMenuTextActiveColor: '${o.getTheme.leftMenuTextActiveColor}',
  54. // logo\u5B57\u4F53\u989C\u8272
  55. logoTitleTextColor: '${o.getTheme.logoTitleTextColor}',
  56. // logo\u8FB9\u6846\u989C\u8272
  57. logoBorderColor: '${o.getTheme.logoBorderColor}',
  58. // \u5934\u90E8\u80CC\u666F\u989C\u8272
  59. topHeaderBgColor: '${o.getTheme.topHeaderBgColor}',
  60. // \u5934\u90E8\u5B57\u4F53\u989C\u8272
  61. topHeaderTextColor: '${o.getTheme.topHeaderTextColor}',
  62. // \u5934\u90E8\u60AC\u505C\u989C\u8272
  63. topHeaderHoverColor: '${o.getTheme.topHeaderHoverColor}',
  64. // \u5934\u90E8\u8FB9\u6846\u989C\u8272
  65. topToolBorderColor: '${o.getTheme.topToolBorderColor}'
  66. }
  67. `});b?(await h(),e(u)&&Bl.success(l("setting.copySuccess"))):Bl.error(l("setting.copyFailed"))},T=()=>{const{wsCache:h}=Ll();h.delete(it.LAYOUT),h.delete(it.THEME),h.delete(it.IS_DARK),window.location.reload()};return(h,u)=>{const b=Xo,M=Qo,$=pn;return k(),Q($,{modelValue:e(d),"onUpdate:modelValue":u[3]||(u[3]=N=>Y(d)?d.value=N:null),"z-index":4e3,direction:"rtl",size:"350px"},{header:V(()=>[g("span",Ya,P(e(l)("setting.projectSetting")),1)]),default:V(()=>[g("div",Za,[n(b,null,{default:V(()=>[ie(P(e(l)("setting.theme")),1)]),_:1}),n(e(vn)),n(b,null,{default:V(()=>[ie(P(e(l)("setting.layout")),1)]),_:1}),n(Ka),n(b,null,{default:V(()=>[ie(P(e(l)("setting.systemTheme")),1)]),_:1}),n(ft,{modelValue:e(s),"onUpdate:modelValue":u[0]||(u[0]=N=>Y(s)?s.value=N:null),schema:["#409eff","#009688","#536dfe","#ff5c93","#ee4f12","#0096c7","#9c27b0","#ff9800"],onChange:i},null,8,["modelValue"]),n(b,null,{default:V(()=>[ie(P(e(l)("setting.headerTheme")),1)]),_:1}),n(ft,{modelValue:e(c),"onUpdate:modelValue":u[1]||(u[1]=N=>Y(c)?c.value=N:null),schema:["#fff","#151515","#5172dc","#e74c3c","#24292e","#394664","#009688","#383f45"],onChange:v},null,8,["modelValue"]),e(a)!=="top"?(k(),H(oe,{key:0},[n(b,null,{default:V(()=>[ie(P(e(l)("setting.menuTheme")),1)]),_:1}),n(ft,{modelValue:e(p),"onUpdate:modelValue":u[2]||(u[2]=N=>Y(p)?p.value=N:null),schema:["#fff","#001529","#212121","#273352","#191b24","#383f45","#001628","#344058"],onChange:m},null,8,["modelValue"])],64)):Te("",!0)]),n(b,null,{default:V(()=>[ie(P(e(l)("setting.interfaceDisplay")),1)]),_:1}),n(Da),n(b),g("div",null,[n(M,{class:"w-full",type:"primary",onClick:x},{default:V(()=>[ie(P(e(l)("setting.copy")),1)]),_:1})]),g("div",Ja,[n(M,{class:"w-full",type:"danger",onClick:T},{default:V(()=>[ie(P(e(l)("setting.clearAndReset")),1)]),_:1})])]),_:1},8,["modelValue"])}}}),Qa=fe(Xa,[["__scopeId","data-v-28fe2d9d"]]),eo=(t,l)=>(bn(t,o=>o.path===l)||[]).map(o=>o.path),to=t=>{const l=(o,r="/")=>o.map(a=>{const d=a.meta??{};if(!d.hidden){const{oneShowingChild:s,onlyOneChild:i}=((p=[],m)=>{const x=C(),T=p.filter(h=>!(h.meta??{}).hidden&&(x.value=h,!0));return T.length===1?{oneShowingChild:!0,onlyOneChild:e(x)}:T.length?{oneShowingChild:!1,onlyOneChild:e(x)}:(x.value={...m,path:"",noShowingChildren:!0},{oneShowingChild:!0,onlyOneChild:e(x)})})(a.children,a),c=ct(a.path)?a.path:Ce(r,a.path),{renderMenuTitle:v}={renderMenuTitle:p=>{const{t:m}=we(),{title:x="Please set title",icon:T}=p;return T?n(oe,null,[n(ce,{icon:p.icon},null),n("span",{class:"v-menu__title"},[m(x)])]):n("span",{class:"v-menu__title"},[m(x)])}};if(!s||i!=null&&i.children&&!(i!=null&&i.noShowingChildren)||d!=null&&d.alwaysShow){const{getPrefixCls:p}=Z(),m=p("menu-popper");return n(ia,{index:c,popperClass:t==="vertical"?`${m}--vertical`:`${m}--horizontal`},{title:()=>v(d),default:()=>l(a.children,c)})}return n(ua,{index:i?Ce(c,i.path):c},{default:()=>v(i?i==null?void 0:i.meta:d)})}});return{renderMenuItem:l}},{getPrefixCls:lo}=Z(),gt=lo("menu"),ao=R({name:"Menu",props:{menuSelect:{type:Function,default:void 0}},setup(t){const l=ne(),o=f(()=>l.getLayout),{push:r,currentRoute:a}=Se(),d=dt(),s=f(()=>["classic","topLeft","cutMenu"].includes(e(o))?"vertical":"horizontal"),i=f(()=>e(o)==="cutMenu"?d.getMenuTabRouters:d.getRouters),c=f(()=>l.getCollapse),v=f(()=>l.getUniqueOpened),p=f(()=>{const{meta:h,path:u}=e(a);return h.activeMenu?h.activeMenu:u}),m=h=>{t.menuSelect&&t.menuSelect(h),ct(h)?window.open(h):r(h)},x=()=>{if(e(o)==="top")return T();{let u;return n(Me,null,typeof(h=u=T())=="function"||Object.prototype.toString.call(h)==="[object Object]"&&!zl(h)?u:{default:()=>[u]})}var h},T=()=>n(sa,{defaultActive:e(p),mode:e(s),collapse:e(o)!=="top"&&e(o)!=="cutMenu"&&e(c),uniqueOpened:e(o)!=="top"&&e(v),backgroundColor:"var(--left-menu-bg-color)",textColor:"var(--left-menu-text-color)",activeTextColor:"var(--left-menu-text-active-color)",onSelect:m},{default:()=>{const{renderMenuItem:h}=to(e(s));return h(e(i))}});return()=>n("div",{id:gt,class:[`${gt} ${gt}__${e(s)}`,"h-[100%] overflow-hidden flex-col bg-[var(--left-menu-bg-color)]",{"w-[var(--left-menu-min-width)]":e(c)&&e(o)!=="cutMenu","w-[var(--left-menu-max-width)]":!e(c)&&e(o)!=="cutMenu"}]},[x()])}}),Ge=fe(ao,[["__scopeId","data-v-545cecd6"]]),Ke=nt({}),Ot=(t,l)=>{const o=[];for(const r of t){let a=null;const d=r.meta??{};if(!d.hidden||d.canTo){const s=eo(l,r.path),i=ct(r.path)?r.path:s.join("/");a=Mt(r),a.path=i,r.children&&a&&(a.children=Ot(r.children,l)),a&&o.push(a),s.length&&Reflect.has(Ke,s[0])&&Ke[s[0]].push(i)}}return o},{getPrefixCls:oo,variables:no}=Z(),bt=oo("tab-menu"),ro=R({name:"TabMenu",setup(){const{push:t,currentRoute:l}=Se(),{t:o}=we(),r=ne(),a=f(()=>r.getCollapse),d=f(()=>r.getFixedMenu),s=dt(),i=f(()=>s.getRouters),c=f(()=>e(i).filter(u=>{var b;return!((b=u==null?void 0:u.meta)!=null&&b.hidden)})),v=()=>{r.setCollapse(!e(a))};_e(()=>{var u;if(e(d)){const b=`/${e(l).path.split("/")[1]}`,M=(u=e(c).find($=>{var N,K,X;return(((N=$.meta)==null?void 0:N.alwaysShow)||((K=$==null?void 0:$.children)==null?void 0:K.length)&&((X=$==null?void 0:$.children)==null?void 0:X.length)>1)&&$.path===b}))==null?void 0:u.children;x.value=b,M&&s.setMenuTabRouters(Mt(M).map($=>($.path=Ce(e(x),$.path),$)))}}),se(()=>i.value,u=>{(b=>{for(const M of b){const $=M.meta??{};$!=null&&$.hidden||(Ke[M.path]=[])}})(u),Ot(u,u)},{immediate:!0,deep:!0});const p=C(!0);se(()=>a.value,u=>{u?p.value=!u:setTimeout(()=>{p.value=!u},200)});const m=C(!!e(d)),x=C(""),T=u=>{const{path:b}=e(l);return!!Ke[u].includes(b)},h=()=>{e(m)&&!e(d)&&(m.value=!1)};return()=>n("div",{id:`${no.namespace}-menu`,class:[bt,"relative bg-[var(--left-menu-bg-color)] top-1px z-3000 layout-border__right",{"w-[var(--tab-menu-max-width)]":!e(a),"w-[var(--tab-menu-min-width)]":e(a)}],onMouseleave:h},[n(Me,{class:"!h-[calc(100%-var(--tab-menu-collapse-height)-1px)]"},{default:()=>[n("div",null,{default:()=>e(c).map(u=>{var M,$,N,K,X,q;const b=(M=u.meta)!=null&&M.alwaysShow||($=u==null?void 0:u.children)!=null&&$.length&&((N=u==null?void 0:u.children)==null?void 0:N.length)>1?u:{...(u==null?void 0:u.children)&&(u==null?void 0:u.children[0]),path:Ce(u.path,(K=(u==null?void 0:u.children)&&(u==null?void 0:u.children[0]))==null?void 0:K.path)};return n("div",{class:[`${bt}__item`,"text-center text-12px relative py-12px cursor-pointer",{"is-active":T(u.path)}],onClick:()=>{(_=>{if(ct(_.path))return void window.open(_.path);const w=_.children?_.path:_.path.split("/")[0],B=e(x);x.value=_.children?_.path:_.path.split("/")[0],_.children?(w!==B&&e(m)||(m.value=!!e(d)||!e(m)),e(m)&&s.setMenuTabRouters(Mt(_.children).map(U=>(U.path=Ce(e(x),U.path),U)))):(t(_.path),s.setMenuTabRouters([]),m.value=!1)})(b)}},[n("div",null,[n(ce,{icon:(X=b==null?void 0:b.meta)==null?void 0:X.icon},null)]),e(p)?n("p",{class:"mt-5px break-words px-2px"},[o((q=b.meta)==null?void 0:q.title)]):void 0])})})]}),n("div",{class:[`${bt}--collapse`,"text-center h-[var(--tab-menu-collapse-height)] leading-[var(--tab-menu-collapse-height)] cursor-pointer"],onClick:v},[n(ce,{icon:e(a)?"ep:d-arrow-right":"ep:d-arrow-left"},null)]),n(Ge,{class:["!absolute top-0",{"!left-[var(--tab-menu-min-width)]":e(a),"!left-[var(--tab-menu-max-width)]":!e(a),"!w-[calc(var(--left-menu-max-width)+1px)]":e(m)||e(d),"!w-0":!e(m)&&!e(d)}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null)])}}),so=fe(ro,[["__scopeId","data-v-bff6aa91"]]),Et=(t,l="")=>{let o=[];return t.forEach(r=>{const a=r.meta,d=Ce(l,r.path);if(a!=null&&a.affix&&o.push({...r,path:d,fullPath:d}),r.children){const s=Et(r.children,d);s.length>=1&&(o=[...o,...s])}}),o},jt=R({name:"ContextMenu",__name:"ContextMenu",props:{schema:{type:Array,default:()=>[]},trigger:{type:String,default:"contextmenu"},tagItem:{type:Object,default:()=>({})}},emits:["visibleChange"],setup(t,{expose:l,emit:o}){const{getPrefixCls:r}=Z(),a=r("context-menu"),{t:d}=we(),s=o,i=t,c=m=>{m.command&&m.command(m)},v=m=>{s("visibleChange",m,i.tagItem)},p=C();return l({elDropdownMenuRef:p,tagItem:i.tagItem}),(m,x)=>{const T=ce,h=Tt,u=It,b=Vt;return k(),Q(b,{ref_key:"elDropdownMenuRef",ref:p,class:O(e(a)),trigger:t.trigger,placement:"bottom-start","popper-class":"v-context-menu-popper",onCommand:c,onVisibleChange:v},{dropdown:V(()=>[n(u,null,{default:V(()=>[(k(!0),H(oe,null,qe(t.schema,(M,$)=>(k(),Q(h,{key:`dropdown${$}`,command:M,disabled:M.disabled,divided:M.divided},{default:V(()=>[n(T,{icon:M.icon},null,8,["icon"]),ie(" "+P(e(d)(M.label)),1)]),_:2},1032,["command","disabled","divided"]))),128))]),_:1})]),default:V(()=>[pe(m.$slots,"default")]),_:3},8,["class","trigger"])}}});function Pe({el:t,position:l="scrollLeft",to:o,duration:r=500,callback:a}){const d=C(!1),s=t[l],i=o-s,c=20;let v=0;function p(){if(!e(d))return;v+=c;const m=(x=v,T=s,h=i,(x/=r/2)<1?h/2*x*x+T:-h/2*(--x*(x-2)-1)+T);var x,T,h;((u,b,M)=>{u[b]=M})(t,l,m),v<r&&e(d)?requestAnimationFrame(p):a&&a()}return{start:function(){d.value=!0,p()},stop:function(){d.value=!1}}}const uo=["id"],io={class:"flex-1 overflow-hidden"},co={class:"h-full flex"},po=["onClick"],mo=R({__name:"TagsView",setup(t){const{getPrefixCls:l}=Z(),o=l("tags-view"),{t:r}=we(),{currentRoute:a,push:d,replace:s}=Se(),i=dt(),c=f(()=>i.getRouters),v=kt(),p=f(()=>v.getVisitedViews),m=C([]),x=ne(),T=f(()=>x.getTagsViewIcon),h=f(()=>x.getIsDark),u=C(),b=()=>{const{name:y}=e(a);return y&&(u.value=e(a),v.addView(e(a))),!1},M=y=>{var L;(L=y==null?void 0:y.meta)!=null&&L.affix||(v.delView(y),U(y)&&_())},$=()=>{v.delAllViews(),_()},N=()=>{v.delOthersViews(e(u))},K=async y=>{if(!y)return;v.delCachedView();const{path:L,query:D}=y;await rt(),s({path:"/redirect"+L,query:D})},X=()=>{v.delLeftViews(e(u))},q=()=>{v.delRightViews(e(u))},_=()=>{const y=v.getVisitedViews.slice(-1)[0];if(y)d(y);else{if(e(a).path===i.getAddRouters[0].path||e(a).path===i.getAddRouters[0].redirect)return void b();d("/")}},w=Al(),B=y=>{var S;const L=(S=e(ae))==null?void 0:S.wrapRef;let D=null,re=null;const I=e(w);if(I.length>0&&(D=I[0],re=I[I.length-1]),(D==null?void 0:D.to).fullPath===y.fullPath){const{start:F}=Pe({el:L,position:"scrollLeft",to:0,duration:500});F()}else if((re==null?void 0:re.to).fullPath===y.fullPath){const{start:F}=Pe({el:L,position:"scrollLeft",to:L.scrollWidth-L.offsetWidth,duration:500});F()}else{const F=I.findIndex(ve=>(ve==null?void 0:ve.to).fullPath===y.fullPath),ke=document.getElementsByClassName(`${o}__item`),z=ke[F-1],Oe=ke[F+1],A=Oe.offsetLeft+Oe.offsetWidth+4,Ee=z.offsetLeft-4;if(A>e(ee)+L.offsetWidth){const{start:ve}=Pe({el:L,position:"scrollLeft",to:A-L.offsetWidth,duration:500});ve()}else if(Ee<e(ee)){const{start:ve}=Pe({el:L,position:"scrollLeft",to:Ee,duration:500});ve()}}},U=y=>y.path===e(a).path,W=Al(),le=(y,L)=>{if(y)for(const D of e(W)){const re=D.elDropdownMenuRef;L.fullPath!==D.tagItem.fullPath&&(re==null||re.handleClose())}},ae=C(),ee=C(0),j=({scrollLeft:y})=>{ee.value=y},E=y=>{var re;const L=(re=e(ae))==null?void 0:re.wrapRef,{start:D}=Pe({el:L,position:"scrollLeft",to:e(ee)+y,duration:500});D()};return _e(()=>{(()=>{m.value=Et(e(c));for(const y of e(m))y.name&&v.addVisitedView(y)})(),b()}),se(()=>a.value,()=>{b(),(async()=>{await rt();for(const y of e(p))if(y.fullPath===e(a).path){B(y),y.fullPath!==e(a).fullPath&&v.updateVisitedView(e(a));break}})()}),(y,L)=>{var I,S,F,ke,z,Oe;const D=ce,re=st("router-link");return k(),H("div",{id:e(o),class:O([e(o),"relative w-full flex bg-[#fff] dark:bg-[var(--el-bg-color)]"])},[g("span",{class:O([`${e(o)}__tool ${e(o)}__tool--first`,"h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"]),onClick:L[0]||(L[0]=A=>E(-200))},[n(D,{icon:"ep:d-arrow-left",color:"var(--el-text-color-placeholder)","hover-color":h.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2),g("div",io,[n(e(Me),{ref_key:"scrollbarRef",ref:ae,class:"h-full",onScroll:j},{default:V(()=>[g("div",co,[(k(!0),H(oe,null,qe(p.value,A=>{var Ee,ve,il,cl,dl,pl,ml,vl,hl;return k(),Q(e(jt),{ref_for:!0,ref:e(W).set,schema:[{icon:"ep:refresh",label:e(r)("common.reload"),disabled:((Ee=u.value)==null?void 0:Ee.fullPath)!==A.fullPath,command:()=>{K(A)}},{icon:"ep:close",label:e(r)("common.closeTab"),disabled:!!((ve=p.value)!=null&&ve.length)&&((il=u.value)==null?void 0:il.meta.affix),command:()=>{M(A)}},{divided:!0,icon:"ep:d-arrow-left",label:e(r)("common.closeTheLeftTab"),disabled:!!((cl=p.value)!=null&&cl.length)&&(A.fullPath===p.value[0].fullPath||((dl=u.value)==null?void 0:dl.fullPath)!==A.fullPath),command:()=>{X()}},{icon:"ep:d-arrow-right",label:e(r)("common.closeTheRightTab"),disabled:!!((pl=p.value)!=null&&pl.length)&&(A.fullPath===p.value[p.value.length-1].fullPath||((ml=u.value)==null?void 0:ml.fullPath)!==A.fullPath),command:()=>{q()}},{divided:!0,icon:"ep:discount",label:e(r)("common.closeOther"),disabled:((vl=u.value)==null?void 0:vl.fullPath)!==A.fullPath,command:()=>{N()}},{icon:"ep:minus",label:e(r)("common.closeAll"),command:()=>{$()}}],key:A.fullPath,"tag-item":A,class:O([`${e(o)}__item`,(hl=A==null?void 0:A.meta)!=null&&hl.affix?`${e(o)}__item--affix`:"",{"is-active":U(A)}]),onVisibleChange:le},{default:V(()=>[g("div",null,[n(re,{ref_for:!0,ref:e(w).set,to:{...A},custom:""},{default:V(({navigate:$o})=>{var fl,gl,bl,xl,_l;return[g("div",{onClick:$o,class:"h-full flex items-center justify-center whitespace-nowrap pl-15px"},[A!=null&&A.matched&&(A!=null&&A.matched[1])&&((gl=(fl=A==null?void 0:A.matched[1])==null?void 0:fl.meta)!=null&&gl.icon)&&T.value?(k(),Q(D,{key:0,icon:(xl=(bl=A==null?void 0:A.matched[1])==null?void 0:bl.meta)==null?void 0:xl.icon,size:12,class:"mr-5px"},null,8,["icon"])):Te("",!0),ie(" "+P(e(r)((_l=A==null?void 0:A.meta)==null?void 0:_l.title))+" ",1),n(D,{class:O(`${e(o)}__item--close`),color:"#333",icon:"ep:close",size:12,onClick:Xe(Gn=>M(A),["prevent","stop"])},null,8,["class","onClick"])],8,po)]}),_:2},1032,["to"])])]),_:2},1032,["schema","tag-item","class"])}),128))])]),_:1},512)]),g("span",{class:O([`${e(o)}__tool`,"h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"]),onClick:L[1]||(L[1]=A=>E(200))},[n(D,{icon:"ep:d-arrow-right",color:"var(--el-text-color-placeholder)","hover-color":h.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2),g("span",{class:O([`${e(o)}__tool`,"h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"]),onClick:L[2]||(L[2]=A=>K(u.value))},[n(D,{icon:"ep:refresh-right",color:"var(--el-text-color-placeholder)","hover-color":h.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2),n(e(jt),{trigger:"click",schema:[{icon:"ep:refresh",label:e(r)("common.reload"),command:()=>{K(u.value)}},{icon:"ep:close",label:e(r)("common.closeTab"),disabled:!!((I=p.value)!=null&&I.length)&&((S=u.value)==null?void 0:S.meta.affix),command:()=>{M(u.value)}},{divided:!0,icon:"ep:d-arrow-left",label:e(r)("common.closeTheLeftTab"),disabled:!!((F=p.value)!=null&&F.length)&&((ke=u.value)==null?void 0:ke.fullPath)===p.value[0].fullPath,command:()=>{X()}},{icon:"ep:d-arrow-right",label:e(r)("common.closeTheRightTab"),disabled:!!((z=p.value)!=null&&z.length)&&((Oe=u.value)==null?void 0:Oe.fullPath)===p.value[p.value.length-1].fullPath,command:()=>{q()}},{divided:!0,icon:"ep:discount",label:e(r)("common.closeOther"),command:()=>{N()}},{icon:"ep:minus",label:e(r)("common.closeAll"),command:()=>{$()}}]},{default:V(()=>[g("span",{class:O([`${e(o)}__tool`,"block h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"])},[n(D,{icon:"ep:menu",color:"var(--el-text-color-placeholder)","hover-color":h.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2)]),_:1},8,["schema"])],10,uo)}}}),Ye=fe(mo,[["__scopeId","data-v-edd6b962"]]),vo=g("img",{class:"h-[calc(var(--logo-height)-10px)] w-[calc(var(--logo-height)-10px)]",src:Cn},null,-1),Ze=R({name:"Logo",__name:"Logo",setup(t){const{getPrefixCls:l}=Z(),o=l("logo"),r=ne(),a=C(!0),d=f(()=>r.getTitle),s=f(()=>r.getLayout),i=f(()=>r.getCollapse);return _e(()=>{e(i)&&(a.value=!1)}),se(()=>i.value,c=>{e(s)!=="topLeft"&&e(s)!=="cutMenu"?c?a.value=!c:setTimeout(()=>{a.value=!c},400):a.value=!0}),se(()=>s.value,c=>{c==="top"||c==="cutMenu"?a.value=!0:e(i)?a.value=!1:a.value=!0}),(c,v)=>{const p=st("router-link");return k(),H("div",null,[n(p,{class:O([e(o),s.value!=="classic"?`${e(o)}__Top`:"","flex !h-[var(--logo-height)] items-center cursor-pointer pl-8px relative decoration-none overflow-hidden"]),to:"/"},{default:V(()=>[vo,a.value?(k(),H("div",{key:0,class:O(["ml-10px text-16px font-700",{"text-[var(--logo-title-text-color)]":s.value==="classic","text-[var(--top-header-text-color)]":s.value==="topLeft"||s.value==="top"||s.value==="cutMenu"}])},P(d.value),3)):Te("",!0)]),_:1},8,["class"])])}}}),ho={class:"text-14px"},fo=R({name:"Footer",__name:"Footer",setup(t){const{getPrefixCls:l}=Z(),o=l("footer"),r=ne(),a=f(()=>r.getTitle);return(d,s)=>(k(),H("div",{class:O([e(o),"h-[var(--app-footer-height)] bg-[var(--app-content-bg-color)] text-center leading-[var(--app-footer-height)] text-[var(--el-text-color-placeholder)] dark:bg-[var(--el-bg-color)]"])},[g("span",ho,"Copyright \xA92024-"+P(e(a)),1)],2))}}),Je=R({name:"AppView",__name:"AppView",setup(t){const l=ne(),o=f(()=>l.getLayout),r=f(()=>l.getFixedHeader),a=f(()=>l.getFooter),d=kt(),s=f(()=>d.getCachedViews),i=f(()=>l.getTagsView),c=C(!0);return He("reload",()=>{c.value=!1,rt(()=>c.value=!0)}),(v,p)=>{const m=st("router-view");return k(),H(oe,null,[g("section",{class:O(["p-[var(--app-content-padding)] w-[calc(100%-var(--app-content-padding)-var(--app-content-padding))] bg-[var(--el-color-white)] dark:bg-[var(--el-bg-color)]",{"!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]":e(r)&&(e(o)==="classic"||e(o)==="topLeft"||e(o)==="top")&&e(a)||!e(i)&&e(o)==="top"&&e(a),"!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height)-var(--tags-view-height))]":e(i)&&e(o)==="top"&&e(a),"!min-h-[calc(100%-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-var(--top-tool-height)-var(--app-footer-height))]":!e(r)&&e(o)==="classic"&&e(a),"!min-h-[calc(100%-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]":!e(r)&&e(o)==="topLeft"&&e(a),"!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding))]":e(r)&&e(o)==="cutMenu"&&e(a),"!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding)-var(--tags-view-height))]":!e(r)&&e(o)==="cutMenu"&&e(a)}])},[e(c)?(k(),Q(m,{key:0},{default:V(({Component:x,route:T})=>[(k(),Q(en,{include:e(s)},[(k(),Q(Ml(x),{key:T.fullPath}))],1032,["include"]))]),_:1})):Te("",!0)],2),e(a)?(k(),Q(e(fo),{key:0})):Te("",!0)],64)}}}),Rt="/admin-ui-vue3/assets/avatar-ea67286d.gif",go={class:"message"},bo=(t=>($l("data-v-15a72882"),t=t(),Sl(),t))(()=>g("img",{alt:"",class:"message-icon",src:Rt},null,-1)),xo={class:"message-content"},_o={class:"message-title"},wo={class:"message-date"},yo={style:{"margin-top":"10px","text-align":"right"}},Co=fe(R({name:"Message",__name:"Message",setup(t){const{push:l}=Se(),o=C("notice"),r=C(0),a=C([]),d=async()=>{a.value=await Vn(),r.value=0},s=async()=>{$n().then(c=>{r.value=c})},i=()=>{l({name:"MyNotifyMessage"})};return _e(()=>{s(),setInterval(()=>{s()},12e4)}),(c,v)=>{const p=ce,m=tn,x=Me,T=ln,h=an,u=Mn,b=on;return k(),H("div",go,[n(b,{width:400,placement:"bottom",trigger:"click"},{reference:V(()=>[n(m,{"is-dot":e(r)>0,class:"item"},{default:V(()=>[n(p,{size:18,class:"cursor-pointer",icon:"ep:bell",onClick:d})]),_:1},8,["is-dot"])]),default:V(()=>[n(h,{modelValue:e(o),"onUpdate:modelValue":v[0]||(v[0]=M=>Y(o)?o.value=M:null)},{default:V(()=>[n(T,{label:"\u6211\u7684\u7AD9\u5185\u4FE1",name:"notice"},{default:V(()=>[n(x,{class:"message-list"},{default:V(()=>[(k(!0),H(oe,null,qe(e(a),M=>(k(),H("div",{key:M.id,class:"message-item"},[bo,g("div",xo,[g("span",_o,P(M.templateNickname)+"\uFF1A"+P(M.templateContent),1),g("span",wo,P(e(Tn)(M.createTime)),1)])]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"]),g("div",yo,[n(u,{preIcon:"ep:view",title:"\u67E5\u770B\u5168\u90E8",type:"primary",onClick:i})])]),_:1})])}}}),[["__scopeId","data-v-15a72882"]]),Mo=R({name:"Collapse",__name:"Collapse",props:{color:ut.string.def("")},setup(t){const{getPrefixCls:l}=Z(),o=l("collapse"),r=ne(),a=f(()=>r.getCollapse),d=()=>{const s=e(a);r.setCollapse(!s)};return(s,i)=>{const c=ce;return k(),H("div",{class:O(e(o))},[n(c,{color:t.color,icon:e(a)?"ep:expand":"ep:fold",size:18,class:"cursor-pointer",onClick:d},null,8,["color","icon"])],2)}}}),ko={class:"flex items-center"},To={class:"pl-[5px] text-14px text-[var(--top-header-text-color)] <lg:hidden"},Io=R({name:"UserInfo",__name:"UserInfo",setup(t){const l=ne(),o=f(()=>l.getMobile),{t:r}=we(),{wsCache:a}=Ll(),{push:d,replace:s}=Se(),i=nn(),c=kt(),{getPrefixCls:v}=Z(),p=v("user-info"),m=a.get(it.USER),x=m.user.avatar?m.user.avatar:Rt,T=m.user.nickname?m.user.nickname:"Admin",h=()=>{rn.confirm(r("common.loginOutMessage"),r("common.reminder"),{confirmButtonText:r("common.ok"),cancelButtonText:r("common.cancel"),type:"warning"}).then(async()=>{await i.loginOut(),c.delAllViews(),s("/login?redirect=/index")}).catch(()=>{})},u=C(),b=async()=>{var M;o.value?d("/user/profile"):(M=u.value)==null||M.open()};return(M,$)=>{const N=Pn,K=ce,X=Tt,q=It,_=Vt;return k(),H(oe,null,[n(_,{class:O(["custom-hover",e(p)]),trigger:"click"},{dropdown:V(()=>[n(q,null,{default:V(()=>[n(X,{onClick:Xe(b,["stop"])},{default:V(()=>[n(K,{icon:"ep:tools"}),g("div",null,P(e(r)("common.profile")),1)]),_:1}),n(X,{divided:"",onClick:Xe(h,["stop"])},{default:V(()=>[n(K,{icon:"ep:switch-button"}),g("div",null,P(e(r)("common.loginOut")),1)]),_:1})]),_:1})]),default:V(()=>[g("div",ko,[n(N,{src:e(x),alt:"",class:"w-[calc(var(--logo-height)-25px)] rounded-[50%]"},null,8,["src"]),g("span",To,P(e(T)),1)])]),_:1},8,["class"]),n(Ln,{ref_key:"ChangeAllInfoRef",ref:u},null,512)],64)}}}),Vo=R({name:"ScreenFull",__name:"Screenfull",props:{color:ut.string.def("")},setup(t){const{getPrefixCls:l}=Z(),o=l("screenfull"),{toggle:r,isFullscreen:a}=sn(),d=()=>{r()};return(s,i)=>(k(),H("div",{class:O(e(o)),onClick:d},[n(e(ce),{color:t.color,icon:e(a)?"zmdi:fullscreen-exit":"zmdi:fullscreen",size:18},null,8,["color","icon"])],2))}}),Ut=(t,l="")=>{var r;const o=[];for(const a of t){const d=a==null?void 0:a.meta;if(d.hidden&&!d.canTo)continue;const s=d.alwaysShow||((r=a.children)==null?void 0:r.length)!==1?{...a}:{...a.children[0],path:Ce(a.path,a.children[0].path)};s.path=Ce(l,s.path),s.children&&(s.children=Ut(s.children,s.path)),s&&o.push(s)}return o};let Ht,Nt,Ft,qt,Dt,Wt,Gt,Kt,Yt,ge,Zt,Jt,Xt,Qt,el,xt,tl,ll,Be,al,be,me,Le,xe,J,Ie,G,de,ye,ze,ol,_t,Ae,nl,rl,wt,sl,ul;({getPrefixCls:Ht}=Z()),Nt=Ht("breadcrumb"),Ft=ne(),qt=f(()=>Ft.getBreadcrumbIcon),Dt=fe(R({name:"Breadcrumb",setup(){const{currentRoute:t}=Se(),{t:l}=we(),o=C([]),r=dt(),a=f(()=>{const d=r.getRouters;return Ut(d)});return se(()=>t.value,d=>{d.path.startsWith("/redirect/")||(()=>{const s=t.value.matched.slice(-1)[0].path;o.value=xn(e(a),i=>i.path===s)})()},{immediate:!0}),()=>{let d;return n(Zl,{separator:"/",class:`${Nt} flex items-center h-full ml-[10px]`},{default:()=>{return[n(un,{appear:!0,"enter-active-class":"animate__animated animate__fadeInRight"},(s=d=_n(e(o)).map(i=>{const c=!i.redirect||i.redirect==="noredirect",v=i.meta;return n(Jl,{to:{path:c?"":i.path},key:i.name},{default:()=>{var p,m;return[v!=null&&v.icon&&qt.value?n("div",{class:"flex items-center"},[n(ce,{icon:v.icon,class:"mr-[2px]",svgClass:"inline-block"},null),l((p=i==null?void 0:i.meta)==null?void 0:p.title)]):l((m=i==null?void 0:i.meta)==null?void 0:m.title)]}})}),typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!zl(s)?d:{default:()=>[d]}))];var s}})}}}),[["__scopeId","data-v-4b03c1c3"]]),Wt=R({name:"SizeDropdown",__name:"SizeDropdown",props:{color:ut.string.def("")},setup(t){const{getPrefixCls:l}=Z(),o=l("size-dropdown"),{t:r}=we(),a=ne(),d=f(()=>a.sizeMap),s=i=>{a.setCurrentSize(i)};return(i,c)=>{const v=ce,p=Tt,m=It,x=Vt;return k(),Q(x,{class:O(e(o)),trigger:"click",onCommand:s},{dropdown:V(()=>[n(m,null,{default:V(()=>[(k(!0),H(oe,null,qe(e(d),T=>(k(),Q(p,{key:T,command:T},{default:V(()=>[ie(P(e(r)(`size.${T}`)),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:V(()=>[n(v,{color:t.color,size:18,class:"cursor-pointer",icon:"mdi:format-size"},null,8,["color"])]),_:1},8,["class"])}}}),{getPrefixCls:Gt,variables:Kt}=Z(),Yt=Gt("tool-header"),ge=ne(),Zt=f(()=>ge.getBreadcrumb),Jt=f(()=>ge.getHamburger),Xt=f(()=>ge.getScreenfull),Qt=f(()=>ge.search),el=f(()=>ge.getSize),xt=f(()=>ge.getLayout),tl=f(()=>ge.getLocale),ll=f(()=>ge.getMessage),Be=fe(R({name:"ToolHeader",setup:()=>()=>n("div",{id:`${Kt.namespace}-tool-header`,class:[Yt,"h-[var(--top-tool-height)] relative px-[var(--top-tool-p-x)] flex items-center justify-between","dark:bg-[var(--el-bg-color)]"]},[xt.value!=="top"?n("div",{class:"h-full flex items-center"},[Jt.value&&xt.value!=="cutMenu"?n(Mo,{class:"custom-hover",color:"var(--top-header-text-color)"},null):void 0,Zt.value?n(Dt,{class:"lt-md:hidden"},null):void 0]):void 0,n("div",{class:"h-full flex items-center"},[Xt.value?n(Vo,{class:"custom-hover",color:"var(--top-header-text-color)"},null):void 0,Qt.value?n(cn,{isModal:!1},null):void 0,el.value?n(Wt,{class:"custom-hover",color:"var(--top-header-text-color)"},null):void 0,tl.value?n(hn,{class:"custom-hover",color:"var(--top-header-text-color)"},null):void 0,ll.value?n(Co,{class:"custom-hover",color:"var(--top-header-text-color)"},null):void 0,n(Io,null,null)])])}),[["__scopeId","data-v-7577d039"]]),{getPrefixCls:al}=Z(),be=al("layout"),me=ne(),Le=f(()=>me.getPageLoading),xe=f(()=>me.getTagsView),J=f(()=>me.getCollapse),Ie=f(()=>me.logo),G=f(()=>me.getFixedHeader),de=f(()=>me.getMobile),ye=f(()=>me.getFixedMenu),ze=()=>({renderClassic:()=>n(oe,null,[n("div",{class:["absolute top-0 left-0 h-full layout-border__right",{"!fixed z-3000":de.value}]},[Ie.value?n(Ze,{class:["bg-[var(--left-menu-bg-color)] relative",{"!pl-0":de.value&&J.value,"w-[var(--left-menu-min-width)]":me.getCollapse,"w-[var(--left-menu-max-width)]":!me.getCollapse}],style:"transition: all var(--transition-time-02);"},null):void 0,n(Ge,{class:[{"!h-[calc(100%-var(--logo-height))]":Ie.value}]},null)]),n("div",{class:[`${be}-content`,"absolute top-0 h-[100%]",{"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]":J.value&&!de.value&&!de.value,"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]":!J.value&&!de.value&&!de.value,"fixed !w-full !left-0":de.value}],style:"transition: all var(--transition-time-02);"},[Fe(n(Me,{class:[`${be}-content-scrollbar`,{"!h-[calc(100%-var(--top-tool-height)-var(--tags-view-height))] mt-[calc(var(--top-tool-height)+var(--tags-view-height))]":G.value}]},{default:()=>[n("div",{class:[{"fixed top-0 left-0 z-10":G.value,"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)]":J.value&&G.value&&!de.value,"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)]":!J.value&&G.value&&!de.value,"!w-full !left-0":de.value}],style:"transition: all var(--transition-time-02);"},[n(Be,{class:["bg-[var(--top-header-bg-color)]",{"layout-border__bottom":!xe.value}]},null),xe.value?n(Ye,{class:"layout-border__top layout-border__bottom"},null):void 0]),n(Je,null,null)]}),[[pt("loading"),Le.value]])])]),renderTopLeft:()=>n(oe,null,[n("div",{class:"relative flex items-center bg-[var(--top-header-bg-color)] layout-border__bottom dark:bg-[var(--el-bg-color)]"},[Ie.value?n(Ze,{class:"custom-hover"},null):void 0,n(Be,{class:"flex-1"},null)]),n("div",{class:"absolute left-0 top-[var(--logo-height)+1px] h-[calc(100%-1px-var(--logo-height))] w-full flex"},[n(Ge,{class:"relative layout-border__right !h-full"},null),n("div",{class:[`${be}-content`,"h-[100%]",{"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]":J.value,"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]":!J.value}],style:"transition: all var(--transition-time-02);"},[Fe(n(Me,{class:[`${be}-content-scrollbar`,{"!h-[calc(100%-var(--tags-view-height))] mt-[calc(var(--tags-view-height))]":G.value&&xe.value}]},{default:()=>[xe.value?n(Ye,{class:["layout-border__bottom absolute",{"!fixed top-0 left-0 z-10":G.value,"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[calc(var(--logo-height)+1px)]":J.value&&G.value,"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[calc(var(--logo-height)+1px)]":!J.value&&G.value}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null):void 0,n(Je,null,null)]}),[[pt("loading"),Le.value]])])])]),renderTop:()=>n(oe,null,[n("div",{class:["flex items-center justify-between bg-[var(--top-header-bg-color)] relative",{"layout-border__bottom":!xe.value}]},[Ie.value?n(Ze,{class:"custom-hover"},null):void 0,n(Ge,{class:"h-[var(--top-tool-height)] flex-1 px-10px"},null),n(Be,null,null)]),n("div",{class:[`${be}-content`,"w-full",{"h-[calc(100%-var(--app-footer-height))]":!G.value,"h-[calc(100%-var(--tags-view-height)-var(--app-footer-height))]":G.value}]},[Fe(n(Me,{class:[`${be}-content-scrollbar`,{"mt-[var(--tags-view-height)] !pb-[calc(var(--tags-view-height)+var(--app-footer-height))]":G.value,"pb-[var(--app-footer-height)]":!G.value}]},{default:()=>[xe.value?n(Ye,{class:["layout-border__bottom layout-border__top relative",{"!fixed w-full top-[calc(var(--top-tool-height)+1px)] left-0":G.value}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null):void 0,n(Je,null,null)]}),[[pt("loading"),Le.value]])])]),renderCutMenu:()=>n(oe,null,[n("div",{class:"relative flex items-center bg-[var(--top-header-bg-color)] layout-border__bottom"},[Ie.value?n(Ze,{class:"custom-hover !pr-15px"},null):void 0,n(Be,{class:"flex-1"},null)]),n("div",{class:"absolute left-0 top-[var(--logo-height)] h-[calc(100%-var(--logo-height))] w-[calc(100%-2px)] flex"},[n(so,null,null),n("div",{class:[`${be}-content`,"h-[100%]",{"w-[calc(100%-var(--tab-menu-min-width))] left-[var(--tab-menu-min-width)]":J.value&&!ye.value,"w-[calc(100%-var(--tab-menu-max-width))] left-[var(--tab-menu-max-width)]":!J.value&&!ye.value,"w-[calc(100%-var(--tab-menu-min-width)-var(--left-menu-max-width))] ml-[var(--left-menu-max-width)]":J.value&&ye.value,"w-[calc(100%-var(--tab-menu-max-width)-var(--left-menu-max-width))] ml-[var(--left-menu-max-width)]":!J.value&&ye.value}],style:"transition: all var(--transition-time-02);"},[Fe(n(Me,{class:[`${be}-content-scrollbar`,{"!h-[calc(100%-var(--tags-view-height))] mt-[calc(var(--tags-view-height))]":G.value&&xe.value}]},{default:()=>[xe.value?n(Ye,{class:["relative layout-border__bottom layout-border__top",{"!fixed top-0 left-0 z-10":G.value,"w-[calc(100%-var(--tab-menu-min-width))] !left-[var(--tab-menu-min-width)] mt-[var(--logo-height)]":J.value&&G.value,"w-[calc(100%-var(--tab-menu-max-width))] !left-[var(--tab-menu-max-width)] mt-[var(--logo-height)]":!J.value&&G.value,"!fixed top-0 !left-[var(--tab-menu-min-width)+var(--left-menu-max-width)] z-10":G.value&&ye.value,"w-[calc(100%-var(--tab-menu-min-width)-var(--left-menu-max-width))] !left-[var(--tab-menu-min-width)+var(--left-menu-max-width)] mt-[var(--logo-height)]":J.value&&G.value&&ye.value,"w-[calc(100%-var(--tab-menu-max-width)-var(--left-menu-max-width))] !left-[var(--tab-menu-max-width)+var(--left-menu-max-width)] mt-[var(--logo-height)]":!J.value&&G.value&&ye.value}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null):void 0,n(Je,null,null)]}),[[pt("loading"),Le.value]])])])])}),{getPrefixCls:ol}=Z(),_t=ol("layout"),Ae=ne(),nl=f(()=>Ae.getMobile),rl=f(()=>Ae.getCollapse),wt=f(()=>Ae.getLayout),sl=()=>{Ae.setCollapse(!0)},ul=()=>{switch(e(wt)){case"classic":const{renderClassic:t}=ze();return t();case"topLeft":const{renderTopLeft:l}=ze();return l();case"top":const{renderTop:o}=ze();return o();case"cutMenu":const{renderCutMenu:r}=ze();return r()}},Rl=fe(R({name:"Layout",setup:()=>()=>n("section",{class:[_t,`${_t}__${wt.value}`,"w-[100%] h-[100%] relative"]},[nl.value&&!rl.value?n("div",{class:"absolute left-0 top-0 z-99 h-full w-full bg-[var(--el-color-black)] opacity-30",onClick:sl},null):void 0,ul(),n(ca,null,null),n(Qa,null,null)])}),[["__scopeId","data-v-f681750a"]])});export{Wn as __tla,Rl as default};