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