import{g as je,E as K,C as ve,t as ge,k as it,u as ct,q as dt,j as pt,x as mt}from"./CJbXZyQO.js";import{o as he,q as ft,m as Be,B as ht,ag as vt,b as bt,E as Ue,i as de,aE as gt}from"./C55C_g8I.js";import{q as F,v as R,x as te,o as I,w as A,D as W,an as Ye,bI as Et,h as E,T as Ve,e as _t,f as m,c as q,B as ne,E as xe,H as Ee,r as Y,J as Te,I as ye,k as pe,p as Se,g as $e,l as Me,m as Ae,V as L,j as re,z as qe,C as xt,F as ie,bg as Le,as as Ge,a$ as Ce,S as yt,aR as Mt,aY as He,bi as Ct,aq as Xe,a as ue,d as Ft,t as be,s as We,R as Bt,L as kt,b as oe,Q as It,G as Re}from"#entry";import{_ as Q,w as me,b as fe,a as se,d as ae}from"./COfxcSTK.js";import{E as Je}from"./Bou0qTiy.js";import{C as wt}from"./BT0lJ3at.js";import{m as St}from"./Bp3YSIOJ.js";import{f as Dt}from"./CyOsrYVo.js";import{_ as Tt}from"./DSCrla1M.js";import{C as $t}from"./D2A6YOOB.js";import{_ as At}from"./BdITQT5f.js";/* empty css        */import{F as Pt}from"./DMrV8xxx.js";import{a as Nt}from"./Da-ry1ed.js";import"./Bro-MU8y.js";import"./fFxklVic.js";import"./DlAUqK2U.js";import"./DLMDsZ5Z.js";const Ot=F({name:"ElCollapseTransition"}),zt=F({...Ot,setup(e){const t=R("collapse-transition"),a=n=>{n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom},o={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.height&&(n.dataset.elExistsHeight=n.style.height),n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){requestAnimationFrame(()=>{n.dataset.oldOverflow=n.style.overflow,n.dataset.elExistsHeight?n.style.maxHeight=n.dataset.elExistsHeight:n.scrollHeight!==0?n.style.maxHeight=`${n.scrollHeight}px`:n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom,n.style.overflow="hidden"})},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},enterCancelled(n){a(n)},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){a(n)},leaveCancelled(n){a(n)}};return(n,p)=>(I(),te(Ve,Ye({name:E(t).b()},Et(o)),{default:A(()=>[W(n.$slots,"default")]),_:3},16,["name"]))}});var Lt=Q(zt,[["__file","collapse-transition.vue"]]);const Ht=me(Lt),Wt=me($t),Rt=F({name:"ElContainer"}),jt=F({...Rt,props:fe({direction:{type:String,values:["horizontal","vertical"]}}),setup(e){const t=e,a=_t(),o=R("container"),n=m(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:a&&a.default?a.default().some(g=>{const _=g.type.name;return _==="ElHeader"||_==="ElFooter"}):!1);return(p,g)=>(I(),q("section",{class:ne([E(o).b(),E(o).is("vertical",E(n))])},[W(p.$slots,"default")],2))}});var Ut=Q(jt,[["__file","container.vue"]]);const Yt=F({name:"ElAside"}),Vt=F({...Yt,props:{width:{type:String,default:null}},setup(e){const t=e,a=R("aside"),o=m(()=>t.width?a.cssVarBlock({width:t.width}):{});return(n,p)=>(I(),q("aside",{class:ne(E(a).b()),style:xe(E(o))},[W(n.$slots,"default")],6))}});var Ke=Q(Vt,[["__file","aside.vue"]]);const qt=F({name:"ElFooter"}),Gt=F({...qt,props:{height:{type:String,default:null}},setup(e){const t=e,a=R("footer"),o=m(()=>t.height?a.cssVarBlock({height:t.height}):{});return(n,p)=>(I(),q("footer",{class:ne(E(a).b()),style:xe(E(o))},[W(n.$slots,"default")],6))}});var Ze=Q(Gt,[["__file","footer.vue"]]);const Xt=F({name:"ElHeader"}),Jt=F({...Xt,props:{height:{type:String,default:null}},setup(e){const t=e,a=R("header"),o=m(()=>t.height?a.cssVarBlock({height:t.height}):{});return(n,p)=>(I(),q("header",{class:ne(E(a).b()),style:xe(E(o))},[W(n.$slots,"default")],6))}});var Qe=Q(Jt,[["__file","header.vue"]]);const Kt=F({name:"ElMain"}),Zt=F({...Kt,setup(e){const t=R("main");return(a,o)=>(I(),q("main",{class:ne(E(t).b())},[W(a.$slots,"default")],2))}});var et=Q(Zt,[["__file","main.vue"]]);const Qt=me(Ut,{Aside:Ke,Footer:Ze,Header:Qe,Main:et}),en=se(Ke);se(Ze);se(Qe);const tn=se(et);let nn=class{constructor(t,a){this.parent=t,this.domNode=a,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,a=>{a.addEventListener("keydown",o=>{const n=je(o);let p=!1;switch(n){case K.down:{this.gotoSubIndex(this.subIndex+1),p=!0;break}case K.up:{this.gotoSubIndex(this.subIndex-1),p=!0;break}case K.tab:{ve(t,"mouseleave");break}case K.enter:case K.numpadEnter:case K.space:{p=!0,o.currentTarget.click();break}}return p&&(o.preventDefault(),o.stopPropagation()),!1})})}},on=class{constructor(t,a){this.domNode=t,this.submenu=null,this.submenu=null,this.init(a)}init(t){this.domNode.setAttribute("tabindex","0");const a=this.domNode.querySelector(`.${t}-menu`);a&&(this.submenu=new nn(this,a)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const a=je(t);let o=!1;switch(a){case K.down:{ve(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),o=!0;break}case K.up:{ve(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),o=!0;break}case K.tab:{ve(t.currentTarget,"mouseleave");break}case K.enter:case K.numpadEnter:case K.space:{o=!0,t.currentTarget.click();break}}o&&t.preventDefault()})}},an=class{constructor(t,a){this.domNode=t,this.init(a)}init(t){const a=this.domNode.childNodes;Array.from(a).forEach(o=>{o.nodeType===1&&new on(o,t)})}};const un=F({name:"ElMenuCollapseTransition"}),sn=F({...un,setup(e){const t=R("menu"),a={onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,n){he(o,`${t.namespace.value}-opacity-transition`),o.style.opacity="1",n()},onAfterEnter(o){Be(o,`${t.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),ft(o,t.m("collapse"))?(Be(o,t.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),he(o,t.m("collapse"))):(he(o,t.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),Be(o,t.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){he(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}};return(o,n)=>(I(),te(Ve,Ye({mode:"out-in"},E(a)),{default:A(()=>[W(o.$slots,"default")]),_:3},16))}});var ln=Q(sn,[["__file","menu-collapse-transition.vue"]]);function tt(e,t){const a=m(()=>{let n=e.parent;const p=[t.value];for(;n.type.name!=="ElMenu";)n.props.index&&p.unshift(n.props.index),n=n.parent;return p});return{parentMenu:m(()=>{let n=e.parent;for(;n&&!["ElMenu","ElSubMenu"].includes(n.type.name);)n=n.parent;return n}),indexPath:a}}function rn(e){return m(()=>{const a=e.backgroundColor;return a?new ht(a).shade(20).toString():""})}const nt=(e,t)=>{const a=R("menu");return m(()=>a.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":rn(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Pe="rootMenu",_e="subMenu:",cn=fe({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:de},expandOpenIcon:{type:de},collapseCloseIcon:{type:de},collapseOpenIcon:{type:de}}),ke="ElSubMenu";var Ne=F({name:ke,props:cn,setup(e,{slots:t,expose:a}){const o=$e(),{indexPath:n,parentMenu:p}=tt(o,m(()=>e.index)),g=R("menu"),_=R("sub-menu"),c=Ee(Pe);c||ge(ke,"can not inject root menu");const M=Ee(`${_e}${p.value.uid}`);M||ge(ke,"can not inject sub menu");const S=Y({}),B=Y({});let h;const x=Y(!1),y=Y(),P=Y(),j=m(()=>M.level===0),D=m(()=>z.value==="horizontal"&&j.value?"bottom-start":"right-start"),C=m(()=>z.value==="horizontal"&&j.value||z.value==="vertical"&&!c.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?O.value?e.expandOpenIcon:e.expandCloseIcon:vt:e.collapseCloseIcon&&e.collapseOpenIcon?O.value?e.collapseOpenIcon:e.collapseCloseIcon:bt),N=m(()=>{const u=e.teleported;return Te(u)?j.value:u}),V=m(()=>c.props.collapse?`${g.namespace.value}-zoom-in-left`:`${g.namespace.value}-zoom-in-top`),ee=m(()=>z.value==="horizontal"&&j.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"]),O=m(()=>c.openedMenus.includes(e.index)),G=m(()=>[...Object.values(S.value),...Object.values(B.value)].some(({active:u})=>u)),z=m(()=>c.props.mode),Z=m(()=>c.props.persistent),l=ye({index:e.index,indexPath:n,active:G}),i=nt(c.props,M.level+1),k=m(()=>{var u;return(u=e.popperOffset)!=null?u:c.props.popperOffset}),$=m(()=>{var u;return(u=e.popperClass)!=null?u:c.props.popperClass}),H=m(()=>{var u;return(u=e.showTimeout)!=null?u:c.props.showTimeout}),U=m(()=>{var u;return(u=e.hideTimeout)!=null?u:c.props.hideTimeout}),X=()=>{var u,v,b;return(b=(v=(u=P.value)==null?void 0:u.popperRef)==null?void 0:v.popperInstanceRef)==null?void 0:b.destroy()},s=u=>{u||X()},r=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||e.disabled||c.handleSubMenuClick({index:e.index,indexPath:n.value,active:G.value})},d=(u,v=H.value)=>{var b;if(u.type!=="focus"){if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||e.disabled){M.mouseInChild.value=!0;return}M.mouseInChild.value=!0,h?.(),{stop:h}=Le(()=>{c.openMenu(e.index,n.value)},v),N.value&&((b=p.value.vnode.el)==null||b.dispatchEvent(new MouseEvent("mouseenter"))),u.type==="mouseenter"&&u.target&&Ge(()=>{it(u.target,{preventScroll:!0})})}},f=(u=!1)=>{var v;if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"){M.mouseInChild.value=!1;return}h?.(),M.mouseInChild.value=!1,{stop:h}=Le(()=>!x.value&&c.closeMenu(e.index,n.value),U.value),N.value&&u&&((v=M.handleMouseleave)==null||v.call(M,!0))};pe(()=>c.props.collapse,u=>s(!!u));{const u=b=>{B.value[b.index]=b},v=b=>{delete B.value[b.index]};Se(`${_e}${o.uid}`,{addSubMenu:u,removeSubMenu:v,handleMouseleave:f,mouseInChild:x,level:M.level+1})}return a({opened:O}),Me(()=>{c.addSubMenu(l),M.addSubMenu(l)}),Ae(()=>{M.removeSubMenu(l),c.removeSubMenu(l)}),()=>{var u;const v=[(u=t.title)==null?void 0:u.call(t),L(Ue,{class:_.e("icon-arrow"),style:{transform:O.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>re(C.value)?L(o.appContext.components[C.value]):L(C.value)})],b=c.isMenuPopup?L(Je,{ref:P,visible:O.value,effect:"light",pure:!0,offset:k.value,showArrow:!1,persistent:Z.value,popperClass:$.value,placement:D.value,teleported:N.value,fallbackPlacements:ee.value,transition:V.value,gpuAcceleration:!1},{content:()=>{var T;return L("div",{class:[g.m(z.value),g.m("popup-container"),$.value],onMouseenter:w=>d(w,100),onMouseleave:()=>f(!0),onFocus:w=>d(w,100)},[L("ul",{class:[g.b(),g.m("popup"),g.m(`popup-${D.value}`)],style:i.value},[(T=t.default)==null?void 0:T.call(t)])])},default:()=>L("div",{class:_.e("title"),onClick:r},v)}):L(ie,{},[L("div",{class:_.e("title"),ref:y,onClick:r},v),L(Ht,{},{default:()=>{var T;return qe(L("ul",{role:"menu",class:[g.b(),g.m("inline")],style:i.value},[(T=t.default)==null?void 0:T.call(t)]),[[xt,O.value]])}})]);return L("li",{class:[_.b(),_.is("active",G.value),_.is("opened",O.value),_.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:O.value,onMouseenter:d,onMouseleave:()=>f(),onFocus:d},[b])}}});const dn=fe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ae(Array),default:()=>St([])},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:de,default:()=>gt},popperEffect:{type:ae(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Ie=e=>Ce(e)&&e.every(t=>re(t)),pn={close:(e,t)=>re(e)&&Ie(t),open:(e,t)=>re(e)&&Ie(t),select:(e,t,a,o)=>re(e)&&Ie(t)&&yt(a)&&(Te(o)||o instanceof Promise)};var mn=F({name:"ElMenu",props:dn,emits:pn,setup(e,{emit:t,slots:a,expose:o}){const n=$e(),p=n.appContext.config.globalProperties.$router,g=Y(),_=Y(),c=R("menu"),M=R("sub-menu");let S=64;const B=Y(-1),h=Y(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),x=Y(e.defaultActive),y=Y({}),P=Y({}),j=m(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),D=()=>{const s=x.value&&y.value[x.value];if(!s||e.mode==="horizontal"||e.collapse)return;s.indexPath.forEach(d=>{const f=P.value[d];f&&C(d,f.indexPath)})},C=(s,r)=>{h.value.includes(s)||(e.uniqueOpened&&(h.value=h.value.filter(d=>r.includes(d))),h.value.push(s),t("open",s,r))},N=s=>{const r=h.value.indexOf(s);r!==-1&&h.value.splice(r,1)},V=(s,r)=>{N(s),t("close",s,r)},ee=({index:s,indexPath:r})=>{h.value.includes(s)?V(s,r):C(s,r)},O=s=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:r,indexPath:d}=s;if(!(He(r)||He(d)))if(e.router&&p){const f=s.route||r,u=p.push(f).then(v=>(v||(x.value=r),v));t("select",r,d,{index:r,indexPath:d,route:f},u)}else x.value=r,t("select",r,d,{index:r,indexPath:d})},G=s=>{var r;const d=y.value,f=d[s]||x.value&&d[x.value]||d[e.defaultActive];x.value=(r=f?.index)!=null?r:s},z=s=>{const r=getComputedStyle(s),d=Number.parseInt(r.marginLeft,10),f=Number.parseInt(r.marginRight,10);return s.offsetWidth+d+f||0},Z=()=>{var s,r;if(!g.value)return-1;const d=Array.from((r=(s=g.value)==null?void 0:s.childNodes)!=null?r:[]).filter(J=>J.nodeName!=="#comment"&&(J.nodeName!=="#text"||J.nodeValue)),f=getComputedStyle(g.value),u=Number.parseInt(f.paddingLeft,10),v=Number.parseInt(f.paddingRight,10),b=g.value.clientWidth-u-v;let T=0,w=0;return d.forEach((J,le)=>{T+=z(J),T<=b-S&&(w=le+1)}),w===d.length?-1:w},l=s=>P.value[s].indexPath,i=(s,r=33.34)=>{let d;return()=>{d&&clearTimeout(d),d=setTimeout(()=>{s()},r)}};let k=!0;const $=()=>{const s=dt(_);if(s&&(S=z(s)||64),B.value===Z())return;const r=()=>{B.value=-1,Ge(()=>{B.value=Z()})};k?r():i(r)(),k=!1};pe(()=>e.defaultActive,s=>{y.value[s]||(x.value=""),G(s)}),pe(()=>e.collapse,s=>{s&&(h.value=[])}),pe(y.value,D);let H;Mt(()=>{e.mode==="horizontal"&&e.ellipsis?H=ct(g,$).stop:H?.()});const U=Y(!1);{const s=u=>{P.value[u.index]=u},r=u=>{delete P.value[u.index]};Se(Pe,ye({props:e,openedMenus:h,items:y,subMenus:P,activeIndex:x,isMenuPopup:j,addMenuItem:u=>{y.value[u.index]=u},removeMenuItem:u=>{delete y.value[u.index]},addSubMenu:s,removeSubMenu:r,openMenu:C,closeMenu:V,handleMenuItemClick:O,handleSubMenuClick:ee})),Se(`${_e}${n.uid}`,{addSubMenu:s,removeSubMenu:r,mouseInChild:U,level:0})}Me(()=>{e.mode==="horizontal"&&new an(n.vnode.el,c.namespace.value)}),o({open:r=>{const{indexPath:d}=P.value[r];d.forEach(f=>C(f,d))},close:N,updateActiveIndex:G,handleResize:$});const X=nt(e,0);return()=>{var s,r;let d=(r=(s=a.default)==null?void 0:s.call(a))!=null?r:[];const f=[];if(e.mode==="horizontal"&&g.value){const b=Dt(d).filter(J=>J?.shapeFlag!==8),T=B.value===-1?b:b.slice(0,B.value),w=B.value===-1?[]:b.slice(B.value);w?.length&&e.ellipsis&&(d=T,f.push(L(Ne,{ref:_,index:"sub-menu-more",class:M.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>L(Ue,{class:M.e("icon-more")},{default:()=>L(e.ellipsisIcon)}),default:()=>w})))}const u=e.closeOnClickOutside?[[wt,()=>{h.value.length&&(U.value||(h.value.forEach(b=>t("close",b,l(b))),h.value=[]))}]]:[],v=qe(L("ul",{key:String(e.collapse),role:"menubar",ref:g,style:X.value,class:{[c.b()]:!0,[c.m(e.mode)]:!0,[c.m("collapse")]:e.collapse}},[...d,...f]),u);return e.collapseTransition&&e.mode==="vertical"?L(ln,()=>v):v}}});const fn=fe({index:{type:ae([String,null]),default:null},route:{type:ae([String,Object])},disabled:Boolean}),hn={click:e=>re(e.index)&&Ce(e.indexPath)},De="ElMenuItem",vn=F({name:De}),bn=F({...vn,props:fn,emits:hn,setup(e,{expose:t,emit:a}){const o=e;Ct(o.index)&&pt();const n=$e(),p=Ee(Pe),g=R("menu"),_=R("menu-item");p||ge(De,"can not inject root menu");const{parentMenu:c,indexPath:M}=tt(n,Xe(o,"index")),S=Ee(`${_e}${c.value.uid}`);S||ge(De,"can not inject sub menu");const B=m(()=>o.index===p.activeIndex),h=ye({index:o.index,indexPath:M,active:B}),x=()=>{o.disabled||(p.handleMenuItemClick({index:o.index,indexPath:M.value,route:o.route}),a("click",h))};return Me(()=>{S.addSubMenu(h),p.addMenuItem(h)}),Ae(()=>{S.removeSubMenu(h),p.removeMenuItem(h)}),t({parentMenu:c,rootMenu:p,active:B,nsMenu:g,nsMenuItem:_,handleClick:x}),(y,P)=>(I(),q("li",{class:ne([E(_).b(),E(_).is("active",E(B)),E(_).is("disabled",y.disabled)]),role:"menuitem",tabindex:"-1",onClick:x},[E(c).type.name==="ElMenu"&&E(p).props.collapse&&y.$slots.title?(I(),te(E(Je),{key:0,effect:E(p).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:E(p).props.persistent,"focus-on-target":""},{content:A(()=>[W(y.$slots,"title")]),default:A(()=>[ue("div",{class:ne(E(g).be("tooltip","trigger"))},[W(y.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(I(),q(ie,{key:1},[W(y.$slots,"default"),W(y.$slots,"title")],64))],2))}});var ot=Q(bn,[["__file","menu-item.vue"]]);const gn={title:String},En=F({name:"ElMenuItemGroup"}),_n=F({...En,props:gn,setup(e){const t=R("menu-item-group");return(a,o)=>(I(),q("li",{class:ne(E(t).b())},[ue("div",{class:ne(E(t).e("title"))},[a.$slots.title?W(a.$slots,"title",{key:1}):(I(),q(ie,{key:0},[Ft(be(a.title),1)],64))],2),ue("ul",null,[W(a.$slots,"default")])],2))}});var at=Q(_n,[["__file","menu-item-group.vue"]]);const xn=me(mn,{MenuItem:ot,MenuItemGroup:at,SubMenu:Ne}),yn=se(ot);se(at);const Mn=se(Ne),Cn=fe({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:ae([String,Array]),default:"Element Plus"},font:{type:ae(Object)},gap:{type:ae(Array),default:()=>[100,100]},offset:{type:ae(Array)}});function Fn(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Bn(e){return Object.keys(e).map(t=>`${Fn(t)}: ${e[t]};`).join(" ")}function kn(){return window.devicePixelRatio||1}const In=(e,t)=>{let a=!1;return e.removedNodes.length&&t&&(a=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(a=!0),a},ut=3,wn={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function we(e,t,a=1){const o=document.createElement("canvas"),n=o.getContext("2d"),p=e*a,g=t*a;return o.setAttribute("width",`${p}px`),o.setAttribute("height",`${g}px`),n.save(),[n,o,p,g]}function Sn(){function e(t,a,o,n,p,g,_,c,M){const[S,B,h,x]=we(n,p,o);if(t instanceof HTMLImageElement)S.drawImage(t,0,0,h,x);else{const{color:v,fontSize:b,fontStyle:T,fontWeight:w,fontFamily:J,textAlign:le,textBaseline:Fe}=g,ce=Number(b)*o;S.font=`${T} normal ${w} ${ce}px/${p}px ${J}`,S.fillStyle=v,S.textAlign=le,S.textBaseline=Fe;const Oe=Ce(t)?t:[t];Oe?.forEach((ze,st)=>{const[lt,rt]=wn[le];S.fillText(ze??"",h*lt+M*rt,st*(ce+ut*o))})}const y=Math.PI/180*Number(a),P=Math.max(n,p),[j,D,C]=we(P,P,o);j.translate(C/2,C/2),j.rotate(y),h>0&&x>0&&j.drawImage(B,-h/2,-x/2);function N(v,b){const T=v*Math.cos(y)-b*Math.sin(y),w=v*Math.sin(y)+b*Math.cos(y);return[T,w]}let V=0,ee=0,O=0,G=0;const z=h/2,Z=x/2;[[0-z,0-Z],[0+z,0-Z],[0+z,0+Z],[0-z,0+Z]].forEach(([v,b])=>{const[T,w]=N(v,b);V=Math.min(V,T),ee=Math.max(ee,T),O=Math.min(O,w),G=Math.max(G,w)});const i=V+C/2,k=O+C/2,$=ee-V,H=G-O,U=_*o,X=c*o,s=($+U)*2,r=H+X,[d,f]=we(s,r);function u(v=0,b=0){d.drawImage(D,i,k,$,H,v,b,$,H)}return u(),u($+U,-H/2-X/2),u($+U,+H/2+X/2),[f.toDataURL(),s/o,r/o]}return e}const Dn=F({name:"ElWatermark"}),Tn=F({...Dn,props:Cn,setup(e){const t=e,a={position:"relative"},o=m(()=>{var l,i;return(i=(l=t.font)==null?void 0:l.color)!=null?i:"rgba(0,0,0,.15)"}),n=m(()=>{var l,i;return(i=(l=t.font)==null?void 0:l.fontSize)!=null?i:16}),p=m(()=>{var l,i;return(i=(l=t.font)==null?void 0:l.fontWeight)!=null?i:"normal"}),g=m(()=>{var l,i;return(i=(l=t.font)==null?void 0:l.fontStyle)!=null?i:"normal"}),_=m(()=>{var l,i;return(i=(l=t.font)==null?void 0:l.fontFamily)!=null?i:"sans-serif"}),c=m(()=>{var l,i;return(i=(l=t.font)==null?void 0:l.textAlign)!=null?i:"center"}),M=m(()=>{var l,i;return(i=(l=t.font)==null?void 0:l.textBaseline)!=null?i:"hanging"}),S=m(()=>t.gap[0]),B=m(()=>t.gap[1]),h=m(()=>S.value/2),x=m(()=>B.value/2),y=m(()=>{var l,i;return(i=(l=t.offset)==null?void 0:l[0])!=null?i:h.value}),P=m(()=>{var l,i;return(i=(l=t.offset)==null?void 0:l[1])!=null?i:x.value}),j=()=>{const l={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let i=y.value-h.value,k=P.value-x.value;return i>0&&(l.left=`${i}px`,l.width=`calc(100% - ${i}px)`,i=0),k>0&&(l.top=`${k}px`,l.height=`calc(100% - ${k}px)`,k=0),l.backgroundPosition=`${i}px ${k}px`,l},D=We(null),C=We(),N=Y(!1),V=()=>{C.value&&(C.value.remove(),C.value=void 0)},ee=(l,i)=>{var k;D.value&&C.value&&(N.value=!0,C.value.setAttribute("style",Bn({...j(),backgroundImage:`url('${l}')`,backgroundSize:`${Math.floor(i)}px`})),(k=D.value)==null||k.append(C.value),setTimeout(()=>{N.value=!1}))},O=l=>{let i=120,k=64,$=0;const{image:H,content:U,width:X,height:s,rotate:r}=t;if(!H&&l.measureText){l.font=`${Number(n.value)}px ${_.value}`;const d=Ce(U)?U:[U];let f=0,u=0;d.forEach(b=>{const{width:T,fontBoundingBoxAscent:w,fontBoundingBoxDescent:J,actualBoundingBoxAscent:le,actualBoundingBoxDescent:Fe}=l.measureText(b),ce=Te(w)?le+Fe:w+J;T>f&&(f=Math.ceil(T)),ce>u&&(u=Math.ceil(ce))}),i=f,k=u*d.length+(d.length-1)*ut;const v=Math.PI/180*Number(r);$=Math.ceil(Math.abs(Math.sin(v)*k)/2),i+=$}return[X??i,s??k,$]},G=Sn(),z=()=>{const i=document.createElement("canvas").getContext("2d"),k=t.image,$=t.content,H=t.rotate;if(i){C.value||(C.value=document.createElement("div"));const U=kn(),[X,s,r]=O(i),d=f=>{const[u,v]=G(f||"",H,U,X,s,{color:o.value,fontSize:n.value,fontStyle:g.value,fontWeight:p.value,fontFamily:_.value,textAlign:c.value,textBaseline:M.value},S.value,B.value,r);ee(u,v)};if(k){const f=new Image;f.onload=()=>{d(f)},f.onerror=()=>{d($)},f.crossOrigin="anonymous",f.referrerPolicy="no-referrer",f.src=k}else d($)}};return Me(()=>{z()}),pe(()=>t,()=>{z()},{deep:!0,flush:"post"}),Ae(()=>{V()}),mt(D,l=>{N.value||l.forEach(i=>{In(i,C.value)&&(V(),z())})},{attributes:!0,subtree:!0,childList:!0}),(l,i)=>(I(),q("div",{ref_key:"containerRef",ref:D,style:xe([a])},[W(l.$slots,"default")],4))}});var $n=Q(Tn,[["__file","watermark.vue"]]);const An=me($n);var Pn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color}，按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法，请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};function Nn(){const e=Bt(),t=Xe(()=>e.path),a=kt().availableLocales;return m(()=>t.value.replace(new RegExp(`^/(${a.join("|")})/`),"/"))}const On={class:"w-screen h-screen min-w-[1420px]"},uo=F({__name:"dashboard",setup(e){const t=Nt(),a=[{title:"首页",path:"/dashboard",icon:"i-tabler:home"},{title:"账号管理",path:"/dashboard/auth",icon:"i-tabler:users"},{title:"关于我们",path:"/dashboard/aboutUs",icon:"i-tabler:book",children:[{title:"研发创新",path:"/dashboard/aboutUs/innovate",icon:"i-tabler:book"},{title:"发展历程",path:"/dashboard/aboutUs/history",icon:"i-tabler:book"}]},{title:"新闻中心",path:"/dashboard/newsCenter",icon:"i-tabler:book",children:[{title:"公司新闻",path:"/dashboard/newsCenter/company",icon:"i-tabler:book"},{title:"行业新闻",path:"/dashboard/newsCenter/industry",icon:"i-tabler:book"}]},{title:"投资者关系",path:"/dashboard/investor",icon:"i-tabler:book",children:[{title:"联系董秘",path:"/dashboard/investor/contact",icon:"i-tabler:book"},{title:"定期报告",path:"/dashboard/investor/report",icon:"i-tabler:book"},{title:"投资者活动",path:"/dashboard/investor/activity",icon:"i-tabler:book"}]},{title:"可持续发展",path:"/dashboard/develop",icon:"i-tabler:book",children:[{title:"响应气候变化",path:"/dashboard/develop/change",icon:"i-tabler:book"},{title:"ESG报告",path:"/dashboard/develop/report",icon:"i-tabler:book"}]},{title:"联系我们",path:"/dashboard/contactUs",icon:"i-tabler:book",children:[{title:"解决方案",path:"/dashboard/contactUs/solution",icon:"i-tabler:book"},{title:"留言",path:"/dashboard/contactUs/message",icon:"i-tabler:book"},{title:"招商合作",path:"/dashboard/contactUs/cooperation",icon:"i-tabler:book"}]},{title:"加入我们",path:"/dashboard/joinUs",icon:"i-tabler:book",children:[{title:"类型配置",path:"/dashboard/joinUs/config",icon:"i-tabler:book"},{title:"社会招聘",path:"/dashboard/joinUs/social",icon:"i-tabler:book"},{title:"校园招聘",path:"/dashboard/joinUs/campus",icon:"i-tabler:book"}]}],o=Nn(),n=ye({color:"rgba(0, 0, 0, .15)"});return(p,g)=>{const _=yn,c=Tt,M=Mn,S=xn,B=en,h=tn,x=Qt,y=An,P=Wt,j=At;return I(),te(j,null,{default:A(()=>[oe(P,{locale:E(Pn)},{default:A(()=>[ue("div",On,[oe(y,{font:n,content:["杭州福斯特应用材料股份有限公司",E(It)(E(t)).format("YYYY-MM-DD HH:mm:ss")]},{default:A(()=>[oe(x,{class:"w-screen h-screen"},{default:A(()=>[oe(B,{width:"200px"},{default:A(()=>[oe(S,{"active-text-color":"#ffd04b","background-color":"#001529",class:"h-full","default-active":E(o),"text-color":"#fff","unique-opened":""},{default:A(()=>[oe(Pt,{class:"!h-15 !w-4/5 mx-auto",icon:"logo"}),(I(),q(ie,null,Re(a,(D,C)=>(I(),q(ie,null,[D.children?(I(),te(M,{key:0,index:D.path},{title:A(()=>[ue("span",null,be(D.title),1)]),default:A(()=>[(I(!0),q(ie,null,Re(D.children,(N,V)=>(I(),te(c,{to:N.path},{default:A(()=>[(I(),te(_,{key:N.path,index:N.path},{default:A(()=>[ue("span",null,be(N.title),1)]),_:2},1032,["index"]))]),_:2},1032,["to"]))),256))]),_:2},1032,["index"])):(I(),te(c,{key:1,to:D.path},{default:A(()=>[(I(),te(_,{key:D.path,index:D.path},{default:A(()=>[ue("span",null,be(D.title),1)]),_:2},1032,["index"]))]),_:2},1032,["to"]))],64))),64))]),_:1},8,["default-active"])]),_:1}),oe(x,null,{default:A(()=>[oe(h,null,{default:A(()=>[W(p.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3},8,["font","content"])])]),_:3},8,["locale"])]),_:3})}}});export{uo as default};
