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