Layout-781e186d.js 64 KB

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