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