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