import{_ as te,a as ye,r as Ae,h as Ct,T as Mt,i as be,u as Xe,b as wt,c as Qe,E as oe,d as ze,m as Ne,e as Tt,f as Oe,g as xt,j as Et,k as At,l as St,p as kt,n as Fe,o as Bt,t as It,q as Pt,s as Nt,v as Ot,w as Ve,x as $t,y as Dt,z as Ht,A as zt,B as Ft,C as Vt,D as Rt,F as Yt}from"./el-button-6b66070a.js";import"./el-tooltip-4ed993c7.js";import{E as je,C as Wt}from"./el-scrollbar-68edc4d7.js";import{t as Me}from"./el-icon-08628b36.js";import{E as Lt}from"./el-image-viewer-f695cd1a.js";import{s as Xt,i as Qt,d as D,u as V,o as E,c as q,w as _,r as L,m as qe,t as jt,a as x,T as Ue,b as Ke,e as T,f as R,n as ee,g as Te,h as $e,j as re,k as pe,l as ve,p as se,q as k,v as xe,x as U,y as _e,z as he,A as Ze,B as W,C as ue,D as De,E as Je,F as ce,G as me,H as qt,I as Ut,J as ge,K as Kt,L as Ge,M as F,N as j,O as fe,P as Zt,Q as u,R as Re,S as Jt,U as Gt,V as et,W as Ie,X as Ye,Y as en,Z as tt,_ as nt,$ as Pe,a0 as tn,a1 as at,a2 as nn}from"./index-3ef4d3eb.js";import{_ as ot}from"./_plugin-vue_export-helper-c27b6911.js";import{E as Q}from"./aria-60e0cdc6.js";import{t as de,i as We,U as st}from"./index-a4d0b5b6.js";import{f as lt,E as it,a as rt,b as ut}from"./el-dropdown-item-9e1be9b9.js";import{c as ie}from"./strings-ce4815fd.js";import"./castArray-3bec7949.js";const an=(e,a,n)=>lt(e.subTree).filter(s=>{var i;return Qt(s)&&((i=s.type)==null?void 0:i.name)===a&&!!s.component}).map(s=>s.component.uid).map(s=>n[s]).filter(s=>!!s),on=(e,a)=>{const n={},o=Xt([]);return{children:o,addChild:i=>{n[i.uid]=i,o.value=an(e,a,n)},removeChild:i=>{delete n[i],o.value=o.value.filter(g=>g.uid!==i)}}},sn=D({name:"ElCollapseTransition"}),ln=D({...sn,setup(e){const a=V("collapse-transition"),n=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},o={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){n(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){n(t)},leaveCancelled(t){n(t)}};return(t,s)=>(E(),q(Ue,qe({name:x(a).b()},jt(o)),{default:_(()=>[L(t.$slots,"default")]),_:3},16,["name"]))}});var we=te(ln,[["__file","collapse-transition.vue"]]);we.install=e=>{e.component(we.name,we)};const rn=we,un=D({name:"ElContainer"}),cn=D({...un,props:{direction:{type:String}},setup(e){const a=e,n=Ke(),o=V("container"),t=T(()=>a.direction==="vertical"?!0:a.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const g=i.type.name;return g==="ElHeader"||g==="ElFooter"}):!1);return(s,i)=>(E(),R("section",{class:ee([x(o).b(),x(o).is("vertical",x(t))])},[L(s.$slots,"default")],2))}});var dn=te(cn,[["__file","container.vue"]]);const pn=D({name:"ElAside"}),vn=D({...pn,props:{width:{type:String,default:null}},setup(e){const a=e,n=V("aside"),o=T(()=>a.width?n.cssVarBlock({width:a.width}):{});return(t,s)=>(E(),R("aside",{class:ee(x(n).b()),style:Te(x(o))},[L(t.$slots,"default")],6))}});var ct=te(vn,[["__file","aside.vue"]]);const fn=D({name:"ElFooter"}),mn=D({...fn,props:{height:{type:String,default:null}},setup(e){const a=e,n=V("footer"),o=T(()=>a.height?n.cssVarBlock({height:a.height}):{});return(t,s)=>(E(),R("footer",{class:ee(x(n).b()),style:Te(x(o))},[L(t.$slots,"default")],6))}});var dt=te(mn,[["__file","footer.vue"]]);const hn=D({name:"ElHeader"}),bn=D({...hn,props:{height:{type:String,default:null}},setup(e){const a=e,n=V("header"),o=T(()=>a.height?n.cssVarBlock({height:a.height}):{});return(t,s)=>(E(),R("header",{class:ee(x(n).b()),style:Te(x(o))},[L(t.$slots,"default")],6))}});var pt=te(bn,[["__file","header.vue"]]);const _n=D({name:"ElMain"}),gn=D({..._n,setup(e){const a=V("main");return(n,o)=>(E(),R("main",{class:ee(x(a).b())},[L(n.$slots,"default")],2))}});var vt=te(gn,[["__file","main.vue"]]);const yn=$e(dn,{Aside:ct,Footer:dt,Header:pt,Main:vt}),Cn=re(ct),Mn=re(dt);re(pt);const wn=re(vt);let Tn=class{constructor(a,n){this.parent=a,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(a){a===this.subMenuItems.length?a=0:a<0&&(a=this.subMenuItems.length-1),this.subMenuItems[a].focus(),this.subIndex=a}addListeners(){const a=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let t=!1;switch(o.code){case Q.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case Q.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case Q.tab:{Me(a,"mouseleave");break}case Q.enter:case Q.space:{t=!0,o.currentTarget.click();break}}return t&&(o.preventDefault(),o.stopPropagation()),!1})})}},xn=class{constructor(a,n){this.domNode=a,this.submenu=null,this.submenu=null,this.init(n)}init(a){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${a}-menu`);n&&(this.submenu=new Tn(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",a=>{let n=!1;switch(a.code){case Q.down:{Me(a.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Q.up:{Me(a.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Q.tab:{Me(a.currentTarget,"mouseleave");break}case Q.enter:case Q.space:{n=!0,a.currentTarget.click();break}}n&&a.preventDefault()})}},En=class{constructor(a,n){this.domNode=a,this.init(n)}init(a){const n=this.domNode.childNodes;Array.from(n).forEach(o=>{o.nodeType===1&&new xn(o,a)})}};const An=D({name:"ElMenuCollapseTransition",setup(){const e=V("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,o){ye(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",o()},onAfterEnter(n){Ae(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Ct(n,e.m("collapse"))?(Ae(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ye(n,e.m("collapse"))):(ye(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Ae(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){ye(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function Sn(e,a,n,o,t,s){return E(),q(Ue,qe({mode:"out-in"},e.listeners),{default:_(()=>[L(e.$slots,"default")]),_:3},16)}var kn=te(An,[["render",Sn],["__file","menu-collapse-transition.vue"]]);function ft(e,a){const n=T(()=>{let t=e.parent;const s=[a.value];for(;t.type.name!=="ElMenu";)t.props.index&&s.unshift(t.props.index),t=t.parent;return s});return{parentMenu:T(()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t}),indexPath:n}}function Bn(e){return T(()=>{const n=e.backgroundColor;return n?new Mt(n).shade(20).toString():""})}const mt=(e,a)=>{const n=V("menu");return T(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Bn(e).value||"","active-color":e.activeTextColor||"",level:`${a}`}))},In=pe({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:be},expandOpenIcon:{type:be},collapseCloseIcon:{type:be},collapseOpenIcon:{type:be}}),Ce="ElSubMenu";var He=D({name:Ce,props:In,setup(e,{slots:a,expose:n}){Xe({from:"popper-append-to-body",replacement:"teleported",scope:Ce,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},T(()=>e.popperAppendToBody!==void 0));const o=ve(),{indexPath:t,parentMenu:s}=ft(o,T(()=>e.index)),i=V("menu"),g=V("sub-menu"),l=se("rootMenu");l||de(Ce,"can not inject root menu");const m=se(`subMenu:${s.value.uid}`);m||de(Ce,"can not inject sub menu");const d=k({}),b=k({});let c;const v=k(!1),I=k(),N=k(null),h=T(()=>J.value==="horizontal"&&O.value?"bottom-start":"right-start"),P=T(()=>J.value==="horizontal"&&O.value||J.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?K.value?e.expandOpenIcon:e.expandCloseIcon:wt:e.collapseCloseIcon&&e.collapseOpenIcon?K.value?e.collapseOpenIcon:e.collapseCloseIcon:Qe),O=T(()=>m.level===0),H=T(()=>{var f;const B=(f=e.teleported)!=null?f:e.popperAppendToBody;return B===void 0?O.value:B}),Y=T(()=>l.props.collapse?`${i.namespace.value}-zoom-in-left`:`${i.namespace.value}-zoom-in-top`),ne=T(()=>J.value==="horizontal"&&O.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"]),K=T(()=>l.openedMenus.includes(e.index)),le=T(()=>{let f=!1;return Object.values(d.value).forEach(B=>{B.active&&(f=!0)}),Object.values(b.value).forEach(B=>{B.active&&(f=!0)}),f}),J=T(()=>l.props.mode),w=xe({index:e.index,indexPath:t,active:le}),S=mt(l.props,m.level+1),C=T(()=>{var f;return(f=e.popperOffset)!=null?f:l.props.popperOffset}),z=T(()=>{var f;return(f=e.popperClass)!=null?f:l.props.popperClass}),r=T(()=>{var f;return(f=e.showTimeout)!=null?f:l.props.showTimeout}),p=T(()=>{var f;return(f=e.hideTimeout)!=null?f:l.props.hideTimeout}),y=()=>{var f,B,$;return($=(B=(f=N.value)==null?void 0:f.popperRef)==null?void 0:B.popperInstanceRef)==null?void 0:$.destroy()},A=f=>{f||y()},M=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:t.value,active:le.value})},X=(f,B=r.value)=>{var $;if(f.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){m.mouseInChild.value=!0;return}m.mouseInChild.value=!0,c==null||c(),{stop:c}=ze(()=>{l.openMenu(e.index,t.value)},B),H.value&&(($=s.value.vnode.el)==null||$.dispatchEvent(new MouseEvent("mouseenter")))}},Z=(f=!1)=>{var B;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){m.mouseInChild.value=!1;return}c==null||c(),m.mouseInChild.value=!1,{stop:c}=ze(()=>!v.value&&l.closeMenu(e.index,t.value),p.value),H.value&&f&&((B=m.handleMouseleave)==null||B.call(m,!0))};U(()=>l.props.collapse,f=>A(!!f));{const f=$=>{b.value[$.index]=$},B=$=>{delete b.value[$.index]};_e(`subMenu:${o.uid}`,{addSubMenu:f,removeSubMenu:B,handleMouseleave:Z,mouseInChild:v,level:m.level+1})}return n({opened:K}),he(()=>{l.addSubMenu(w),m.addSubMenu(w)}),Ze(()=>{m.removeSubMenu(w),l.removeSubMenu(w)}),()=>{var f;const B=[(f=a.title)==null?void 0:f.call(a),W(oe,{class:g.e("icon-arrow"),style:{transform:K.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ue(P.value)?W(o.appContext.components[P.value]):W(P.value)})],$=l.isMenuPopup?W(je,{ref:N,visible:K.value,effect:"light",pure:!0,offset:C.value,showArrow:!1,persistent:!0,popperClass:z.value,placement:h.value,teleported:H.value,fallbackPlacements:ne.value,transition:Y.value,gpuAcceleration:!1},{content:()=>{var ae;return W("div",{class:[i.m(J.value),i.m("popup-container"),z.value],onMouseenter:G=>X(G,100),onMouseleave:()=>Z(!0),onFocus:G=>X(G,100)},[W("ul",{class:[i.b(),i.m("popup"),i.m(`popup-${h.value}`)],style:S.value},[(ae=a.default)==null?void 0:ae.call(a)])])},default:()=>W("div",{class:g.e("title"),onClick:M},B)}):W(ce,{},[W("div",{class:g.e("title"),ref:I,onClick:M},B),W(rn,{},{default:()=>{var ae;return De(W("ul",{role:"menu",class:[i.b(),i.m("inline")],style:S.value},[(ae=a.default)==null?void 0:ae.call(a)]),[[Je,K.value]])}})]);return W("li",{class:[g.b(),g.is("active",le.value),g.is("opened",K.value),g.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:K.value,onMouseenter:X,onMouseleave:()=>Z(),onFocus:X},[$])}}});const Pn=pe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:me(Array),default:()=>Ne([])},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:be,default:()=>Tt},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Se=e=>Array.isArray(e)&&e.every(a=>ue(a)),Nn={close:(e,a)=>ue(e)&&Se(a),open:(e,a)=>ue(e)&&Se(a),select:(e,a,n,o)=>ue(e)&&Se(a)&&Ut(n)&&(o===void 0||o instanceof Promise)};var On=D({name:"ElMenu",props:Pn,emits:Nn,setup(e,{emit:a,slots:n,expose:o}){const t=ve(),s=t.appContext.config.globalProperties.$router,i=k(),g=V("menu"),l=V("sub-menu"),m=k(-1),d=k(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),b=k(e.defaultActive),c=k({}),v=k({}),I=T(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),N=()=>{const r=b.value&&c.value[b.value];if(!r||e.mode==="horizontal"||e.collapse)return;r.indexPath.forEach(y=>{const A=v.value[y];A&&h(y,A.indexPath)})},h=(r,p)=>{d.value.includes(r)||(e.uniqueOpened&&(d.value=d.value.filter(y=>p.includes(y))),d.value.push(r),a("open",r,p))},P=r=>{const p=d.value.indexOf(r);p!==-1&&d.value.splice(p,1)},O=(r,p)=>{P(r),a("close",r,p)},H=({index:r,indexPath:p})=>{d.value.includes(r)?O(r,p):h(r,p)},Y=r=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:p,indexPath:y}=r;if(!(We(p)||We(y)))if(e.router&&s){const A=r.route||p,M=s.push(A).then(X=>(X||(b.value=p),X));a("select",p,y,{index:p,indexPath:y,route:A},M)}else b.value=p,a("select",p,y,{index:p,indexPath:y})},ne=r=>{const p=c.value,y=p[r]||b.value&&p[b.value]||p[e.defaultActive];y?b.value=y.index:b.value=r},K=()=>{var r,p;if(!i.value)return-1;const y=Array.from((p=(r=i.value)==null?void 0:r.childNodes)!=null?p:[]).filter($=>$.nodeName!=="#comment"&&($.nodeName!=="#text"||$.nodeValue)),A=64,M=Number.parseInt(getComputedStyle(i.value).paddingLeft,10),X=Number.parseInt(getComputedStyle(i.value).paddingRight,10),Z=i.value.clientWidth-M-X;let f=0,B=0;return y.forEach(($,ae)=>{f+=$.offsetWidth||0,f<=Z-A&&(B=ae+1)}),B===y.length?-1:B},le=r=>v.value[r].indexPath,J=(r,p=33.34)=>{let y;return()=>{y&&clearTimeout(y),y=setTimeout(()=>{r()},p)}};let w=!0;const S=()=>{const r=()=>{m.value=-1,ge(()=>{m.value=K()})};w?r():J(r)(),w=!1};U(()=>e.defaultActive,r=>{c.value[r]||(b.value=""),ne(r)}),U(()=>e.collapse,r=>{r&&(d.value=[])}),U(c.value,N);let C;qt(()=>{e.mode==="horizontal"&&e.ellipsis?C=Oe(i,S).stop:C==null||C()});const z=k(!1);{const r=M=>{v.value[M.index]=M},p=M=>{delete v.value[M.index]};_e("rootMenu",xe({props:e,openedMenus:d,items:c,subMenus:v,activeIndex:b,isMenuPopup:I,addMenuItem:M=>{c.value[M.index]=M},removeMenuItem:M=>{delete c.value[M.index]},addSubMenu:r,removeSubMenu:p,openMenu:h,closeMenu:O,handleMenuItemClick:Y,handleSubMenuClick:H})),_e(`subMenu:${t.uid}`,{addSubMenu:r,removeSubMenu:p,mouseInChild:z,level:0})}return he(()=>{e.mode==="horizontal"&&new En(t.vnode.el,g.namespace.value)}),o({open:p=>{const{indexPath:y}=v.value[p];y.forEach(A=>h(A,y))},close:P,handleResize:S}),()=>{var r,p;let y=(p=(r=n.default)==null?void 0:r.call(n))!=null?p:[];const A=[];if(e.mode==="horizontal"&&i.value){const f=lt(y),B=m.value===-1?f:f.slice(0,m.value),$=m.value===-1?[]:f.slice(m.value);$!=null&&$.length&&e.ellipsis&&(y=B,A.push(W(He,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>W(oe,{class:l.e("icon-more")},{default:()=>W(e.ellipsisIcon)}),default:()=>$})))}const M=mt(e,0),X=e.closeOnClickOutside?[[Wt,()=>{d.value.length&&(z.value||(d.value.forEach(f=>a("close",f,le(f))),d.value=[]))}]]:[],Z=De(W("ul",{key:String(e.collapse),role:"menubar",ref:i,style:M.value,class:{[g.b()]:!0,[g.m(e.mode)]:!0,[g.m("collapse")]:e.collapse}},[...y,...A]),X);return e.collapseTransition&&e.mode==="vertical"?W(kn,()=>Z):Z}}});const $n=pe({index:{type:me([String,null]),default:null},route:{type:me([String,Object])},disabled:Boolean}),Dn={click:e=>ue(e.index)&&Array.isArray(e.indexPath)},ke="ElMenuItem",Hn=D({name:ke,components:{ElTooltip:je},props:$n,emits:Dn,setup(e,{emit:a}){const n=ve(),o=se("rootMenu"),t=V("menu"),s=V("menu-item");o||de(ke,"can not inject root menu");const{parentMenu:i,indexPath:g}=ft(n,Kt(e,"index")),l=se(`subMenu:${i.value.uid}`);l||de(ke,"can not inject sub menu");const m=T(()=>e.index===o.activeIndex),d=xe({index:e.index,indexPath:g,active:m}),b=()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:g.value,route:e.route}),a("click",d))};return he(()=>{l.addSubMenu(d),o.addMenuItem(d)}),Ze(()=>{l.removeSubMenu(d),o.removeMenuItem(d)}),{parentMenu:i,rootMenu:o,active:m,nsMenu:t,nsMenuItem:s,handleClick:b}}});function zn(e,a,n,o,t,s){const i=Ge("el-tooltip");return E(),R("li",{class:ee([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:a[0]||(a[0]=(...g)=>e.handleClick&&e.handleClick(...g))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(E(),q(i,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:_(()=>[L(e.$slots,"title")]),default:_(()=>[F("div",{class:ee(e.nsMenu.be("tooltip","trigger"))},[L(e.$slots,"default")],2)]),_:3},8,["effect"])):(E(),R(ce,{key:1},[L(e.$slots,"default"),L(e.$slots,"title")],64))],2)}var ht=te(Hn,[["render",zn],["__file","menu-item.vue"]]);const Fn={title:String},Vn="ElMenuItemGroup",Rn=D({name:Vn,props:Fn,setup(){return{ns:V("menu-item-group")}}});function Yn(e,a,n,o,t,s){return E(),R("li",{class:ee(e.ns.b())},[F("div",{class:ee(e.ns.e("title"))},[e.$slots.title?L(e.$slots,"title",{key:1}):(E(),R(ce,{key:0},[j(fe(e.title),1)],64))],2),F("ul",null,[L(e.$slots,"default")])],2)}var bt=te(Rn,[["render",Yn],["__file","menu-item-group.vue"]]);const Wn=$e(On,{MenuItem:ht,MenuItemGroup:bt,SubMenu:He}),Ln=re(ht);re(bt);const Xn=re(He),Ee=Symbol("tabsRootContextKey"),Qn=pe({tabs:{type:me(Array),default:()=>Ne([])}}),_t="ElTabBar",jn=D({name:_t}),qn=D({...jn,props:Qn,setup(e,{expose:a}){const n=e,o=ve(),t=se(Ee);t||de(_t,"");const s=V("tabs"),i=k(),g=k(),l=()=>{let d=0,b=0;const c=["top","bottom"].includes(t.props.tabPosition)?"width":"height",v=c==="width"?"x":"y",I=v==="x"?"left":"top";return n.tabs.every(N=>{var h,P;const O=(P=(h=o.parent)==null?void 0:h.refs)==null?void 0:P[`tab-${N.uid}`];if(!O)return!1;if(!N.active)return!0;d=O[`offset${ie(I)}`],b=O[`client${ie(c)}`];const H=window.getComputedStyle(O);return c==="width"&&(n.tabs.length>1&&(b-=Number.parseFloat(H.paddingLeft)+Number.parseFloat(H.paddingRight)),d+=Number.parseFloat(H.paddingLeft)),!1}),{[c]:`${b}px`,transform:`translate${ie(v)}(${d}px)`}},m=()=>g.value=l();return U(()=>n.tabs,async()=>{await ge(),m()},{immediate:!0}),Oe(i,()=>m()),a({ref:i,update:m}),(d,b)=>(E(),R("div",{ref_key:"barRef",ref:i,class:ee([x(s).e("active-bar"),x(s).is(x(t).props.tabPosition)]),style:Te(g.value)},null,6))}});var Un=te(qn,[["__file","tab-bar.vue"]]);const Kn=pe({panes:{type:me(Array),default:()=>Ne([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Zn={tabClick:(e,a,n)=>n instanceof Event,tabRemove:(e,a)=>a instanceof Event},Le="ElTabNav",Jn=D({name:Le,props:Kn,emits:Zn,setup(e,{expose:a,emit:n}){const o=ve(),t=se(Ee);t||de(Le,"");const s=V("tabs"),i=xt(),g=Et(),l=k(),m=k(),d=k(),b=k(),c=k(!1),v=k(0),I=k(!1),N=k(!0),h=T(()=>["top","bottom"].includes(t.props.tabPosition)?"width":"height"),P=T(()=>({transform:`translate${h.value==="width"?"X":"Y"}(-${v.value}px)`})),O=()=>{if(!l.value)return;const w=l.value[`offset${ie(h.value)}`],S=v.value;if(!S)return;const C=S>w?S-w:0;v.value=C},H=()=>{if(!l.value||!m.value)return;const w=m.value[`offset${ie(h.value)}`],S=l.value[`offset${ie(h.value)}`],C=v.value;if(w-C<=S)return;const z=w-C>S*2?C+S:w-S;v.value=z},Y=async()=>{const w=m.value;if(!c.value||!d.value||!l.value||!w)return;await ge();const S=d.value.querySelector(".is-active");if(!S)return;const C=l.value,z=["top","bottom"].includes(t.props.tabPosition),r=S.getBoundingClientRect(),p=C.getBoundingClientRect(),y=z?w.offsetWidth-p.width:w.offsetHeight-p.height,A=v.value;let M=A;z?(r.leftp.right&&(M=A+r.right-p.right)):(r.topp.bottom&&(M=A+(r.bottom-p.bottom))),M=Math.max(M,0),v.value=Math.min(M,y)},ne=()=>{var w;if(!m.value||!l.value)return;e.stretch&&((w=b.value)==null||w.update());const S=m.value[`offset${ie(h.value)}`],C=l.value[`offset${ie(h.value)}`],z=v.value;C0&&(v.value=0))},K=w=>{const S=w.code,{up:C,down:z,left:r,right:p}=Q;if(![C,z,r,p].includes(S))return;const y=Array.from(w.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),A=y.indexOf(w.target);let M;S===r||S===C?A===0?M=y.length-1:M=A-1:A{N.value&&(I.value=!0)},J=()=>I.value=!1;return U(i,w=>{w==="hidden"?N.value=!1:w==="visible"&&setTimeout(()=>N.value=!0,50)}),U(g,w=>{w?setTimeout(()=>N.value=!0,50):N.value=!1}),Oe(d,ne),he(()=>setTimeout(()=>Y(),0)),Zt(()=>ne()),a({scrollToActiveTab:Y,removeFocus:J}),U(()=>e.panes,()=>o.update(),{flush:"post",deep:!0}),()=>{const w=c.value?[u("span",{class:[s.e("nav-prev"),s.is("disabled",!c.value.prev)],onClick:O},[u(oe,null,{default:()=>[u(At,null,null)]})]),u("span",{class:[s.e("nav-next"),s.is("disabled",!c.value.next)],onClick:H},[u(oe,null,{default:()=>[u(Qe,null,null)]})])]:null,S=e.panes.map((C,z)=>{var r,p,y,A;const M=C.uid,X=C.props.disabled,Z=(p=(r=C.props.name)!=null?r:C.index)!=null?p:`${z}`,f=!X&&(C.isClosable||e.editable);C.index=`${z}`;const B=f?u(oe,{class:"is-icon-close",onClick:G=>n("tabRemove",C,G)},{default:()=>[u(St,null,null)]}):null,$=((A=(y=C.slots).label)==null?void 0:A.call(y))||C.props.label,ae=!X&&C.active?0:-1;return u("div",{ref:`tab-${M}`,class:[s.e("item"),s.is(t.props.tabPosition),s.is("active",C.active),s.is("disabled",X),s.is("closable",f),s.is("focus",I.value)],id:`tab-${Z}`,key:`tab-${M}`,"aria-controls":`pane-${Z}`,role:"tab","aria-selected":C.active,tabindex:ae,onFocus:()=>le(),onBlur:()=>J(),onClick:G=>{J(),n("tabClick",C,Z,G)},onKeydown:G=>{f&&(G.code===Q.delete||G.code===Q.backspace)&&n("tabRemove",C,G)}},[$,B])});return u("div",{ref:d,class:[s.e("nav-wrap"),s.is("scrollable",!!c.value),s.is(t.props.tabPosition)]},[w,u("div",{class:s.e("nav-scroll"),ref:l},[u("div",{class:[s.e("nav"),s.is(t.props.tabPosition),s.is("stretch",e.stretch&&["top","bottom"].includes(t.props.tabPosition))],ref:m,style:P.value,role:"tablist",onKeydown:K},[e.type?null:u(Un,{ref:b,tabs:[...e.panes]},null),S])])])}}}),Gn=pe({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:me(Function),default:()=>!0},stretch:Boolean}),Be=e=>ue(e)||Jt(e),ea={[st]:e=>Be(e),tabClick:(e,a)=>a instanceof Event,tabChange:e=>Be(e),edit:(e,a)=>["remove","add"].includes(a),tabRemove:e=>Be(e),tabAdd:()=>!0},ta=D({name:"ElTabs",props:Gn,emits:ea,setup(e,{emit:a,slots:n,expose:o}){var t,s;const i=V("tabs"),{children:g,addChild:l,removeChild:m}=on(ve(),"ElTabPane"),d=k(),b=k((s=(t=e.modelValue)!=null?t:e.activeName)!=null?s:"0"),c=async(h,P=!1)=>{var O,H,Y;if(!(b.value===h||Re(h)))try{await((O=e.beforeLeave)==null?void 0:O.call(e,h,b.value))!==!1&&(b.value=h,P&&(a(st,h),a("tabChange",h)),(Y=(H=d.value)==null?void 0:H.removeFocus)==null||Y.call(H))}catch{}},v=(h,P,O)=>{h.props.disabled||(c(P,!0),a("tabClick",h,O))},I=(h,P)=>{h.props.disabled||Re(h.props.name)||(P.stopPropagation(),a("edit",h.props.name,"remove"),a("tabRemove",h.props.name))},N=()=>{a("edit",void 0,"add"),a("tabAdd")};return Xe({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},T(()=>!!e.activeName)),U(()=>e.activeName,h=>c(h)),U(()=>e.modelValue,h=>c(h)),U(b,async()=>{var h;await ge(),(h=d.value)==null||h.scrollToActiveTab()}),_e(Ee,{props:e,currentName:b,registerPane:l,unregisterPane:m}),o({currentName:b}),()=>{const h=n.addIcon,P=e.editable||e.addable?u("span",{class:i.e("new-tab"),tabindex:"0",onClick:N,onKeydown:Y=>{Y.code===Q.enter&&N()}},[h?L(n,"addIcon"):u(oe,{class:i.is("icon-plus")},{default:()=>[u(kt,null,null)]})]):null,O=u("div",{class:[i.e("header"),i.is(e.tabPosition)]},[P,u(Jn,{ref:d,currentName:b.value,editable:e.editable,type:e.type,panes:g.value,stretch:e.stretch,onTabClick:v,onTabRemove:I},null)]),H=u("div",{class:i.e("content")},[L(n,"default")]);return u("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[O,H]:[H,O]])}}}),na=pe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),aa=["id","aria-hidden","aria-labelledby"],gt="ElTabPane",oa=D({name:gt}),sa=D({...oa,props:na,setup(e){const a=e,n=ve(),o=Ke(),t=se(Ee);t||de(gt,"usage: ");const s=V("tab-pane"),i=k(),g=T(()=>a.closable||t.props.closable),l=Fe(()=>{var v;return t.currentName.value===((v=a.name)!=null?v:i.value)}),m=k(l.value),d=T(()=>{var v;return(v=a.name)!=null?v:i.value}),b=Fe(()=>!a.lazy||m.value||l.value);U(l,v=>{v&&(m.value=!0)});const c=xe({uid:n.uid,slots:o,props:a,paneName:d,active:l,index:i,isClosable:g});return he(()=>{t.registerPane(c)}),Gt(()=>{t.unregisterPane(c.uid)}),(v,I)=>x(b)?De((E(),R("div",{key:0,id:`pane-${x(d)}`,class:ee(x(s).b()),role:"tabpanel","aria-hidden":!x(l),"aria-labelledby":`tab-${x(d)}`},[L(v.$slots,"default")],10,aa)),[[Je,x(l)]]):et("v-if",!0)}});var yt=te(sa,[["__file","tab-pane.vue"]]);const la=$e(ta,{TabPane:yt}),ia=re(yt);const ra="data:image/png;base64,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";const ua={class:"logo"},ca={__name:"index",props:{collapse:{type:Boolean,default:!1}},setup(e){const a=[{title:"首頁",icon:Bt,path:"/index",children:[{title:"首頁輪播",path:"/index/banner"},{title:"供應商",path:"/index/supplier"}]},{title:"關於普達",icon:It,path:"/about",children:[{title:"公司簡介",path:"/about/company"},{title:"經營理念",path:"/about/concept"}]},{title:"產品管理",icon:Pt,path:"/product",children:[{title:"產品列表",path:"/product/list"},{title:"產品類別",path:"/product/group"}]},{title:"最新消息",icon:Nt,path:"/news",children:[{title:"產業動態",path:"/news/list"},{title:"公司活動",path:"/news/activity"}]},{title:"聯絡我們",icon:Ot,path:"/contact",children:[{title:"表單信件",path:"/contact/email"},{title:"公司據點",path:"/contact/map"}]},{title:"權限管理",icon:Ve,path:"/priv",children:[{title:"管理員列表",path:"/priv/admin"},{title:"管理員紀錄",path:"/priv/adminlog"}]},{title:"站台設定",icon:Ve,path:"/site/config"}],n=(o,t)=>{en.push(o)};return(o,t)=>{const s=Lt,i=oe,g=Ln,l=Xn,m=Wn;return E(),q(m,{"active-text-color":"#fefefe","background-color":"#032121","text-color":"#ccc","unique-opened":"",class:"el-menu-vertical",collapse:e.collapse,"default-active":o.$route.path,onSelect:n},{default:_(()=>[F("div",ua,[u(s,{style:{width:"100px"},src:x(ra)},null,8,["src"])]),(E(),R(ce,null,Ie(a,(d,b)=>(E(),R(ce,{key:b},[d.children&&d.children.length>0?(E(),q(l,{key:0,index:d.path},{title:_(()=>[u(i,null,{default:_(()=>[(E(),q(Ye(d.icon)))]),_:2},1024),F("span",null,fe(d.title),1)]),default:_(()=>[(E(!0),R(ce,null,Ie(d.children,(c,v)=>(E(),q(g,{index:c.path},{default:_(()=>[j(fe(c.title),1)]),_:2},1032,["index"]))),256))]),_:2},1032,["index"])):(E(),q(g,{key:1,index:d.path},{default:_(()=>[u(i,null,{default:_(()=>[(E(),q(Ye(d.icon)))]),_:2},1024),F("span",null,fe(d.title),1)]),_:2},1032,["index"]))],64))),64))]),_:1},8,["collapse","default-active"])}}},da=ot(ca,[["__scopeId","data-v-52d96f34"]]);const pa={class:"admin-header"},va={class:"header-nav header-layout-left"},fa={class:"header-nav-item header-flexible"},ma={class:"header-nav"},ha={class:"header-nav-item header-flexible",style:{cursor:"pointer"}},ba={class:"header-avatar",style:{marginRight:"5px"}},_a={class:"header-avatar"},ga={__name:"index",props:{collapse:{type:Boolean,default:!1}},emits:["toggleClospe"],setup(e,{emit:a}){const n=a,o=tt(),t=nt(),s={tw:"繁體",cn:"簡體",en:"EN"},i=se("reload"),g=()=>{n("toggleClospe")},l=b=>{t.setLang(b),i()},m=()=>{sessionStorage.removeItem("token"),o.push("/login")},d=()=>{alert("button click")};return(b,c)=>{const v=oe,I=it,N=rt,h=ut;return E(),R("div",pa,[F("ul",va,[F("li",fa,[e.collapse?(E(),q(v,{key:0,size:20,color:"#666",onClick:g},{default:_(()=>[u(x($t))]),_:1})):(E(),q(v,{key:1,size:20,color:"#666",onClick:g},{default:_(()=>[u(x(Dt))]),_:1}))])]),F("ul",ma,[F("li",ha,[u(h,{onClick:d},{dropdown:_(()=>[u(N,null,{default:_(()=>[u(I,{onClick:c[0]||(c[0]=P=>l("tw"))},{default:_(()=>[j("繁體")]),_:1}),u(I,{onClick:c[1]||(c[1]=P=>l("cn"))},{default:_(()=>[j("簡體")]),_:1}),u(I,{onClick:c[2]||(c[2]=P=>l("en"))},{default:_(()=>[j("EN")]),_:1})]),_:1})]),default:_(()=>[F("div",ba,[u(v,{size:13,style:{marginRight:"5px"}},{default:_(()=>[u(x(Ht))]),_:1}),j(" "+fe(s[x(t).lang])+" - 語言切換 ",1)])]),_:1}),u(h,{"hide-on-click":!1},{dropdown:_(()=>[u(N,null,{default:_(()=>[u(I,null,{default:_(()=>[j("資料修改")]),_:1}),u(I,{onClick:Pe(m,["stop"])},{default:_(()=>[j("登出")]),_:1})]),_:1})]),default:_(()=>[F("div",_a,[u(v,{size:13,style:{marginRight:"5px"}},{default:_(()=>[u(x(zt))]),_:1}),j(" Admin ")])]),_:1})])])])}}};const ya=tn("tabs",{state:()=>({activeTab:"/",visitedViews:[]}),actions:{setActiveTab(e){this.activeTab=e},addTab(e){this.setActiveTab(e.path),e.path!=="/home"&&(this.visitedViews.some(a=>a.path===e.path)||this.visitedViews.push(e))},removeTab(e){const a=this.visitedViews.indexOf(e);this.visitedViews.splice(a,1)},closeOtherTabs(){this.visitedViews=this.visitedViews.filter(e=>e.path===this.activeTab)},closeAllTabs(){this.visitedViews=[]}}});const Ca={class:"main-tabs-view"},Ma={class:"tab-content"},wa={class:"tab-content"},Ta={class:"el-dropdown-link"},xa={__name:"index",setup(e){const a=tt(),n=at(),o=ya(),{visitedViews:t}=nn(o),s=se("reload"),i=T({get:()=>o.activeTab,set:c=>{o.setActiveTab(c)}});he(()=>{b()}),U(n,()=>{b()});const g=c=>{a.push(c.props.name)},l=c=>{if(t.value.length===1)a.push("/");else if(c.path===i.value){const v=t.value.findIndex(N=>N.path===c.path),I=t.value[v-1];i.value=I.path,a.push(I.path)}o.removeTab(c)},m=()=>{o.closeOtherTabs()},d=()=>{o.closeAllTabs()},b=()=>{n.path==="/login"||n.path==="/news/list/form"||n.path==="/product/list/form"||n.path&&o.addTab({path:n.path,title:n.meta.title})};return(c,v)=>{const I=oe,N=ia,h=la,P=it,O=rt,H=ut;return E(),R("div",Ca,[F("div",null,[u(h,{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=Y=>i.value=Y),type:"card",onTabClick:g},{default:_(()=>[u(N,{name:"/home"},{label:_(()=>[F("div",Ma,[u(I,null,{default:_(()=>[u(x(Ft))]),_:1})])]),_:1}),(E(!0),R(ce,null,Ie(x(t),Y=>(E(),q(N,{name:Y.path},{label:_(()=>[F("div",wa,[u(I,{onClick:Pe(x(s),["stop"])},{default:_(()=>[u(x(Vt))]),_:1},8,["onClick"]),j(" "+fe(Y.title)+" ",1),u(I,{onClick:Pe(ne=>l(Y),["stop"])},{default:_(()=>[u(x(Rt))]),_:2},1032,["onClick"])])]),_:2},1032,["name"]))),256))]),_:1},8,["modelValue"])]),F("div",null,[u(H,null,{dropdown:_(()=>[u(O,null,{default:_(()=>[u(P,{onClick:m},{default:_(()=>[j("關閉其他")]),_:1}),u(P,{onClick:d},{default:_(()=>[j("關閉全部")]),_:1})]),_:1})]),default:_(()=>[F("span",Ta,[u(I,null,{default:_(()=>[u(x(Yt))]),_:1})])]),_:1})])])}}},Ea=ot(xa,[["__scopeId","data-v-b7d2f3d3"]]),Aa={class:"admin-layout"},Sa={class:"tabs-block"},ka={class:"main-content"},Xa={__name:"AdminLayout",setup(e){const a=at(),n=nt(),o=k(!1),t=()=>{o.value=!o.value};T(()=>a.matched.filter(g=>g.meta.title)),T(()=>n.isMobile);const s=k(!0);return _e("reload",()=>{s.value=!1,ge(()=>{s.value=!0})}),(g,l)=>{const m=Cn,d=Ge("router-view"),b=wn,c=Mn,v=yn;return E(),R("div",Aa,[u(v,null,{default:_(()=>[u(m,{width:"auto",class:"side-scroll"},{default:_(()=>[u(da,{collapse:o.value},null,8,["collapse"])]),_:1}),u(v,null,{default:_(()=>[F("div",null,[u(ga,{collapse:o.value,onToggleClospe:t},null,8,["collapse"])]),u(b,null,{default:_(()=>[F("div",Sa,[u(Ea)]),F("div",ka,[s.value?(E(),q(d,{key:0})):et("",!0)])]),_:1}),u(c,null,{default:_(()=>[j("2023 © copyright ZL ")]),_:1})]),_:1})]),_:1})])}}};export{Xa as default};