var yn=Object.defineProperty,_n=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var Kt=Object.getOwnPropertySymbols;var xn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable;var Yt=(u,a,i)=>a in u?yn(u,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[a]=i,_t=(u,a)=>{for(var i in a||(a={}))xn.call(a,i)&&Yt(u,i,a[i]);if(Kt)for(var i of Kt(a))wn.call(a,i)&&Yt(u,i,a[i]);return u},bt=(u,a)=>_n(u,bn(a));var lt=(u,a,i)=>new Promise((p,s)=>{var t=o=>{try{r(i.next(o))}catch(d){s(d)}},n=o=>{try{r(i.throw(o))}catch(d){s(d)}},r=o=>o.done?p(o.value):Promise.resolve(o.value).then(t,n);r((i=i.apply(u,a)).next())});import{fY as Q,av as Cn,aw as kn,az as je,a as Z,ax as Oe,ay as nt,p as z,r as Lt,fZ as me,f_ as ln,m as Fe,aa as Me,ac as Ht,ae as At,Z as zt,f$ as Ze,g0 as Xt,u as e,g1 as dt,b0 as We,g2 as Ge,_ as ue,f,k as C,aN as Sn,d as ee,g3 as ht,g4 as In,a7 as Ce,g5 as sn,n as Ve,aO as vt,aP as rn,z as Zt,e as I,B as oe,a0 as ge,g as v,i as h,s as ae,F as de,l as ye,v as J,q as $e,t as q,j as Y,w as x,h as re,ej as Ot,b as E,y as Ke,aZ as Qe,g6 as xt,g7 as $n,bo as xe,U as Te,R as Re,aV as Tn,M as St,bi as Mn,ad as Vn,g8 as wt,aH as Ln,X as cn,A as Ye,g9 as Rt,ga as ft,K as Hn,Q as pt,gb as it,aW as It,gc as jt,L as rt,at as un,W as tt,Y as dn,o as An,gd as zn,as as Zn,bn as On,dU as Rn,a3 as Gt}from"./index-BHcVNAp5.js";import{d as En,a as mt}from"./close-CObHKOmY.js";import{d as Dn}from"./home-filled-NADQtN-e.js";import{d as Pn}from"./git-branch-line-BhusJOme.js";import{d as qn}from"./admin-line-CpqWPwjZ.js";import{d as gt,a as Bn,b as $t,_ as Fn,c as Nn}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-CfY_33hq.js";import{d as Wn,u as Se,a as Et,g as Dt,b as Un,c as Kn}from"./dark-CcoTnz1H.js";import{u as Pt,a as Yn}from"./useDataThemeChange-mikLN3c3.js";import{u as Be}from"./app-31WjLlM9.js";import{e as we}from"./mitt-E5P-NQ8u.js";import{d as Xn}from"./refresh-right-Du3ZsAuC.js";import{d as Tt}from"./arrow-right-s-line-CxPb13eK.js";import{m as jn}from"./index-wh3GpahJ.js";import{u as Mt}from"./epTheme-DSJIt9jU.js";import{u as ze}from"./hooks-BBF-HgBv.js";import{S as Gn}from"./sortable.esm-VSgMS8pS.js";import{d as Je}from"./check-CIQVCvCT.js";import{B as hn}from"./back_top-WtjtNffz.js";import{R as Ct}from"./index-B6APw3Yo.js";import{R as Qt}from"./index-DRWoK4Gt.js";import"./user-DNtD0Fqa.js";const Qn={width:1024,height:1024,body:''},Jn={width:1024,height:1024,body:''},eo={width:1024,height:1024,body:''},to={width:1024,height:1024,body:''},no={width:1024,height:1024,body:''},oo={width:1024,height:1024,body:''},ao={width:24,height:24,body:''},lo={width:24,height:24,body:''},so={width:24,height:24,body:''},ro={width:24,height:24,body:''},io={width:24,height:24,body:''},co={width:24,height:24,body:''},uo={width:24,height:24,body:''},fn={width:24,height:24,body:''},ho={width:24,height:24,body:''},fo={width:24,height:24,body:''},po={width:24,height:24,body:''},mo={width:24,height:24,body:''},vo={width:24,height:24,body:''},go={width:24,height:24,body:''},yo={width:24,height:24,body:''},_o={width:24,height:24,body:''},bo={width:24,height:24,body:''},xo={width:24,height:24,body:''},wo={width:24,height:24,body:''};Q("ep:menu",En);Q("ep:edit",Qn);Q("ep:set-up",Jn);Q("ep:guide",eo);Q("ep:monitor",to);Q("ep:lollipop",no);Q("ep:histogram",oo);Q("ep:home-filled",Dn);Q("ri:bookmark-2-line",ao);Q("ri:file-ppt-2-line",lo);Q("ri:bank-card-line",so);Q("ri:admin-fill",ro);Q("ri:file-info-line",io);Q("ri:git-branch-line",Pn);Q("ri:links-fill",uo);Q("ri:table-line",co);Q("ri:search-line",fn);Q("ri:admin-line",qn);Q("ri:settings-3-line",gt);Q("ri:mind-map",ho);Q("ri:bar-chart-horizontal-line",fo);Q("ri:window-line",Bn);Q("ri:file-search-line",mo);Q("ri:artboard-line",po);Q("ri:list-check",vo);Q("ri:ubuntu-fill",go);Q("ri:user-voice-line",yo);Q("ri:edit-box-line",_o);Q("ri:history-fill",bo);Q("ri:information-line",Wn);Q("ri:terminal-window-line",xo);Q("ri:checkbox-circle-line",wo);const Co=kn("pure-setting",{state:()=>({title:je().Title,fixedHeader:je().FixedHeader,hiddenSideBar:je().HiddenSideBar}),getters:{getTitle(u){return u.title},getFixedHeader(u){return u.fixedHeader},getHiddenSideBar(u){return u.hiddenSideBar}},actions:{CHANGE_SETTING({key:u,value:a}){Reflect.has(this,u)&&(this[u]=a)},changeSetting(u){this.CHANGE_SETTING(u)}}});function qt(){return Co(Cn)}const ko={width:24,height:24,body:''},So={width:24,height:24,body:''},Io={width:24,height:24,body:''},$o={width:24,height:24,body:''};function pn(){var le,ie;const u=Ht(),a=At(),i=zt(),p=qt(),s=Z(0),t=Z(0),n=Z(0),r=Z(!1),o=Z(-1),d=Z({}),l=Z(!1),c=Z(((le=Oe().getItem(`${nt()}configure`))==null?void 0:le.showModel)||"smart"),m=(ie=Z(Oe().getItem(`${nt()}configure`).hideTabs))!=null?ie:Z("false"),y=z(()=>Ze().multiTags),g=Lt([{icon:Xn,text:me("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:mt,text:me("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:$o,text:me("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:Io,text:me("buttons.pureCloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:So,text:me("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:ko,text:me("buttons.pureCloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ln,text:me("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function _(O,j,te){var _e,Ee;return Xt((_e=u==null?void 0:u.meta)==null?void 0:_e.showLink)&&((Ee=u==null?void 0:u.meta)==null?void 0:Ee.showLink)===!1?Object.keys(u.query).length>0?Ge(u.query,O.query)?j:te:Ge(u.params,O.params)?j:te:u.path===O.path?j:te}const V=z(()=>O=>{var j,te;return Xt((j=O==null?void 0:O.meta)==null?void 0:j.fixedTag)&&((te=O==null?void 0:O.meta)==null?void 0:te.fixedTag)===!0}),b=z(()=>(O,j)=>{if(j!==0)return _(O,!0,!1)}),L=z(()=>O=>_(O,"is-active","")),R=z(()=>O=>_(O,"schedule-active","")),D=z(()=>({transform:`translateX(${n.value}px)`,transition:l.value?"none":"transform 0.5s ease-in-out"})),X=z(()=>({left:t.value+"px",top:s.value+"px"})),N=()=>{r.value=!1};function $(O){if(O&&(o.value=O),e(c)==="smart"){if(dt(i.refs["schedule"+O][0],"schedule-active"))return;We(!0,"schedule-in",i.refs["schedule"+O][0]),We(!1,"schedule-out",i.refs["schedule"+O][0])}else{if(dt(i.refs["dynamic"+O][0],"is-active"))return;We(!0,"card-in",i.refs["dynamic"+O][0]),We(!1,"card-out",i.refs["dynamic"+O][0])}}function B(O){if(o.value=-1,e(c)==="smart"){if(dt(i.refs["schedule"+O][0],"schedule-active"))return;We(!1,"schedule-in",i.refs["schedule"+O][0]),We(!0,"schedule-out",i.refs["schedule"+O][0])}else{if(dt(i.refs["dynamic"+O][0],"is-active"))return;We(!1,"card-in",i.refs["dynamic"+O][0]),We(!0,"card-out",i.refs["dynamic"+O][0])}}function W(){p.hiddenSideBar?p.changeSetting({key:"hiddenSideBar",value:!1}):p.changeSetting({key:"hiddenSideBar",value:!0})}return Fe(()=>{if(!c.value){const O=Oe().getItem(`${nt()}configure`);O.showModel="card",Oe().setItem(`${nt()}configure`,O)}}),{Close:mt,route:u,router:a,visible:r,showTags:m,instance:i,multiTags:y,showModel:c,tagsViews:g,buttonTop:s,buttonLeft:t,translateX:n,isFixedTag:V,pureSetting:p,activeIndex:o,getTabStyle:D,isScrolling:l,iconIsActive:b,linkIsActive:L,currentSelect:d,scheduleIsActive:R,getContextMenuStyle:X,$t:me,closeMenu:N,onMounted:Fe,onMouseenter:$,onMouseleave:B,transformI18n:Me,onContentFullScreen:W}}const To={},Mo={class:"w-full h-full"};function Vo(u,a){return f(),C("svg",Mo,a[0]||(a[0]=[Sn('',3)]))}const Lo=ue(To,[["render",Vo]]),Ho={width:24,height:24,body:''},Ao={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"},zo={class:"arrow-left"},Zo=["onContextmenu","onMouseenter","onMouseleave","onClick"],Oo={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},Ro=["onClick"],Eo={key:1,class:"chrome-tab"},Do={class:"chrome-tab__bg"},Po={class:"tag-title"},qo=["onClick"],Bo={class:"arrow-right"},Fo=["onClick"],No={class:"arrow-down"},Wo=ee({__name:"index",setup(u){var ct;const{Close:a,route:i,router:p,visible:s,showTags:t,instance:n,multiTags:r,tagsViews:o,buttonTop:d,buttonLeft:l,showModel:c,translateX:m,isFixedTag:y,pureSetting:g,activeIndex:_,getTabStyle:V,isScrolling:b,iconIsActive:L,linkIsActive:R,currentSelect:D,scheduleIsActive:X,getContextMenuStyle:N,closeMenu:$,onMounted:B,onMouseenter:W,onMouseleave:le,transformI18n:ie,onContentFullScreen:O}=pn(),j=Z(),te=Z(),_e=Z(),Ee=Z(),Ie=Z(!1),De=(ct=ht())==null?void 0:ct.path,{VITE_HIDE_HOME:ot}=Ao,Le=[...In,...Ce().flatteningRoutes.filter(w=>{var M;return(M=w==null?void 0:w.meta)==null?void 0:M.fixedTag})],He=()=>lt(this,null,function*(){yield Ke();const w=r.value.findIndex(M=>Qe(i.query)?Qe(i.params)?i.path===M.path:Ge(i.params,M.params):Ge(i.query,M.query));Xe(w)}),Xe=w=>lt(this,null,function*(){var ne,pe;yield Ke();const M=10;if(!n.refs["dynamic"+w])return;const A=n.refs["dynamic"+w][0],K=A==null?void 0:A.offsetLeft,ce=A==null?void 0:A.offsetWidth,F=_e.value?(ne=_e.value)==null?void 0:ne.offsetWidth:0,U=j.value?(pe=j.value)==null?void 0:pe.offsetWidth:0;F<=U?Ie.value=!0:Ie.value=!1,U-m.value&&K+ce<-m.value+F?m.value=Math.min(0,F-ce-K-M):m.value=-(K-(F-M-ce))}),Ae=w=>{var K;const M=_e.value?(K=_e.value)==null?void 0:K.offsetWidth:0,A=j.value?j.value.offsetWidth:0;w>0?m.value=Math.min(0,m.value+w):M=-(A-M)&&(m.value=Math.max(m.value+w,M-A)):m.value=0,b.value=!1},et=w=>{b.value=!0;const M=Math.abs(w.deltaX)+Math.abs(w.deltaY);let A=0;w.deltaX<0?A=M>0?M:100:A=M>0?-M:-100,T(A)},T=w=>{let A=Math.abs(w);const K=()=>{const ce=Math.sign(w)*Math.min(20,A);Ae(ce),A-=Math.abs(ce),A>0&&requestAnimationFrame(K)};requestAnimationFrame(K)};function H(w){const M=r.value.some(K=>K.path===w);function A(K,ce){M||K.forEach(F=>{F.path===ce?Ze().handleTags("push",{path:ce,meta:F.meta,name:F.name}):F.children&&F.children.length>0&&A(F.children,ce)})}A(p.options.routes,w)}function P(){const{fullPath:w,query:M}=e(i);p.replace({path:"/redirect"+w,query:M}),xt(i,"refresh")}function se(w,M,A){var U,ne,pe,at;const K=r.value.findIndex(be=>{if(be.query){if(be.path===w.path)return be.query===w.query}else if(be.params){if(be.path===w.path)return be.params===w.params}else return be.path===w.path}),ce=(be,ve,ut)=>{ut?Ze().handleTags("equal",[ot==="false"?Le:xe(ht()),w].flat()):Ze().handleTags("splice","",{startIndex:be,length:ve}),He()};A==="other"?ce(1,1,!0):A==="left"?ce(Le.length,K-1,!0):A==="right"?ce(K+1,r.value.length):ce(K,1);const F=Ze().handleTags("slice");if(M===i.path){if(A==="left")return;(U=F[0])!=null&&U.query?p.push({name:F[0].name,query:F[0].query}):(ne=F[0])!=null&&ne.params?p.push({name:F[0].name,params:F[0].params}):p.push({path:F[0].path})}else{if(!r.value.length||r.value.some(be=>be.path===i.path))return;(pe=F[0])!=null&&pe.query?p.push({name:F[0].name,query:F[0].query}):(at=F[0])!=null&&at.params?p.push({name:F[0].name,params:F[0].params}):p.push({path:F[0].path})}}function S(w,M){se(w,w.path,M),xt(i)}function k(w,M,A){if(M&&M.disabled)return;let K;switch(A?K={path:A.path,meta:A.meta,name:A.name,query:A==null?void 0:A.query,params:A==null?void 0:A.params}:K={path:i.path,meta:i.meta},w){case 0:P();break;case 1:S(K);break;case 2:S(K,"left");break;case 3:S(K,"right");break;case 4:S(K,"other");break;case 5:Ze().handleTags("splice","",{startIndex:Le.length,length:r.value.length}),p.push(De),xt(i);break;case 6:O(),setTimeout(()=>{g.hiddenSideBar?(o[6].icon=$n,o[6].text=me("buttons.pureContentExitFullScreen")):(o[6].icon=ln,o[6].text=me("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{Pe(i.fullPath,i.query)})}function he(w){const{key:M,item:A}=w;k(M,A)}function fe(w,M){$(),k(w,M,D.value)}function Ne(w){Array.of(1,2,3,4,5).forEach(M=>{o[M].show=w})}function ke(w,M=!1){Array.of(1,2,3,4,5).forEach(A=>{o[A].disabled=w}),M&&(o[2].show=!1,o[2].disabled=!0)}function Pe(w,M={},A=!1){var ne,pe,at,be;const K=r.value,ce=r.value.length;let F=-1;Qe(M)?F=K.findIndex(ve=>ve.path===w):F=K.findIndex(ve=>Ge(ve.query,M));function U(){var ve,ut;(ut=(ve=K[F])==null?void 0:ve.meta)!=null&&ut.fixedTag&&Array.of(1,2,3,4,5).forEach(gn=>{o[gn].disabled=!0})}Ne(!0),A&&(o[0].show=!0),F===1&&ce!==2?(o[2].show=!1,Array.of(1,3,4,5).forEach(ve=>{o[ve].disabled=!1}),o[2].disabled=!0,U()):F===1&&ce===2?(ke(!1),Array.of(2,3,4).forEach(ve=>{o[ve].show=!1,o[ve].disabled=!0}),U()):ce-1===F&&F!==0?(o[3].show=!1,Array.of(1,2,4,5).forEach(ve=>{o[ve].disabled=!1}),o[3].disabled=!0,(pe=(ne=K[F-1])==null?void 0:ne.meta)!=null&&pe.fixedTag&&(o[2].show=!1,o[2].disabled=!0),U()):F===0||w===`/redirect${De}`?ke(!0):(ke(!1,(be=(at=K[F-1])==null?void 0:at.meta)==null?void 0:be.fixedTag),U())}function yt(w,M){var ne;$(),w.path===De||(ne=w==null?void 0:w.meta)!=null&&ne.fixedTag?(Ne(!1),o[0].show=!0):i.path!==w.path&&i.name!==w.name?(o[0].show=!1,Pe(w.path,w.query)):r.value.length===2&&i.path!==w.path?(Ne(!0),o[4].show=!1):i.path===w.path&&Pe(w.path,w.query,!0),D.value=w;const A=140,K=e(te).getBoundingClientRect().left,F=e(te).offsetWidth-A,U=M.clientX-K+5;U>F?l.value=F:l.value=U,qt().hiddenSideBar?d.value=M.clientY:d.value=M.clientY-40,Ke(()=>{s.value=!0})}function G(w){const{name:M,path:A}=w;M?w.query?p.push({name:M,query:w.query}):w.params?p.push({name:M,params:w.params}):p.push({name:M}):p.push({path:A})}return sn(Ee,$,{detectIframe:!0}),Ve(i,()=>{_.value=-1,He()}),B(()=>{n&&(Pe(i.fullPath),we.on("tagViewsChange",w=>{e(t)!==w&&(t.value=w)}),we.on("tagViewsShowModel",w=>{c.value=w}),we.on("changLayoutRoute",w=>{H(w),setTimeout(()=>{Pe(w)})}),vt(_e,He),rn().then(()=>He()))}),Zt(()=>{we.off("tagViewsChange"),we.off("tagViewsShowModel"),we.off("changLayoutRoute")}),(w,M)=>{const A=I("IconifyIconOffline"),K=I("el-dropdown-item"),ce=I("el-dropdown-menu"),F=I("el-dropdown");return e(t)?Y("",!0):(f(),C("div",{key:0,ref_key:"containerDom",ref:te,class:"tags-view"},[oe(v("span",zo,[h(A,{icon:e($t),onClick:M[0]||(M[0]=U=>Ae(200))},null,8,["icon"])],512),[[ge,Ie.value]]),v("div",{ref_key:"scrollbarDom",ref:_e,class:J(["scroll-container",e(c)==="chrome"&&"chrome-scroll-container"]),onWheel:$e(et,["prevent"])},[v("div",{ref_key:"tabDom",ref:j,class:"tab select-none",style:ae(e(V))},[(f(!0),C(de,null,ye(e(r),(U,ne)=>(f(),C("div",{ref_for:!0,ref:"dynamic"+ne,key:ne,class:J(["scroll-item is-closable",e(R)(U),e(c)==="chrome"&&"chrome-item",e(y)(U)&&"fixed-tag"]),onContextmenu:$e(pe=>yt(U,pe),["prevent"]),onMouseenter:$e(pe=>e(W)(ne),["prevent"]),onMouseleave:$e(pe=>e(le)(ne),["prevent"]),onClick:pe=>G(U)},[e(c)!=="chrome"?(f(),C(de,{key:0},[v("span",Oo,q(e(ie)(U.meta.title)),1),!e(y)(U)&&(e(L)(U,ne)||ne===e(_)&&ne!==0)?(f(),C("span",{key:0,class:"el-icon-close",onClick:$e(pe=>S(U),["stop"])},[h(A,{icon:e(a)},null,8,["icon"])],8,Ro)):Y("",!0),e(c)!=="card"?(f(),C("span",{key:1,ref_for:!0,ref:"schedule"+ne,class:J([e(X)(U)])},null,2)):Y("",!0)],64)):(f(),C("div",Eo,[v("div",Do,[h(Lo)]),v("span",Po,q(e(ie)(U.meta.title)),1),!e(y)(U)&&ne!==0?(f(),C("span",{key:0,class:"chrome-close-btn",onClick:$e(pe=>S(U),["stop"])},[h(A,{icon:e(a)},null,8,["icon"])],8,qo)):Y("",!0),M[2]||(M[2]=v("span",{class:"chrome-tab-divider"},null,-1))]))],42,Zo))),128))],4)],34),oe(v("span",Bo,[h(A,{icon:e(Tt),onClick:M[1]||(M[1]=U=>Ae(-200))},null,8,["icon"])],512),[[ge,Ie.value]]),h(Ot,{name:"el-zoom-in-top"},{default:x(()=>[oe((f(),C("ul",{ref_key:"contextmenuRef",ref:Ee,key:Math.random(),style:ae(e(N)),class:"contextmenu"},[(f(!0),C(de,null,ye(e(o).slice(0,6),(U,ne)=>(f(),C("div",{key:ne,style:{display:"flex","align-items":"center"}},[U.show?(f(),C("li",{key:0,onClick:pe=>fe(ne,U)},[h(A,{icon:U.icon},null,8,["icon"]),re(" "+q(e(ie)(U.text)),1)],8,Fo)):Y("",!0)]))),128))],4)),[[ge,e(s)]])]),_:1}),h(F,{trigger:"click",placement:"bottom-end",onCommand:he},{dropdown:x(()=>[h(ce,null,{default:x(()=>[(f(!0),C(de,null,ye(e(o),(U,ne)=>(f(),E(K,{key:ne,command:{key:ne,item:U},divided:U.divided,disabled:U.disabled},{default:x(()=>[h(A,{icon:U.icon},null,8,["icon"]),re(" "+q(e(ie)(U.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[v("span",No,[h(A,{icon:e(Ho),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),Uo=ue(Wo,[["__scopeId","data-v-890d6ae6"]]);function Ko(u=!1){const a=Z(u);function i(n){a.value=n}function p(){i(!0)}function s(){i(!1)}function t(){i(!a.value)}return{bool:a,setBool:i,setTrue:p,setFalse:s,toggle:t}}const Yo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"};function Xo(u,a){return f(),C("svg",Yo,a[0]||(a[0]=[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)]))}const mn={render:Xo},jo=["onMouseenter"],Go={class:"result-item-title"},Qo=ee({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(u,{expose:a,emit:i}){const p=Z(),s=Z(),t=i,n=zt(),r=u,o=z(()=>g=>({background:(g==null?void 0:g.path)===d.value?Mt().epThemeColor:"",color:g.path===d.value?"#fff":"",fontSize:g.path===d.value?"16px":"14px"})),d=z({get(){return r.value},set(g){t("update:value",g)}});function l(g){return lt(this,null,function*(){d.value=g.path})}function c(){t("enter")}function m(){s.value=window.innerHeight-window.innerHeight/10-140}vt(p,m);function y(g){var L;const _=(L=n==null?void 0:n.proxy)==null?void 0:L.$refs[`resultItemRef${g}`];if(!_)return 0;const b=_[0].offsetTop+128;return b>s.value?b-s.value:0}return Fe(()=>{m()}),a({handleScroll:y}),(g,_)=>(f(),C("div",{ref_key:"resultRef",ref:p,class:"result"},[(f(!0),C(de,null,ye(g.options,(V,b)=>{var L,R;return f(),C("div",{key:V.path,ref_for:!0,ref:"resultItemRef"+b,class:"result-item dark:bg-[#1d1d1d]",style:ae(o.value(V)),onClick:c,onMouseenter:D=>l(V)},[(f(),E(Te(e(ze)((L=V.meta)==null?void 0:L.icon)))),v("span",Go,q(e(Me)((R=V.meta)==null?void 0:R.title)),1),h(e(mn))],44,jo)}),128))],512))}}),Jo=ue(Qo,[["__scopeId","data-v-274aad60"]]),ea={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"};function ta(u,a){return f(),C("svg",ea,a[0]||(a[0]=[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)]))}const na={render:ta},oa={width:24,height:24,body:''},aa={width:24,height:24,body:''},la={class:"search-footer text-[#333] dark:text-white"},sa={class:"search-footer-item"},ra={class:"search-footer-item"},ia={class:"search-footer-item"},ca={key:0,class:"search-footer-total"},ua=ee({__name:"SearchFooter",props:{total:{default:0}},setup(u){const{t:a}=Re(),{device:i}=Se();return(p,s)=>{const t=I("IconifyIconOffline");return f(),C("div",la,[v("span",sa,[h(e(mn),{class:"icon"}),re(" "+q(e(a)("buttons.pureConfirm")),1)]),v("span",ra,[h(t,{icon:e(oa),class:"icon"},null,8,["icon"]),h(t,{icon:e(aa),class:"icon"},null,8,["icon"]),re(" "+q(e(a)("buttons.pureSwitch")),1)]),v("span",ia,[h(e(na),{class:"icon"}),re(" "+q(e(a)("buttons.pureClose")),1)]),e(i)!=="mobile"&&p.total>0?(f(),C("p",ca,q(`${e(a)("search.pureTotal")} ${p.total}`),1)):Y("",!0)])}}}),da=ue(ua,[["__scopeId","data-v-7ba3ef39"]]),ha={width:1024,height:1024,body:''},fa={class:"history-item-title"},pa=ee({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(u,{emit:a}){const i=a;function p(t){i("collectItem",t)}function s(t){i("deleteItem",t)}return(t,n)=>{var o,d;const r=I("IconifyIconOffline");return f(),C(de,null,[(f(),E(Te(e(ze)((o=t.item.meta)==null?void 0:o.icon)))),v("span",fa,q(e(Me)((d=t.item.meta)==null?void 0:d.title)),1),oe(h(r,{icon:e(ha),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:n[0]||(n[0]=$e(l=>p(t.item),["stop"]))},null,8,["icon"]),[[ge,t.item.type==="history"]]),h(r,{icon:e(mt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:n[1]||(n[1]=$e(l=>s(t.item),["stop"]))},null,8,["icon"])],64)}}}),Jt=ue(pa,[["__scopeId","data-v-ba0c91b5"]]),ma=["onMouseenter"],va={class:"collect-container"},ga=["onMouseenter"],ya=ee({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(u,{expose:a,emit:i}){const p=Z(),s=Z(),t=Z(!1),{t:n}=Re(),r=i,o=zt(),d=u,l=z(()=>$=>({background:($==null?void 0:$.path)===m.value?Mt().epThemeColor:"",color:$.path===m.value?"#fff":"",fontSize:$.path===m.value?"16px":"14px"})),c=z(()=>({color:Mt().epThemeColor,fontWeight:500})),m=z({get(){return d.value},set($){r("update:value",$)}});Ve(()=>d.value,$=>{$&&t.value&&rn(100).then(()=>t.value=!1)});const y=z(()=>d.options.filter($=>$.type==="history")),g=z(()=>d.options.filter($=>$.type==="collect"));function _($){r("collect",$)}function V($){t.value=!0,r("delete",$)}function b($){return lt(this,null,function*(){t.value||(m.value=$.path)})}function L(){r("enter")}function R(){s.value=window.innerHeight-window.innerHeight/10-140}vt(p,R);function D($){var ie;const B=(ie=o==null?void 0:o.proxy)==null?void 0:ie.$refs[`historyItemRef${$}`];if(!B)return 0;const le=(Tn(B)?B[0]:B).offsetTop+128;return le>s.value?le-s.value:0}const X=$=>{r("drag",{oldIndex:$.oldIndex,newIndex:$.newIndex})};let N=null;return Ve(g,$=>{$.length>1&&Ke(()=>{const B=document.querySelector(".collect-container");!B||N||(N=Gn.create(B,{animation:160,onStart:W=>{W.item.style.cursor="move"},onEnd:W=>{W.item.style.cursor="pointer"},onUpdate:X}),R())})},{deep:!0,immediate:!0}),a({handleScroll:D}),($,B)=>(f(),C("div",{ref_key:"historyRef",ref:p,class:"history"},[y.value.length?(f(),C(de,{key:0},[v("div",{style:ae(c.value)},q(e(n)("search.pureHistory")),5),(f(!0),C(de,null,ye(y.value,(W,le)=>(f(),C("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+le,class:"history-item dark:bg-[#1d1d1d]",style:ae(l.value(W)),onClick:L,onMouseenter:ie=>b(W)},[h(Jt,{item:W,onDeleteItem:V,onCollectItem:_},null,8,["item"])],44,ma))),128))],64)):Y("",!0),g.value.length?(f(),C(de,{key:1},[v("div",{style:ae(c.value)},q(`${e(n)("search.pureCollect")}${g.value.length>1?e(n)("search.pureDragSort"):""}`),5),v("div",va,[(f(!0),C(de,null,ye(g.value,(W,le)=>(f(),C("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+(le+y.value.length),class:"history-item dark:bg-[#1d1d1d]",style:ae(l.value(W)),onClick:L,onMouseenter:ie=>b(W)},[h(Jt,{item:W,onDeleteItem:V},null,8,["item"])],44,ga))),128))])],64)):Y("",!0)],512))}}),_a=ue(ya,[["__scopeId","data-v-f7a9d807"]]),ba={class:"search-content"},en="history",xa="collect",qe="menu-search-history",Ue="menu-search-collect",wa=ee({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(u,{emit:a}){const{device:i}=Se(),p=a,s=u,t=At(),{t:n,locale:r}=Re(),o=Z(""),d=Z(),l=Z(),c=Z(),m=Z(""),y=Z(""),g=St([]),_=St([]),V=Mn(ie,300),b=je().MenuSearchHistory,L=Z(null),R=z(()=>Vn(Ce().wholeMenus)),D=z({get(){return s.value},set(T){p("update:value",T)}});Ve(()=>s.value,T=>{T&&Ae()});const X=z(()=>o.value&&g.value.length>0),N=z(()=>!o.value&&_.value.length>0),$=z(()=>!o.value&&_.value.length===0||o.value&&g.value.length===0);function B(T){return Oe().getItem(T)||[]}function W(T,H){Oe().setItem(T,H)}function le(T){const H=[];function P(se){se.forEach(S=>{H.push(S),S.children&&P(S.children)})}return P(T),H}function ie(){var H;const T=le(R.value);g.value=T.filter(P=>{var se,S;return o.value?Me((se=P.meta)==null?void 0:se.title).toLocaleLowerCase().includes(o.value.toLocaleLowerCase().trim())||r.value==="zh"&&!Qe(jn(Me((S=P.meta)==null?void 0:S.title).toLocaleLowerCase(),o.value.toLocaleLowerCase().trim())):!1}),m.value=((H=g.value)==null?void 0:H.length)>0?g.value[0].path:""}function O(){D.value=!1,setTimeout(()=>{g.value=[],y.value="",o.value=""},200)}function j(T){const P=(g.value.length?d.value:l.value).handleScroll(T);c.value.setScrollTop(P)}function te(){const T=g.value.length>0,H=T?g.value:_.value,P=T?m.value:y.value;return{options:H,currentPath:P,isResultOptions:T}}function _e(T,H){H?m.value=g.value[T].path:y.value=_.value[T].path,j(T)}function Ee(){const{options:T,currentPath:H,isResultOptions:P}=te();if(T.length===0)return;const S=(T.findIndex(k=>k.path===H)-1+T.length)%T.length;_e(S,P)}function Ie(){const{options:T,currentPath:H,isResultOptions:P}=te();if(T.length===0)return;const S=(T.findIndex(k=>k.path===H)+1)%T.length;_e(S,P)}function De(){const{options:T,currentPath:H,isResultOptions:P}=te();if(T.length===0||H==="")return;const se=T.findIndex(S=>S.path===H);se!==-1&&(P?He():Xe(),t.push(T[se].path),O())}function ot(T){const H=T.type===en?qe:Ue;let P=B(H);P=P.filter(se=>se.path!==T.path),W(H,P),Ae()}function Le(T){let H=B(qe),P=B(Ue);H=H.filter(se=>se.path!==T.path),W(qe,H),P.some(se=>se.path===T.path)||(P.unshift(bt(_t({},T),{type:xa})),W(Ue,P)),Ae()}function He(){const{path:T,meta:H}=g.value.find(he=>he.path===m.value),P=B(qe),S=B(Ue).some(he=>he.path===T),k=P.findIndex(he=>he.path===T);S||(k!==-1&&P.splice(k,1),P.length>=b&&P.pop(),P.unshift({path:T,meta:H,type:en}),Oe().setItem(qe,P))}function Xe(){let T=B(qe);const H=T.findIndex(P=>P.path===y.value);if(H!==-1){const[P]=T.splice(H,1);T.unshift(P),W(qe,T)}}function Ae(){var P;const T=B(qe),H=B(Ue);_.value=[...T,...H],y.value=(P=_.value[0])==null?void 0:P.path}function et(T){const H=B(Ue),[P]=H.splice(T.oldIndex,1);H.splice(T.newIndex,0,P),Oe().setItem(Ue,H),_.value=[...B(qe),...B(Ue)],y.value=P.path}return wt("Enter",De),wt("ArrowUp",Ee),wt("ArrowDown",Ie),(T,H)=>{const P=I("IconifyIconOffline"),se=I("el-input"),S=I("el-empty"),k=I("el-scrollbar"),he=I("el-dialog");return f(),E(he,{modelValue:D.value,"onUpdate:modelValue":H[3]||(H[3]=fe=>D.value=fe),top:"5vh",class:"pure-search-dialog","show-close":!1,width:e(i)==="mobile"?"80vw":"40vw","before-close":O,style:{borderRadius:"6px"},"append-to-body":"",onOpened:H[4]||(H[4]=fe=>L.value.focus()),onClosed:H[5]||(H[5]=fe=>L.value.blur())},{footer:x(()=>[h(da,{total:g.value.length},null,8,["total"])]),default:x(()=>[h(se,{ref_key:"inputRef",ref:L,modelValue:o.value,"onUpdate:modelValue":H[0]||(H[0]=fe=>o.value=fe),size:"large",clearable:"",placeholder:e(n)("search.purePlaceholder"),onInput:e(V)},{prefix:x(()=>[h(P,{icon:e(fn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),v("div",ba,[h(k,{ref_key:"scrollbarRef",ref:c,"max-height":"calc(90vh - 140px)"},{default:x(()=>[$.value?(f(),E(S,{key:0,description:e(n)("search.pureEmpty")},null,8,["description"])):Y("",!0),N.value?(f(),E(_a,{key:1,ref_key:"historyRef",ref:l,value:y.value,"onUpdate:value":H[1]||(H[1]=fe=>y.value=fe),options:_.value,onClick:De,onDelete:ot,onCollect:Le,onDrag:et},null,8,["value","options"])):Y("",!0),X.value?(f(),E(Jo,{key:2,ref_key:"resultRef",ref:d,value:m.value,"onUpdate:value":H[2]||(H[2]=fe=>m.value=fe),options:g.value,onClick:De},null,8,["value","options"])):Y("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Ca=ue(wa,[["__scopeId","data-v-1155c5fc"]]),Bt=ee({__name:"index",setup(u){const{bool:a,toggle:i}=Ko();function p(){i()}return(s,t)=>{const n=I("IconifyIconOffline");return f(),C("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:p},[h(n,{icon:"ri:search-line"})]),h(Ca,{value:e(a),"onUpdate:value":t[0]||(t[0]=r=>Ln(a)?a.value=r:null)},null,8,["value"])])}}}),tn=[{key:"1",name:me("status.pureNotify"),list:[],emptyText:me("status.pureNoNotify")},{key:"2",name:me("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:me("status.pureNoMessage")},{key:"3",name:me("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:me("status.pureNoTodo")}],ka={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Sa={class:"notice-container-text"},Ia={class:"notice-text-title text-[#000000d9] dark:text-white"},$a={class:"notice-text-datetime text-[#00000073] dark:text-white"},Ta=ee({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(u){const a=Z(null),i=Z(!1),p=Z(null),s=Z(!1),{tooltipEffect:t}=Se(),n=cn();function r(){Ke(()=>{var d,l;((d=a.value)==null?void 0:d.scrollWidth)>((l=a.value)==null?void 0:l.clientWidth)?i.value=!0:i.value=!1})}function o(d,l){const c=document.createElement("span");c.innerText=l,c.className="getDescriptionWidth",document.querySelector("body").appendChild(c);const m=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const y=d.target.offsetWidth;m>2*y?s.value=!0:s.value=!1}return(d,l)=>{var g,_;const c=I("el-avatar"),m=I("el-tooltip"),y=I("el-tag");return f(),C("div",ka,[u.noticeItem.avatar?(f(),E(c,{key:0,size:30,src:u.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),v("div",Sa,[v("div",Ia,[h(m,{"popper-class":"notice-title-popper",effect:e(t),disabled:!i.value,content:u.noticeItem.title,placement:"top-start",enterable:!e(n)},{default:x(()=>[v("div",{ref_key:"titleRef",ref:a,class:"notice-title-content",onMouseover:r},q(u.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(g=u.noticeItem)!=null&&g.extra?(f(),E(y,{key:0,type:(_=u.noticeItem)==null?void 0:_.status,size:"small",class:"notice-title-extra"},{default:x(()=>{var V;return[re(q((V=u.noticeItem)==null?void 0:V.extra),1)]}),_:1},8,["type"])):Y("",!0)]),h(m,{"popper-class":"notice-title-popper",effect:e(t),disabled:!s.value,content:u.noticeItem.description,placement:"top-start"},{default:x(()=>[v("div",{ref_key:"descriptionRef",ref:p,class:"notice-text-description",onMouseover:l[0]||(l[0]=V=>o(V,u.noticeItem.description))},q(u.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",$a,q(u.noticeItem.datetime),1)])])}}}),Ma=ue(Ta,[["__scopeId","data-v-197133ce"]]),Va={key:0},La=ee({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(u){return(a,i)=>{const p=I("el-empty");return u.list.length?(f(),C("div",Va,[(f(!0),C(de,null,ye(u.list,(s,t)=>(f(),E(Ma,{key:t,noticeItem:s},null,8,["noticeItem"]))),128))])):(f(),E(p,{key:1,description:e(Me)(u.emptyText)},null,8,["description"]))}}}),Ha={width:1024,height:1024,body:''},Aa={class:"header-notice-icon"},za={key:1},Za={class:"noticeList-container"},Oa=ee({__name:"index",setup(u){var n;const{t:a}=Re(),i=Z(0),p=Z(tn),s=Z((n=tn[0])==null?void 0:n.key);p.value.map(r=>i.value+=r.list.length);const t=z(()=>r=>a(r.name)+(r.list.length>0?`(${r.list.length})`:""));return(r,o)=>{const d=I("IconifyIconOffline"),l=I("el-badge"),c=I("el-empty"),m=I("el-scrollbar"),y=I("el-tab-pane"),g=I("el-tabs"),_=I("el-dropdown-menu"),V=I("el-dropdown");return f(),E(V,{trigger:"click",placement:"bottom-end"},{dropdown:x(()=>[h(_,null,{default:x(()=>[h(g,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=b=>s.value=b),stretch:!0,class:"dropdown-tabs",style:ae({width:p.value.length===0?"200px":"330px"})},{default:x(()=>[p.value.length===0?(f(),E(c,{key:0,description:e(a)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(f(),C("span",za,[(f(!0),C(de,null,ye(p.value,b=>(f(),E(y,{key:b.key,label:t.value(b),name:`${b.key}`},{default:x(()=>[h(m,{"max-height":"330px"},{default:x(()=>[v("div",Za,[h(La,{list:b.list,emptyText:b.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[v("span",{class:J(["dropdown-badge","navbar-bg-hover","select-none",Number(i.value)!==0&&"mr-[10px]"])},[h(l,{value:Number(i.value)===0?"":i.value,max:99},{default:x(()=>[v("span",Aa,[h(d,{icon:e(Ha)},null,8,["icon"])])]),_:1},8,["value"])],2)]),_:1})}}}),Ft=ue(Oa,[["__scopeId","data-v-1760ac04"]]),Ra={key:0,class:"flex justify-center items-center"},Vt=ee({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(u){return(a,i)=>u.extraIcon?(f(),C("div",Ra,[(f(),E(Te(e(ze)(xe(u.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),Nt=ee({__name:"SidebarFullScreen",setup(u){const a=Z(),{toggle:i,isFullscreen:p,Fullscreen:s,ExitFullscreen:t}=Se();return p.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ve(p,n=>{a.value=n?t:s},{immediate:!0}),(n,r)=>{const o=I("IconifyIconOffline");return f(),C("span",{class:"fullscreen-icon navbar-bg-hover",onClick:r[0]||(r[0]=(...d)=>e(i)&&e(i)(...d))},[h(o,{icon:a.value},null,8,["icon"])])}}}),Wt={width:24,height:24,body:''},Ut={width:24,height:24,body:''},Ea={key:0,class:"horizontal-header"},Da={class:"select-none"},Pa={class:"horizontal-header-right"},qa={class:"check-zh"},Ba={class:"check-en"},Fa={class:"el-dropdown-link navbar-bg-hover select-none"},Na=["src"],Wa={key:0,class:"dark:text-white"},Ua=["title"],Ka=ee({__name:"NavMix",setup(u){const a=Z(),i=Z(null),{t:p,route:s,locale:t,translationCh:n,translationEn:r}=Et(a),{device:o,logout:d,onPanel:l,resolvePath:c,username:m,userAvatar:y,getDivStyle:g,avatarsStyle:_,toAccountSettings:V,getDropdownItemStyle:b,getDropdownItemClass:L}=Se();function R(D){var $,B,W;const X=Ce().wholeMenus,N=Rt(D,X)[0];i.value=Qe(($=s.meta)==null?void 0:$.activePath)?(W=(B=ft(N,X))==null?void 0:B.children[0])==null?void 0:W.path:s.meta.activePath}return Fe(()=>{R(s.path)}),Ke(()=>{var D;(D=a.value)==null||D.handleResize()}),Ve(()=>[s.path,Ce().wholeMenus],()=>{R(s.path)}),(D,X)=>{const N=I("el-menu-item"),$=I("el-menu"),B=I("IconifyIconOffline"),W=I("el-dropdown-item"),le=I("el-dropdown-menu"),ie=I("el-dropdown"),O=Ye("loading");return e(o)!=="mobile"?oe((f(),C("div",Ea,[h($,{ref_key:"menuRef",ref:a,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":i.value},{default:x(()=>[(f(!0),C(de,null,ye(e(Ce)().wholeMenus,j=>(f(),E(N,{key:j.path,index:e(c)(j)||j.redirect},{title:x(()=>[xe(j.meta.icon)?(f(),C("div",{key:0,class:J(["sub-menu-icon",j.meta.icon])},[(f(),E(Te(e(ze)(j.meta&&xe(j.meta.icon)))))],2)):Y("",!0),v("div",{style:ae(e(g))},[v("span",Da,q(e(Me)(j.meta.title)),1),h(Vt,{extraIcon:j.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",Pa,[h(Bt,{id:"header-search"}),h(ie,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[h(le,{class:"translation"},{default:x(()=>[h(W,{style:ae(e(b)(e(t),"zh")),class:J(["dark:!text-white",e(L)(e(t),"zh")]),onClick:e(n)},{default:x(()=>[oe(v("span",qa,[h(B,{icon:e(Je)},null,8,["icon"])],512),[[ge,e(t)==="zh"]]),X[1]||(X[1]=re(" 简体中文 "))]),_:1},8,["style","class","onClick"]),h(W,{style:ae(e(b)(e(t),"en")),class:J(["dark:!text-white",e(L)(e(t),"en")]),onClick:e(r)},{default:x(()=>[oe(v("span",Ba,[h(B,{icon:e(Je)},null,8,["icon"])],512),[[ge,e(t)==="en"]]),X[2]||(X[2]=re(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[h(e(Dt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Nt,{id:"full-screen"}),h(Ft,{id:"header-notice"}),h(ie,{trigger:"click"},{dropdown:x(()=>[h(W,{onClick:e(V)},{default:x(()=>[h(B,{icon:e(Wt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(le,{class:"logout"},{default:x(()=>[h(W,{onClick:e(d)},{default:x(()=>[h(B,{icon:e(Ut),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Fa,[v("img",{src:e(y),style:ae(e(_))},null,12,Na),e(m)?(f(),C("p",Wa,q(e(m)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:X[0]||(X[0]=(...j)=>e(l)&&e(l)(...j))},[h(B,{icon:e(gt)},null,8,["icon"])],8,Ua)])])),[[O,e(Ce)().wholeMenus.length===0]]):Y("",!0)}}}),Ya=ue(Ka,[["__scopeId","data-v-9f22ffe1"]]),Xa=["onClick"],ja=ee({__name:"SidebarBreadCrumb",setup(u){const a=Ht(),i=Z([]),p=At(),s=p.options.routes,t=Ze().multiTags,n=()=>{let o;Object.keys(a.query).length>0?t.forEach(c=>{Ge(a.query,c==null?void 0:c.query)&&(o=xe(c))}):Object.keys(a.params).length>0?t.forEach(c=>{Ge(a.params,c==null?void 0:c.params)&&(o=xe(c))}):o=ft(p.currentRoute.value.path,s);const d=Rt(p.currentRoute.value.name,s,"name"),l=[];d.forEach(c=>{c!=="/"&&l.push(ft(c,s))}),l.push(o),l.forEach((c,m)=>{o!=null&&o.query||o!=null&&o.params||c!=null&&c.children&&c.children.forEach(y=>{var g,_;((g=y==null?void 0:y.meta)==null?void 0:g.title)===((_=c==null?void 0:c.meta)==null?void 0:_.title)&&l.splice(m,1)})}),i.value=l.filter(c=>(c==null?void 0:c.meta)&&(c==null?void 0:c.meta.title)!==!1)},r=o=>{const{redirect:d,name:l,path:c}=o;d?p.push(d):l?o.query?p.push({name:l,query:o.query}):o.params?p.push({name:l,params:o.params}):p.push({name:l}):p.push({path:c})};return Fe(()=>{n()}),Ve(()=>a.path,()=>{n()},{deep:!0}),(o,d)=>{const l=I("el-breadcrumb-item"),c=I("el-breadcrumb");return f(),E(c,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[h(Hn,{name:"breadcrumb"},{default:x(()=>[(f(!0),C(de,null,ye(i.value,m=>(f(),E(l,{key:m.path,class:"!inline !items-stretch"},{default:x(()=>[v("a",{onClick:$e(y=>r(m),["prevent"])},q(e(Me)(m.meta.title)),9,Xa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Ga={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Qa={key:3,class:"vertical-header-right"},Ja={class:"check-en"},el={class:"el-dropdown-link navbar-bg-hover select-none"},tl=["src"],nl={key:0,class:"dark:text-white"},ol=["title"],al=ee({__name:"index",setup(u){const{layout:a,device:i,logout:p,onPanel:s,pureApp:t,username:n,userAvatar:r,avatarsStyle:o,toggleSideBar:d,toAccountSettings:l,getDropdownItemStyle:c,getDropdownItemClass:m}=Se(),{t:y,locale:g,translationCh:_,translationEn:V}=Et();return(b,L)=>{const R=I("IconifyIconOffline"),D=I("el-dropdown-item"),X=I("el-dropdown-menu"),N=I("el-dropdown");return f(),C("div",Ga,[e(i)==="mobile"?(f(),E(Fn,{key:0,class:"hamburger-container","is-active":e(t).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):Y("",!0),e(a)!=="mix"&&e(i)!=="mobile"?(f(),E(ja,{key:1,class:"breadcrumb-container"})):Y("",!0),e(a)==="mix"?(f(),E(Ya,{key:2})):Y("",!0),e(a)==="vertical"?(f(),C("div",Qa,[h(Bt,{id:"header-search"}),h(N,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[h(X,{class:"translation"},{default:x(()=>[h(D,{style:ae(e(c)(e(g),"zh")),class:J(["dark:!text-white",e(m)(e(g),"zh")]),onClick:e(_)},{default:x(()=>[oe(h(R,{class:"check-zh",icon:e(Je)},null,8,["icon"]),[[ge,e(g)==="zh"]]),L[1]||(L[1]=re(" 简体中文 "))]),_:1},8,["style","class","onClick"]),h(D,{style:ae(e(c)(e(g),"en")),class:J(["dark:!text-white",e(m)(e(g),"en")]),onClick:e(V)},{default:x(()=>[oe(v("span",Ja,[h(R,{icon:e(Je)},null,8,["icon"])],512),[[ge,e(g)==="en"]]),L[2]||(L[2]=re(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[h(e(Dt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Nt,{id:"full-screen"}),h(Ft,{id:"header-notice"}),h(N,{trigger:"click"},{dropdown:x(()=>[h(X,{class:"logout"},{default:x(()=>[h(D,{onClick:e(l)},{default:x(()=>[h(R,{icon:e(Wt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(y)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(D,{onClick:e(p)},{default:x(()=>[h(R,{icon:e(Ut),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(y)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",el,[v("img",{src:e(r),style:ae(e(o))},null,12,tl),e(n)?(f(),C("p",nl,q(e(n)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(y)("buttons.pureOpenSystemSet"),onClick:L[0]||(L[0]=(...$)=>e(s)&&e(s)(...$))},[h(R,{icon:e(gt)},null,8,["icon"])],8,ol)])):Y("",!0)])}}}),ll=ue(al,[["__scopeId","data-v-b43dc9be"]]),st=new Map,sl=()=>{function u(p,s){st.set(p,s)}function a(p){return p?st.get(p):[...st.entries()]}function i(p){st.delete(p)}return{setMap:u,getMap:a,delMap:i,MAP:st}},rl={class:"w-full h-full"},il=ee({__name:"index",props:{currRoute:{},currComp:{}},setup(u){const a=u,i=St([]),{setMap:p,getMap:s,MAP:t,delMap:n}=sl(),r=z(()=>{var d,l;return je().KeepAlive&&((d=a.currRoute.meta)==null?void 0:d.keepAlive)&&!!((l=a.currRoute.meta)!=null&&l.frameSrc)}),o=z(()=>!r.value&&a.currComp);return Ve(Ze().multiTags,d=>{if(!Array.isArray(d)||!r.value)return;if(d.filter(c=>{var m;return(m=c.meta)==null?void 0:m.frameSrc}).lengthm.path===c)||(n(c),i.value=s())}),Ve(()=>a.currRoute.fullPath,d=>{const c=Ze().multiTags.filter(m=>{var y;return(y=m.meta)==null?void 0:y.frameSrc});r.value&&c.length!==t.size&&([...t.keys()].find(y=>d===y)||p(d,a.currComp)),t.size>0&&(i.value=s())},{immediate:!0}),(d,l)=>(f(),C(de,null,[(f(!0),C(de,null,ye(i.value,([c,m])=>{var y;return oe((f(),C("div",{key:c,class:"w-full h-full"},[pt(d.$slots,"default",{fullPath:c,Comp:m,frameInfo:{frameSrc:(y=d.currRoute.meta)==null?void 0:y.frameSrc,fullPath:c}})],512)),[[ge,c===d.currRoute.fullPath]])}),128)),oe(v("div",rl,[pt(d.$slots,"default",{Comp:o.value,fullPath:d.currRoute.fullPath})],512),[[ge,!r.value]])],64))}}),cl={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},ul={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},dl=ee({__name:"index",setup(u){const a=je("Title");return(i,p)=>(f(),C("footer",cl,[p[0]||(p[0]=re(" Copyright © 2020-2024 ")),v("a",ul," "+q(e(a)),1)]))}}),nn=ue(dl,[["__scopeId","data-v-460ba5c2"]]),hl={class:"grow"},fl={key:1,class:"grow"},pl=ee({__name:"index",props:{fixedHeader:Boolean},setup(u){const a=u,{t:i}=Re(),{showModel:p}=pn(),{$storage:s,$config:t}=it(),n=z(()=>t==null?void 0:t.KeepAlive),r=z(()=>_=>_.meta.transition),o=z(()=>s==null?void 0:s.configure.hideTabs),d=z(()=>s==null?void 0:s.configure.hideFooter),l=z(()=>s==null?void 0:s.configure.stretch),c=z(()=>(s==null?void 0:s.layout.layout)==="vertical"),m=z(()=>It(l.value)?l.value+"px":l.value?"1440px":"100%"),y=z(()=>[o.value&&c?"padding-top: 48px;":"",!o.value&&c?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",o.value&&!c.value?"padding-top: 48px;":"",!o.value&&!c.value?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",a.fixedHeader?"":`padding-top: 0;${o.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=ee({props:{route:{type:void 0,required:!0}},render(){var L,R,D;const _=((L=r.value(this.route))==null?void 0:L.name)||"fade-transform",V=(R=r.value(this.route))==null?void 0:R.enterTransition,b=(D=r.value(this.route))==null?void 0:D.leaveTransition;return rt(Ot,{name:V?"pure-classes-transition":_,enterActiveClass:V?`animate__animated ${V}`:void 0,leaveActiveClass:b?`animate__animated ${b}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(_,V)=>{const b=I("el-backtop"),L=I("el-scrollbar"),R=I("router-view");return f(),C("section",{class:J([u.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ae(y.value)},[h(R,null,{default:x(({Component:D,route:X})=>[h(il,{currComp:D,currRoute:X},{default:x(({Comp:N,fullPath:$,frameInfo:B})=>[u.fixedHeader?(f(),E(L,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":m.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:x(()=>[h(b,{title:e(i)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:x(()=>[h(e(hn))]),_:1},8,["title"]),v("div",hl,[h(e(g),{route:X},{default:x(()=>[n.value?(f(),E(jt,{key:0,include:e(Ce)().cachePageList},[(f(),E(Te(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(f(),E(Te(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?Y("",!0):(f(),E(nn,{key:0}))]),_:2},1032,["wrap-style"])):(f(),C("div",fl,[h(e(g),{route:X},{default:x(()=>[n.value?(f(),E(jt,{key:0,include:e(Ce)().cachePageList},[(f(),E(Te(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(f(),E(Te(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!u.fixedHeader?(f(),E(nn,{key:0})):Y("",!0)],6)}}}),on=ue(pl,[["__scopeId","data-v-5fc75f4c"]]),ml={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},vl={class:"dark:text-white"},gl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},yl=ee({__name:"index",setup(u){const a=Z(null),i=Z(!1),p=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:s}=Re(),{onReset:t}=Pt();return sn(a,n=>{n.clientX>a.value.offsetLeft||(i.value=!1)}),Fe(()=>{we.on("openPanel",()=>{i.value=!0})}),Zt(()=>{we.off("openPanel")}),(n,r)=>{const o=I("IconifyIconOffline"),d=I("el-scrollbar"),l=I("el-button"),c=Ye("tippy");return f(),C("div",{class:J({show:i.value})},[r[1]||(r[1]=v("div",{class:"right-panel-background"},null,-1)),v("div",{ref_key:"target",ref:a,class:"right-panel bg-bg_color"},[v("div",ml,[v("h4",vl,q(e(s)("panel.pureSystemSet")),1),oe((f(),C("span",{class:J(p.value)},[h(o,{class:"dark:text-white",width:"18px",height:"18px",icon:e(mt),onClick:r[0]||(r[0]=m=>i.value=!i.value)},null,8,["icon"])],2)),[[c,{content:e(s)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),h(d,null,{default:x(()=>[pt(n.$slots,"default",{},void 0,!0)]),_:3}),v("div",gl,[oe((f(),E(l,{type:"danger",text:"",bg:"",onClick:e(t)},{default:x(()=>[re(q(e(s)("panel.pureClearCache")),1)]),_:1},8,["onClick"])),[[c,{content:e(s)("panel.pureClearCacheAndToLogin"),placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),_l=ue(yl,[["__scopeId","data-v-c826562e"]]),bl={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"};function xl(u,a){return f(),C("svg",bl,a[0]||(a[0]=[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),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)]))}const wl={render:xl},Cl={class:"p-5"},kl={class:"theme-color"},Sl=["onClick"],Il={class:"pure-theme"},$l={key:0},Tl={class:"mt-5 font-medium text-sm dark:text-white"},Ml={class:"setting"},Vl={class:"dark:text-white"},Ll={class:"dark:text-white"},Hl={class:"dark:text-white"},Al={class:"dark:text-white"},zl={class:"dark:text-white"},Zl=ee({__name:"index",setup(u){var T,H,P,se;const{t:a}=Re(),{device:i}=Se(),{isDark:p}=un(),{$storage:s}=it(),t=Z(),n=Z(),r=Z(),{dataTheme:o,overallStyle:d,layoutTheme:l,themeColors:c,toggleClass:m,dataThemeChange:y,setLayoutThemeColor:g}=Pt();if(e(l)){const S=e(l).layout,k=e(l).theme;document.documentElement.setAttribute("data-theme",k),Le(S)}const _=Z((H=(T=s.configure)==null?void 0:T.showModel)!=null?H:"smart"),V=Z((se=(P=s.configure)==null?void 0:P.showLogo)!=null?se:!0),b=Lt({greyVal:s.configure.grey,weakVal:s.configure.weak,tabsVal:s.configure.hideTabs,showLogo:s.configure.showLogo,showModel:s.configure.showModel,hideFooter:s.configure.hideFooter,multiTagsCache:s.configure.multiTagsCache,stretch:s.configure.stretch}),L=z(()=>S=>({background:S})),R=z(()=>S=>!(S==="light"&&p.value));function D(S,k){const he=s.configure;he[S]=k,s.configure=he}const X=S=>{const k=document.querySelector("html");m(b.greyVal,"html-grey",k),D("grey",S)},N=S=>{const k=document.querySelector("html");m(b.weakVal,"html-weakness",k),D("weak",S)},$=()=>{const S=b.tabsVal;D("hideTabs",S),we.emit("tagViewsChange",S)},B=()=>{const S=b.hideFooter;D("hideFooter",S)},W=()=>{const S=b.multiTagsCache;D("multiTagsCache",S),Ze().multiTagsCacheChange(S)};function le({option:S}){const{value:k}=S;_.value=k,D("showModel",k),we.emit("tagViewsShowModel",k)}function ie(){e(V)?D("showLogo",!0):D("showLogo",!1),we.emit("logoChange",e(V))}function O(S){S.forEach(k=>{m(!1,"is-select",e(k))})}const j=z(()=>[{label:a("panel.pureStretchFixed"),tip:a("panel.pureStretchFixedTip"),value:"fixed"},{label:a("panel.pureStretchCustom"),tip:a("panel.pureStretchCustomTip"),value:"custom"}]),te=S=>{b.stretch=S,D("stretch",S)},_e=({option:S})=>{const{value:k}=S;te(k==="custom"?1440:!1)},Ee=z(()=>S=>S===l.value.theme&&l.value.theme!=="light"?"#fff":S===l.value.theme&&l.value.theme==="light"?"#1d2b45":"transparent"),Ie=z(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),De=z(()=>[{label:a("panel.pureOverallStyleLight"),icon:Un,theme:"light",tip:a("panel.pureOverallStyleLightTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:a("panel.pureOverallStyleDark"),icon:Kn,theme:"dark",tip:a("panel.pureOverallStyleDarkTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:a("panel.pureOverallStyleSystem"),icon:wl,theme:"system",tip:a("panel.pureOverallStyleSystemTip"),iconAttrs:{fill:p.value?"#fff":"#000"}}]),ot=z(()=>[{label:a("panel.pureTagsStyleSmart"),tip:a("panel.pureTagsStyleSmartTip"),value:"smart"},{label:a("panel.pureTagsStyleCard"),tip:a("panel.pureTagsStyleCardTip"),value:"card"},{label:a("panel.pureTagsStyleChrome"),tip:a("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function Le(S){var k,he,fe,Ne,ke;l.value.layout=S,window.document.body.setAttribute("layout",S),s.layout={layout:S,theme:l.value.theme,darkMode:(k=s.layout)==null?void 0:k.darkMode,sidebarStatus:(he=s.layout)==null?void 0:he.sidebarStatus,epThemeColor:(fe=s.layout)==null?void 0:fe.epThemeColor,themeColor:(Ne=s.layout)==null?void 0:Ne.themeColor,overallStyle:(ke=s.layout)==null?void 0:ke.overallStyle},Be().setLayout(S)}Ve(s,({layout:S})=>{switch(S.layout){case"vertical":m(!0,"is-select",e(n)),tt(O([r]),50),tt(O([t]),50);break;case"horizontal":m(!0,"is-select",e(r)),tt(O([n]),50),tt(O([t]),50);break;case"mix":m(!0,"is-select",e(t)),tt(O([n]),50),tt(O([r]),50);break}});const He=window.matchMedia("(prefers-color-scheme: dark)");function Xe(){d.value==="system"&&(He.matches?o.value=!0:o.value=!1,y(d.value))}function Ae(){He.removeEventListener("change",Xe)}function et(){Xe(),Ae(),He.addEventListener("change",Xe)}return dn(()=>{Ke(()=>{var S,k;et(),b.greyVal&&((S=document.querySelector("html"))==null||S.classList.add("html-grey")),b.weakVal&&((k=document.querySelector("html"))==null||k.classList.add("html-weakness")),b.tabsVal&&$(),b.hideFooter&&B()})}),An(()=>Ae),(S,k)=>{const he=I("IconifyIconOffline"),fe=I("el-icon"),Ne=I("el-input-number"),ke=I("el-switch"),Pe=Ye("tippy"),yt=Ye("ripple");return f(),E(_l,null,{default:x(()=>[v("div",Cl,[v("p",{class:J(Ie.value)},q(e(a)("panel.pureOverallStyle")),3),h(e(Ct),{resize:"",class:"select-none",modelValue:e(d)==="system"?2:e(o)?1:0,options:De.value,onChange:k[0]||(k[0]=G=>{G.index===1&&G.index!==2?o.value=!0:o.value=!1,d.value=G.option.theme,e(y)(G.option.theme),G.index===2&&et()})},null,8,["modelValue","options"]),v("p",{class:J(["mt-5",Ie.value])},q(e(a)("panel.pureThemeColor")),3),v("ul",kl,[(f(!0),C(de,null,ye(e(c),(G,ct)=>oe((f(),C("li",{key:ct,style:ae(L.value(G.color)),onClick:w=>e(g)(G.themeColor)},[h(fe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Ee.value(G.themeColor)},{default:x(()=>[h(he,{icon:e(Je)},null,8,["icon"])]),_:2},1032,["color"])],12,Sl)),[[ge,R.value(G.themeColor)]])),128))]),v("p",{class:J(["mt-5",Ie.value])},q(e(a)("panel.pureLayoutModel")),3),v("ul",Il,[oe((f(),C("li",{ref_key:"verticalRef",ref:n,class:J(e(l).layout==="vertical"?"is-select":""),onClick:k[1]||(k[1]=G=>Le("vertical"))},k[13]||(k[13]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[Pe,{content:e(a)("panel.pureVerticalTip"),zIndex:41e3}]]),e(i)!=="mobile"?oe((f(),C("li",{key:0,ref_key:"horizontalRef",ref:r,class:J(e(l).layout==="horizontal"?"is-select":""),onClick:k[2]||(k[2]=G=>Le("horizontal"))},k[14]||(k[14]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[Pe,{content:e(a)("panel.pureHorizontalTip"),zIndex:41e3}]]):Y("",!0),e(i)!=="mobile"?oe((f(),C("li",{key:1,ref_key:"mixRef",ref:t,class:J(e(l).layout==="mix"?"is-select":""),onClick:k[3]||(k[3]=G=>Le("mix"))},k[15]||(k[15]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[Pe,{content:e(a)("panel.pureMixTip"),zIndex:41e3}]]):Y("",!0)]),e(Be)().getViewportWidth>1280?(f(),C("span",$l,[v("p",{class:J(["mt-5",Ie.value])},q(e(a)("panel.pureStretch")),3),h(e(Ct),{resize:"",class:"mb-2 select-none",modelValue:e(It)(b.stretch)?1:0,options:j.value,onChange:_e},null,8,["modelValue","options"]),e(It)(b.stretch)?(f(),E(Ne,{key:0,modelValue:b.stretch,"onUpdate:modelValue":k[4]||(k[4]=G=>b.stretch=G),min:1280,max:1600,"controls-position":"right",onChange:k[5]||(k[5]=G=>te(G))},null,8,["modelValue"])):oe((f(),C("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]",onClick:k[6]||(k[6]=G=>te(!b.stretch))},[v("div",{class:J(["flex-bc transition-all duration-300",[b.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[h(he,{icon:b.stretch?e(Tt):e($t),height:"20"},null,8,["icon"]),k[16]||(k[16]=v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),h(he,{icon:b.stretch?e($t):e(Tt),height:"20"},null,8,["icon"])],2)])),[[yt,{class:"text-gray-300"}]])])):Y("",!0),v("p",{class:J(["mt-4",Ie.value])},q(e(a)("panel.pureTagsStyle")),3),h(e(Ct),{resize:"",class:"select-none",modelValue:_.value==="smart"?0:_.value==="card"?1:2,options:ot.value,onChange:le},null,8,["modelValue","options"]),v("p",Tl,q(e(a)("panel.pureInterfaceDisplay")),1),v("ul",Ml,[v("li",null,[v("span",Vl,q(e(a)("panel.pureGreyModel")),1),h(ke,{modelValue:b.greyVal,"onUpdate:modelValue":k[7]||(k[7]=G=>b.greyVal=G),"inline-prompt":"","active-text":e(a)("buttons.pureOpenText"),"inactive-text":e(a)("buttons.pureCloseText"),onChange:X},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Ll,q(e(a)("panel.pureWeakModel")),1),h(ke,{modelValue:b.weakVal,"onUpdate:modelValue":k[8]||(k[8]=G=>b.weakVal=G),"inline-prompt":"","active-text":e(a)("buttons.pureOpenText"),"inactive-text":e(a)("buttons.pureCloseText"),onChange:N},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Hl,q(e(a)("panel.pureHiddenTags")),1),h(ke,{modelValue:b.tabsVal,"onUpdate:modelValue":k[9]||(k[9]=G=>b.tabsVal=G),"inline-prompt":"","active-text":e(a)("buttons.pureOpenText"),"inactive-text":e(a)("buttons.pureCloseText"),onChange:$},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Al,q(e(a)("panel.pureHiddenFooter")),1),h(ke,{modelValue:b.hideFooter,"onUpdate:modelValue":k[10]||(k[10]=G=>b.hideFooter=G),"inline-prompt":"","active-text":e(a)("buttons.pureOpenText"),"inactive-text":e(a)("buttons.pureCloseText"),onChange:B},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[k[17]||(k[17]=v("span",{class:"dark:text-white"},"Logo",-1)),h(ke,{modelValue:V.value,"onUpdate:modelValue":k[11]||(k[11]=G=>V.value=G),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(a)("buttons.pureOpenText"),"inactive-text":e(a)("buttons.pureCloseText"),onChange:ie},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",zl,q(e(a)("panel.pureMultiTagsCache")),1),h(ke,{modelValue:b.multiTagsCache,"onUpdate:modelValue":k[12]||(k[12]=G=>b.multiTagsCache=G),"inline-prompt":"","active-text":e(a)("buttons.pureOpenText"),"inactive-text":e(a)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),Ol=ue(Zl,[["__scopeId","data-v-25985161"]]),Rl=["src"],El={class:"sidebar-title"},Dl=["src"],Pl={class:"sidebar-title"},ql=ee({__name:"SidebarLogo",props:{collapse:Boolean},setup(u){const{title:a,getLogo:i}=Se();return(p,s)=>{const t=I("router-link");return f(),C("div",{class:J(["sidebar-logo-container",{collapses:u.collapse}])},[h(Ot,{name:"sidebarLogoFade"},{default:x(()=>{var n,r,o,d;return[u.collapse?(f(),E(t,{key:"collapse",title:e(a),class:"sidebar-logo-link",to:(r=(n=e(ht)())==null?void 0:n.path)!=null?r:"/"},{default:x(()=>[v("img",{src:e(i)(),alt:"logo"},null,8,Rl),v("span",El,q(e(a)),1)]),_:1},8,["title","to"])):(f(),E(t,{key:"expand",title:e(a),class:"sidebar-logo-link",to:(d=(o=e(ht)())==null?void 0:o.path)!=null?d:"/"},{default:x(()=>[v("img",{src:e(i)(),alt:"logo"},null,8,Dl),v("span",Pl,q(e(a)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Bl=ue(ql,[["__scopeId","data-v-0bcd3a75"]]);var kt,an;function Fl(){if(an)return kt;an=1;function u(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function a(s,t){for(var n="",r=0,o=-1,d=0,l,c=0;c<=s.length;++c){if(c2){var m=n.lastIndexOf("/");if(m!==n.length-1){m===-1?(n="",r=0):(n=n.slice(0,m),r=n.length-1-n.lastIndexOf("/")),o=c,d=0;continue}}else if(n.length===2||n.length===1){n="",r=0,o=c,d=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+s.slice(o+1,c):n=s.slice(o+1,c),r=c-o-1;o=c,d=0}else l===46&&d!==-1?++d:d=-1}return n}function i(s,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+s+r:r}var p={resolve:function(){for(var t="",n=!1,r,o=arguments.length-1;o>=-1&&!n;o--){var d;o>=0?d=arguments[o]:(r===void 0&&(r=process.cwd()),d=r),u(d),d.length!==0&&(t=d+"/"+t,n=d.charCodeAt(0)===47)}return t=a(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(u(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=a(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return u(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":p.normalize(t)},relative:function(t,n){if(u(t),u(n),t===n||(t=p.resolve(t),n=p.resolve(n),t===n))return"";for(var r=1;ry){if(n.charCodeAt(l+_)===47)return n.slice(l+_+1);if(_===0)return n.slice(l+_)}else d>y&&(t.charCodeAt(r+_)===47?g=_:_===0&&(g=0));break}var V=t.charCodeAt(r+_),b=n.charCodeAt(l+_);if(V!==b)break;V===47&&(g=_)}var L="";for(_=r+g+1;_<=o;++_)(_===o||t.charCodeAt(_)===47)&&(L.length===0?L+="..":L+="/..");return L.length>0?L+n.slice(l+g):(l+=g,n.charCodeAt(l)===47&&++l,n.slice(l))},_makeLong:function(t){return t},dirname:function(t){if(u(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,o=-1,d=!0,l=t.length-1;l>=1;--l)if(n=t.charCodeAt(l),n===47){if(!d){o=l;break}}else d=!1;return o===-1?r?"/":".":r&&o===1?"//":t.slice(0,o)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');u(t);var r=0,o=-1,d=!0,l;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var c=n.length-1,m=-1;for(l=t.length-1;l>=0;--l){var y=t.charCodeAt(l);if(y===47){if(!d){r=l+1;break}}else m===-1&&(d=!1,m=l+1),c>=0&&(y===n.charCodeAt(c)?--c===-1&&(o=l):(c=-1,o=m))}return r===o?o=m:o===-1&&(o=t.length),t.slice(r,o)}else{for(l=t.length-1;l>=0;--l)if(t.charCodeAt(l)===47){if(!d){r=l+1;break}}else o===-1&&(d=!1,o=l+1);return o===-1?"":t.slice(r,o)}},extname:function(t){u(t);for(var n=-1,r=0,o=-1,d=!0,l=0,c=t.length-1;c>=0;--c){var m=t.charCodeAt(c);if(m===47){if(!d){r=c+1;break}continue}o===-1&&(d=!1,o=c+1),m===46?n===-1?n=c:l!==1&&(l=1):n!==-1&&(l=-1)}return n===-1||o===-1||l===0||l===1&&n===o-1&&n===r+1?"":t.slice(n,o)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return i("/",t)},parse:function(t){u(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),o=r===47,d;o?(n.root="/",d=1):d=0;for(var l=-1,c=0,m=-1,y=!0,g=t.length-1,_=0;g>=d;--g){if(r=t.charCodeAt(g),r===47){if(!y){c=g+1;break}continue}m===-1&&(y=!1,m=g+1),r===46?l===-1?l=g:_!==1&&(_=1):l!==-1&&(_=-1)}return l===-1||m===-1||_===0||_===1&&l===m-1&&l===c+1?m!==-1&&(c===0&&o?n.base=n.name=t.slice(1,m):n.base=n.name=t.slice(c,m)):(c===0&&o?(n.name=t.slice(1,l),n.base=t.slice(1,m)):(n.name=t.slice(c,l),n.base=t.slice(c,m)),n.ext=t.slice(l,m)),c>0?n.dir=t.slice(0,c-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return p.posix=p,kt=p,kt}var Nl=Fl();const Wl=ee({__name:"SidebarLinkItem",props:{to:{}},setup(u){const a=u,i=z(()=>zn(a.to.name)),p=s=>i.value?{href:s.name,target:"_blank",rel:"noopener"}:{to:s};return(s,t)=>(f(),E(Te(i.value?"a":"router-link"),Zn(On(p(s.to))),{default:x(()=>[pt(s.$slots,"default")]),_:3},16))}}),Ul={width:1024,height:1024,body:''},Kl={width:1024,height:1024,body:''},Yl={width:1024,height:1024,body:''},Xl={width:1024,height:1024,body:''},vn=ee({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(u){const a=Rn(),{layout:i,isCollapse:p,tooltipEffect:s,getDivStyle:t}=Se(),n=u,r=z(()=>({width:"100%",display:"flex",alignItems:"center"})),o=z(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:i.value==="horizontal"?"0 5px 0 0":p.value?"0 auto":"0 5px 0 0"})),d=z(()=>{var y;return(y=je())!=null&&y.MenuArrowIconNoTransition?{"expand-close-icon":ze(Kl),"expand-open-icon":ze(Ul),"collapse-close-icon":ze(Xl),"collapse-open-icon":ze(Yl)}:""}),l=Z(null);function c(y=[],g){var V,b;const _=y.filter(L=>(l.value=L,!0));return(b=(V=_[0])==null?void 0:V.meta)!=null&&b.showParent?!1:_.length===1?!0:_.length===0?(l.value=bt(_t({},g),{path:"",noShowingChildren:!0}),!0):!1}function m(y){const g=/^http(s?):\/\//;return g.test(y)||g.test(n.basePath)?y||n.basePath:Nl.posix.resolve(n.basePath,y)}return(y,g)=>{const _=I("el-text"),V=I("el-menu-item"),b=I("sidebar-item",!0),L=I("el-sub-menu");return c(u.item.children,u.item)&&(!l.value.children||l.value.noShowingChildren)?(f(),E(Wl,{key:0,to:u.item},{default:x(()=>[h(V,Gt({index:m(l.value.path),class:{"submenu-title-noDropdown":!u.isNest},style:r.value},e(a)),{title:x(()=>[v("div",{style:ae(e(t))},[h(e(Qt),{tippyProps:{offset:[0,-10],theme:e(s)},class:"!w-full !text-inherit"},{default:x(()=>[re(q(e(Me)(l.value.meta.title)),1)]),_:1},8,["tippyProps"]),h(Vt,{extraIcon:l.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:x(()=>{var R,D,X,N,$;return[xe(u.item.meta.icon)?(f(),C("div",{key:0,class:"sub-menu-icon",style:ae(o.value)},[(f(),E(Te(e(ze)(xe(l.value.meta.icon)||u.item.meta&&xe(u.item.meta.icon)))))],4)):Y("",!0),!((R=u.item)!=null&&R.meta.icon)&&e(p)&&e(i)==="vertical"&&((X=(D=u.item)==null?void 0:D.pathList)==null?void 0:X.length)===1||!l.value.meta.icon&&e(p)&&e(i)==="mix"&&(($=(N=u.item)==null?void 0:N.pathList)==null?void 0:$.length)===2?(f(),E(_,{key:1,truncated:"",class:"!w-full !pl-4 !text-inherit"},{default:x(()=>[re(q(e(Me)(l.value.meta.title)),1)]),_:1})):Y("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(f(),E(L,Gt({key:1,ref:"subMenu",teleported:"",index:m(u.item.path)},d.value),{title:x(()=>{var R,D;return[xe(u.item.meta.icon)?(f(),C("div",{key:0,style:ae(o.value),class:"sub-menu-icon"},[(f(),E(Te(e(ze)(u.item.meta&&xe(u.item.meta.icon)))))],4)):Y("",!0),(e(i)==="mix"&&xe(u.item.meta.icon)?!e(p)||((D=(R=u.item)==null?void 0:R.pathList)==null?void 0:D.length)!==2:!(e(i)==="vertical"&&e(p)&&xe(u.item.meta.icon)&&u.item.parentId===null))?(f(),E(e(Qt),{key:1,tippyProps:{offset:[0,-10],theme:e(s)},class:J({"!w-full":!0,"!text-inherit":!0,"!pl-4":e(i)!=="horizontal"&&e(p)&&!xe(u.item.meta.icon)&&u.item.parentId===null})},{default:x(()=>[re(q(e(Me)(u.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):Y("",!0),e(p)?Y("",!0):(f(),E(Vt,{key:2,extraIcon:u.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:x(()=>[(f(!0),C(de,null,ye(u.item.children,R=>(f(),E(b,{key:R.path,"is-nest":!0,item:R,"base-path":m(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),jl={class:"left-collapse"},Gl=ee({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(u,{emit:a}){const{t:i}=Re(),{tooltipEffect:p}=Se(),s=z(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:t}=it(),n=z(()=>{var d;return(d=t.layout)==null?void 0:d.themeColor}),r=a,o=()=>{r("toggleClick")};return(d,l)=>{const c=I("IconifyIconOffline"),m=Ye("tippy");return f(),C("div",jl,[oe(h(c,{icon:e(Nn),class:J([s.value,n.value==="light"?"":"text-primary"]),style:ae({transform:d.isActive?"none":"rotateY(180deg)"}),onClick:o},null,8,["icon","class","style"]),[[m,{content:d.isActive?e(i)("buttons.pureClickCollapse"):e(i)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])])}}}),Ql=ue(Gl,[["__scopeId","data-v-b883211c"]]),Jl={width:24,height:24,body:''},es=ee({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(u,{emit:a}){const{t:i}=Re(),{tooltipEffect:p}=Se(),s=z(()=>["w-[16px]","h-[16px]"]),{$storage:t}=it(),n=z(()=>{var d;return(d=t.layout)==null?void 0:d.themeColor}),r=a,o=()=>{r("toggleClick")};return(d,l)=>{const c=I("IconifyIconOffline"),m=Ye("tippy");return oe((f(),C("div",{class:"center-collapse",onClick:o},[h(c,{icon:e(Jl),class:J([s.value,n.value==="light"?"":"text-primary"]),style:ae({transform:d.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[m,{content:d.isActive?e(i)("buttons.pureClickCollapse"):e(i)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])}}}),ts=ue(es,[["__scopeId","data-v-1c646820"]]),ns=ee({__name:"NavVertical",setup(u){var _,V;const a=Ht(),i=Z(!1),p=Z((V=(_=Oe().getItem(`${nt()}configure`))==null?void 0:_.showLogo)!=null?V:!0),{device:s,pureApp:t,isCollapse:n,tooltipEffect:r,menuSelect:o,toggleSideBar:d}=Se(),l=Z([]),c=z(()=>t.layout==="mix"&&s.value!=="mobile"?l.value:Ce().wholeMenus),m=z(()=>t.layout==="mix"?!1:c.value.length===0),y=z(()=>{var b;return Qe((b=a.meta)==null?void 0:b.activePath)?a.path:a.meta.activePath});function g(){let b="";b=y.value,l.value=[];const L=Rt(b,Ce().wholeMenus),R=ft(L[0]||b,Ce().wholeMenus);R!=null&&R.children&&(l.value=R==null?void 0:R.children)}return Ve(()=>[a.path,Ce().wholeMenus],()=>{a.path.includes("/redirect")||(g(),o(a.path))}),Fe(()=>{g(),we.on("logoChange",b=>{p.value=b})}),Zt(()=>{we.off("logoChange")}),(b,L)=>{const R=I("el-menu"),D=I("el-scrollbar"),X=Ye("loading");return oe((f(),C("div",{class:J(["sidebar-container",p.value?"has-logo":"no-logo"]),onMouseenter:L[0]||(L[0]=$e(N=>i.value=!0,["prevent"])),onMouseleave:L[1]||(L[1]=$e(N=>i.value=!1,["prevent"]))},[p.value?(f(),E(Bl,{key:0,collapse:e(n)},null,8,["collapse"])):Y("",!0),h(D,{"wrap-class":"scrollbar-wrapper",class:J([e(s)==="mobile"?"mobile":"pc"])},{default:x(()=>[h(R,{"unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:e(n),"collapse-transition":!1,"popper-effect":e(r),"default-active":y.value},{default:x(()=>[(f(!0),C(de,null,ye(c.value,N=>(f(),E(vn,{key:N.path,item:N,"base-path":N.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(s)!=="mobile"&&(i.value||e(n))?(f(),E(ts,{key:1,"is-active":e(t).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):Y("",!0),e(s)!=="mobile"?(f(),E(Ql,{key:2,"is-active":e(t).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):Y("",!0)],34)),[[X,m.value]])}}}),os=ue(ns,[["__scopeId","data-v-f94a3619"]]),as={class:"horizontal-header"},ls=["src"],ss={class:"horizontal-header-right"},rs={class:"check-zh"},is={class:"check-en"},cs={class:"el-dropdown-link navbar-bg-hover"},us=["src"],ds={key:0,class:"dark:text-white"},hs=["title"],fs=ee({__name:"NavHorizontal",setup(u){var D,X;const a=Z(),i=Z((X=(D=Oe().getItem(`${nt()}configure`))==null?void 0:D.showLogo)!=null?X:!0),{t:p,route:s,locale:t,translationCh:n,translationEn:r}=Et(a),{title:o,logout:d,onPanel:l,getLogo:c,username:m,userAvatar:y,backTopMenu:g,avatarsStyle:_,toAccountSettings:V,getDropdownItemStyle:b,getDropdownItemClass:L}=Se(),R=z(()=>{var N;return Qe((N=s.meta)==null?void 0:N.activePath)?s.path:s.meta.activePath});return Ke(()=>{var N;(N=a.value)==null||N.handleResize()}),Fe(()=>{we.on("logoChange",N=>{i.value=N})}),(N,$)=>{const B=I("el-menu"),W=I("IconifyIconOffline"),le=I("el-dropdown-item"),ie=I("el-dropdown-menu"),O=I("el-dropdown"),j=Ye("loading");return oe((f(),C("div",as,[i.value?(f(),C("div",{key:0,class:"horizontal-header-left",onClick:$[0]||($[0]=(...te)=>e(g)&&e(g)(...te))},[v("img",{src:e(c)(),alt:"logo"},null,8,ls),v("span",null,q(e(o)),1)])):Y("",!0),h(B,{ref_key:"menuRef",ref:a,mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":R.value},{default:x(()=>[(f(!0),C(de,null,ye(e(Ce)().wholeMenus,te=>(f(),E(vn,{key:te.path,item:te,"base-path":te.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",ss,[h(Bt,{id:"header-search"}),h(O,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[h(ie,{class:"translation"},{default:x(()=>[h(le,{style:ae(e(b)(e(t),"zh")),class:J(["dark:!text-white",e(L)(e(t),"zh")]),onClick:e(n)},{default:x(()=>[oe(v("span",rs,[h(W,{icon:e(Je)},null,8,["icon"])],512),[[ge,e(t)==="zh"]]),$[2]||($[2]=re(" 简体中文 "))]),_:1},8,["style","class","onClick"]),h(le,{style:ae(e(b)(e(t),"en")),class:J(["dark:!text-white",e(L)(e(t),"en")]),onClick:e(r)},{default:x(()=>[oe(v("span",is,[h(W,{icon:e(Je)},null,8,["icon"])],512),[[ge,e(t)==="en"]]),$[3]||($[3]=re(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[h(e(Dt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Nt,{id:"full-screen"}),h(Ft,{id:"header-notice"}),h(O,{trigger:"click"},{dropdown:x(()=>[h(le,{onClick:e(V)},{default:x(()=>[h(W,{icon:e(Wt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(ie,{class:"logout"},{default:x(()=>[h(le,{onClick:e(d)},{default:x(()=>[h(W,{icon:e(Ut),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",cs,[v("img",{src:e(y),style:ae(e(_))},null,12,us),e(m)?(f(),C("p",ds,q(e(m)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:$[1]||($[1]=(...te)=>e(l)&&e(l)(...te))},[h(W,{icon:e(gt)},null,8,["icon"])],8,hs)])])),[[j,e(Ce)().wholeMenus.length===0]])}}}),ps=ue(fs,[["__scopeId","data-v-3bf860c7"]]),ms={key:0},vs=ee({__name:"index",setup(u){const{t:a}=Re(),i=Z(),{isDark:p}=un(),{layout:s}=Yn(),t=cn(),n=qt(),{$storage:r}=it(),o=Lt({sidebar:z(()=>Be().sidebar),device:z(()=>Be().device),fixedHeader:z(()=>n.fixedHeader),classes:z(()=>({hideSidebar:!o.sidebar.opened,openSidebar:o.sidebar.opened,withoutAnimation:o.sidebar.withoutAnimation,mobile:o.device==="mobile"})),hideTabs:z(()=>r==null?void 0:r.configure.hideTabs)});function d(y){var g,_,V,b,L,R;window.document.body.setAttribute("layout",y),r.layout={layout:`${y}`,theme:(g=r.layout)==null?void 0:g.theme,darkMode:(_=r.layout)==null?void 0:_.darkMode,sidebarStatus:(V=r.layout)==null?void 0:V.sidebarStatus,epThemeColor:(b=r.layout)==null?void 0:b.epThemeColor,themeColor:(L=r.layout)==null?void 0:L.themeColor,overallStyle:(R=r.layout)==null?void 0:R.overallStyle}}function l(y,g){Be().toggleDevice(y),Be().toggleSideBar(g,"resize")}let c=!0;vt(i,y=>{if(t)return;const g=y[0],[{inlineSize:_,blockSize:V}]=g.borderBoxSize;Be().setViewportSize({width:_,height:V}),_<=760?d("vertical"):d(Be().layout),_>0&&_<=760?(l("mobile",!1),c=!0):_>760&&_<=990?c&&(l("desktop",!1),c=!1):_>990&&!o.sidebar.isClickCollapse?(l("desktop",!0),c=!0):(l("desktop",!1),c=!1)}),Fe(()=>{t&&l("mobile",!1)}),dn(()=>{var y;Pt().dataThemeChange((y=r.layout)==null?void 0:y.overallStyle)});const m=ee({name:"LayHeader",render(){return rt("div",{class:{"fixed-header":o.fixedHeader},style:[o.hideTabs&&s.value.includes("horizontal")?p.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!n.hiddenSideBar&&(s.value.includes("vertical")||s.value.includes("mix"))?rt(ll):null,!n.hiddenSideBar&&s.value.includes("horizontal")?rt(ps):null,rt(Uo)]})}});return(y,g)=>{const _=I("el-backtop"),V=I("el-scrollbar");return f(),C("div",{ref_key:"appWrapperRef",ref:i,class:J(["app-wrapper",o.classes])},[oe(v("div",{class:"app-mask",onClick:g[0]||(g[0]=b=>e(Be)().toggleSideBar())},null,512),[[ge,o.device==="mobile"&&o.sidebar.opened&&e(s).includes("vertical")]]),oe(h(os,null,null,512),[[ge,!e(n).hiddenSideBar&&(e(s).includes("vertical")||e(s).includes("mix"))]]),v("div",{class:J(["main-container",e(n).hiddenSideBar?"main-hidden":""])},[o.fixedHeader?(f(),C("div",ms,[h(e(m)),h(on,{"fixed-header":o.fixedHeader},null,8,["fixed-header"])])):(f(),E(V,{key:1},{default:x(()=>[h(_,{title:e(a)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:x(()=>[h(e(hn))]),_:1},8,["title"]),h(e(m)),h(on,{"fixed-header":o.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),h(Ol)],2)}}}),Ds=ue(vs,[["__scopeId","data-v-29796f23"]]);export{Ds as default};