var Hn=Object.defineProperty,zn=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var ln=Object.getOwnPropertySymbols;var En=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable;var sn=(t,n,o)=>n in t?Hn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Tt=(t,n)=>{for(var o in n||(n={}))En.call(n,o)&&sn(t,o,n[o]);if(ln)for(var o of ln(n))On.call(n,o)&&sn(t,o,n[o]);return t},Mt=(t,n)=>zn(t,An(n));var ct=(t,n,o)=>new Promise((a,l)=>{var r=s=>{try{h(o.next(s))}catch(d){l(d)}},p=s=>{try{h(o.throw(s))}catch(d){l(d)}},h=s=>s.done?a(s.value):Promise.resolve(s.value).then(r,p);h((o=o.apply(t,n)).next())});import{fq as ae,at as Zn,aw as nt,ax as Rn,ae as Dt,af as Nt,Z as Bt,a as N,au as Fe,av as rt,p as Z,fr as qe,r as qt,fs as Se,ft as gn,fu as rn,m as Ye,ac as Pe,fv as ot,u as e,fw as gt,d4 as Xe,_ as _e,f as u,k as S,cT as Pn,d as re,fx as yt,fy as Dn,a9 as ze,fz as yn,n as De,cU as xt,cV as _n,z as Ft,e as H,B as he,a2 as Te,g as v,i as c,s as fe,F as be,l as Me,v as se,q as Ze,t as U,j as X,w as C,h as me,b3 as jt,b as B,y as Qe,d2 as at,fA as Lt,C as Ut,D as Wt,fB as Nn,dl as Ve,W as Re,U as je,c_ as Bn,O as zt,dh as qn,ag as Fn,fC as Vt,aF as jn,$ as bn,A as et,fD as Gt,fE as _t,M as Un,S as bt,fF as pt,c$ as At,fG as cn,N as dt,ar as wn,Y as st,a0 as xn,o as Wn,c as Gn,V as Yn,fH as Kn,aq as Xn,b4 as Jn,fn as Qn,a5 as un}from"./index-DXew9k_J.js";import{d as eo,a as wt}from"./close-CObHKOmY.js";import{H as to}from"./home-filled-lghak5MV.js";import{d as no}from"./git-branch-line-BhusJOme.js";import{d as oo}from"./admin-line-CpqWPwjZ.js";import{d as Ct,a as ao,b as Et,_ as lo,c as so}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-ub96JF8E.js";import{d as ro,u as Ee,a as Yt,g as Kt,b as io,c as co}from"./dark-BkNlvV9i.js";import{u as Xt,t as uo,a as ho}from"./useDataThemeChange-j2ebHElA.js";import{u as Ge}from"./app-DDk-pOp6.js";import{e as He}from"./mitt-E5P-NQ8u.js";import{d as fo}from"./refresh-right-Du3ZsAuC.js";import{d as Ot}from"./arrow-right-s-line-CxPb13eK.js";import{m as po}from"./index-FJBANiVI.js";import{u as Zt}from"./epTheme-B7_g3SrC.js";import{u as Be}from"./hooks-vNEufZ1W.js";import{S as mo}from"./sortable.esm-CkCitmyH.js";import{d as lt}from"./check-CIQVCvCT.js";import{B as Cn}from"./back_top-njcKdM-B.js";import{R as Ht}from"./index-Zj1bJl93.js";import{R as dn}from"./index-DjrjXoaf.js";import"./user-DNtD0Fqa.js";const vo={width:1024,height:1024,body:''},go={width:1024,height:1024,body:''},yo={width:1024,height:1024,body:''},_o={width:1024,height:1024,body:''},bo={width:1024,height:1024,body:''},wo={width:1024,height:1024,body:''},xo={width:24,height:24,body:''},Co={width:24,height:24,body:''},ko={width:24,height:24,body:''},So={width:24,height:24,body:''},$o={width:24,height:24,body:''},Io={width:24,height:24,body:''},To={width:24,height:24,body:''},kn={width:24,height:24,body:''},Mo={width:24,height:24,body:''},Lo={width:24,height:24,body:''},Vo={width:24,height:24,body:''},Ho={width:24,height:24,body:''},zo={width:24,height:24,body:''},Ao={width:24,height:24,body:''},Eo={width:24,height:24,body:''},Oo={width:24,height:24,body:''},Zo={width:24,height:24,body:''},Ro={width:24,height:24,body:''},Po={width:24,height:24,body:''};ae("ep:menu",eo);ae("ep:edit",vo);ae("ep:set-up",go);ae("ep:guide",yo);ae("ep:monitor",_o);ae("ep:lollipop",bo);ae("ep:histogram",wo);ae("ep:home-filled",to);ae("ri:bookmark-2-line",xo);ae("ri:file-ppt-2-line",Co);ae("ri:bank-card-line",ko);ae("ri:admin-fill",So);ae("ri:file-info-line",$o);ae("ri:git-branch-line",no);ae("ri:links-fill",To);ae("ri:table-line",Io);ae("ri:search-line",kn);ae("ri:admin-line",oo);ae("ri:settings-3-line",Ct);ae("ri:mind-map",Mo);ae("ri:bar-chart-horizontal-line",Lo);ae("ri:window-line",ao);ae("ri:file-search-line",Ho);ae("ri:artboard-line",Vo);ae("ri:list-check",zo);ae("ri:ubuntu-fill",Ao);ae("ri:user-voice-line",Eo);ae("ri:edit-box-line",Oo);ae("ri:history-fill",Zo);ae("ri:information-line",ro);ae("ri:terminal-window-line",Ro);ae("ri:checkbox-circle-line",Po);const Do=Zn({id:"pure-setting",state:()=>({title:nt().Title,fixedHeader:nt().FixedHeader,hiddenSideBar:nt().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:n}){Reflect.has(this,t)&&(this[t]=n)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Jt(){return Do(Rn)}const No={width:24,height:24,body:''},Bo={width:24,height:24,body:''},qo={width:24,height:24,body:''},Fo={width:24,height:24,body:''};function Sn(){var ie,ue;const t=Dt(),n=Nt(),o=Bt(),a=Jt(),l=N(0),r=N(0),p=N(0),h=N(!1),s=N(-1),d=N({}),m=N(!1),f=N(((ie=Fe().getItem(`${rt()}configure`))==null?void 0:ie.showModel)||"smart"),y=(ue=N(Fe().getItem(`${rt()}configure`).hideTabs))!=null?ue:N("false"),b=Z(()=>qe().multiTags),x=qt([{icon:fo,text:Se("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:wt,text:Se("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:Fo,text:Se("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(b.value.length>1),show:!0},{icon:qo,text:Se("buttons.pureCloseRightTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:Bo,text:Se("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(b.value.length>2),show:!0},{icon:No,text:Se("buttons.pureCloseAllTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:gn,text:Se("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function T(P,J,le){var xe,Oe;return rn((xe=t==null?void 0:t.meta)==null?void 0:xe.showLink)&&((Oe=t==null?void 0:t.meta)==null?void 0:Oe.showLink)===!1?Object.keys(t.query).length>0?ot(t.query,P.query)?J:le:ot(t.params,P.params)?J:le:t.path===P.path?J:le}const z=Z(()=>P=>{var J,le;return rn((J=P==null?void 0:P.meta)==null?void 0:J.fixedTag)&&((le=P==null?void 0:P.meta)==null?void 0:le.fixedTag)===!0}),_=Z(()=>(P,J)=>{if(J!==0)return T(P,!0,!1)}),j=Z(()=>P=>T(P,"is-active","")),R=Z(()=>P=>T(P,"schedule-active","")),D=Z(()=>({transform:`translateX(${p.value}px)`,transition:m.value?"none":"transform 0.5s ease-in-out"})),ne=Z(()=>({left:r.value+"px",top:l.value+"px"})),q=()=>{h.value=!1};function V(P){if(P&&(s.value=P),e(f)==="smart"){if(gt(o.refs["schedule"+P][0],"schedule-active"))return;Xe(!0,"schedule-in",o.refs["schedule"+P][0]),Xe(!1,"schedule-out",o.refs["schedule"+P][0])}else{if(gt(o.refs["dynamic"+P][0],"is-active"))return;Xe(!0,"card-in",o.refs["dynamic"+P][0]),Xe(!1,"card-out",o.refs["dynamic"+P][0])}}function F(P){if(s.value=-1,e(f)==="smart"){if(gt(o.refs["schedule"+P][0],"schedule-active"))return;Xe(!1,"schedule-in",o.refs["schedule"+P][0]),Xe(!0,"schedule-out",o.refs["schedule"+P][0])}else{if(gt(o.refs["dynamic"+P][0],"is-active"))return;Xe(!1,"card-in",o.refs["dynamic"+P][0]),Xe(!0,"card-out",o.refs["dynamic"+P][0])}}function W(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ye(()=>{if(!f.value){const P=Fe().getItem(`${rt()}configure`);P.showModel="card",Fe().setItem(`${rt()}configure`,P)}}),{Close:wt,route:t,router:n,visible:h,showTags:y,instance:o,multiTags:b,showModel:f,tagsViews:x,buttonTop:l,buttonLeft:r,translateX:p,isFixedTag:z,pureSetting:a,activeIndex:s,getTabStyle:D,isScrolling:m,iconIsActive:_,linkIsActive:j,currentSelect:d,scheduleIsActive:R,getContextMenuStyle:ne,$t:Se,closeMenu:q,onMounted:Ye,onMouseenter:V,onMouseleave:F,transformI18n:Pe,onContentFullScreen:W}}const jo={},Uo={class:"w-full h-full"},Wo=Pn('',3),Go=[Wo];function Yo(t,n){return u(),S("svg",Uo,Go)}const Ko=_e(jo,[["render",Yo]]),Xo={width:24,height:24,body:''};var Jo={BASE_URL:"/vue-pure-admin/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_CDN:"false",VITE_COMPRESSION:"none",VITE_HIDE_HOME:"false",VITE_PORT:"8848",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash"};const Qo=t=>(Ut("data-v-890d6ae6"),t=t(),Wt(),t),ea={class:"arrow-left"},ta=["onContextmenu","onMouseenter","onMouseleave","onClick"],na={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},oa=["onClick"],aa={key:1,class:"chrome-tab"},la={class:"chrome-tab__bg"},sa={class:"tag-title"},ra=["onClick"],ia=Qo(()=>v("span",{class:"chrome-tab-divider"},null,-1)),ca={class:"arrow-right"},ua=["onClick"],da={class:"arrow-down"},ha=re({__name:"index",setup(t){var mt;const{Close:n,route:o,router:a,visible:l,showTags:r,instance:p,multiTags:h,tagsViews:s,buttonTop:d,buttonLeft:m,showModel:f,translateX:y,isFixedTag:b,pureSetting:x,activeIndex:T,getTabStyle:z,isScrolling:_,iconIsActive:j,linkIsActive:R,currentSelect:D,scheduleIsActive:ne,getContextMenuStyle:q,closeMenu:V,onMounted:F,onMouseenter:W,onMouseleave:ie,transformI18n:ue,onContentFullScreen:P}=Sn(),J=N(),le=N(),xe=N(),Oe=N(),$e=N(!1),i=(mt=yt())==null?void 0:mt.path,{VITE_HIDE_HOME:g}=Jo,I=[...Dn,...ze().flatteningRoutes.filter(k=>{var E;return(E=k==null?void 0:k.meta)==null?void 0:E.fixedTag})],Q=()=>ct(this,null,function*(){yield Qe();const k=h.value.findIndex(E=>at(o.query)?at(o.params)?o.path===E.path:ot(o.params,E.params):ot(o.query,E.query));pe(k)}),pe=k=>ct(this,null,function*(){var de,ke;yield Qe();const E=10;if(!p.refs["dynamic"+k])return;const O=p.refs["dynamic"+k][0],K=O==null?void 0:O.offsetLeft,ve=O==null?void 0:O.offsetWidth,G=xe.value?(de=xe.value)==null?void 0:de.offsetWidth:0,Y=J.value?(ke=J.value)==null?void 0:ke.offsetWidth:0;G<=Y?$e.value=!0:$e.value=!1,Y-y.value&&K+ve<-y.value+G?y.value=Math.min(0,G-ve-K-E):y.value=-(K-(G-E-ve))}),te=k=>{var K;const E=xe.value?(K=xe.value)==null?void 0:K.offsetWidth:0,O=J.value?J.value.offsetWidth:0;k>0?y.value=Math.min(0,y.value+k):E=-(O-E)&&(y.value=Math.max(y.value+k,E-O)):y.value=0,_.value=!1},ee=k=>{_.value=!0;const E=Math.abs(k.deltaX)+Math.abs(k.deltaY);let O=0;k.deltaX<0?O=E>0?E:100:O=E>0?-E:-100,w(O)},w=k=>{let O=Math.abs(k);const K=()=>{const ve=Math.sign(k)*Math.min(20,O);te(ve),O-=Math.abs(ve),O>0&&requestAnimationFrame(K)};requestAnimationFrame(K)};function $(k){const E=h.value.some(K=>K.path===k);function O(K,ve){E||K.forEach(G=>{G.path===ve?qe().handleTags("push",{path:ve,meta:G.meta,name:G.name}):G.children&&G.children.length>0&&O(G.children,ve)})}O(a.options.routes,k)}function A(){const{fullPath:k,query:E}=e(o);a.replace({path:"/redirect"+k,query:E}),Lt(o,"refresh")}function ce(k,E,O){var Y,de,ke,it;const K=h.value.findIndex(Le=>{if(Le.query){if(Le.path===k.path)return Le.query===k.query}else if(Le.params){if(Le.path===k.path)return Le.params===k.params}else return Le.path===k.path}),ve=(Le,Ie,vt)=>{vt?qe().handleTags("equal",[g==="false"?I:Ve(yt()),k].flat()):qe().handleTags("splice","",{startIndex:Le,length:Ie}),Q()};O==="other"?ve(1,1,!0):O==="left"?ve(I.length,K-1,!0):O==="right"?ve(K+1,h.value.length):ve(K,1);const G=qe().handleTags("slice");if(E===o.path){if(O==="left")return;(Y=G[0])!=null&&Y.query?a.push({name:G[0].name,query:G[0].query}):(de=G[0])!=null&&de.params?a.push({name:G[0].name,params:G[0].params}):a.push({path:G[0].path})}else{if(!h.value.length||h.value.some(Le=>Le.path===o.path))return;(ke=G[0])!=null&&ke.query?a.push({name:G[0].name,query:G[0].query}):(it=G[0])!=null&&it.params?a.push({name:G[0].name,params:G[0].params}):a.push({path:G[0].path})}}function M(k,E){ce(k,k.path,E),Lt(o)}function L(k,E,O){if(E&&E.disabled)return;let K;switch(O?K={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:K={path:o.path,meta:o.meta},k){case 0:A();break;case 1:M(K);break;case 2:M(K,"left");break;case 3:M(K,"right");break;case 4:M(K,"other");break;case 5:qe().handleTags("splice","",{startIndex:I.length,length:h.value.length}),a.push(i),Lt(o);break;case 6:P(),setTimeout(()=>{x.hiddenSideBar?(s[6].icon=Nn,s[6].text=Se("buttons.pureContentExitFullScreen")):(s[6].icon=gn,s[6].text=Se("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{Ue(o.fullPath,o.query)})}function ge(k){const{key:E,item:O}=k;L(E,O)}function Ce(k,E){V(),L(k,E,D.value)}function Ke(k){Array.of(1,2,3,4,5).forEach(E=>{s[E].show=k})}function Ae(k,E=!1){Array.of(1,2,3,4,5).forEach(O=>{s[O].disabled=k}),E&&(s[2].show=!1,s[2].disabled=!0)}function Ue(k,E={},O=!1){var de,ke,it,Le;const K=h.value,ve=h.value.length;let G=-1;at(E)?G=K.findIndex(Ie=>Ie.path===k):G=K.findIndex(Ie=>ot(Ie.query,E));function Y(){var Ie,vt;(vt=(Ie=K[G])==null?void 0:Ie.meta)!=null&&vt.fixedTag&&Array.of(1,2,3,4,5).forEach(Vn=>{s[Vn].disabled=!0})}Ke(!0),O&&(s[0].show=!0),G===1&&ve!==2?(s[2].show=!1,Array.of(1,3,4,5).forEach(Ie=>{s[Ie].disabled=!1}),s[2].disabled=!0,Y()):G===1&&ve===2?(Ae(!1),Array.of(2,3,4).forEach(Ie=>{s[Ie].show=!1,s[Ie].disabled=!0}),Y()):ve-1===G&&G!==0?(s[3].show=!1,Array.of(1,2,4,5).forEach(Ie=>{s[Ie].disabled=!1}),s[3].disabled=!0,(ke=(de=K[G-1])==null?void 0:de.meta)!=null&&ke.fixedTag&&(s[2].show=!1,s[2].disabled=!0),Y()):G===0||k===`/redirect${i}`?Ae(!0):(Ae(!1,(Le=(it=K[G-1])==null?void 0:it.meta)==null?void 0:Le.fixedTag),Y())}function It(k,E){var de;V(),k.path===i||(de=k==null?void 0:k.meta)!=null&&de.fixedTag?(Ke(!1),s[0].show=!0):o.path!==k.path&&o.name!==k.name?(s[0].show=!1,Ue(k.path,k.query)):h.value.length===2&&o.path!==k.path?(Ke(!0),s[4].show=!1):o.path===k.path&&Ue(k.path,k.query,!0),D.value=k;const O=140,K=e(le).getBoundingClientRect().left,G=e(le).offsetWidth-O,Y=E.clientX-K+5;Y>G?m.value=G:m.value=Y,Jt().hiddenSideBar?d.value=E.clientY:d.value=E.clientY-40,Qe(()=>{l.value=!0})}function oe(k){const{name:E,path:O}=k;E?k.query?a.push({name:E,query:k.query}):k.params?a.push({name:E,params:k.params}):a.push({name:E}):a.push({path:O})}return yn(Oe,V,{detectIframe:!0}),De(o,()=>{T.value=-1,Q()}),F(()=>{p&&(Ue(o.fullPath),He.on("tagViewsChange",k=>{e(r)!==k&&(r.value=k)}),He.on("tagViewsShowModel",k=>{f.value=k}),He.on("changLayoutRoute",k=>{$(k),setTimeout(()=>{Ue(k)})}),xt(xe,Q),_n().then(()=>Q()))}),Ft(()=>{He.off("tagViewsChange"),He.off("tagViewsShowModel"),He.off("changLayoutRoute")}),(k,E)=>{const O=H("IconifyIconOffline"),K=H("el-dropdown-item"),ve=H("el-dropdown-menu"),G=H("el-dropdown");return e(r)?X("",!0):(u(),S("div",{key:0,ref_key:"containerDom",ref:le,class:"tags-view"},[he(v("span",ea,[c(O,{icon:e(Et),onClick:E[0]||(E[0]=Y=>te(200))},null,8,["icon"])],512),[[Te,$e.value]]),v("div",{ref_key:"scrollbarDom",ref:xe,class:se(["scroll-container",e(f)==="chrome"&&"chrome-scroll-container"]),onWheel:Ze(ee,["prevent"])},[v("div",{ref_key:"tabDom",ref:J,class:"tab select-none",style:fe(e(z))},[(u(!0),S(be,null,Me(e(h),(Y,de)=>(u(),S("div",{ref_for:!0,ref:"dynamic"+de,key:de,class:se(["scroll-item is-closable",e(R)(Y),e(f)==="chrome"&&"chrome-item",e(b)(Y)&&"fixed-tag"]),onContextmenu:Ze(ke=>It(Y,ke),["prevent"]),onMouseenter:Ze(ke=>e(W)(de),["prevent"]),onMouseleave:Ze(ke=>e(ie)(de),["prevent"]),onClick:ke=>oe(Y)},[e(f)!=="chrome"?(u(),S(be,{key:0},[v("span",na,U(e(ue)(Y.meta.title)),1),!e(b)(Y)&&(e(j)(Y,de)||de===e(T)&&de!==0)?(u(),S("span",{key:0,class:"el-icon-close",onClick:Ze(ke=>M(Y),["stop"])},[c(O,{icon:e(n)},null,8,["icon"])],8,oa)):X("",!0),e(f)!=="card"?(u(),S("span",{key:1,ref_for:!0,ref:"schedule"+de,class:se([e(ne)(Y)])},null,2)):X("",!0)],64)):(u(),S("div",aa,[v("div",la,[c(Ko)]),v("span",sa,U(e(ue)(Y.meta.title)),1),!e(b)(Y)&&de!==0?(u(),S("span",{key:0,class:"chrome-close-btn",onClick:Ze(ke=>M(Y),["stop"])},[c(O,{icon:e(n)},null,8,["icon"])],8,ra)):X("",!0),ia]))],42,ta))),128))],4)],34),he(v("span",ca,[c(O,{icon:e(Ot),onClick:E[1]||(E[1]=Y=>te(-200))},null,8,["icon"])],512),[[Te,$e.value]]),c(jt,{name:"el-zoom-in-top"},{default:C(()=>[he((u(),S("ul",{ref_key:"contextmenuRef",ref:Oe,key:Math.random(),style:fe(e(q)),class:"contextmenu"},[(u(!0),S(be,null,Me(e(s).slice(0,6),(Y,de)=>(u(),S("div",{key:de,style:{display:"flex","align-items":"center"}},[Y.show?(u(),S("li",{key:0,onClick:ke=>Ce(de,Y)},[c(O,{icon:Y.icon},null,8,["icon"]),me(" "+U(e(ue)(Y.text)),1)],8,ua)):X("",!0)]))),128))],4)),[[Te,e(l)]])]),_:1}),c(G,{trigger:"click",placement:"bottom-end",onCommand:ge},{dropdown:C(()=>[c(ve,null,{default:C(()=>[(u(!0),S(be,null,Me(e(s),(Y,de)=>(u(),B(K,{key:de,command:{key:de,item:Y},divided:Y.divided,disabled:Y.disabled},{default:C(()=>[c(O,{icon:Y.icon},null,8,["icon"]),me(" "+U(e(ue)(Y.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:C(()=>[v("span",da,[c(O,{icon:e(Xo),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),fa=_e(ha,[["__scopeId","data-v-890d6ae6"]]);function pa(t=!1){const n=N(t);function o(p){n.value=p}function a(){o(!0)}function l(){o(!1)}function r(){o(!n.value)}return{bool:n,setBool:o,setTrue:a,setFalse:l,toggle:r}}const ma={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},va=v("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1),ga=[va];function ya(t,n){return u(),S("svg",ma,[...ga])}const $n={render:ya},_a=["onMouseenter"],ba={class:"result-item-title"},wa=re({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:n,emit:o}){const a=N(),l=N(),r=o,p=Bt(),h=t,s=Z(()=>x=>({background:(x==null?void 0:x.path)===d.value?Zt().epThemeColor:"",color:x.path===d.value?"#fff":"",fontSize:x.path===d.value?"16px":"14px"})),d=Z({get(){return h.value},set(x){r("update:value",x)}});function m(x){return ct(this,null,function*(){d.value=x.path})}function f(){r("enter")}function y(){l.value=window.innerHeight-window.innerHeight/10-140}xt(a,y);function b(x){var j;const T=(j=p==null?void 0:p.proxy)==null?void 0:j.$refs[`resultItemRef${x}`];if(!T)return 0;const _=T[0].offsetTop+128;return _>l.value?_-l.value:0}return Ye(()=>{y()}),n({handleScroll:b}),(x,T)=>(u(),S("div",{ref_key:"resultRef",ref:a,class:"result"},[(u(!0),S(be,null,Me(x.options,(z,_)=>{var j,R;return u(),S("div",{key:z.path,ref_for:!0,ref:"resultItemRef"+_,class:"result-item dark:bg-[#1d1d1d]",style:fe(s.value(z)),onClick:f,onMouseenter:D=>m(z)},[(u(),B(Re(e(Be)((j=z.meta)==null?void 0:j.icon)))),v("span",ba,U(e(Pe)((R=z.meta)==null?void 0:R.title)),1),c(e($n))],44,_a)}),128))],512))}}),xa=_e(wa,[["__scopeId","data-v-274aad60"]]),Ca={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},ka=v("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1),Sa=[ka];function $a(t,n){return u(),S("svg",Ca,[...Sa])}const Ia={render:$a},Ta={width:24,height:24,body:''},Ma={width:24,height:24,body:''},La={class:"search-footer text-[#333] dark:text-white"},Va={class:"search-footer-item"},Ha={class:"search-footer-item"},za={class:"search-footer-item"},Aa={key:0,class:"search-footer-total"},Ea=re({__name:"SearchFooter",props:{total:{default:0}},setup(t){const{t:n}=je(),{device:o}=Ee();return(a,l)=>{const r=H("IconifyIconOffline");return u(),S("div",La,[v("span",Va,[c(e($n),{class:"icon"}),me(" "+U(e(n)("buttons.pureConfirm")),1)]),v("span",Ha,[c(r,{icon:e(Ta),class:"icon"},null,8,["icon"]),c(r,{icon:e(Ma),class:"icon"},null,8,["icon"]),me(" "+U(e(n)("buttons.pureSwitch")),1)]),v("span",za,[c(e(Ia),{class:"icon"}),me(" "+U(e(n)("buttons.pureClose")),1)]),e(o)!=="mobile"&&a.total>0?(u(),S("p",Aa,U(`${e(n)("search.pureTotal")} ${a.total}`),1)):X("",!0)])}}}),Oa=_e(Ea,[["__scopeId","data-v-7ba3ef39"]]),Za={width:1024,height:1024,body:''},Ra={class:"history-item-title"},Pa=re({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(t,{emit:n}){const o=n;function a(r){o("collectItem",r)}function l(r){o("deleteItem",r)}return(r,p)=>{var s,d;const h=H("IconifyIconOffline");return u(),S(be,null,[(u(),B(Re(e(Be)((s=r.item.meta)==null?void 0:s.icon)))),v("span",Ra,U(e(Pe)((d=r.item.meta)==null?void 0:d.title)),1),he(c(h,{icon:e(Za),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:p[0]||(p[0]=Ze(m=>a(r.item),["stop"]))},null,8,["icon"]),[[Te,r.item.type==="history"]]),c(h,{icon:e(wt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:p[1]||(p[1]=Ze(m=>l(r.item),["stop"]))},null,8,["icon"])],64)}}}),hn=_e(Pa,[["__scopeId","data-v-ba0c91b5"]]),Da=["onMouseenter"],Na={class:"collect-container"},Ba=["onMouseenter"],qa=re({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:n,emit:o}){const a=N(),l=N(),r=N(!1),{t:p}=je(),h=o,s=Bt(),d=t,m=Z(()=>V=>({background:(V==null?void 0:V.path)===y.value?Zt().epThemeColor:"",color:V.path===y.value?"#fff":"",fontSize:V.path===y.value?"16px":"14px"})),f=Z(()=>({color:Zt().epThemeColor,fontWeight:500})),y=Z({get(){return d.value},set(V){h("update:value",V)}});De(()=>d.value,V=>{V&&r.value&&_n(100).then(()=>r.value=!1)});const b=Z(()=>d.options.filter(V=>V.type==="history")),x=Z(()=>d.options.filter(V=>V.type==="collect"));function T(V){h("collect",V)}function z(V){r.value=!0,h("delete",V)}function _(V){return ct(this,null,function*(){r.value||(y.value=V.path)})}function j(){h("enter")}function R(){l.value=window.innerHeight-window.innerHeight/10-140}xt(a,R);function D(V){var ue;const F=(ue=s==null?void 0:s.proxy)==null?void 0:ue.$refs[`historyItemRef${V}`];if(!F)return 0;const ie=(Bn(F)?F[0]:F).offsetTop+128;return ie>l.value?ie-l.value:0}const ne=V=>{h("drag",{oldIndex:V.oldIndex,newIndex:V.newIndex})};let q=null;return De(x,V=>{V.length>1&&Qe(()=>{const F=document.querySelector(".collect-container");!F||q||(q=mo.create(F,{animation:160,onStart:W=>{W.item.style.cursor="move"},onEnd:W=>{W.item.style.cursor="pointer"},onUpdate:ne}),R())})},{deep:!0,immediate:!0}),n({handleScroll:D}),(V,F)=>(u(),S("div",{ref_key:"historyRef",ref:a,class:"history"},[b.value.length?(u(),S(be,{key:0},[v("div",{style:fe(f.value)},U(e(p)("search.pureHistory")),5),(u(!0),S(be,null,Me(b.value,(W,ie)=>(u(),S("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+ie,class:"history-item dark:bg-[#1d1d1d]",style:fe(m.value(W)),onClick:j,onMouseenter:ue=>_(W)},[c(hn,{item:W,onDeleteItem:z,onCollectItem:T},null,8,["item"])],44,Da))),128))],64)):X("",!0),x.value.length?(u(),S(be,{key:1},[v("div",{style:fe(f.value)},U(`${e(p)("search.pureCollect")}${x.value.length>1?e(p)("search.pureDragSort"):""}`),5),v("div",Na,[(u(!0),S(be,null,Me(x.value,(W,ie)=>(u(),S("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+(ie+b.value.length),class:"history-item dark:bg-[#1d1d1d]",style:fe(m.value(W)),onClick:j,onMouseenter:ue=>_(W)},[c(hn,{item:W,onDeleteItem:z},null,8,["item"])],44,Ba))),128))])],64)):X("",!0)],512))}}),Fa=_e(qa,[["__scopeId","data-v-f7a9d807"]]),ja={class:"search-content"},fn="history",Ua="collect",We="menu-search-history",Je="menu-search-collect",Wa=re({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:n}){const{device:o}=Ee(),a=n,l=t,r=Nt(),{t:p,locale:h}=je(),s=N(""),d=N(),m=N(),f=N(),y=N(""),b=N(""),x=zt([]),T=zt([]),z=qn(ue,300),_=nt().MenuSearchHistory,j=N(null),R=Z(()=>Fn(ze().wholeMenus)),D=Z({get(){return l.value},set(w){a("update:value",w)}});De(()=>l.value,w=>{w&&te()});const ne=Z(()=>s.value&&x.value.length>0),q=Z(()=>!s.value&&T.value.length>0),V=Z(()=>!s.value&&T.value.length===0||s.value&&x.value.length===0);function F(w){return Fe().getItem(w)||[]}function W(w,$){Fe().setItem(w,$)}function ie(w){const $=[];function A(ce){ce.forEach(M=>{$.push(M),M.children&&A(M.children)})}return A(w),$}function ue(){var $;const w=ie(R.value);x.value=w.filter(A=>{var ce,M;return s.value?Pe((ce=A.meta)==null?void 0:ce.title).toLocaleLowerCase().includes(s.value.toLocaleLowerCase().trim())||h.value==="zh"&&!at(po(Pe((M=A.meta)==null?void 0:M.title).toLocaleLowerCase(),s.value.toLocaleLowerCase().trim())):!1}),y.value=(($=x.value)==null?void 0:$.length)>0?x.value[0].path:""}function P(){D.value=!1,setTimeout(()=>{x.value=[],b.value="",s.value=""},200)}function J(w){const A=(x.value.length?d.value:m.value).handleScroll(w);f.value.setScrollTop(A)}function le(){const w=x.value.length>0,$=w?x.value:T.value,A=w?y.value:b.value;return{options:$,currentPath:A,isResultOptions:w}}function xe(w,$){$?y.value=x.value[w].path:b.value=T.value[w].path,J(w)}function Oe(){const{options:w,currentPath:$,isResultOptions:A}=le();if(w.length===0)return;const M=(w.findIndex(L=>L.path===$)-1+w.length)%w.length;xe(M,A)}function $e(){const{options:w,currentPath:$,isResultOptions:A}=le();if(w.length===0)return;const M=(w.findIndex(L=>L.path===$)+1)%w.length;xe(M,A)}function i(){const{options:w,currentPath:$,isResultOptions:A}=le();if(w.length===0||$==="")return;const ce=w.findIndex(M=>M.path===$);ce!==-1&&(A?Q():pe(),r.push(w[ce].path),P())}function g(w){const $=w.type===fn?We:Je;let A=F($);A=A.filter(ce=>ce.path!==w.path),W($,A),te()}function I(w){let $=F(We),A=F(Je);$=$.filter(ce=>ce.path!==w.path),W(We,$),A.some(ce=>ce.path===w.path)||(A.unshift(Mt(Tt({},w),{type:Ua})),W(Je,A)),te()}function Q(){const{path:w,meta:$}=x.value.find(ge=>ge.path===y.value),A=F(We),M=F(Je).some(ge=>ge.path===w),L=A.findIndex(ge=>ge.path===w);M||(L!==-1&&A.splice(L,1),A.length>=_&&A.pop(),A.unshift({path:w,meta:$,type:fn}),Fe().setItem(We,A))}function pe(){let w=F(We);const $=w.findIndex(A=>A.path===b.value);if($!==-1){const[A]=w.splice($,1);w.unshift(A),W(We,w)}}function te(){var A;const w=F(We),$=F(Je);T.value=[...w,...$],b.value=(A=T.value[0])==null?void 0:A.path}function ee(w){const $=F(Je),[A]=$.splice(w.oldIndex,1);$.splice(w.newIndex,0,A),Fe().setItem(Je,$),T.value=[...F(We),...F(Je)],b.value=A.path}return Vt("Enter",i),Vt("ArrowUp",Oe),Vt("ArrowDown",$e),(w,$)=>{const A=H("IconifyIconOffline"),ce=H("el-input"),M=H("el-empty"),L=H("el-scrollbar"),ge=H("el-dialog");return u(),B(ge,{modelValue:D.value,"onUpdate:modelValue":$[3]||($[3]=Ce=>D.value=Ce),top:"5vh",class:"pure-search-dialog","show-close":!1,width:e(o)==="mobile"?"80vw":"40vw","before-close":P,style:{borderRadius:"6px"},"append-to-body":"",onOpened:$[4]||($[4]=Ce=>j.value.focus()),onClosed:$[5]||($[5]=Ce=>j.value.blur())},{footer:C(()=>[c(Oa,{total:x.value.length},null,8,["total"])]),default:C(()=>[c(ce,{ref_key:"inputRef",ref:j,modelValue:s.value,"onUpdate:modelValue":$[0]||($[0]=Ce=>s.value=Ce),size:"large",clearable:"",placeholder:e(p)("search.purePlaceholder"),onInput:e(z)},{prefix:C(()=>[c(A,{icon:e(kn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),v("div",ja,[c(L,{ref_key:"scrollbarRef",ref:f,"max-height":"calc(90vh - 140px)"},{default:C(()=>[V.value?(u(),B(M,{key:0,description:e(p)("search.pureEmpty")},null,8,["description"])):X("",!0),q.value?(u(),B(Fa,{key:1,ref_key:"historyRef",ref:m,value:b.value,"onUpdate:value":$[1]||($[1]=Ce=>b.value=Ce),options:T.value,onClick:i,onDelete:g,onCollect:I,onDrag:ee},null,8,["value","options"])):X("",!0),ne.value?(u(),B(xa,{key:2,ref_key:"resultRef",ref:d,value:y.value,"onUpdate:value":$[2]||($[2]=Ce=>y.value=Ce),options:x.value,onClick:i},null,8,["value","options"])):X("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Ga=_e(Wa,[["__scopeId","data-v-1155c5fc"]]),Qt=re({__name:"index",setup(t){const{bool:n,toggle:o}=pa();function a(){o()}return(l,r)=>{const p=H("IconifyIconOffline");return u(),S("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[c(p,{icon:"ri:search-line"})]),c(Ga,{value:e(n),"onUpdate:value":r[0]||(r[0]=h=>jn(n)?n.value=h:null)},null,8,["value"])])}}}),pn=[{key:"1",name:Se("status.pureNotify"),list:[],emptyText:Se("status.pureNoNotify")},{key:"2",name:Se("status.pureMessage"),list:[{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile1.svg",title:"小铭 评论了你",description:"诚在于心,信在于行,诚信在于心行合一。",datetime:"今天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile2.svg",title:"李白 回复了你",description:"长风破浪会有时,直挂云帆济沧海。",datetime:"昨天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile5.svg",title:"标题",description:"请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"时间",type:"2"}],emptyText:Se("status.pureNoMessage")},{key:"3",name:Se("status.pureTodo"),list:[{avatar:"",title:"第三方紧急代码变更",description:"小林提交于 2024-05-10,需在 2024-05-11 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"版本发布",description:"指派小铭于 2024-06-18 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"新功能开发",description:"开发多租户管理",datetime:"",extra:"进行中",type:"3"},{avatar:"",title:"任务名称",description:"任务需要在 2030-10-30 10:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"}],emptyText:Se("status.pureNoTodo")}],Ya={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Ka={class:"notice-container-text"},Xa={class:"notice-text-title text-[#000000d9] dark:text-white"},Ja={class:"notice-text-datetime text-[#00000073] dark:text-white"},Qa=re({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const n=N(null),o=N(!1),a=N(null),l=N(!1),{tooltipEffect:r}=Ee(),p=bn();function h(){Qe(()=>{var d,m;((d=n.value)==null?void 0:d.scrollWidth)>((m=n.value)==null?void 0:m.clientWidth)?o.value=!0:o.value=!1})}function s(d,m){const f=document.createElement("span");f.innerText=m,f.className="getDescriptionWidth",document.querySelector("body").appendChild(f);const y=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=d.target.offsetWidth;y>2*b?l.value=!0:l.value=!1}return(d,m)=>{var x,T;const f=H("el-avatar"),y=H("el-tooltip"),b=H("el-tag");return u(),S("div",Ya,[t.noticeItem.avatar?(u(),B(f,{key:0,size:30,src:t.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):X("",!0),v("div",Ka,[v("div",Xa,[c(y,{"popper-class":"notice-title-popper",effect:e(r),disabled:!o.value,content:t.noticeItem.title,placement:"top-start",enterable:!e(p)},{default:C(()=>[v("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:h},U(t.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(x=t.noticeItem)!=null&&x.extra?(u(),B(b,{key:0,type:(T=t.noticeItem)==null?void 0:T.status,size:"small",class:"notice-title-extra"},{default:C(()=>{var z;return[me(U((z=t.noticeItem)==null?void 0:z.extra),1)]}),_:1},8,["type"])):X("",!0)]),c(y,{"popper-class":"notice-title-popper",effect:e(r),disabled:!l.value,content:t.noticeItem.description,placement:"top-start"},{default:C(()=>[v("div",{ref_key:"descriptionRef",ref:a,class:"notice-text-description",onMouseover:m[0]||(m[0]=z=>s(z,t.noticeItem.description))},U(t.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",Ja,U(t.noticeItem.datetime),1)])])}}}),el=_e(Qa,[["__scopeId","data-v-197133ce"]]),tl={key:0},nl=re({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(t){return(n,o)=>{const a=H("el-empty");return t.list.length?(u(),S("div",tl,[(u(!0),S(be,null,Me(t.list,(l,r)=>(u(),B(el,{key:r,noticeItem:l},null,8,["noticeItem"]))),128))])):(u(),B(a,{key:1,description:e(Pe)(t.emptyText)},null,8,["description"]))}}}),ol={width:1024,height:1024,body:''},al={class:"header-notice-icon"},ll={key:1},sl={class:"noticeList-container"},rl=re({__name:"index",setup(t){var p;const{t:n}=je(),o=N(0),a=N(pn),l=N((p=pn[0])==null?void 0:p.key);a.value.map(h=>o.value+=h.list.length);const r=Z(()=>h=>n(h.name)+(h.list.length>0?`(${h.list.length})`:""));return(h,s)=>{const d=H("IconifyIconOffline"),m=H("el-badge"),f=H("el-empty"),y=H("el-scrollbar"),b=H("el-tab-pane"),x=H("el-tabs"),T=H("el-dropdown-menu"),z=H("el-dropdown");return u(),B(z,{trigger:"click",placement:"bottom-end"},{dropdown:C(()=>[c(T,null,{default:C(()=>[c(x,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=_=>l.value=_),stretch:!0,class:"dropdown-tabs",style:fe({width:a.value.length===0?"200px":"330px"})},{default:C(()=>[a.value.length===0?(u(),B(f,{key:0,description:e(n)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(u(),S("span",ll,[(u(!0),S(be,null,Me(a.value,_=>(u(),B(b,{key:_.key,label:r.value(_),name:`${_.key}`},{default:C(()=>[c(y,{"max-height":"330px"},{default:C(()=>[v("div",sl,[c(nl,{list:_.list,emptyText:_.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:C(()=>[v("span",{class:se(["dropdown-badge","navbar-bg-hover","select-none",Number(o.value)!==0&&"mr-[10px]"])},[c(m,{value:Number(o.value)===0?"":o.value,max:99},{default:C(()=>[v("span",al,[c(d,{icon:e(ol)},null,8,["icon"])])]),_:1},8,["value"])],2)]),_:1})}}}),en=_e(rl,[["__scopeId","data-v-1760ac04"]]),il={key:0,class:"flex justify-center items-center"},Rt=re({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(t){return(n,o)=>t.extraIcon?(u(),S("div",il,[(u(),B(Re(e(Be)(Ve(t.extraIcon))),{class:"w-[30px] h-[30px]"}))])):X("",!0)}}),tn=re({__name:"SidebarFullScreen",setup(t){const n=N(),{toggle:o,isFullscreen:a,Fullscreen:l,ExitFullscreen:r}=Ee();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),De(a,p=>{n.value=p?r:l},{immediate:!0}),(p,h)=>{const s=H("IconifyIconOffline");return u(),S("span",{class:"fullscreen-icon navbar-bg-hover",onClick:h[0]||(h[0]=(...d)=>e(o)&&e(o)(...d))},[c(s,{icon:n.value},null,8,["icon"])])}}}),nn={width:24,height:24,body:''},on={width:24,height:24,body:''},cl={key:0,class:"horizontal-header"},ul={class:"select-none"},dl={class:"horizontal-header-right"},hl={class:"check-zh"},fl={class:"check-en"},pl={class:"el-dropdown-link navbar-bg-hover select-none"},ml=["src"],vl={key:0,class:"dark:text-white"},gl=["title"],yl=re({__name:"NavMix",setup(t){const n=N(),o=N(null),{t:a,route:l,locale:r,translationCh:p,translationEn:h}=Yt(n),{device:s,logout:d,onPanel:m,resolvePath:f,username:y,userAvatar:b,getDivStyle:x,avatarsStyle:T,toAccountSettings:z,getDropdownItemStyle:_,getDropdownItemClass:j}=Ee();function R(D){var V,F,W;const ne=ze().wholeMenus,q=Gt(D,ne)[0];o.value=at((V=l.meta)==null?void 0:V.activePath)?(W=(F=_t(q,ne))==null?void 0:F.children[0])==null?void 0:W.path:l.meta.activePath}return Ye(()=>{R(l.path)}),Qe(()=>{var D;(D=n.value)==null||D.handleResize()}),De(()=>[l.path,ze().wholeMenus],()=>{R(l.path)}),(D,ne)=>{const q=H("el-menu-item"),V=H("el-menu"),F=H("IconifyIconOffline"),W=H("el-dropdown-item"),ie=H("el-dropdown-menu"),ue=H("el-dropdown"),P=et("loading");return e(s)!=="mobile"?he((u(),S("div",cl,[c(V,{ref_key:"menuRef",ref:n,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":o.value},{default:C(()=>[(u(!0),S(be,null,Me(e(ze)().wholeMenus,J=>(u(),B(q,{key:J.path,index:e(f)(J)||J.redirect},{title:C(()=>[Ve(J.meta.icon)?(u(),S("div",{key:0,class:se(["sub-menu-icon",J.meta.icon])},[(u(),B(Re(e(Be)(J.meta&&Ve(J.meta.icon)))))],2)):X("",!0),v("div",{style:fe(e(x))},[v("span",ul,U(e(Pe)(J.meta.title)),1),c(Rt,{extraIcon:J.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",dl,[c(Qt,{id:"header-search"}),c(ue,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ie,{class:"translation"},{default:C(()=>[c(W,{style:fe(e(_)(e(r),"zh")),class:se(["dark:!text-white",e(j)(e(r),"zh")]),onClick:e(p)},{default:C(()=>[he(v("span",hl,[c(F,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="zh"]]),me(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(W,{style:fe(e(_)(e(r),"en")),class:se(["dark:!text-white",e(j)(e(r),"en")]),onClick:e(h)},{default:C(()=>[he(v("span",fl,[c(F,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="en"]]),me(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Kt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(tn,{id:"full-screen"}),c(en,{id:"header-notice"}),c(ue,{trigger:"click"},{dropdown:C(()=>[c(W,{onClick:e(z)},{default:C(()=>[c(F,{icon:e(nn),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),c(ie,{class:"logout"},{default:C(()=>[c(W,{onClick:e(d)},{default:C(()=>[c(F,{icon:e(on),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",pl,[v("img",{src:e(b),style:fe(e(T))},null,12,ml),e(y)?(u(),S("p",vl,U(e(y)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(a)("buttons.pureOpenSystemSet"),onClick:ne[0]||(ne[0]=(...J)=>e(m)&&e(m)(...J))},[c(F,{icon:e(Ct)},null,8,["icon"])],8,gl)])])),[[P,e(ze)().wholeMenus.length===0]]):X("",!0)}}}),_l=_e(yl,[["__scopeId","data-v-9f22ffe1"]]),bl=["onClick"],wl=re({__name:"SidebarBreadCrumb",setup(t){const n=Dt(),o=N([]),a=Nt(),l=a.options.routes,r=qe().multiTags,p=()=>{let s;Object.keys(n.query).length>0?r.forEach(f=>{ot(n.query,f==null?void 0:f.query)&&(s=Ve(f))}):Object.keys(n.params).length>0?r.forEach(f=>{ot(n.params,f==null?void 0:f.params)&&(s=Ve(f))}):s=_t(a.currentRoute.value.path,l);const d=Gt(a.currentRoute.value.name,l,"name"),m=[];d.forEach(f=>{f!=="/"&&m.push(_t(f,l))}),m.push(s),m.forEach((f,y)=>{s!=null&&s.query||s!=null&&s.params||f!=null&&f.children&&f.children.forEach(b=>{var x,T;((x=b==null?void 0:b.meta)==null?void 0:x.title)===((T=f==null?void 0:f.meta)==null?void 0:T.title)&&m.splice(y,1)})}),o.value=m.filter(f=>(f==null?void 0:f.meta)&&(f==null?void 0:f.meta.title)!==!1)},h=s=>{const{redirect:d,name:m,path:f}=s;d?a.push(d):m?s.query?a.push({name:m,query:s.query}):s.params?a.push({name:m,params:s.params}):a.push({name:m}):a.push({path:f})};return Ye(()=>{p()}),De(()=>n.path,()=>{p()},{deep:!0}),(s,d)=>{const m=H("el-breadcrumb-item"),f=H("el-breadcrumb");return u(),B(f,{class:"!leading-[50px] select-none",separator:"/"},{default:C(()=>[c(Un,{name:"breadcrumb"},{default:C(()=>[(u(!0),S(be,null,Me(o.value,y=>(u(),B(m,{key:y.path,class:"!inline !items-stretch"},{default:C(()=>[v("a",{onClick:Ze(b=>h(y),["prevent"])},U(e(Pe)(y.meta.title)),9,bl)]),_:2},1024))),128))]),_:1})]),_:1})}}}),xl={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Cl={key:3,class:"vertical-header-right"},kl={class:"check-en"},Sl={class:"el-dropdown-link navbar-bg-hover select-none"},$l=["src"],Il={key:0,class:"dark:text-white"},Tl=["title"],Ml=re({__name:"index",setup(t){const{layout:n,device:o,logout:a,onPanel:l,pureApp:r,username:p,userAvatar:h,avatarsStyle:s,toggleSideBar:d,toAccountSettings:m,getDropdownItemStyle:f,getDropdownItemClass:y}=Ee(),{t:b,locale:x,translationCh:T,translationEn:z}=Yt();return(_,j)=>{const R=H("IconifyIconOffline"),D=H("el-dropdown-item"),ne=H("el-dropdown-menu"),q=H("el-dropdown");return u(),S("div",xl,[e(o)==="mobile"?(u(),B(lo,{key:0,class:"hamburger-container","is-active":e(r).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0),e(n)!=="mix"&&e(o)!=="mobile"?(u(),B(wl,{key:1,class:"breadcrumb-container"})):X("",!0),e(n)==="mix"?(u(),B(_l,{key:2})):X("",!0),e(n)==="vertical"?(u(),S("div",Cl,[c(Qt,{id:"header-search"}),c(q,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ne,{class:"translation"},{default:C(()=>[c(D,{style:fe(e(f)(e(x),"zh")),class:se(["dark:!text-white",e(y)(e(x),"zh")]),onClick:e(T)},{default:C(()=>[he(c(R,{class:"check-zh",icon:e(lt)},null,8,["icon"]),[[Te,e(x)==="zh"]]),me(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(D,{style:fe(e(f)(e(x),"en")),class:se(["dark:!text-white",e(y)(e(x),"en")]),onClick:e(z)},{default:C(()=>[he(v("span",kl,[c(R,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(x)==="en"]]),me(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Kt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(tn,{id:"full-screen"}),c(en,{id:"header-notice"}),c(q,{trigger:"click"},{dropdown:C(()=>[c(ne,{class:"logout"},{default:C(()=>[c(D,{onClick:e(m)},{default:C(()=>[c(R,{icon:e(nn),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(b)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),c(D,{onClick:e(a)},{default:C(()=>[c(R,{icon:e(on),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(b)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",Sl,[v("img",{src:e(h),style:fe(e(s))},null,12,$l),e(p)?(u(),S("p",Il,U(e(p)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(b)("buttons.pureOpenSystemSet"),onClick:j[0]||(j[0]=(...V)=>e(l)&&e(l)(...V))},[c(R,{icon:e(Ct)},null,8,["icon"])],8,Tl)])):X("",!0)])}}}),Ll=_e(Ml,[["__scopeId","data-v-b43dc9be"]]),ut=new Map,Vl=()=>{function t(a,l){ut.set(a,l)}function n(a){return a?ut.get(a):[...ut.entries()]}function o(a){ut.delete(a)}return{setMap:t,getMap:n,delMap:o,MAP:ut}},Hl={class:"w-full h-full"},zl=re({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const n=t,o=zt([]),{setMap:a,getMap:l,MAP:r,delMap:p}=Vl(),h=Z(()=>{var d,m;return nt().KeepAlive&&((d=n.currRoute.meta)==null?void 0:d.keepAlive)&&!!((m=n.currRoute.meta)!=null&&m.frameSrc)}),s=Z(()=>!h.value&&n.currComp);return De(qe().multiTags,d=>{if(!Array.isArray(d)||!h.value)return;if(d.filter(f=>{var y;return(y=f.meta)==null?void 0:y.frameSrc}).lengthy.path===f)||(p(f),o.value=l())}),De(()=>n.currRoute.fullPath,d=>{const f=qe().multiTags.filter(y=>{var b;return(b=y.meta)==null?void 0:b.frameSrc});h.value&&f.length!==r.size&&([...r.keys()].find(b=>d===b)||a(d,n.currComp)),r.size>0&&(o.value=l())},{immediate:!0}),(d,m)=>(u(),S(be,null,[(u(!0),S(be,null,Me(o.value,([f,y])=>{var b;return he((u(),S("div",{key:f,class:"w-full h-full"},[bt(d.$slots,"default",{fullPath:f,Comp:y,frameInfo:{frameSrc:(b=d.currRoute.meta)==null?void 0:b.frameSrc,fullPath:f}})],512)),[[Te,f===d.currRoute.fullPath]])}),128)),he(v("div",Hl,[bt(d.$slots,"default",{Comp:s.value,fullPath:d.currRoute.fullPath})],512),[[Te,!h.value]])],64))}}),Al={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},El={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Ol=re({__name:"index",setup(t){const n=nt("Title");return(o,a)=>(u(),S("footer",Al,[me(" Copyright © 2020-2024 "),v("a",El,"  "+U(e(n)),1)]))}}),mn=_e(Ol,[["__scopeId","data-v-8ec2f332"]]),Zl={class:"grow"},Rl={key:1,class:"grow"},Pl=re({__name:"index",props:{fixedHeader:Boolean},setup(t){const n=t,{t:o}=je(),{showModel:a}=Sn(),{$storage:l,$config:r}=pt(),p=Z(()=>r==null?void 0:r.KeepAlive),h=Z(()=>T=>T.meta.transition),s=Z(()=>l==null?void 0:l.configure.hideTabs),d=Z(()=>l==null?void 0:l.configure.hideFooter),m=Z(()=>l==null?void 0:l.configure.stretch),f=Z(()=>(l==null?void 0:l.layout.layout)==="vertical"),y=Z(()=>At(m.value)?m.value+"px":m.value?"1440px":"100%"),b=Z(()=>[s.value&&f?"padding-top: 48px;":"",!s.value&&f?a.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",s.value&&!f.value?"padding-top: 48px;":"",!s.value&&!f.value?a.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",n.fixedHeader?"":`padding-top: 0;${s.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),x=re({props:{route:{type:void 0,required:!0}},render(){var j,R,D;const T=((j=h.value(this.route))==null?void 0:j.name)||"fade-transform",z=(R=h.value(this.route))==null?void 0:R.enterTransition,_=(D=h.value(this.route))==null?void 0:D.leaveTransition;return dt(jt,{name:z?"pure-classes-transition":T,enterActiveClass:z?`animate__animated ${z}`:void 0,leaveActiveClass:_?`animate__animated ${_}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(T,z)=>{const _=H("el-backtop"),j=H("el-scrollbar"),R=H("router-view");return u(),S("section",{class:se([t.fixedHeader?"app-main":"app-main-nofixed-header"]),style:fe(b.value)},[c(R,null,{default:C(({Component:D,route:ne})=>[c(zl,{currComp:D,currRoute:ne},{default:C(({Comp:q,fullPath:V,frameInfo:F})=>[t.fixedHeader?(u(),B(j,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":y.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:C(()=>[c(_,{title:e(o)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:C(()=>[c(e(Cn))]),_:1},8,["title"]),v("div",Zl,[c(e(x),{route:ne},{default:C(()=>[p.value?(u(),B(cn,{key:0,include:e(ze)().cachePageList},[(u(),B(Re(q),{key:V,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),B(Re(q),{key:V,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?X("",!0):(u(),B(mn,{key:0}))]),_:2},1032,["wrap-style"])):(u(),S("div",Rl,[c(e(x),{route:ne},{default:C(()=>[p.value?(u(),B(cn,{key:0,include:e(ze)().cachePageList},[(u(),B(Re(q),{key:V,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),B(Re(q),{key:V,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!t.fixedHeader?(u(),B(mn,{key:0})):X("",!0)],6)}}}),vn=_e(Pl,[["__scopeId","data-v-5fc75f4c"]]),Dl=t=>(Ut("data-v-c826562e"),t=t(),Wt(),t),Nl=Dl(()=>v("div",{class:"right-panel-background"},null,-1)),Bl={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},ql={class:"dark:text-white"},Fl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},jl=re({__name:"index",setup(t){const n=N(null),o=N(!1),a=Z(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-none","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{t:l}=je(),{onReset:r}=Xt();return yn(n,p=>{p.clientX>n.value.offsetLeft||(o.value=!1)}),Ye(()=>{He.on("openPanel",()=>{o.value=!0})}),Ft(()=>{He.off("openPanel")}),(p,h)=>{const s=H("IconifyIconOffline"),d=H("el-scrollbar"),m=H("el-button"),f=et("tippy");return u(),S("div",{class:se({show:o.value})},[Nl,v("div",{ref_key:"target",ref:n,class:"right-panel bg-bg_color"},[v("div",Bl,[v("h4",ql,U(e(l)("panel.pureSystemSet")),1),he((u(),S("span",{class:se(a.value)},[c(s,{class:"dark:text-white",width:"18px",height:"18px",icon:e(wt),onClick:h[0]||(h[0]=y=>o.value=!o.value)},null,8,["icon"])],2)),[[f,{content:e(l)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),c(d,null,{default:C(()=>[bt(p.$slots,"default",{},void 0,!0)]),_:3}),v("div",Fl,[he((u(),B(m,{type:"danger",text:"",bg:"",onClick:e(r)},{default:C(()=>[me(U(e(l)("panel.pureClearCache")),1)]),_:1},8,["onClick"])),[[f,{content:e(l)("panel.pureClearCacheAndToLogin"),placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Ul=_e(jl,[["__scopeId","data-v-c826562e"]]),Wl={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},Gl=v("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),Yl=v("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),Kl=[Gl,Yl];function Xl(t,n){return u(),S("svg",Wl,[...Kl])}const Jl={render:Xl},tt=t=>(Ut("data-v-a63f193b"),t=t(),Wt(),t),Ql={class:"p-5"},es={class:"theme-color"},ts=["onClick"],ns={class:"pure-theme"},os=tt(()=>v("div",null,null,-1)),as=tt(()=>v("div",null,null,-1)),ls=[os,as],ss=tt(()=>v("div",null,null,-1)),rs=tt(()=>v("div",null,null,-1)),is=[ss,rs],cs=tt(()=>v("div",null,null,-1)),us=tt(()=>v("div",null,null,-1)),ds=[cs,us],hs={key:0},fs=tt(()=>v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),ps={class:"mt-5 font-medium text-sm dark:text-white"},ms={class:"setting"},vs={class:"dark:text-white"},gs={class:"dark:text-white"},ys={class:"dark:text-white"},_s={class:"dark:text-white"},bs=tt(()=>v("span",{class:"dark:text-white"},"Logo",-1)),ws={class:"dark:text-white"},xs=re({__name:"index",setup(t){var w,$,A,ce;const{t:n}=je(),{device:o}=Ee(),{isDark:a}=wn(),{$storage:l}=pt(),r=N(),p=N(),h=N(),{dataTheme:s,overallStyle:d,layoutTheme:m,themeColors:f,toggleClass:y,dataThemeChange:b,setLayoutThemeColor:x}=Xt();if(e(m)){const M=e(m).layout,L=e(m).theme;uo({scopeName:`layout-theme-${L}`}),I(M)}const T=N(($=(w=l.configure)==null?void 0:w.showModel)!=null?$:"smart"),z=N((ce=(A=l.configure)==null?void 0:A.showLogo)!=null?ce:!0),_=qt({greyVal:l.configure.grey,weakVal:l.configure.weak,tabsVal:l.configure.hideTabs,showLogo:l.configure.showLogo,showModel:l.configure.showModel,hideFooter:l.configure.hideFooter,multiTagsCache:l.configure.multiTagsCache,stretch:l.configure.stretch}),j=Z(()=>M=>({background:M})),R=Z(()=>M=>!(M==="light"&&a.value));function D(M,L){const ge=l.configure;ge[M]=L,l.configure=ge}const ne=M=>{const L=document.querySelector("html");y(_.greyVal,"html-grey",L),D("grey",M)},q=M=>{const L=document.querySelector("html");y(_.weakVal,"html-weakness",L),D("weak",M)},V=()=>{const M=_.tabsVal;D("hideTabs",M),He.emit("tagViewsChange",M)},F=()=>{const M=_.hideFooter;D("hideFooter",M)},W=()=>{const M=_.multiTagsCache;D("multiTagsCache",M),qe().multiTagsCacheChange(M)};function ie({option:M}){const{value:L}=M;T.value=L,D("showModel",L),He.emit("tagViewsShowModel",L)}function ue(){e(z)?D("showLogo",!0):D("showLogo",!1),He.emit("logoChange",e(z))}function P(M){M.forEach(L=>{y(!1,"is-select",e(L))})}const J=Z(()=>[{label:n("panel.pureStretchFixed"),tip:n("panel.pureStretchFixedTip"),value:"fixed"},{label:n("panel.pureStretchCustom"),tip:n("panel.pureStretchCustomTip"),value:"custom"}]),le=M=>{_.stretch=M,D("stretch",M)},xe=({option:M})=>{const{value:L}=M;le(L==="custom"?1440:!1)},Oe=Z(()=>M=>M===m.value.theme&&m.value.theme!=="light"?"#fff":M===m.value.theme&&m.value.theme==="light"?"#1d2b45":"transparent"),$e=Z(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),i=Z(()=>[{label:n("panel.pureOverallStyleLight"),icon:io,theme:"light",tip:n("panel.pureOverallStyleLightTip"),iconAttrs:{fill:a.value?"#fff":"#000"}},{label:n("panel.pureOverallStyleDark"),icon:co,theme:"dark",tip:n("panel.pureOverallStyleDarkTip"),iconAttrs:{fill:a.value?"#fff":"#000"}},{label:n("panel.pureOverallStyleSystem"),icon:Jl,theme:"system",tip:n("panel.pureOverallStyleSystemTip"),iconAttrs:{fill:a.value?"#fff":"#000"}}]),g=Z(()=>[{label:n("panel.pureTagsStyleSmart"),tip:n("panel.pureTagsStyleSmartTip"),value:"smart"},{label:n("panel.pureTagsStyleCard"),tip:n("panel.pureTagsStyleCardTip"),value:"card"},{label:n("panel.pureTagsStyleChrome"),tip:n("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function I(M){var L,ge,Ce,Ke,Ae;m.value.layout=M,window.document.body.setAttribute("layout",M),l.layout={layout:M,theme:m.value.theme,darkMode:(L=l.layout)==null?void 0:L.darkMode,sidebarStatus:(ge=l.layout)==null?void 0:ge.sidebarStatus,epThemeColor:(Ce=l.layout)==null?void 0:Ce.epThemeColor,themeColor:(Ke=l.layout)==null?void 0:Ke.themeColor,overallStyle:(Ae=l.layout)==null?void 0:Ae.overallStyle},Ge().setLayout(M)}De(l,({layout:M})=>{switch(M.layout){case"vertical":y(!0,"is-select",e(p)),st(P([h]),50),st(P([r]),50);break;case"horizontal":y(!0,"is-select",e(h)),st(P([p]),50),st(P([r]),50);break;case"mix":y(!0,"is-select",e(r)),st(P([p]),50),st(P([h]),50);break}});const Q=window.matchMedia("(prefers-color-scheme: dark)");function pe(){d.value==="system"&&(Q.matches?s.value=!0:s.value=!1,b(d.value))}function te(){Q.removeEventListener("change",pe)}function ee(){pe(),te(),Q.addEventListener("change",pe)}return xn(()=>{Qe(()=>{var M,L;ee(),_.greyVal&&((M=document.querySelector("html"))==null||M.classList.add("html-grey")),_.weakVal&&((L=document.querySelector("html"))==null||L.classList.add("html-weakness")),_.tabsVal&&V(),_.hideFooter&&F()})}),Wn(()=>te),(M,L)=>{const ge=H("IconifyIconOffline"),Ce=H("el-icon"),Ke=H("el-input-number"),Ae=H("el-switch"),Ue=et("tippy"),It=et("ripple");return u(),B(Ul,null,{default:C(()=>[v("div",Ql,[v("p",{class:se($e.value)},U(e(n)("panel.pureOverallStyle")),3),c(e(Ht),{resize:"",class:"select-none",modelValue:e(d)==="system"?2:e(s)?1:0,options:i.value,onChange:L[0]||(L[0]=oe=>{oe.index===1&&oe.index!==2?s.value=!0:s.value=!1,d.value=oe.option.theme,e(b)(oe.option.theme),oe.index===2&&ee()})},null,8,["modelValue","options"]),v("p",{class:se(["mt-5",$e.value])},U(e(n)("panel.pureThemeColor")),3),v("ul",es,[(u(!0),S(be,null,Me(e(f),(oe,mt)=>he((u(),S("li",{key:mt,style:fe(j.value(oe.color)),onClick:k=>e(x)(oe.themeColor)},[c(Ce,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Oe.value(oe.themeColor)},{default:C(()=>[c(ge,{icon:e(lt)},null,8,["icon"])]),_:2},1032,["color"])],12,ts)),[[Te,R.value(oe.themeColor)]])),128))]),v("p",{class:se(["mt-5",$e.value])},U(e(n)("panel.pureLayoutModel")),3),v("ul",ns,[he((u(),S("li",{ref_key:"verticalRef",ref:p,class:se(e(m).layout==="vertical"?"is-select":""),onClick:L[1]||(L[1]=oe=>I("vertical"))},ls,2)),[[Ue,{content:e(n)("panel.pureVerticalTip"),zIndex:41e3}]]),e(o)!=="mobile"?he((u(),S("li",{key:0,ref_key:"horizontalRef",ref:h,class:se(e(m).layout==="horizontal"?"is-select":""),onClick:L[2]||(L[2]=oe=>I("horizontal"))},is,2)),[[Ue,{content:e(n)("panel.pureHorizontalTip"),zIndex:41e3}]]):X("",!0),e(o)!=="mobile"?he((u(),S("li",{key:1,ref_key:"mixRef",ref:r,class:se(e(m).layout==="mix"?"is-select":""),onClick:L[3]||(L[3]=oe=>I("mix"))},ds,2)),[[Ue,{content:e(n)("panel.pureMixTip"),zIndex:41e3}]]):X("",!0)]),e(Ge)().getViewportWidth>1280?(u(),S("span",hs,[v("p",{class:se(["mt-5",$e.value])},U(e(n)("panel.pureStretch")),3),c(e(Ht),{resize:"",class:"mb-2 select-none",modelValue:e(At)(_.stretch)?1:0,options:J.value,onChange:xe},null,8,["modelValue","options"]),e(At)(_.stretch)?(u(),B(Ke,{key:0,modelValue:_.stretch,"onUpdate:modelValue":L[4]||(L[4]=oe=>_.stretch=oe),min:1280,max:1600,"controls-position":"right",onChange:L[5]||(L[5]=oe=>le(oe))},null,8,["modelValue"])):he((u(),S("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]",onClick:L[6]||(L[6]=oe=>le(!_.stretch))},[v("div",{class:se(["flex-bc transition-all duration-300",[_.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[c(ge,{icon:_.stretch?e(Ot):e(Et),height:"20"},null,8,["icon"]),fs,c(ge,{icon:_.stretch?e(Et):e(Ot),height:"20"},null,8,["icon"])],2)])),[[It,{class:"text-gray-300"}]])])):X("",!0),v("p",{class:se(["mt-4",$e.value])},U(e(n)("panel.pureTagsStyle")),3),c(e(Ht),{resize:"",class:"select-none",modelValue:T.value==="smart"?0:T.value==="card"?1:2,options:g.value,onChange:ie},null,8,["modelValue","options"]),v("p",ps,U(e(n)("panel.pureInterfaceDisplay")),1),v("ul",ms,[v("li",null,[v("span",vs,U(e(n)("panel.pureGreyModel")),1),c(Ae,{modelValue:_.greyVal,"onUpdate:modelValue":L[7]||(L[7]=oe=>_.greyVal=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:ne},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",gs,U(e(n)("panel.pureWeakModel")),1),c(Ae,{modelValue:_.weakVal,"onUpdate:modelValue":L[8]||(L[8]=oe=>_.weakVal=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:q},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",ys,U(e(n)("panel.pureHiddenTags")),1),c(Ae,{modelValue:_.tabsVal,"onUpdate:modelValue":L[9]||(L[9]=oe=>_.tabsVal=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:V},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",_s,U(e(n)("panel.pureHiddenFooter")),1),c(Ae,{modelValue:_.hideFooter,"onUpdate:modelValue":L[10]||(L[10]=oe=>_.hideFooter=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:F},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[bs,c(Ae,{modelValue:z.value,"onUpdate:modelValue":L[11]||(L[11]=oe=>z.value=oe),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:ue},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",ws,U(e(n)("panel.pureMultiTagsCache")),1),c(Ae,{modelValue:_.multiTagsCache,"onUpdate:modelValue":L[12]||(L[12]=oe=>_.multiTagsCache=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),Cs=_e(xs,[["__scopeId","data-v-a63f193b"]]),ks=["src"],Ss={class:"sidebar-title"},$s=["src"],Is={class:"sidebar-title"},Ts=re({__name:"SidebarLogo",props:{collapse:Boolean},setup(t){const{title:n,getLogo:o}=Ee();return(a,l)=>{const r=H("router-link");return u(),S("div",{class:se(["sidebar-logo-container",{collapses:t.collapse}])},[c(jt,{name:"sidebarLogoFade"},{default:C(()=>{var p,h,s,d;return[t.collapse?(u(),B(r,{key:"collapse",title:e(n),class:"sidebar-logo-link",to:(h=(p=e(yt)())==null?void 0:p.path)!=null?h:"/"},{default:C(()=>[v("img",{src:e(o)(),alt:"logo"},null,8,ks),v("span",Ss,U(e(n)),1)]),_:1},8,["title","to"])):(u(),B(r,{key:"expand",title:e(n),class:"sidebar-logo-link",to:(d=(s=e(yt)())==null?void 0:s.path)!=null?d:"/"},{default:C(()=>[v("img",{src:e(o)(),alt:"logo"},null,8,$s),v("span",Is,U(e(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Ms=_e(Ts,[["__scopeId","data-v-3c9cd1d3"]]);var ft={exports:{}},In={},Ls=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},Pt={exports:{}};typeof Object.create=="function"?Pt.exports=function(n,o){n.super_=o,n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:Pt.exports=function(n,o){n.super_=o;var a=function(){};a.prototype=o.prototype,n.prototype=new a,n.prototype.constructor=n};var Vs=Pt.exports;(function(t){var n={},o=/%[sdj%]/g;t.format=function(i){if(!D(i)){for(var g=[],I=0;I=pe)return w;switch(w){case"%s":return String(Q[I++]);case"%d":return Number(Q[I++]);case"%j":try{return JSON.stringify(Q[I++])}catch($){return"[Circular]"}default:return w}}),ee=Q[I];I=3&&(I.depth=arguments[2]),arguments.length>=4&&(I.colors=arguments[3]),z(g)?I.showHidden=g:g&&t._extend(I,g),q(I.showHidden)&&(I.showHidden=!1),q(I.depth)&&(I.depth=2),q(I.colors)&&(I.colors=!1),q(I.customInspect)&&(I.customInspect=!0),I.colors&&(I.stylize=p),d(I,i,I.depth)}t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(i,g){var I=r.styles[g];return I?"\x1B["+r.colors[I][0]+"m"+i+"\x1B["+r.colors[I][1]+"m":i}function h(i,g){return i}function s(i){var g={};return i.forEach(function(I,Q){g[I]=!0}),g}function d(i,g,I){if(i.customInspect&&g&&ue(g.inspect)&&g.inspect!==t.inspect&&!(g.constructor&&g.constructor.prototype===g)){var Q=g.inspect(I,i);return D(Q)||(Q=d(i,Q,I)),Q}var pe=m(i,g);if(pe)return pe;var te=Object.keys(g),ee=s(te);if(i.showHidden&&(te=Object.getOwnPropertyNames(g)),ie(g)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return f(g);if(te.length===0){if(ue(g)){var w=g.name?": "+g.name:"";return i.stylize("[Function"+w+"]","special")}if(V(g))return i.stylize(RegExp.prototype.toString.call(g),"regexp");if(W(g))return i.stylize(Date.prototype.toString.call(g),"date");if(ie(g))return f(g)}var $="",A=!1,ce=["{","}"];if(T(g)&&(A=!0,ce=["[","]"]),ue(g)){var M=g.name?": "+g.name:"";$=" [Function"+M+"]"}if(V(g)&&($=" "+RegExp.prototype.toString.call(g)),W(g)&&($=" "+Date.prototype.toUTCString.call(g)),ie(g)&&($=" "+f(g)),te.length===0&&(!A||g.length==0))return ce[0]+$+ce[1];if(I<0)return V(g)?i.stylize(RegExp.prototype.toString.call(g),"regexp"):i.stylize("[Object]","special");i.seen.push(g);var L;return A?L=y(i,g,I,ee,te):L=te.map(function(ge){return b(i,g,I,ee,ge,A)}),i.seen.pop(),x(L,$,ce)}function m(i,g){if(q(g))return i.stylize("undefined","undefined");if(D(g)){var I="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(I,"string")}if(R(g))return i.stylize(""+g,"number");if(z(g))return i.stylize(""+g,"boolean");if(_(g))return i.stylize("null","null")}function f(i){return"["+Error.prototype.toString.call(i)+"]"}function y(i,g,I,Q,pe){for(var te=[],ee=0,w=g.length;ee-1&&(te?w=w.split(` `).map(function(A){return" "+A}).join(` `).substr(2):w=` `+w.split(` `).map(function(A){return" "+A}).join(` `))):w=i.stylize("[Circular]","special")),q(ee)){if(te&&pe.match(/^\d+$/))return w;ee=JSON.stringify(""+pe),ee.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.substr(1,ee.length-2),ee=i.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=i.stylize(ee,"string"))}return ee+": "+w}function x(i,g,I){var Q=i.reduce(function(pe,te){return te.indexOf(` `)>=0,pe+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Q>60?I[0]+(g===""?"":g+` `)+" "+i.join(`, `)+" "+I[1]:I[0]+g+" "+i.join(", ")+" "+I[1]}function T(i){return Array.isArray(i)}t.isArray=T;function z(i){return typeof i=="boolean"}t.isBoolean=z;function _(i){return i===null}t.isNull=_;function j(i){return i==null}t.isNullOrUndefined=j;function R(i){return typeof i=="number"}t.isNumber=R;function D(i){return typeof i=="string"}t.isString=D;function ne(i){return typeof i=="symbol"}t.isSymbol=ne;function q(i){return i===void 0}t.isUndefined=q;function V(i){return F(i)&&J(i)==="[object RegExp]"}t.isRegExp=V;function F(i){return typeof i=="object"&&i!==null}t.isObject=F;function W(i){return F(i)&&J(i)==="[object Date]"}t.isDate=W;function ie(i){return F(i)&&(J(i)==="[object Error]"||i instanceof Error)}t.isError=ie;function ue(i){return typeof i=="function"}t.isFunction=ue;function P(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i=="undefined"}t.isPrimitive=P,t.isBuffer=Ls;function J(i){return Object.prototype.toString.call(i)}function le(i){return i<10?"0"+i.toString(10):i.toString(10)}var xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oe(){var i=new Date,g=[le(i.getHours()),le(i.getMinutes()),le(i.getSeconds())].join(":");return[i.getDate(),xe[i.getMonth()],g].join(" ")}t.log=function(){console.log("%s - %s",Oe(),t.format.apply(t,arguments))},t.inherits=Vs,t._extend=function(i,g){if(!g||!F(g))return i;for(var I=Object.keys(g),Q=I.length;Q--;)i[I[Q]]=g[I[Q]];return i};function $e(i,g){return Object.prototype.hasOwnProperty.call(i,g)}})(In);var Hs={},zs=process.platform==="win32",Ne=In;function kt(t,n){for(var o=[],a=0;a=0&&!t[a];a--);return o===0&&a===n?t:o>a?[]:t.slice(o,a+1)}var Tn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,As=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ye={};function St(t){var n=Tn.exec(t),o=(n[1]||"")+(n[2]||""),a=n[3]||"",l=As.exec(a),r=l[1],p=l[2],h=l[3];return[o,r,p,h]}function an(t){var n=Tn.exec(t),o=n[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!n[2],tail:n[3]}}function Mn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ye.resolve=function(){for(var t="",n="",o=!1,a=arguments.length-1;a>=-1;a--){var l;if(a>=0?l=arguments[a]:t?(l=Hs["="+t],(!l||l.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(l=t+"\\")):l=process.cwd(),Ne.isString(l)){if(!l)continue}else throw new TypeError("Arguments to path.resolve must be strings");var r=an(l),p=r.device,h=r.isUnc,s=r.isAbsolute,d=r.tail;if(!(p&&t&&p.toLowerCase()!==t.toLowerCase())&&(t||(t=p),o||(n=d+"\\"+n,o=s),t&&o))break}return h&&(t=Mn(t)),n=kt(n.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+n||"."};ye.normalize=function(t){var n=an(t),o=n.device,a=n.isUnc,l=n.isAbsolute,r=n.tail,p=/[\\\/]$/.test(r);return r=kt(r.split(/[\\\/]+/),!l).join("\\"),!r&&!l&&(r="."),r&&p&&(r+="\\"),a&&(o=Mn(o)),o+(l?"\\":"")+r};ye.isAbsolute=function(t){return an(t).isAbsolute};ye.join=function(){for(var t=[],n=0;n=-1&&!n;o--){var a=o>=0?arguments[o]:process.cwd();if(Ne.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,n=a[0]==="/"}return t=kt(t.split("/"),!n).join("/"),(n?"/":"")+t||"."};we.normalize=function(t){var n=we.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=kt(t.split("/"),!n).join("/"),!t&&!n&&(t="."),t&&o&&(t+="/"),(n?"/":"")+t};we.isAbsolute=function(t){return t.charAt(0)==="/"};we.join=function(){for(var t="",n=0;nKn(n.to.name)),a=l=>o.value?{href:l.name,target:"_blank",rel:"noopener"}:{to:l};return(l,r)=>(u(),B(Re(o.value?"a":"router-link"),Xn(Jn(a(l.to))),{default:C(()=>[bt(l.$slots,"default")]),_:3},16))}}),Ps={width:1024,height:1024,body:''},Ds={width:1024,height:1024,body:''},Ns={width:1024,height:1024,body:''},Bs={width:1024,height:1024,body:''},Ln=re({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const n=Qn(),{layout:o,isCollapse:a,tooltipEffect:l,getDivStyle:r}=Ee(),p=t,h=Z(()=>({width:"100%",display:"flex",alignItems:"center"})),s=Z(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),d=Z(()=>{var b;return(b=nt())!=null&&b.MenuArrowIconNoTransition?{"expand-close-icon":Be(Ds),"expand-open-icon":Be(Ps),"collapse-close-icon":Be(Bs),"collapse-open-icon":Be(Ns)}:""}),m=N(null);function f(b=[],x){var z,_;const T=b.filter(j=>(m.value=j,!0));return(_=(z=T[0])==null?void 0:z.meta)!=null&&_.showParent?!1:T.length===1?!0:T.length===0?(m.value=Mt(Tt({},x),{path:"",noShowingChildren:!0}),!0):!1}function y(b){const x=/^http(s?):\/\//;return x.test(b)||x.test(p.basePath)?b||p.basePath:Zs.posix.resolve(p.basePath,b)}return(b,x)=>{const T=H("el-text"),z=H("el-menu-item"),_=H("sidebar-item",!0),j=H("el-sub-menu");return f(t.item.children,t.item)&&(!m.value.children||m.value.noShowingChildren)?(u(),B(Rs,{key:0,to:t.item},{default:C(()=>[c(z,un({index:y(m.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:h.value},e(n)),{title:C(()=>[v("div",{style:fe(e(r))},[c(e(dn),{tippyProps:{offset:[0,-10],theme:e(l)},class:"!w-full !text-inherit"},{default:C(()=>[me(U(e(Pe)(m.value.meta.title)),1)]),_:1},8,["tippyProps"]),c(Rt,{extraIcon:m.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:C(()=>{var R,D,ne,q,V;return[Ve(t.item.meta.icon)?(u(),S("div",{key:0,class:"sub-menu-icon",style:fe(s.value)},[(u(),B(Re(e(Be)(Ve(m.value.meta.icon)||t.item.meta&&Ve(t.item.meta.icon)))))],4)):X("",!0),!((R=t.item)!=null&&R.meta.icon)&&e(a)&&e(o)==="vertical"&&((ne=(D=t.item)==null?void 0:D.pathList)==null?void 0:ne.length)===1||!m.value.meta.icon&&e(a)&&e(o)==="mix"&&((V=(q=t.item)==null?void 0:q.pathList)==null?void 0:V.length)===2?(u(),B(T,{key:1,truncated:"",class:"!w-full !pl-4 !text-inherit"},{default:C(()=>[me(U(e(Pe)(m.value.meta.title)),1)]),_:1})):X("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(u(),B(j,un({key:1,ref:"subMenu",teleported:"",index:y(t.item.path)},d.value),{title:C(()=>{var R,D;return[Ve(t.item.meta.icon)?(u(),S("div",{key:0,style:fe(s.value),class:"sub-menu-icon"},[(u(),B(Re(e(Be)(t.item.meta&&Ve(t.item.meta.icon)))))],4)):X("",!0),(e(o)==="mix"&&Ve(t.item.meta.icon)?!e(a)||((D=(R=t.item)==null?void 0:R.pathList)==null?void 0:D.length)!==2:!(e(o)==="vertical"&&e(a)&&Ve(t.item.meta.icon)&&t.item.parentId===null))?(u(),B(e(dn),{key:1,tippyProps:{offset:[0,-10],theme:e(l)},class:se({"!w-full":!0,"!text-inherit":!0,"!pl-4":e(o)!=="horizontal"&&e(a)&&!Ve(t.item.meta.icon)&&t.item.parentId===null})},{default:C(()=>[me(U(e(Pe)(t.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):X("",!0),e(a)?X("",!0):(u(),B(Rt,{key:2,extraIcon:t.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:C(()=>[(u(!0),S(be,null,Me(t.item.children,R=>(u(),B(_,{key:R.path,"is-nest":!0,item:R,"base-path":y(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),qs={class:"left-collapse"},Fs=re({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:n}){const{t:o}=je(),{tooltipEffect:a}=Ee(),l=Z(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:r}=pt(),p=Z(()=>{var d;return(d=r.layout)==null?void 0:d.themeColor}),h=n,s=()=>{h("toggleClick")};return(d,m)=>{const f=H("IconifyIconOffline"),y=et("tippy");return u(),S("div",qs,[he(c(f,{icon:e(so),class:se([l.value,p.value==="light"?"":"text-primary"]),style:fe({transform:d.isActive?"none":"rotateY(180deg)"}),onClick:s},null,8,["icon","class","style"]),[[y,{content:d.isActive?e(o)("buttons.pureClickCollapse"):e(o)("buttons.pureClickExpand"),theme:e(a),hideOnClick:"toggle",placement:"right"}]])])}}}),js=_e(Fs,[["__scopeId","data-v-b883211c"]]),Us={width:24,height:24,body:''},Ws=re({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:n}){const{t:o}=je(),{tooltipEffect:a}=Ee(),l=Z(()=>["w-[16px]","h-[16px]"]),{$storage:r}=pt(),p=Z(()=>{var d;return(d=r.layout)==null?void 0:d.themeColor}),h=n,s=()=>{h("toggleClick")};return(d,m)=>{const f=H("IconifyIconOffline"),y=et("tippy");return he((u(),S("div",{class:"center-collapse",onClick:s},[c(f,{icon:e(Us),class:se([l.value,p.value==="light"?"":"text-primary"]),style:fe({transform:d.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[y,{content:d.isActive?e(o)("buttons.pureClickCollapse"):e(o)("buttons.pureClickExpand"),theme:e(a),hideOnClick:"toggle",placement:"right"}]])}}}),Gs=_e(Ws,[["__scopeId","data-v-1c646820"]]),Ys=re({__name:"NavVertical",setup(t){var T,z;const n=Dt(),o=N(!1),a=N((z=(T=Fe().getItem(`${rt()}configure`))==null?void 0:T.showLogo)!=null?z:!0),{device:l,pureApp:r,isCollapse:p,tooltipEffect:h,menuSelect:s,toggleSideBar:d}=Ee(),m=N([]),f=Z(()=>r.layout==="mix"&&l.value!=="mobile"?m.value:ze().wholeMenus),y=Z(()=>r.layout==="mix"?!1:f.value.length===0),b=Z(()=>{var _;return at((_=n.meta)==null?void 0:_.activePath)?n.path:n.meta.activePath});function x(){let _="";_=b.value,m.value=[];const j=Gt(_,ze().wholeMenus),R=_t(j[0]||_,ze().wholeMenus);R!=null&&R.children&&(m.value=R==null?void 0:R.children)}return De(()=>[n.path,ze().wholeMenus],()=>{n.path.includes("/redirect")||(x(),s(n.path))}),Ye(()=>{x(),He.on("logoChange",_=>{a.value=_})}),Ft(()=>{He.off("logoChange")}),(_,j)=>{const R=H("el-menu"),D=H("el-scrollbar"),ne=et("loading");return he((u(),S("div",{class:se(["sidebar-container",a.value?"has-logo":"no-logo"]),onMouseenter:j[0]||(j[0]=Ze(q=>o.value=!0,["prevent"])),onMouseleave:j[1]||(j[1]=Ze(q=>o.value=!1,["prevent"]))},[a.value?(u(),B(Ms,{key:0,collapse:e(p)},null,8,["collapse"])):X("",!0),c(D,{"wrap-class":"scrollbar-wrapper",class:se([e(l)==="mobile"?"mobile":"pc"])},{default:C(()=>[c(R,{"unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:e(p),"collapse-transition":!1,"popper-effect":e(h),"default-active":b.value},{default:C(()=>[(u(!0),S(be,null,Me(f.value,q=>(u(),B(Ln,{key:q.path,item:q,"base-path":q.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(l)!=="mobile"&&(o.value||e(p))?(u(),B(Gs,{key:1,"is-active":e(r).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0),e(l)!=="mobile"?(u(),B(js,{key:2,"is-active":e(r).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0)],34)),[[ne,y.value]])}}}),Ks=_e(Ys,[["__scopeId","data-v-f94a3619"]]),Xs={class:"horizontal-header"},Js=["src"],Qs={class:"horizontal-header-right"},er={class:"check-zh"},tr={class:"check-en"},nr={class:"el-dropdown-link navbar-bg-hover"},or=["src"],ar={key:0,class:"dark:text-white"},lr=["title"],sr=re({__name:"NavHorizontal",setup(t){var D,ne;const n=N(),o=N((ne=(D=Fe().getItem(`${rt()}configure`))==null?void 0:D.showLogo)!=null?ne:!0),{t:a,route:l,locale:r,translationCh:p,translationEn:h}=Yt(n),{title:s,logout:d,onPanel:m,getLogo:f,username:y,userAvatar:b,backTopMenu:x,avatarsStyle:T,toAccountSettings:z,getDropdownItemStyle:_,getDropdownItemClass:j}=Ee(),R=Z(()=>{var q;return at((q=l.meta)==null?void 0:q.activePath)?l.path:l.meta.activePath});return Qe(()=>{var q;(q=n.value)==null||q.handleResize()}),Ye(()=>{He.on("logoChange",q=>{o.value=q})}),(q,V)=>{const F=H("el-menu"),W=H("IconifyIconOffline"),ie=H("el-dropdown-item"),ue=H("el-dropdown-menu"),P=H("el-dropdown"),J=et("loading");return he((u(),S("div",Xs,[o.value?(u(),S("div",{key:0,class:"horizontal-header-left",onClick:V[0]||(V[0]=(...le)=>e(x)&&e(x)(...le))},[v("img",{src:e(f)(),alt:"logo"},null,8,Js),v("span",null,U(e(s)),1)])):X("",!0),c(F,{ref_key:"menuRef",ref:n,mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":R.value},{default:C(()=>[(u(!0),S(be,null,Me(e(ze)().wholeMenus,le=>(u(),B(Ln,{key:le.path,item:le,"base-path":le.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Qs,[c(Qt,{id:"header-search"}),c(P,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ue,{class:"translation"},{default:C(()=>[c(ie,{style:fe(e(_)(e(r),"zh")),class:se(["dark:!text-white",e(j)(e(r),"zh")]),onClick:e(p)},{default:C(()=>[he(v("span",er,[c(W,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="zh"]]),me(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(ie,{style:fe(e(_)(e(r),"en")),class:se(["dark:!text-white",e(j)(e(r),"en")]),onClick:e(h)},{default:C(()=>[he(v("span",tr,[c(W,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="en"]]),me(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Kt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(tn,{id:"full-screen"}),c(en,{id:"header-notice"}),c(P,{trigger:"click"},{dropdown:C(()=>[c(ie,{onClick:e(z)},{default:C(()=>[c(W,{icon:e(nn),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),c(ue,{class:"logout"},{default:C(()=>[c(ie,{onClick:e(d)},{default:C(()=>[c(W,{icon:e(on),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",nr,[v("img",{src:e(b),style:fe(e(T))},null,12,or),e(y)?(u(),S("p",ar,U(e(y)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(a)("buttons.pureOpenSystemSet"),onClick:V[1]||(V[1]=(...le)=>e(m)&&e(m)(...le))},[c(W,{icon:e(Ct)},null,8,["icon"])],8,lr)])])),[[J,e(ze)().wholeMenus.length===0]])}}}),rr=_e(sr,[["__scopeId","data-v-3bf860c7"]]),ir={key:0},cr=re({__name:"index",setup(t){const{t:n}=je(),o=N(),{isDark:a}=wn(),{layout:l}=ho(),r=bn(),p=Jt(),{$storage:h}=pt(),s=qt({sidebar:Z(()=>Ge().sidebar),device:Z(()=>Ge().device),fixedHeader:Z(()=>p.fixedHeader),classes:Z(()=>({hideSidebar:!s.sidebar.opened,openSidebar:s.sidebar.opened,withoutAnimation:s.sidebar.withoutAnimation,mobile:s.device==="mobile"})),hideTabs:Z(()=>h==null?void 0:h.configure.hideTabs)});function d(b){var x,T,z,_,j,R;window.document.body.setAttribute("layout",b),h.layout={layout:`${b}`,theme:(x=h.layout)==null?void 0:x.theme,darkMode:(T=h.layout)==null?void 0:T.darkMode,sidebarStatus:(z=h.layout)==null?void 0:z.sidebarStatus,epThemeColor:(_=h.layout)==null?void 0:_.epThemeColor,themeColor:(j=h.layout)==null?void 0:j.themeColor,overallStyle:(R=h.layout)==null?void 0:R.overallStyle}}function m(b,x){Ge().toggleDevice(b),Ge().toggleSideBar(x,"resize")}let f=!0;xt(o,b=>{if(r)return;const x=b[0],[{inlineSize:T,blockSize:z}]=x.borderBoxSize;Ge().setViewportSize({width:T,height:z}),T<=760?d("vertical"):d(Ge().layout),T>0&&T<=760?(m("mobile",!1),f=!0):T>760&&T<=990?f&&(m("desktop",!1),f=!1):T>990&&!s.sidebar.isClickCollapse?(m("desktop",!0),f=!0):(m("desktop",!1),f=!1)}),Ye(()=>{r&&m("mobile",!1)}),xn(()=>{var b;Xt().dataThemeChange((b=h.layout)==null?void 0:b.overallStyle)});const y=re({name:"LayHeader",render(){return dt("div",{class:{"fixed-header":s.fixedHeader},style:[s.hideTabs&&l.value.includes("horizontal")?a.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!p.hiddenSideBar&&(l.value.includes("vertical")||l.value.includes("mix"))?dt(Ll):null,!p.hiddenSideBar&&l.value.includes("horizontal")?dt(rr):null,dt(fa)]})}});return(b,x)=>{const T=H("el-backtop"),z=H("el-scrollbar");return u(),S("div",{ref_key:"appWrapperRef",ref:o,class:se(["app-wrapper",s.classes])},[he(v("div",{class:"app-mask",onClick:x[0]||(x[0]=_=>e(Ge)().toggleSideBar())},null,512),[[Te,s.device==="mobile"&&s.sidebar.opened&&e(l).includes("vertical")]]),he(c(Ks,null,null,512),[[Te,!e(p).hiddenSideBar&&(e(l).includes("vertical")||e(l).includes("mix"))]]),v("div",{class:se(["main-container",e(p).hiddenSideBar?"main-hidden":""])},[s.fixedHeader?(u(),S("div",ir,[c(e(y)),c(vn,{"fixed-header":s.fixedHeader},null,8,["fixed-header"])])):(u(),B(z,{key:1},{default:C(()=>[c(T,{title:e(n)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:C(()=>[c(e(Cn))]),_:1},8,["title"]),c(e(y)),c(vn,{"fixed-header":s.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),c(Cs)],2)}}}),Hr=_e(cr,[["__scopeId","data-v-29796f23"]]);export{Hr as default};