沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import{dL as St,r as T,bm as ol,b as ye,dS as Pe,dy as nl,d as D,f as ve,ad as h,o as E,g as se,B as F,a as e,c as J,aB as Pt,n as A,aW as Lt,j as ge,k as n,b1 as tt,dT as sl,h as Ce,ab as Bt,_ as ze,q as Ot,bq as me,dU as Ae,m as rl,dV as je,dW as lt,dX as il,dY as ul,e as at,aY as Le,az as ot,b0 as Re,bu as cl,d4 as dl,A as He,w as re,a_ as Ue,by as Et,bW as ee,bP as Ve,bs as zt,dd as pl,P as Ie,ae as vl,F as oe,dZ as At,a$ as nt,cW as ml,d_ as hl,aO as fl,cs as gl,d7 as bl,cy as xl,ch as wl,d6 as jt,aF as Ne,t as yl,aA as Fe,C as b,O as de,D as z,s as st,ac as ie,as as Cl,i as rt,U as Me,H as _e,a8 as pe,I as G,J as $e,d$ as Be,cF as Ml,a7 as _l,E as kl,G as Tl,e0 as Rt,e1 as Vl,dC as Il,di as Ht,z as $l,dI as it,aU as Sl,V as Pl,e2 as We,bb as Se,u as ut,v as ct,b3 as ke,bc as Ll,aS as dt,e3 as Ut,aJ as Bl,e4 as Ol,aP as El,a1 as qe}from"./index-BP6bNRoi.js";import{E as zl}from"./el-drawer-CuGR_O5R.js";import{c as Nt,l as Ft,h as Wt}from"./color-DXkOL5Tu.js";import{T as Al}from"./ThemeSwitch-kktbYEVv.js";import{c as jl}from"./tree-BBZY150N.js";import{u as qt}from"./tagsView-DQpvPGX0.js";import{E as Rl,a as Hl,b as Ul}from"./el-dropdown-item-BW-wC9MJ.js";import{_ as Nl}from"./logo-BKeFBQsR.js";import{T as De}from"./ToolHeader-fGIEHLBi.js";import"./useIcon-DZqEaX5R.js";import"./XButton-BfzTlH8o.js";import"./el-avatar-DuLjWuSU.js";import"./formatTime-DwR9f7DP.js";import"./index-DTTJX9Ya.js";import"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import"./useValidator-CKF7yVmu.js";import"./LocaleDropdown.vue_vue_type_script_setup_true_lang-C1_iMzaR.js";const Fl={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Wl={click:t=>t instanceof MouseEvent},Dt="ElBacktop",ql=D({name:Dt}),Dl=Ot(ze(D({...ql,props:Fl,emits:Wl,setup(t,{emit:l}){const a=t,o=ve("backtop"),{handleClick:r,visible:u}=((d,p,v)=>{const c=St(),m=St(),y=T(!1),O=()=>{c.value&&(y.value=c.value.scrollTop>=d.visibilityHeight)},P=nl(O,300,!0);return ol(m,"scroll",P),ye(()=>{var s;m.value=document,c.value=document.documentElement,d.target&&(c.value=(s=document.querySelector(d.target))!=null?s:void 0,c.value||Pe(v,`target does not exist: ${d.target}`),m.value=c.value),O()}),{visible:y,handleClick:s=>{var f;(f=c.value)==null||f.scrollTo({top:0,behavior:"smooth"}),p("click",s)}}})(a,l,Dt),i=h(()=>({right:`${a.right}px`,bottom:`${a.bottom}px`}));return(d,p)=>(E(),se(Bt,{name:`${e(o).namespace.value}-fade-in`},{default:F(()=>[e(u)?(E(),J("div",{key:0,style:Pt(e(i)),class:A(e(o).b()),onClick:p[0]||(p[0]=Lt((...v)=>e(r)&&e(r)(...v),["stop"]))},[ge(d.$slots,"default",{},()=>[n(e(tt),{class:A(e(o).e("icon"))},{default:F(()=>[n(e(sl))]),_:1},8,["class"])])],6)):Ce("v-if",!0)]),_:3},8,["name"]))}}),[["__file","backtop.vue"]]));let Gl=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",a=>{let o=!1;switch(a.code){case me.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case me.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case me.tab:Ae(t,"mouseleave");break;case me.enter:case me.space:o=!0,a.currentTarget.click()}return o&&(a.preventDefault(),a.stopPropagation()),!1})})}},Yl=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 Gl(this,l)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let l=!1;switch(t.code){case me.down:Ae(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),l=!0;break;case me.up:Ae(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),l=!0;break;case me.tab:Ae(t.currentTarget,"mouseleave");break;case me.enter:case me.space:l=!0,t.currentTarget.click()}l&&t.preventDefault()})}},Zl=class{constructor(t,l){this.domNode=t,this.init(l)}init(t){const l=this.domNode.childNodes;Array.from(l).forEach(a=>{a.nodeType===1&&new Yl(a,t)})}};var Jl=ze(D({name:"ElMenuCollapseTransition",setup(){const t=ve("menu");return{listeners:{onBeforeEnter:l=>l.style.opacity="0.2",onEnter(l,a){je(l,`${t.namespace.value}-opacity-transition`),l.style.opacity="1",a()},onAfterEnter(l){lt(l,`${t.namespace.value}-opacity-transition`),l.style.opacity=""},onBeforeLeave(l){l.dataset||(l.dataset={}),il(l,t.m("collapse"))?(lt(l,t.m("collapse")),l.dataset.oldOverflow=l.style.overflow,l.dataset.scrollWidth=l.clientWidth.toString(),je(l,t.m("collapse"))):(je(l,t.m("collapse")),l.dataset.oldOverflow=l.style.overflow,l.dataset.scrollWidth=l.clientWidth.toString(),lt(l,t.m("collapse"))),l.style.width=`${l.scrollWidth}px`,l.style.overflow="hidden"},onLeave(l){je(l,"horizontal-collapse-transition"),l.style.width=`${l.dataset.scrollWidth}px`}}}}}),[["render",function(t,l,a,o,r,u){return E(),se(Bt,rl({mode:"out-in"},t.listeners),{default:F(()=>[ge(t.$slots,"default")]),_:3},16)}],["__file","menu-collapse-transition.vue"]]);function Gt(t,l){const a=h(()=>{let o=t.parent;const r=[l.value];for(;o.type.name!=="ElMenu";)o.props.index&&r.unshift(o.props.index),o=o.parent;return r});return{parentMenu:h(()=>{let o=t.parent;for(;o&&!["ElMenu","ElSubMenu"].includes(o.type.name);)o=o.parent;return o}),indexPath:a}}function Kl(t){return h(()=>{const l=t.backgroundColor;return l?new ul(l).shade(20).toString():""})}const Yt=(t,l)=>{const a=ve("menu");return h(()=>a.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":Kl(t).value||"","active-color":t.activeTextColor||"",level:`${l}`}))},Xl=at({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Le},expandOpenIcon:{type:Le},collapseCloseIcon:{type:Le},collapseOpenIcon:{type:Le}}),pt="ElSubMenu";var vt=D({name:pt,props:Xl,setup(t,{slots:l,expose:a}){const o=ot(),{indexPath:r,parentMenu:u}=Gt(o,h(()=>t.index)),i=ve("menu"),d=ve("sub-menu"),p=Re("rootMenu");p||Pe(pt,"can not inject root menu");const v=Re(`subMenu:${u.value.uid}`);v||Pe(pt,"can not inject sub menu");const c=T({}),m=T({});let y;const O=T(!1),P=T(),s=T(null),f=h(()=>le.value==="horizontal"&&V.value?"bottom-start":"right-start"),k=h(()=>le.value==="horizontal"&&V.value||le.value==="vertical"&&!p.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?Z.value?t.expandOpenIcon:t.expandCloseIcon:cl:t.collapseCloseIcon&&t.collapseOpenIcon?Z.value?t.collapseOpenIcon:t.collapseCloseIcon:dl),V=h(()=>v.level===0),W=h(()=>{const g=t.teleported;return g===void 0?V.value:g}),K=h(()=>p.props.collapse?`${i.namespace.value}-zoom-in-left`:`${i.namespace.value}-zoom-in-top`),j=h(()=>le.value==="horizontal"&&V.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"]),Z=h(()=>p.openedMenus.includes(t.index)),R=h(()=>{let g=!1;return Object.values(c.value).forEach(B=>{B.active&&(g=!0)}),Object.values(m.value).forEach(B=>{B.active&&(g=!0)}),g}),le=h(()=>p.props.mode),_=He({index:t.index,indexPath:r,active:R}),C=Yt(p.props,v.level+1),L=h(()=>{var g;return(g=t.popperOffset)!=null?g:p.props.popperOffset}),q=h(()=>{var g;return(g=t.popperClass)!=null?g:p.props.popperClass}),U=h(()=>{var g;return(g=t.showTimeout)!=null?g:p.props.showTimeout}),ae=h(()=>{var g;return(g=t.hideTimeout)!=null?g:p.props.hideTimeout}),ue=g=>{var B,H,x;g||(x=(H=(B=s.value)==null?void 0:B.popperRef)==null?void 0:H.popperInstanceRef)==null||x.destroy()},Q=()=>{p.props.menuTrigger==="hover"&&p.props.mode==="horizontal"||p.props.collapse&&p.props.mode==="vertical"||t.disabled||p.handleSubMenuClick({index:t.index,indexPath:r.value,active:R.value})},M=(g,B=U.value)=>{var H;g.type!=="focus"&&(p.props.menuTrigger==="click"&&p.props.mode==="horizontal"||!p.props.collapse&&p.props.mode==="vertical"||t.disabled?v.mouseInChild.value=!0:(v.mouseInChild.value=!0,y==null||y(),{stop:y}=At(()=>{p.openMenu(t.index,r.value)},B),W.value&&((H=u.value.vnode.el)==null||H.dispatchEvent(new MouseEvent("mouseenter")))))},S=(g=!1)=>{var B;p.props.menuTrigger==="click"&&p.props.mode==="horizontal"||!p.props.collapse&&p.props.mode==="vertical"?v.mouseInChild.value=!1:(y==null||y(),v.mouseInChild.value=!1,{stop:y}=At(()=>!O.value&&p.closeMenu(t.index,r.value),ae.value),W.value&&g&&((B=v.handleMouseleave)==null||B.call(v,!0)))};re(()=>p.props.collapse,g=>ue(!!g));{const g=H=>{m.value[H.index]=H},B=H=>{delete m.value[H.index]};Ue(`subMenu:${o.uid}`,{addSubMenu:g,removeSubMenu:B,handleMouseleave:S,mouseInChild:O,level:v.level+1})}return a({opened:Z}),ye(()=>{p.addSubMenu(_),v.addSubMenu(_)}),Et(()=>{v.removeSubMenu(_),p.removeSubMenu(_)}),()=>{var g;const B=[(g=l.title)==null?void 0:g.call(l),ee(tt,{class:d.e("icon-arrow"),style:{transform:Z.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&p.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ve(k.value)?ee(o.appContext.components[k.value]):ee(k.value)})],H=p.isMenuPopup?ee(zt,{ref:s,visible:Z.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:!0,popperClass:q.value,placement:f.value,teleported:W.value,fallbackPlacements:j.value,transition:K.value,gpuAcceleration:!1},{content:()=>{var x;return ee("div",{class:[i.m(le.value),i.m("popup-container"),q.value],onMouseenter:w=>M(w,100),onMouseleave:()=>S(!0),onFocus:w=>M(w,100)},[ee("ul",{class:[i.b(),i.m("popup"),i.m(`popup-${f.value}`)],style:C.value},[(x=l.default)==null?void 0:x.call(l)])])},default:()=>ee("div",{class:d.e("title"),onClick:Q},B)}):ee(oe,{},[ee("div",{class:d.e("title"),ref:P,onClick:Q},B),ee(pl,{},{default:()=>{var x;return Ie(ee("ul",{role:"menu",class:[i.b(),i.m("inline")],style:C.value},[(x=l.default)==null?void 0:x.call(l)]),[[vl,Z.value]])}})]);return ee("li",{class:[d.b(),d.is("active",R.value),d.is("opened",Z.value),d.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:Z.value,onMouseenter:M,onMouseleave:()=>S(),onFocus:M},[H])}}});const Ql=at({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:nt(Array),default:()=>ml([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Le,default:()=>hl},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),mt=t=>Array.isArray(t)&&t.every(l=>Ve(l));var ea=D({name:"ElMenu",props:Ql,emits:{close:(t,l)=>Ve(t)&&mt(l),open:(t,l)=>Ve(t)&&mt(l),select:(t,l,a,o)=>Ve(t)&&mt(l)&&wl(a)&&(o===void 0||o instanceof Promise)},setup(t,{emit:l,slots:a,expose:o}){const r=ot(),u=r.appContext.config.globalProperties.$router,i=T(),d=ve("menu"),p=ve("sub-menu"),v=T(-1),c=T(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),m=T(t.defaultActive),y=T({}),O=T({}),P=h(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),s=(_,C)=>{c.value.includes(_)||(t.uniqueOpened&&(c.value=c.value.filter(L=>C.includes(L))),c.value.push(_),l("open",_,C))},f=_=>{const C=c.value.indexOf(_);C!==-1&&c.value.splice(C,1)},k=(_,C)=>{f(_),l("close",_,C)},V=({index:_,indexPath:C})=>{c.value.includes(_)?k(_,C):s(_,C)},W=_=>{(t.mode==="horizontal"||t.collapse)&&(c.value=[]);const{index:C,indexPath:L}=_;if(!jt(C)&&!jt(L))if(t.router&&u){const q=_.route||C,U=u.push(q).then(ae=>(ae||(m.value=C),ae));l("select",C,L,{index:C,indexPath:L,route:q},U)}else m.value=C,l("select",C,L,{index:C,indexPath:L})},K=()=>{var _,C;if(!i.value)return-1;const L=Array.from((C=(_=i.value)==null?void 0:_.childNodes)!=null?C:[]).filter(S=>S.nodeName!=="#comment"&&(S.nodeName!=="#text"||S.nodeValue)),q=getComputedStyle(i.value),U=Number.parseInt(q.paddingLeft,10),ae=Number.parseInt(q.paddingRight,10),ue=i.value.clientWidth-U-ae;let Q=0,M=0;return L.forEach((S,g)=>{Q+=(B=>{const H=getComputedStyle(B),x=Number.parseInt(H.marginLeft,10),w=Number.parseInt(H.marginRight,10);return B.offsetWidth+x+w||0})(S),Q<=ue-64&&(M=g+1)}),M===L.length?-1:M};let j=!0;const Z=()=>{if(v.value===K())return;const _=()=>{v.value=-1,Ne(()=>{v.value=K()})};j?_():((C,L=33.34)=>{let q;return()=>{q&&clearTimeout(q),q=setTimeout(()=>{C()},L)}})(_)(),j=!1};let R;re(()=>t.defaultActive,_=>{y.value[_]||(m.value=""),(C=>{const L=y.value,q=L[C]||m.value&&L[m.value]||L[t.defaultActive];m.value=q?q.index:C})(_)}),re(()=>t.collapse,_=>{_&&(c.value=[])}),re(y.value,()=>{const _=m.value&&y.value[m.value];!_||t.mode==="horizontal"||t.collapse||_.indexPath.forEach(C=>{const L=O.value[C];L&&s(C,L.indexPath)})}),fl(()=>{t.mode==="horizontal"&&t.ellipsis?R=gl(i,Z).stop:R==null||R()});const le=T(!1);{const _=U=>{O.value[U.index]=U},C=U=>{delete O.value[U.index]};Ue("rootMenu",He({props:t,openedMenus:c,items:y,subMenus:O,activeIndex:m,isMenuPopup:P,addMenuItem:U=>{y.value[U.index]=U},removeMenuItem:U=>{delete y.value[U.index]},addSubMenu:_,removeSubMenu:C,openMenu:s,closeMenu:k,handleMenuItemClick:W,handleSubMenuClick:V})),Ue(`subMenu:${r.uid}`,{addSubMenu:_,removeSubMenu:C,mouseInChild:le,level:0})}return ye(()=>{t.mode==="horizontal"&&new Zl(r.vnode.el,d.namespace.value)}),o({open:_=>{const{indexPath:C}=O.value[_];C.forEach(L=>s(L,C))},close:f,handleResize:Z}),()=>{var _,C;let L=(C=(_=a.default)==null?void 0:_.call(a))!=null?C:[];const q=[];if(t.mode==="horizontal"&&i.value){const Q=bl(L),M=v.value===-1?Q:Q.slice(0,v.value),S=v.value===-1?[]:Q.slice(v.value);S!=null&&S.length&&t.ellipsis&&(L=M,q.push(ee(vt,{index:"sub-menu-more",class:p.e("hide-arrow"),popperOffset:t.popperOffset},{title:()=>ee(tt,{class:p.e("icon-more")},{default:()=>ee(t.ellipsisIcon)}),default:()=>S})))}const U=Yt(t,0),ae=t.closeOnClickOutside?[[xl,()=>{c.value.length&&(le.value||(c.value.forEach(Q=>{return l("close",Q,(M=Q,O.value[M].indexPath));var M}),c.value=[]))}]]:[],ue=Ie(ee("ul",{key:String(t.collapse),role:"menubar",ref:i,style:U.value,class:{[d.b()]:!0,[d.m(t.mode)]:!0,[d.m("collapse")]:t.collapse}},[...L,...q]),ae);return t.collapseTransition&&t.mode==="vertical"?ee(Jl,()=>ue):ue}}});const ta=at({index:{type:nt([String,null]),default:null},route:{type:nt([String,Object])},disabled:Boolean}),ht="ElMenuItem";var Zt=ze(D({name:ht,components:{ElTooltip:zt},props:ta,emits:{click:t=>Ve(t.index)&&Array.isArray(t.indexPath)},setup(t,{emit:l}){const a=ot(),o=Re("rootMenu"),r=ve("menu"),u=ve("menu-item");o||Pe(ht,"can not inject root menu");const{parentMenu:i,indexPath:d}=Gt(a,yl(t,"index")),p=Re(`subMenu:${i.value.uid}`);p||Pe(ht,"can not inject sub menu");const v=h(()=>t.index===o.activeIndex),c=He({index:t.index,indexPath:d,active:v});return ye(()=>{p.addSubMenu(c),o.addMenuItem(c)}),Et(()=>{p.removeSubMenu(c),o.removeMenuItem(c)}),{parentMenu:i,rootMenu:o,active:v,nsMenu:r,nsMenuItem:u,handleClick:()=>{t.disabled||(o.handleMenuItemClick({index:t.index,indexPath:d.value,route:t.route}),l("click",c))}}}}),[["render",function(t,l,a,o,r,u){const i=Fe("el-tooltip");return E(),J("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]=(...d)=>t.handleClick&&t.handleClick(...d))},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(E(),se(i,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:F(()=>[ge(t.$slots,"title")]),default:F(()=>[b("div",{class:A(t.nsMenu.be("tooltip","trigger"))},[ge(t.$slots,"default")],2)]),_:3},8,["effect"])):(E(),J(oe,{key:1},[ge(t.$slots,"default"),ge(t.$slots,"title")],64))],2)}],["__file","menu-item.vue"]]),Jt=ze(D({name:"ElMenuItemGroup",props:{title:String},setup:()=>({ns:ve("menu-item-group")})}),[["render",function(t,l,a,o,r,u){return E(),J("li",{class:A(t.ns.b())},[b("div",{class:A(t.ns.e("title"))},[t.$slots.title?ge(t.$slots,"title",{key:1}):(E(),J(oe,{key:0},[de(z(t.title),1)],64))],2),b("ul",null,[ge(t.$slots,"default")])],2)}],["__file","menu-item-group.vue"]]);const la=Ot(ea,{MenuItem:Zt,MenuItemGroup:Jt,SubMenu:vt}),aa=st(Zt);st(Jt);const oa=st(vt),na=D({name:"BackTop",__name:"Backtop",setup(t){const{getPrefixCls:l,variables:a}=ie(),o=l("backtop");return(r,u)=>(E(),se(e(Dl),{class:A(`${e(o)}-backtop`),target:`.${e(a).namespace}-layout-content-scrollbar .${e(a).elNamespace}-scrollbar__wrap`},null,8,["class","target"]))}}),sa=["onClick"],ra=D({name:"ColorRadioPicker",__name:"ColorRadioPicker",props:{schema:{type:Array,default:()=>[]},modelValue:Cl.string.def("")},emits:["update:modelValue","change"],setup(t,{emit:l}){const{getPrefixCls:a}=ie(),o=a("color-radio-picker"),r=t,u=l,i=T(r.modelValue);return re(()=>r.modelValue,d=>{d!==e(i)&&(i.value=d)}),re(()=>i.value,d=>{u("update:modelValue",d),u("change",d)}),(d,p)=>{const v=Me;return E(),J("div",{class:A([e(o),"flex flex-wrap space-x-14px"])},[(E(!0),J(oe,null,rt(t.schema,(c,m)=>(E(),J("span",{key:`radio-${m}`,class:A([{"is-active":e(i)===c},"mb-5px h-20px w-20px cursor-pointer border-2px border-gray-300 rounded-2px border-solid text-center leading-20px"]),style:Pt({background:c}),onClick:y=>i.value=c},[e(i)===c?(E(),se(v,{key:0,size:16,color:"#fff",icon:"ep:check"})):Ce("",!0)],14,sa))),128))],2)}}}),ft=_e(ra,[["__scopeId","data-v-61582eab"]]),ia=Symbol("watermark-dom"),ua={class:"flex items-center justify-between"},ca={class:"text-14px"},da={class:"flex items-center justify-between"},pa={class:"text-14px"},va={class:"flex items-center justify-between"},ma={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"},wa={class:"text-14px"},ya={class:"flex items-center justify-between"},Ca={class:"text-14px"},Ma={class:"flex items-center justify-between"},_a={class:"text-14px"},ka={class:"flex items-center justify-between"},Ta={class:"text-14px"},Va={class:"flex items-center justify-between"},Ia={class:"text-14px"},$a={class:"flex items-center justify-between"},Sa={class:"text-14px"},Pa={class:"flex items-center justify-between"},La={class:"text-14px"},Ba={class:"flex items-center justify-between"},Oa={class:"text-14px"},Ea={class:"flex items-center justify-between"},za={class:"text-14px"},Aa={class:"flex items-center justify-between"},ja={class:"text-14px"},Ra={class:"flex items-center justify-between"},Ha={class:"text-14px"},Ua=D({name:"InterfaceDisplay",__name:"InterfaceDisplay",setup(t){const{t:l}=$e(),{getPrefixCls:a}=ie(),{setWatermark:o}=function(x=document.body){let w=()=>{};const N=ia.toString(),fe=()=>{const I=document.getElementById(N);I&&x&&x.removeChild(I),window.removeEventListener("resize",w)},$=I=>{fe();const ce=document.createElement("canvas");ce.width=300,ce.height=240;const X=ce.getContext("2d");X&&(X.rotate(-20*Math.PI/120),X.font="15px Vedana",X.fillStyle="rgba(0, 0, 0, 0.15)",X.textAlign="left",X.textBaseline="middle",X.fillText(I,ce.width/20,ce.height));const ne=document.createElement("div");return ne.id=N,ne.style.pointerEvents="none",ne.style.top="0px",ne.style.left="0px",ne.style.position="absolute",ne.style.zIndex="100000000",ne.style.width=document.documentElement.clientWidth+"px",ne.style.height=document.documentElement.clientHeight+"px",ne.style.background="url("+ce.toDataURL("image/png")+") left top repeat",x&&x.appendChild(ne),N};return{setWatermark:function(I){$(I),w=()=>{$(I)},window.addEventListener("resize",w)},clear:fe}}(),r=a("interface-display"),u=pe(),i=T(),d=T(u.getBreadcrumb),p=x=>{u.setBreadcrumb(x)},v=T(u.getBreadcrumbIcon),c=x=>{u.setBreadcrumbIcon(x)},m=T(u.getHamburger),y=x=>{u.setHamburger(x)},O=T(u.getScreenfull),P=x=>{u.setScreenfull(x)},s=T(u.getSize),f=x=>{u.setSize(x)},k=T(u.getLocale),V=x=>{u.setLocale(x)},W=T(u.getMessage),K=x=>{u.setMessage(x)},j=T(u.getTagsView),Z=x=>{Be("--tags-view-height",x?"35px":"0px"),u.setTagsView(x)},R=T(u.getTagsViewIcon),le=x=>{u.setTagsViewIcon(x)},_=T(u.getLogo),C=x=>{u.setLogo(x)},L=T(u.getUniqueOpened),q=x=>{u.setUniqueOpened(x)},U=T(u.getFixedHeader),ae=x=>{u.setFixedHeader(x)},ue=T(u.getFooter),Q=x=>{u.setFooter(x)},M=T(u.getGreyMode),S=x=>{u.setGreyMode(x)},g=T(u.getFixedMenu),B=x=>{u.setFixedMenu(x)},H=h(()=>u.getLayout);return re(()=>H.value,x=>{x==="top"&&u.setCollapse(!1)}),(x,w)=>{const N=Ml,fe=_l;return E(),J("div",{class:A(e(r))},[b("div",ua,[b("span",ca,z(e(l)("setting.breadcrumb")),1),n(N,{modelValue:e(d),"onUpdate:modelValue":w[0]||(w[0]=$=>G(d)?d.value=$:null),onChange:p},null,8,["modelValue"])]),b("div",da,[b("span",pa,z(e(l)("setting.breadcrumbIcon")),1),n(N,{modelValue:e(v),"onUpdate:modelValue":w[1]||(w[1]=$=>G(v)?v.value=$:null),onChange:c},null,8,["modelValue"])]),b("div",va,[b("span",ma,z(e(l)("setting.hamburgerIcon")),1),n(N,{modelValue:e(m),"onUpdate:modelValue":w[2]||(w[2]=$=>G(m)?m.value=$:null),onChange:y},null,8,["modelValue"])]),b("div",ha,[b("span",fa,z(e(l)("setting.screenfullIcon")),1),n(N,{modelValue:e(O),"onUpdate:modelValue":w[3]||(w[3]=$=>G(O)?O.value=$:null),onChange:P},null,8,["modelValue"])]),b("div",ga,[b("span",ba,z(e(l)("setting.sizeIcon")),1),n(N,{modelValue:e(s),"onUpdate:modelValue":w[4]||(w[4]=$=>G(s)?s.value=$:null),onChange:f},null,8,["modelValue"])]),b("div",xa,[b("span",wa,z(e(l)("setting.localeIcon")),1),n(N,{modelValue:e(k),"onUpdate:modelValue":w[5]||(w[5]=$=>G(k)?k.value=$:null),onChange:V},null,8,["modelValue"])]),b("div",ya,[b("span",Ca,z(e(l)("setting.messageIcon")),1),n(N,{modelValue:e(W),"onUpdate:modelValue":w[6]||(w[6]=$=>G(W)?W.value=$:null),onChange:K},null,8,["modelValue"])]),b("div",Ma,[b("span",_a,z(e(l)("setting.tagsView")),1),n(N,{modelValue:e(j),"onUpdate:modelValue":w[7]||(w[7]=$=>G(j)?j.value=$:null),onChange:Z},null,8,["modelValue"])]),b("div",ka,[b("span",Ta,z(e(l)("setting.tagsViewIcon")),1),n(N,{modelValue:e(R),"onUpdate:modelValue":w[8]||(w[8]=$=>G(R)?R.value=$:null),onChange:le},null,8,["modelValue"])]),b("div",Va,[b("span",Ia,z(e(l)("setting.logo")),1),n(N,{modelValue:e(_),"onUpdate:modelValue":w[9]||(w[9]=$=>G(_)?_.value=$:null),onChange:C},null,8,["modelValue"])]),b("div",$a,[b("span",Sa,z(e(l)("setting.uniqueOpened")),1),n(N,{modelValue:e(L),"onUpdate:modelValue":w[10]||(w[10]=$=>G(L)?L.value=$:null),onChange:q},null,8,["modelValue"])]),b("div",Pa,[b("span",La,z(e(l)("setting.fixedHeader")),1),n(N,{modelValue:e(U),"onUpdate:modelValue":w[11]||(w[11]=$=>G(U)?U.value=$:null),onChange:ae},null,8,["modelValue"])]),b("div",Ba,[b("span",Oa,z(e(l)("setting.footer")),1),n(N,{modelValue:e(ue),"onUpdate:modelValue":w[12]||(w[12]=$=>G(ue)?ue.value=$:null),onChange:Q},null,8,["modelValue"])]),b("div",Ea,[b("span",za,z(e(l)("setting.greyMode")),1),n(N,{modelValue:e(M),"onUpdate:modelValue":w[13]||(w[13]=$=>G(M)?M.value=$:null),onChange:S},null,8,["modelValue"])]),b("div",Aa,[b("span",ja,z(e(l)("setting.fixedMenu")),1),n(N,{modelValue:e(g),"onUpdate:modelValue":w[14]||(w[14]=$=>G(g)?g.value=$:null),onChange:B},null,8,["modelValue"])]),b("div",Ra,[b("span",Ha,z(e(l)("watermark.watermark")),1),n(fe,{modelValue:e(i),"onUpdate:modelValue":w[15]||(w[15]=$=>G(i)?i.value=$:null),class:"right-1 w-20",onChange:w[16]||(w[16]=$=>{o(i.value)})},null,8,["modelValue"])])],2)}}}),Na=[(t=>(kl("data-v-d0ae4a8f"),t=t(),Tl(),t))(()=>b("div",{class:"absolute left-[10%] top-0 h-full w-[33%] bg-gray-200"},null,-1))],Fa=D({name:"LayoutRadioPicker",__name:"LayoutRadioPicker",setup(t){const{getPrefixCls:l}=ie(),a=l("layout-radio-picker"),o=pe(),r=h(()=>o.getLayout);return(u,i)=>(E(),J("div",{class:A([e(a),"flex flex-wrap space-x-14px"])},[b("div",{class:A([`${e(a)}__classic`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(r)==="classic"}]),onClick:i[0]||(i[0]=d=>e(o).setLayout("classic"))},null,2),b("div",{class:A([`${e(a)}__top-left`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(r)==="topLeft"}]),onClick:i[1]||(i[1]=d=>e(o).setLayout("topLeft"))},null,2),b("div",{class:A([`${e(a)}__top`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(r)==="top"}]),onClick:i[2]||(i[2]=d=>e(o).setLayout("top"))},null,2),b("div",{class:A([`${e(a)}__cut-menu`,"relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e(r)==="cutMenu"}]),onClick:i[3]||(i[3]=d=>e(o).setLayout("cutMenu"))},Na,2)],2))}}),Wa=_e(Fa,[["__scopeId","data-v-d0ae4a8f"]]),qa={class:"text-16px font-700"},Da={class:"text-center"},Ga={class:"mt-5px"},Ya=D({name:"Setting",__name:"Setting",setup(t){const{t:l}=$e(),a=pe(),{getPrefixCls:o}=ie(),r=o("setting"),u=h(()=>a.getLayout),i=T(!1),d=T(a.getTheme.elColorPrimary),p=s=>{Be("--el-color-primary",s),a.setTheme({elColorPrimary:s});const f=Rt("--left-menu-bg-color",document.documentElement);y(Vl(e(f)))},v=T(a.getTheme.topHeaderBgColor||""),c=s=>{const f=Nt(s),k=f?"#fff":"inherit",V=f?Ft(s,6):"#f6f6f6",W=f?s:"#eee";Be("--top-header-bg-color",s),Be("--top-header-text-color",k),Be("--top-header-hover-color",V),a.setTheme({topHeaderBgColor:s,topHeaderTextColor:k,topHeaderHoverColor:V,topToolBorderColor:W}),e(u)==="top"&&y(s)},m=T(a.getTheme.leftMenuBgColor||""),y=s=>{const f=Rt("--el-color-primary",document.documentElement),k=Nt(s),V={leftMenuBorderColor:k?"inherit":"#eee",leftMenuBgColor:s,leftMenuBgLightColor:k?Ft(s,6):s,leftMenuBgActiveColor:k?"var(--el-color-primary)":Wt(e(f),.1),leftMenuCollapseBgActiveColor:k?"var(--el-color-primary)":Wt(e(f),.1),leftMenuTextColor:k?"#bfcbd9":"#333",leftMenuTextActiveColor:k?"#fff":"var(--el-color-primary)",logoTitleTextColor:k?"#fff":"inherit",logoBorderColor:k?s:"#eee"};a.setTheme(V),a.setCssVarTheme()};u.value!=="top"||a.getIsDark||(v.value="#fff",c("#fff")),re(()=>u.value,s=>{s!=="top"||a.getIsDark?y(e(m)):(v.value="#fff",c("#fff"))});const O=async()=>{const{copy:s,copied:f,isSupported:k}=Il({source:`
      // \u9762\u5305\u5C51
      breadcrumb: ${a.getBreadcrumb},
      // \u9762\u5305\u5C51\u56FE\u6807
      breadcrumbIcon: ${a.getBreadcrumbIcon},
      // \u6298\u53E0\u56FE\u6807
      hamburger: ${a.getHamburger},
      // \u5168\u5C4F\u56FE\u6807
      screenfull: ${a.getScreenfull},
      // \u5C3A\u5BF8\u56FE\u6807
      size: ${a.getSize},
      // \u591A\u8BED\u8A00\u56FE\u6807
      locale: ${a.getLocale},
      // \u6D88\u606F\u56FE\u6807
      message: ${a.getMessage},
      // \u6807\u7B7E\u9875
      tagsView: ${a.getTagsView},
      // \u6807\u7B7E\u9875\u56FE\u6807
      getTagsViewIcon: ${a.getTagsViewIcon},
      // logo
      logo: ${a.getLogo},
      // \u83DC\u5355\u624B\u98CE\u7434
      uniqueOpened: ${a.getUniqueOpened},
      // \u56FA\u5B9Aheader
      fixedHeader: ${a.getFixedHeader},
      // \u9875\u811A
      footer: ${a.getFooter},
      // \u7070\u8272\u6A21\u5F0F
      greyMode: ${a.getGreyMode},
      // layout\u5E03\u5C40
      layout: '${a.getLayout}',
      // \u6697\u9ED1\u6A21\u5F0F
      isDark: ${a.getIsDark},
      // \u7EC4\u4EF6\u5C3A\u5BF8
      currentSize: '${a.getCurrentSize}',
      // \u4E3B\u9898\u76F8\u5173
      theme: {
        // \u4E3B\u9898\u8272
        elColorPrimary: '${a.getTheme.elColorPrimary}',
        // \u5DE6\u4FA7\u83DC\u5355\u8FB9\u6846\u989C\u8272
        leftMenuBorderColor: '${a.getTheme.leftMenuBorderColor}',
        // \u5DE6\u4FA7\u83DC\u5355\u80CC\u666F\u989C\u8272
        leftMenuBgColor: '${a.getTheme.leftMenuBgColor}',
        // \u5DE6\u4FA7\u83DC\u5355\u6D45\u8272\u80CC\u666F\u989C\u8272
        leftMenuBgLightColor: '${a.getTheme.leftMenuBgLightColor}',
        // \u5DE6\u4FA7\u83DC\u5355\u9009\u4E2D\u80CC\u666F\u989C\u8272
        leftMenuBgActiveColor: '${a.getTheme.leftMenuBgActiveColor}',
        // \u5DE6\u4FA7\u83DC\u5355\u6536\u8D77\u9009\u4E2D\u80CC\u666F\u989C\u8272
        leftMenuCollapseBgActiveColor: '${a.getTheme.leftMenuCollapseBgActiveColor}',
        // \u5DE6\u4FA7\u83DC\u5355\u5B57\u4F53\u989C\u8272
        leftMenuTextColor: '${a.getTheme.leftMenuTextColor}',
        // \u5DE6\u4FA7\u83DC\u5355\u9009\u4E2D\u5B57\u4F53\u989C\u8272
        leftMenuTextActiveColor: '${a.getTheme.leftMenuTextActiveColor}',
        // logo\u5B57\u4F53\u989C\u8272
        logoTitleTextColor: '${a.getTheme.logoTitleTextColor}',
        // logo\u8FB9\u6846\u989C\u8272
        logoBorderColor: '${a.getTheme.logoBorderColor}',
        // \u5934\u90E8\u80CC\u666F\u989C\u8272
        topHeaderBgColor: '${a.getTheme.topHeaderBgColor}',
        // \u5934\u90E8\u5B57\u4F53\u989C\u8272
        topHeaderTextColor: '${a.getTheme.topHeaderTextColor}',
        // \u5934\u90E8\u60AC\u505C\u989C\u8272
        topHeaderHoverColor: '${a.getTheme.topHeaderHoverColor}',
        // \u5934\u90E8\u8FB9\u6846\u989C\u8272
        topToolBorderColor: '${a.getTheme.topToolBorderColor}'
      }
    `});k?(await s(),e(f)&&Ht.success(l("setting.copySuccess"))):Ht.error(l("setting.copyFailed"))},P=()=>{const{wsCache:s}=$l();s.delete(it.LAYOUT),s.delete(it.THEME),s.delete(it.IS_DARK),window.location.reload()};return(s,f)=>{const k=Me,V=Sl,W=Pl,K=zl;return E(),J(oe,null,[b("div",{class:A([e(r),"fixed right-0 top-[45%] h-40px w-40px cursor-pointer bg-[var(--el-color-primary)] text-center leading-40px"]),onClick:f[0]||(f[0]=j=>i.value=!0)},[n(k,{color:"#fff",icon:"ep:setting"})],2),n(K,{modelValue:e(i),"onUpdate:modelValue":f[4]||(f[4]=j=>G(i)?i.value=j:null),"z-index":4e3,direction:"rtl",size:"350px"},{header:F(()=>[b("span",qa,z(e(l)("setting.projectSetting")),1)]),default:F(()=>[b("div",Da,[n(V,null,{default:F(()=>[de(z(e(l)("setting.theme")),1)]),_:1}),n(e(Al)),n(V,null,{default:F(()=>[de(z(e(l)("setting.layout")),1)]),_:1}),n(Wa),n(V,null,{default:F(()=>[de(z(e(l)("setting.systemTheme")),1)]),_:1}),n(ft,{modelValue:e(d),"onUpdate:modelValue":f[1]||(f[1]=j=>G(d)?d.value=j:null),schema:["#409eff","#009688","#536dfe","#ff5c93","#ee4f12","#0096c7","#9c27b0","#ff9800"],onChange:p},null,8,["modelValue"]),n(V,null,{default:F(()=>[de(z(e(l)("setting.headerTheme")),1)]),_:1}),n(ft,{modelValue:e(v),"onUpdate:modelValue":f[2]||(f[2]=j=>G(v)?v.value=j:null),schema:["#fff","#151515","#5172dc","#e74c3c","#24292e","#394664","#009688","#383f45"],onChange:c},null,8,["modelValue"]),e(u)!=="top"?(E(),J(oe,{key:0},[n(V,null,{default:F(()=>[de(z(e(l)("setting.menuTheme")),1)]),_:1}),n(ft,{modelValue:e(m),"onUpdate:modelValue":f[3]||(f[3]=j=>G(m)?m.value=j:null),schema:["#fff","#001529","#212121","#273352","#191b24","#383f45","#001628","#344058"],onChange:y},null,8,["modelValue"])],64)):Ce("",!0)]),n(V,null,{default:F(()=>[de(z(e(l)("setting.interfaceDisplay")),1)]),_:1}),n(Ua),n(V),b("div",null,[n(W,{class:"w-full",type:"primary",onClick:O},{default:F(()=>[de(z(e(l)("setting.copy")),1)]),_:1})]),b("div",Ga,[n(W,{class:"w-full",type:"danger",onClick:P},{default:F(()=>[de(z(e(l)("setting.clearAndReset")),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}}),Za=_e(Ya,[["__scopeId","data-v-40388337"]]),Ja=(t,l)=>(jl(t,a=>a.path===l)||[]).map(a=>a.path),{renderMenuTitle:Kt}={renderMenuTitle:t=>{const{t:l}=$e(),{title:a="Please set title",icon:o}=t;return o?n(oe,null,[n(Me,{icon:t.icon},null),n("span",{class:"v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap"},[l(a)])]):n("span",{class:"v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap"},[l(a)])}},Ka=()=>{const t=(l,a="/")=>l.filter(o=>{var r;return!((r=o.meta)!=null&&r.hidden)}).map(o=>{const r=o.meta??{},{oneShowingChild:u,onlyOneChild:i}=((p=[],v)=>{const c=T(),m=p.filter(y=>!(y.meta??{}).hidden&&(c.value=y,!0));return m.length===1?{oneShowingChild:!0,onlyOneChild:e(c)}:m.length?{oneShowingChild:!1,onlyOneChild:e(c)}:(c.value={...v,path:"",noShowingChildren:!0},{oneShowingChild:!0,onlyOneChild:e(c)})})(o.children,o),d=We(o.path)?o.path:Se(a,o.path);return!u||i!=null&&i.children&&!(i!=null&&i.noShowingChildren)||r!=null&&r.alwaysShow?n(oa,{index:d},{title:()=>Kt(r),default:()=>t(o.children,d)}):n(aa,{index:i?Se(d,i.path):d},{default:()=>Kt(i?i==null?void 0:i.meta:r)})});return{renderMenuItem:t}},{getPrefixCls:Xa}=ie(),gt=Xa("menu"),Qa=D({name:"Menu",props:{menuSelect:{type:Function,default:void 0}},setup(t){const l=pe(),a=h(()=>l.getLayout),{push:o,currentRoute:r}=ut(),u=ct(),i=h(()=>["classic","topLeft","cutMenu"].includes(e(a))?"vertical":"horizontal"),d=h(()=>e(a)==="cutMenu"?u.getMenuTabRouters:u.getRouters),p=h(()=>l.getCollapse),v=h(()=>l.getUniqueOpened),c=h(()=>{const{meta:P,path:s}=e(r);return P.activeMenu?P.activeMenu:s}),m=P=>{t.menuSelect&&t.menuSelect(P),We(P)?window.open(P):o(P)},y=()=>{if(e(a)==="top")return O();{let s;return n(ke,null,typeof(P=s=O())=="function"||Object.prototype.toString.call(P)==="[object Object]"&&!Ll(P)?s:{default:()=>[s]})}var P},O=()=>n(la,{defaultActive:e(c),mode:e(i),collapse:e(a)!=="top"&&e(a)!=="cutMenu"&&e(p),uniqueOpened:e(a)!=="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:P}=Ka(e(i));return P(e(d))}});return()=>n("div",{id:gt,class:[`${gt} ${gt}__${e(i)}`,"h-[100%] overflow-hidden flex-col bg-[var(--left-menu-bg-color)]",{"w-[var(--left-menu-min-width)]":e(p)&&e(a)!=="cutMenu","w-[var(--left-menu-max-width)]":!e(p)&&e(a)!=="cutMenu"}]},[y()])}}),Ge=_e(Qa,[["__scopeId","data-v-bf896d9b"]]),Ye=He({}),Xt=(t,l)=>{const a=[];for(const o of t){let r=null;const u=o.meta??{};if(!u.hidden||u.canTo){const i=Ja(l,o.path),d=We(o.path)?o.path:i.join("/");r=dt(o),r.path=d,o.children&&r&&(r.children=Xt(o.children,l)),r&&a.push(r),i.length&&Reflect.has(Ye,i[0])&&Ye[i[0]].push(d)}}return a},{getPrefixCls:eo,variables:to}=ie(),bt=eo("tab-menu"),lo=D({name:"TabMenu",setup(){const{push:t,currentRoute:l}=ut(),{t:a}=$e(),o=pe(),r=h(()=>o.getCollapse),u=h(()=>o.getFixedMenu),i=ct(),d=h(()=>i.getRouters),p=h(()=>e(d).filter(s=>{var f;return!((f=s==null?void 0:s.meta)!=null&&f.hidden)})),v=()=>{o.setCollapse(!e(r))};ye(()=>{var s;if(e(u)){const f=`/${e(l).path.split("/")[1]}`,k=(s=e(p).find(V=>{var W,K,j;return(((W=V.meta)==null?void 0:W.alwaysShow)||((K=V==null?void 0:V.children)==null?void 0:K.length)&&((j=V==null?void 0:V.children)==null?void 0:j.length)>1)&&V.path===f}))==null?void 0:s.children;y.value=f,k&&i.setMenuTabRouters(dt(k).map(V=>(V.path=Se(e(y),V.path),V)))}}),re(()=>d.value,s=>{(f=>{for(const k of f){const V=k.meta??{};V!=null&&V.hidden||(Ye[k.path]=[])}})(s),Xt(s,s)},{immediate:!0,deep:!0});const c=T(!0);re(()=>r.value,s=>{s?c.value=!s:setTimeout(()=>{c.value=!s},200)});const m=T(!!e(u)),y=T(""),O=s=>{const{path:f}=e(l);return!!Ye[s].includes(f)},P=()=>{e(m)&&!e(u)&&(m.value=!1)};return()=>n("div",{id:`${to.namespace}-menu`,class:[bt,"relative bg-[var(--left-menu-bg-color)] top-1px layout-border__right",{"w-[var(--tab-menu-max-width)]":!e(r),"w-[var(--tab-menu-min-width)]":e(r)}],onMouseleave:P},[n(ke,{class:"!h-[calc(100%-var(--tab-menu-collapse-height)-1px)]"},{default:()=>[n("div",null,{default:()=>e(p).map(s=>{var k,V,W,K,j,Z;const f=(k=s.meta)!=null&&k.alwaysShow||(V=s==null?void 0:s.children)!=null&&V.length&&((W=s==null?void 0:s.children)==null?void 0:W.length)>1?s:{...(s==null?void 0:s.children)&&(s==null?void 0:s.children[0]),path:Se(s.path,(K=(s==null?void 0:s.children)&&(s==null?void 0:s.children[0]))==null?void 0:K.path)};return n("div",{class:[`${bt}__item`,"text-center text-12px relative py-12px cursor-pointer",{"is-active":O(s.path)}],onClick:()=>{(R=>{if(We(R.path))return void window.open(R.path);const le=R.children?R.path:R.path.split("/")[0],_=e(y);y.value=R.children?R.path:R.path.split("/")[0],R.children?(le!==_&&e(m)||(m.value=!!e(u)||!e(m)),e(m)&&i.setMenuTabRouters(dt(R.children).map(C=>(C.path=Se(e(y),C.path),C)))):(t(R.path),i.setMenuTabRouters([]),m.value=!1)})(f)}},[n("div",null,[n(Me,{icon:(j=f==null?void 0:f.meta)==null?void 0:j.icon},null)]),e(c)?n("p",{class:"mt-5px break-words px-2px"},[a((Z=f.meta)==null?void 0:Z.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(Me,{icon:e(r)?"ep:d-arrow-right":"ep:d-arrow-left"},null)]),n(Ge,{class:["!absolute top-0 z-11",{"!left-[var(--tab-menu-min-width)]":e(r),"!left-[var(--tab-menu-max-width)]":!e(r),"!w-[calc(var(--left-menu-max-width)+1px)]":e(m)||e(u),"!w-0":!e(m)&&!e(u)}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null)])}}),ao=_e(lo,[["__scopeId","data-v-43e546e8"]]),Qt=(t,l="")=>{let a=[];return t.forEach(o=>{const r=o.meta,u=Se(l,o.path);if(r!=null&&r.affix&&a.push({...o,path:u,fullPath:u}),o.children){const i=Qt(o.children,u);i.length>=1&&(a=[...a,...i])}}),a},el=D({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:a}){const{getPrefixCls:o}=ie(),r=o("context-menu"),{t:u}=$e(),i=a,d=t,p=m=>{m.command&&m.command(m)},v=m=>{i("visibleChange",m,d.tagItem)},c=T();return l({elDropdownMenuRef:c,tagItem:d.tagItem}),(m,y)=>{const O=Me,P=Rl,s=Hl,f=Ul;return E(),se(f,{ref_key:"elDropdownMenuRef",ref:c,class:A(e(r)),trigger:t.trigger,placement:"bottom-start","popper-class":"v-context-menu-popper",onCommand:p,onVisibleChange:v},{dropdown:F(()=>[n(s,null,{default:F(()=>[(E(!0),J(oe,null,rt(t.schema,(k,V)=>(E(),se(P,{key:`dropdown${V}`,command:k,disabled:k.disabled,divided:k.divided},{default:F(()=>[n(O,{icon:k.icon},null,8,["icon"]),de(" "+z(e(u)(k.label)),1)]),_:2},1032,["command","disabled","divided"]))),128))]),_:1})]),default:F(()=>[ge(m.$slots,"default")]),_:3},8,["class","trigger"])}}});function Oe({el:t,position:l="scrollLeft",to:a,duration:o=500,callback:r}){const u=T(!1),i=t[l],d=a-i,p=20;let v=0;function c(){if(!e(u))return;v+=p;const m=(y=v,O=i,P=d,(y/=o/2)<1?P/2*y*y+O:-P/2*(--y*(y-2)-1)+O);var y,O,P;((s,f,k)=>{s[f]=k})(t,l,m),v<o&&e(u)?requestAnimationFrame(c):r&&r()}return{start:function(){u.value=!0,c()},stop:function(){u.value=!1}}}const oo=["id"],no={class:"flex-1 overflow-hidden"},so={class:"h-full flex"},ro=["onClick"],io=D({__name:"TagsView",setup(t){const{getPrefixCls:l}=ie(),a=l("tags-view"),{t:o}=$e(),{currentRoute:r,push:u,replace:i}=ut(),d=ct(),p=h(()=>d.getRouters),v=qt(),c=h(()=>v.getVisitedViews),m=T([]),y=pe(),O=h(()=>y.getTagsViewIcon),P=h(()=>y.getIsDark),s=T(),f=()=>{const{name:M}=e(r);return M&&(s.value=e(r),v.addView(e(r))),!1},k=M=>{var S;(S=M==null?void 0:M.meta)!=null&&S.affix||(v.delView(M),C(M)&&R())},V=()=>{v.delAllViews(),R()},W=()=>{v.delOthersViews(e(s))},K=async M=>{if(!M)return;v.delCachedView();const{path:S,query:g}=M;await Ne(),i({path:"/redirect"+S,query:g})},j=()=>{v.delLeftViews(e(s))},Z=()=>{v.delRightViews(e(s))},R=()=>{const M=v.getVisitedViews.slice(-1)[0];if(M)u(M);else{if(e(r).path===d.getAddRouters[0].path||e(r).path===d.getAddRouters[0].redirect)return void f();u("/")}},le=Ut(),_=M=>{var x;const S=(x=e(U))==null?void 0:x.wrapRef;let g=null,B=null;const H=e(le);if(H.length>0&&(g=H[0],B=H[H.length-1]),(g==null?void 0:g.to).fullPath===M.fullPath){const{start:w}=Oe({el:S,position:"scrollLeft",to:0,duration:500});w()}else if((B==null?void 0:B.to).fullPath===M.fullPath){const{start:w}=Oe({el:S,position:"scrollLeft",to:S.scrollWidth-S.offsetWidth,duration:500});w()}else{const w=H.findIndex(X=>(X==null?void 0:X.to).fullPath===M.fullPath),N=document.getElementsByClassName(`${a}__item`),fe=N[w-1],$=N[w+1],I=$.offsetLeft+$.offsetWidth+4,ce=fe.offsetLeft-4;if(I>e(ae)+S.offsetWidth){const{start:X}=Oe({el:S,position:"scrollLeft",to:I-S.offsetWidth,duration:500});X()}else if(ce<e(ae)){const{start:X}=Oe({el:S,position:"scrollLeft",to:ce,duration:500});X()}}},C=M=>M.path===e(r).path,L=Ut(),q=(M,S)=>{if(M)for(const g of e(L)){const B=g.elDropdownMenuRef;S.fullPath!==g.tagItem.fullPath&&(B==null||B.handleClose())}},U=T(),ae=T(0),ue=({scrollLeft:M})=>{ae.value=M},Q=M=>{var B;const S=(B=e(U))==null?void 0:B.wrapRef,{start:g}=Oe({el:S,position:"scrollLeft",to:e(ae)+M,duration:500});g()};return ye(()=>{(()=>{m.value=Qt(e(p));for(const M of e(m))M.name&&v.addVisitedView(M)})(),f()}),re(()=>r.value,()=>{f(),(async()=>{await Ne();for(const M of e(c))if(M.fullPath===e(r).path){_(M),M.fullPath!==e(r).fullPath&&v.updateVisitedView(e(r));break}})()}),(M,S)=>{var H,x,w,N,fe,$;const g=Me,B=Fe("router-link");return E(),J("div",{id:e(a),class:A([e(a),"relative w-full flex bg-[#fff] dark:bg-[var(--el-bg-color)]"])},[b("span",{class:A([`${e(a)}__tool ${e(a)}__tool--first`,"h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"]),onClick:S[0]||(S[0]=I=>Q(-200))},[n(g,{icon:"ep:d-arrow-left",color:"var(--el-text-color-placeholder)","hover-color":P.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2),b("div",no,[n(e(ke),{ref_key:"scrollbarRef",ref:U,class:"h-full",onScroll:ue},{default:F(()=>[b("div",so,[(E(!0),J(oe,null,rt(c.value,I=>{var ce,X,ne,xt,wt,yt,Ct,Mt,_t;return E(),se(e(el),{ref_for:!0,ref:e(L).set,schema:[{icon:"ep:refresh",label:e(o)("common.reload"),disabled:((ce=s.value)==null?void 0:ce.fullPath)!==I.fullPath,command:()=>{K(I)}},{icon:"ep:close",label:e(o)("common.closeTab"),disabled:!!((X=c.value)!=null&&X.length)&&((ne=s.value)==null?void 0:ne.meta.affix),command:()=>{k(I)}},{divided:!0,icon:"ep:d-arrow-left",label:e(o)("common.closeTheLeftTab"),disabled:!!((xt=c.value)!=null&&xt.length)&&(I.fullPath===c.value[0].fullPath||((wt=s.value)==null?void 0:wt.fullPath)!==I.fullPath),command:()=>{j()}},{icon:"ep:d-arrow-right",label:e(o)("common.closeTheRightTab"),disabled:!!((yt=c.value)!=null&&yt.length)&&(I.fullPath===c.value[c.value.length-1].fullPath||((Ct=s.value)==null?void 0:Ct.fullPath)!==I.fullPath),command:()=>{Z()}},{divided:!0,icon:"ep:discount",label:e(o)("common.closeOther"),disabled:((Mt=s.value)==null?void 0:Mt.fullPath)!==I.fullPath,command:()=>{W()}},{icon:"ep:minus",label:e(o)("common.closeAll"),command:()=>{V()}}],key:I.fullPath,"tag-item":I,class:A([`${e(a)}__item`,(_t=I==null?void 0:I.meta)!=null&&_t.affix?`${e(a)}__item--affix`:"",{"is-active":C(I)}]),onVisibleChange:q},{default:F(()=>[b("div",null,[n(B,{ref_for:!0,ref:e(le).set,to:{...I},custom:""},{default:F(({navigate:al})=>{var kt,Tt,Vt,It,$t;return[b("div",{onClick:al,class:"h-full flex items-center justify-center whitespace-nowrap pl-15px"},[I!=null&&I.matched&&(I!=null&&I.matched[1])&&((Tt=(kt=I==null?void 0:I.matched[1])==null?void 0:kt.meta)!=null&&Tt.icon)&&O.value?(E(),se(g,{key:0,icon:(It=(Vt=I==null?void 0:I.matched[1])==null?void 0:Vt.meta)==null?void 0:It.icon,size:12,class:"mr-5px"},null,8,["icon"])):Ce("",!0),de(" "+z(e(o)(($t=I==null?void 0:I.meta)==null?void 0:$t.title))+" ",1),n(g,{class:A(`${e(a)}__item--close`),color:"#333",icon:"ep:close",size:12,onClick:Lt(wo=>k(I),["prevent","stop"])},null,8,["class","onClick"])],8,ro)]}),_:2},1032,["to"])])]),_:2},1032,["schema","tag-item","class"])}),128))])]),_:1},512)]),b("span",{class:A([`${e(a)}__tool`,"h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"]),onClick:S[1]||(S[1]=I=>Q(200))},[n(g,{icon:"ep:d-arrow-right",color:"var(--el-text-color-placeholder)","hover-color":P.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2),b("span",{class:A([`${e(a)}__tool`,"h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"]),onClick:S[2]||(S[2]=I=>K(s.value))},[n(g,{icon:"ep:refresh-right",color:"var(--el-text-color-placeholder)","hover-color":P.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2),n(e(el),{trigger:"click",schema:[{icon:"ep:refresh",label:e(o)("common.reload"),command:()=>{K(s.value)}},{icon:"ep:close",label:e(o)("common.closeTab"),disabled:!!((H=c.value)!=null&&H.length)&&((x=s.value)==null?void 0:x.meta.affix),command:()=>{k(s.value)}},{divided:!0,icon:"ep:d-arrow-left",label:e(o)("common.closeTheLeftTab"),disabled:!!((w=c.value)!=null&&w.length)&&((N=s.value)==null?void 0:N.fullPath)===c.value[0].fullPath,command:()=>{j()}},{icon:"ep:d-arrow-right",label:e(o)("common.closeTheRightTab"),disabled:!!((fe=c.value)!=null&&fe.length)&&(($=s.value)==null?void 0:$.fullPath)===c.value[c.value.length-1].fullPath,command:()=>{Z()}},{divided:!0,icon:"ep:discount",label:e(o)("common.closeOther"),command:()=>{W()}},{icon:"ep:minus",label:e(o)("common.closeAll"),command:()=>{V()}}]},{default:F(()=>[b("span",{class:A([`${e(a)}__tool`,"block h-[var(--tags-view-height)] w-[var(--tags-view-height)] flex cursor-pointer items-center justify-center"])},[n(g,{icon:"ep:menu",color:"var(--el-text-color-placeholder)","hover-color":P.value?"#fff":"var(--el-color-black)"},null,8,["hover-color"])],2)]),_:1},8,["schema"])],10,oo)}}}),Ze=_e(io,[["__scopeId","data-v-edd6b962"]]),uo=b("img",{class:"h-[calc(var(--logo-height)-10px)] w-[calc(var(--logo-height)-10px)]",src:Nl},null,-1),Je=D({name:"Logo",__name:"Logo",setup(t){const{getPrefixCls:l}=ie(),a=l("logo"),o=pe(),r=T(!0),u=T("/index"),i=h(()=>o.getTitle),d=h(()=>o.getLayout),p=h(()=>o.getCollapse);let v=Bl();return console.log(v),u.value=v&&v===1?"/index":"/home2",console.log(u.value),ye(()=>{e(p)&&(r.value=!1)}),re(()=>p.value,c=>{e(d)!=="topLeft"&&e(d)!=="cutMenu"?c?r.value=!c:setTimeout(()=>{r.value=!c},400):r.value=!0}),re(()=>d.value,c=>{c==="top"||c==="cutMenu"?r.value=!0:e(p)?r.value=!1:r.value=!0}),(c,m)=>{const y=Fe("router-link");return E(),J("div",null,[n(y,{class:A([e(a),d.value!=="classic"?`${e(a)}__Top`:"","flex !h-[var(--logo-height)] items-center cursor-pointer pl-8px relative decoration-none overflow-hidden"]),to:u.value},{default:F(()=>[uo,r.value?(E(),J("div",{key:0,class:A(["ml-10px text-16px font-700",{"text-[var(--logo-title-text-color)]":d.value==="classic","text-[var(--top-header-text-color)]":d.value==="topLeft"||d.value==="top"||d.value==="cutMenu"}])},z(i.value),3)):Ce("",!0)]),_:1},8,["class","to"])])}}}),co={class:"text-14px"},po=D({name:"Footer",__name:"Footer",setup(t){const{getPrefixCls:l}=ie(),a=l("footer"),o=pe(),r=h(()=>o.getTitle);return(u,i)=>(E(),J("div",{class:A([e(a),"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)]"])},[b("span",co,"Copyright \xA92024-"+z(e(r)),1)],2))}}),Ke=D({name:"AppView",__name:"AppView",setup(t){const l=pe(),a=h(()=>l.getLayout),o=h(()=>l.getFixedHeader),r=h(()=>l.getFooter),u=qt(),i=h(()=>u.getCachedViews),d=h(()=>l.getTagsView),p=T(!0);return Ue("reload",()=>{p.value=!1,Ne(()=>p.value=!0)}),(v,c)=>{const m=Fe("router-view");return E(),J(oe,null,[b("section",{class:A(["p-[var(--app-content-padding)] w-[calc(100%-var(--app-content-padding)-var(--app-content-padding))] bg-[var(--app-content-bg-color)] dark:bg-[var(--el-bg-color)]",{"!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]":e(o)&&(e(a)==="classic"||e(a)==="topLeft"||e(a)==="top")&&e(r)||!e(d)&&e(a)==="top"&&e(r),"!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height)-var(--tags-view-height))]":e(d)&&e(a)==="top"&&e(r),"!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(o)&&e(a)==="classic"&&e(r),"!min-h-[calc(100%-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]":!e(o)&&e(a)==="topLeft"&&e(r),"!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding))]":e(o)&&e(a)==="cutMenu"&&e(r),"!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding)-var(--tags-view-height))]":!e(o)&&e(a)==="cutMenu"&&e(r)}])},[e(p)?(E(),se(m,{key:0},{default:F(({Component:y,route:O})=>[(E(),se(Ol,{include:e(i)},[(E(),se(El(y),{key:O.fullPath}))],1032,["include"]))]),_:1})):Ce("",!0)],2),e(r)?(E(),se(e(po),{key:0})):Ce("",!0)],64)}}}),{getPrefixCls:vo}=ie(),xe=vo("layout"),be=pe(),Xe=h(()=>be.getPageLoading),we=h(()=>be.getTagsView),te=h(()=>be.getCollapse),Ee=h(()=>be.logo),Y=h(()=>be.getFixedHeader),he=h(()=>be.getMobile),Te=h(()=>be.getFixedMenu),Qe=()=>({renderClassic:()=>n(oe,null,[n("div",{class:["absolute top-0 left-0 h-full layout-border__right",{"!fixed z-3000":he.value}]},[Ee.value?n(Je,{class:["bg-[var(--left-menu-bg-color)] relative",{"!pl-0":he.value&&te.value,"w-[var(--left-menu-min-width)]":be.getCollapse,"w-[var(--left-menu-max-width)]":!be.getCollapse}],style:"transition: all var(--transition-time-02);"},null):void 0,n(Ge,{class:[{"!h-[calc(100%-var(--logo-height))]":Ee.value}]},null)]),n("div",{class:[`${xe}-content`,"absolute top-0 h-[100%]",{"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]":te.value&&!he.value&&!he.value,"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]":!te.value&&!he.value&&!he.value,"fixed !w-full !left-0":he.value}],style:"transition: all var(--transition-time-02);"},[Ie(n(ke,{class:[`${xe}-content-scrollbar`,{"!h-[calc(100%-var(--top-tool-height)-var(--tags-view-height))] mt-[calc(var(--top-tool-height)+var(--tags-view-height))]":Y.value}]},{default:()=>[n("div",{class:[{"fixed top-0 left-0 z-10":Y.value,"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)]":te.value&&Y.value&&!he.value,"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)]":!te.value&&Y.value&&!he.value,"!w-full !left-0":he.value}],style:"transition: all var(--transition-time-02);"},[n(De,{class:["bg-[var(--top-header-bg-color)]",{"layout-border__bottom":!we.value}]},null),we.value?n(Ze,{class:"layout-border__top layout-border__bottom"},null):void 0]),n(Ke,null,null)]}),[[qe("loading"),Xe.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)]"},[Ee.value?n(Je,{class:"custom-hover"},null):void 0,n(De,{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:[`${xe}-content`,"h-[100%]",{"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]":te.value,"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]":!te.value}],style:"transition: all var(--transition-time-02);"},[Ie(n(ke,{class:[`${xe}-content-scrollbar`,{"!h-[calc(100%-var(--tags-view-height))] mt-[calc(var(--tags-view-height))]":Y.value&&we.value}]},{default:()=>[we.value?n(Ze,{class:["layout-border__bottom absolute",{"!fixed top-0 left-0 z-10":Y.value,"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[calc(var(--logo-height)+1px)]":te.value&&Y.value,"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[calc(var(--logo-height)+1px)]":!te.value&&Y.value}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null):void 0,n(Ke,null,null)]}),[[qe("loading"),Xe.value]])])])]),renderTop:()=>n(oe,null,[n("div",{class:["flex items-center justify-between bg-[var(--top-header-bg-color)] relative",{"layout-border__bottom":!we.value}]},[Ee.value?n(Je,{class:"custom-hover"},null):void 0,n(Ge,{class:"h-[var(--top-tool-height)] flex-1 px-10px"},null),n(De,null,null)]),n("div",{class:[`${xe}-content`,"w-full",{"h-[calc(100%-var(--app-footer-height))]":!Y.value,"h-[calc(100%-var(--tags-view-height)-var(--app-footer-height))]":Y.value}]},[Ie(n(ke,{class:[`${xe}-content-scrollbar`,{"mt-[var(--tags-view-height)] !pb-[calc(var(--tags-view-height)+var(--app-footer-height))]":Y.value,"pb-[var(--app-footer-height)]":!Y.value}]},{default:()=>[we.value?n(Ze,{class:["layout-border__bottom layout-border__top relative",{"!fixed w-full top-[calc(var(--top-tool-height)+1px)] left-0":Y.value}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null):void 0,n(Ke,null,null)]}),[[qe("loading"),Xe.value]])])]),renderCutMenu:()=>n(oe,null,[n("div",{class:"relative flex items-center bg-[var(--top-header-bg-color)] layout-border__bottom"},[Ee.value?n(Je,{class:"custom-hover !pr-15px"},null):void 0,n(De,{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(ao,null,null),n("div",{class:[`${xe}-content`,"h-[100%]",{"w-[calc(100%-var(--tab-menu-min-width))] left-[var(--tab-menu-min-width)]":te.value&&!Te.value,"w-[calc(100%-var(--tab-menu-max-width))] left-[var(--tab-menu-max-width)]":!te.value&&!Te.value,"w-[calc(100%-var(--tab-menu-min-width)-var(--left-menu-max-width))] ml-[var(--left-menu-max-width)]":te.value&&Te.value,"w-[calc(100%-var(--tab-menu-max-width)-var(--left-menu-max-width))] ml-[var(--left-menu-max-width)]":!te.value&&Te.value}],style:"transition: all var(--transition-time-02);"},[Ie(n(ke,{class:[`${xe}-content-scrollbar`,{"!h-[calc(100%-var(--tags-view-height))] mt-[calc(var(--tags-view-height))]":Y.value&&we.value}]},{default:()=>[we.value?n(Ze,{class:["relative layout-border__bottom layout-border__top",{"!fixed top-0 left-0 z-10":Y.value,"w-[calc(100%-var(--tab-menu-min-width))] !left-[var(--tab-menu-min-width)] mt-[var(--logo-height)]":te.value&&Y.value,"w-[calc(100%-var(--tab-menu-max-width))] !left-[var(--tab-menu-max-width)] mt-[var(--logo-height)]":!te.value&&Y.value,"!fixed top-0 !left-[var(--tab-menu-min-width)+var(--left-menu-max-width)] z-10":Y.value&&Te.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)]":te.value&&Y.value&&Te.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)]":!te.value&&Y.value&&Te.value}],style:"transition: width var(--transition-time-02), left var(--transition-time-02);"},null):void 0,n(Ke,null,null)]}),[[qe("loading"),Xe.value]])])])])}),{getPrefixCls:mo}=ie(),tl=mo("layout"),et=pe(),ho=h(()=>et.getMobile),fo=h(()=>et.getCollapse),ll=h(()=>et.getLayout),go=()=>{et.setCollapse(!0)},bo=()=>{switch(e(ll)){case"classic":const{renderClassic:t}=Qe();return t();case"topLeft":const{renderTopLeft:l}=Qe();return l();case"top":const{renderTop:a}=Qe();return a();case"cutMenu":const{renderCutMenu:o}=Qe();return o()}},xo=_e(D({name:"Layout",setup:()=>()=>n("section",{class:[tl,`${tl}__${ll.value}`,"w-[100%] h-[100%] relative"]},[ho.value&&!fo.value?n("div",{class:"absolute left-0 top-0 z-99 h-full w-full bg-[var(--el-color-black)] opacity-30",onClick:go},null):void 0,bo(),n(na,null,null),n(Za,null,null)])}),[["__scopeId","data-v-0cca6ac2"]]);export{xo as default};