var vn=Object.defineProperty,gn=Object.defineProperties;var _n=Object.getOwnPropertyDescriptors;var Wt=Object.getOwnPropertySymbols;var yn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable;var Ut=(a,t,u)=>t in a?vn(a,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):a[t]=u,vt=(a,t)=>{for(var u in t||(t={}))yn.call(t,u)&&Ut(a,u,t[u]);if(Wt)for(var u of Wt(t))wn.call(t,u)&&Ut(a,u,t[u]);return a},gt=(a,t)=>gn(a,_n(t));var at=(a,t,u)=>new Promise((p,r)=>{var n=l=>{try{c(u.next(l))}catch(h){r(h)}},o=l=>{try{c(u.throw(l))}catch(h){r(h)}},c=l=>l.done?p(l.value):Promise.resolve(l.value).then(n,o);c((u=u.apply(a,t)).next())});import{fZ as xn,f_ as bn,as as Cn,at as kn,av as je,a1 as he,k as _,e as i,g as m,a as R,au as He,aw as nt,p as H,f$ as Ve,r as It,g0 as me,g1 as ln,g2 as Kt,m as qe,ab as ze,Z as Tt,ah as $t,ad as zt,g3 as Qe,u as e,g4 as ut,b2 as We,_ as ce,aP as Sn,d as J,g5 as bt,g6 as Mn,a8 as Ce,g7 as an,n as Le,y as Lt,i as X,z as oe,f,$ as ye,h as S,s as le,F as ue,l as we,q as Te,v as Z,t as q,w as b,el as At,j as se,b as O,g8 as _t,g9 as In,a$ as Ze,x as Ke,aQ as pt,aR as sn,U as $e,R as Re,aX as Tn,M as Ct,ag as $n,ga as yt,bk as zn,aE as Ln,X as rn,bp as ke,A as Ye,gb as Vt,gc as dt,K as An,O as ht,gd as it,aY as kt,ge as Yt,L as rt,af as cn,Y as un,o as Vn,W as tt,gf as Hn,aK as Rn,bo as Bn,du as En,a4 as Xt}from"./index-CT5luEdk.js";import{u as Ht,a as On}from"./useDataThemeChange-BrmBImJ3.js";import{u as Pe}from"./app-DlSPARaH.js";import{e as _e}from"./mitt-E5P-NQ8u.js";import{R as Dn}from"./refresh-right-DtrVVLHj.js";import{C as ft}from"./close-CanEXtDx.js";import{A as Pn}from"./arrow-right-s-line-CeL98Gsv.js";import{l as qn,P as Rt,_ as Fn,M as Nn}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-Dn9jUU0L.js";import{u as Se,a as Bt,g as Et,d as Wn,b as Un}from"./dark-BPmyKDrp.js";import{m as Kn}from"./index-wh3GpahJ.js";import{u as St}from"./epTheme-BiOdeLYt.js";import{u as Ae}from"./hooks-CYklVeTM.js";import{S as Yn}from"./sortable.esm-VSgMS8pS.js";import{C as Je}from"./check-DaPd_A3B.js";import{B as dn}from"./back_top-4FchcGlr.js";import{R as wt}from"./index-DSOooH8y.js";import{R as Gt}from"./index-Bu_VGxnY.js";import"./user-DNtD0Fqa.js";const Xn='',Gn='',jn='',Qn='',Zn='',Jn='',eo='',to='',no='',oo='',lo='',ao='',so='',ro='',io='',co='',uo='',ho='',fo='',po='',mo='',vo='',go='',_o='',yo='',wo='',xo='',bo='',Co='',ko='',So='',Mo='',Io='',To='',$o='',zo=[["ep/menu",Xn],["ep/edit",Gn],["ep/guide",jn],["ep/set-up",Qn],["ep/monitor",Zn],["ep/lollipop",Jn],["ep/histogram",eo],["ep/home-filled",to],["ri/mind-map",no],["ri/admin-fill",oo],["ri/table-line",lo],["ri/links-fill",ao],["ri/admin-line",so],["ri/list-check",ro],["ri/search-line",io],["ri/window-line",co],["ri/ubuntu-fill",uo],["ri/history-fill",ho],["ri/edit-box-line",fo],["ri/code-box-line",po],["ri/artboard-line",mo],["ri/markdown-line",vo],["ri/file-info-line",go],["ri/bank-card-line",_o],["ri/file-ppt-2-line",yo],["ri/git-branch-line",wo],["ri/settings-3-line",xo],["ri/user-voice-line",bo],["ri/bookmark-2-line",Co],["ri/file-search-line",ko],["ri/chat-search-line",So],["ri/information-line",Mo],["ri/terminal-window-line",Io],["ri/checkbox-circle-line",To],["ri/bar-chart-horizontal-line",$o]];zo.forEach(([a,t])=>{xn(a,bn(t))});const Lo=Cn("pure-setting",{state:()=>({title:je().Title,fixedHeader:je().FixedHeader,hiddenSideBar:je().HiddenSideBar}),getters:{getTitle(a){return a.title},getFixedHeader(a){return a.fixedHeader},getHiddenSideBar(a){return a.hiddenSideBar}},actions:{CHANGE_SETTING({key:a,value:t}){Reflect.has(this,a)&&(this[a]=t)},changeSetting(a){this.CHANGE_SETTING(a)}}});function Ot(){return Lo(kn)}const Ao={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Vo(a,t){return i(),_("svg",Ao,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M5 11v2h14v-2z"},null,-1)]))}const Ho=he({name:"ri-subtract-line",render:Vo}),Ro={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Bo(a,t){return i(),_("svg",Ro,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5zm6-11v9h-2V6H5V4h14v2z"},null,-1)]))}const Eo=he({name:"ri-text-spacing",render:Bo}),Oo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Do(a,t){return i(),_("svg",Oo,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5zM9 5a2 2 0 1 0 0 4zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2z"},null,-1)]))}const Po=he({name:"ri-text-direction-l",render:Do}),qo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Fo(a,t){return i(),_("svg",qo,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5zM9 5a2 2 0 1 0 0 4zM7 17h12v2H7v2.5L3 18l4-3.5z"},null,-1)]))}const No=he({name:"ri-text-direction-r",render:Fo});function hn(){var ae,re;const a=zt(),t=$t(),u=Tt(),p=Ot(),r=R(0),n=R(0),o=R(0),c=R(!1),l=R(-1),h=R({}),s=R(!1),d=R(((ae=He().getItem(`${nt()}configure`))==null?void 0:ae.showModel)||"smart"),v=(re=R(He().getItem(`${nt()}configure`).hideTabs))!=null?re:R("false"),y=H(()=>Ve().multiTags),g=It([{icon:Dn,text:me("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:ft,text:me("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:No,text:me("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:Po,text:me("buttons.pureCloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:Eo,text:me("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:Ho,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 w(B,Q,te){var xe,Be;return Kt((xe=a==null?void 0:a.meta)==null?void 0:xe.showLink)&&((Be=a==null?void 0:a.meta)==null?void 0:Be.showLink)===!1?Object.keys(a.query).length>0?Qe(a.query,B.query)?Q:te:Qe(a.params,B.params)?Q:te:a.path===B.path?Q:te}const z=H(()=>B=>{var Q,te;return Kt((Q=B==null?void 0:B.meta)==null?void 0:Q.fixedTag)&&((te=B==null?void 0:B.meta)==null?void 0:te.fixedTag)===!0}),x=H(()=>(B,Q)=>{if(Q!==0)return w(B,!0,!1)}),L=H(()=>B=>w(B,"is-active","")),E=H(()=>B=>w(B,"schedule-active","")),D=H(()=>({transform:`translateX(${o.value}px)`,transition:s.value?"none":"transform 0.5s ease-in-out"})),G=H(()=>({left:n.value+"px",top:r.value+"px"})),W=()=>{c.value=!1};function M(B){if(B&&(l.value=B),e(d)==="smart"){if(ut(u.refs["schedule"+B][0],"schedule-active"))return;We(!0,"schedule-in",u.refs["schedule"+B][0]),We(!1,"schedule-out",u.refs["schedule"+B][0])}else{if(ut(u.refs["dynamic"+B][0],"is-active"))return;We(!0,"card-in",u.refs["dynamic"+B][0]),We(!1,"card-out",u.refs["dynamic"+B][0])}}function F(B){if(l.value=-1,e(d)==="smart"){if(ut(u.refs["schedule"+B][0],"schedule-active"))return;We(!1,"schedule-in",u.refs["schedule"+B][0]),We(!0,"schedule-out",u.refs["schedule"+B][0])}else{if(ut(u.refs["dynamic"+B][0],"is-active"))return;We(!1,"card-in",u.refs["dynamic"+B][0]),We(!0,"card-out",u.refs["dynamic"+B][0])}}function U(){p.hiddenSideBar?p.changeSetting({key:"hiddenSideBar",value:!1}):p.changeSetting({key:"hiddenSideBar",value:!0})}return qe(()=>{if(!d.value){const B=He().getItem(`${nt()}configure`);B.showModel="card",He().setItem(`${nt()}configure`,B)}}),{Close:ft,route:a,router:t,visible:c,showTags:v,instance:u,multiTags:y,showModel:d,tagsViews:g,buttonTop:r,buttonLeft:n,translateX:o,isFixedTag:z,pureSetting:p,activeIndex:l,getTabStyle:D,isScrolling:s,iconIsActive:x,linkIsActive:L,currentSelect:h,scheduleIsActive:E,getContextMenuStyle:G,$t:me,closeMenu:W,onMounted:qe,onMouseenter:M,onMouseleave:F,transformI18n:ze,onContentFullScreen:U}}const Wo={},Uo={class:"w-full h-full"};function Ko(a,t){return i(),_("svg",Uo,t[0]||(t[0]=[Sn('',3)]))}const Yo=ce(Wo,[["render",Ko]]),Xo={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Go(a,t){return i(),_("svg",Xo,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"},null,-1)]))}const jo=he({name:"ri-arrow-down-s-line",render:Go}),Qo={class:"arrow-left"},Zo=["onContextmenu","onMouseenter","onMouseleave","onClick"],Jo={class:"tag-title dark:text-text_color_primary! dark:hover:text-primary!"},el=["onClick"],tl={key:1,class:"chrome-tab"},nl={class:"chrome-tab__bg"},ol={class:"tag-title"},ll=["onClick"],al={class:"arrow-right"},sl=["onClick"],rl={class:"arrow-down"},il=J({__name:"index",setup(a){var j;const{Close:t,route:u,router:p,visible:r,showTags:n,instance:o,multiTags:c,tagsViews:l,buttonTop:h,buttonLeft:s,showModel:d,translateX:v,isFixedTag:y,pureSetting:g,activeIndex:w,getTabStyle:z,isScrolling:x,iconIsActive:L,linkIsActive:E,currentSelect:D,scheduleIsActive:G,getContextMenuStyle:W,closeMenu:M,onMounted:F,onMouseenter:U,onMouseleave:ae,transformI18n:re,onContentFullScreen:B}=hn(),Q=R(),te=R(),xe=R(),Be=R(),Me=R(!1),Ee=(j=bt())==null?void 0:j.path,Xe=[...Mn,...Ce().flatteningRoutes.filter(C=>{var $;return($=C==null?void 0:C.meta)==null?void 0:$.fixedTag})],Ie=()=>at(this,null,function*(){yield Ke();const C=c.value.findIndex($=>Ze(u.query)?Ze(u.params)?u.path===$.path:Qe(u.params,$.params):Qe(u.query,$.query));Ge(C)}),Ge=C=>at(this,null,function*(){var ne,pe;yield Ke();const $=10;if(!o.refs["dynamic"+C])return;const V=o.refs["dynamic"+C][0],Y=V==null?void 0:V.offsetLeft,ie=V==null?void 0:V.offsetWidth,N=xe.value?(ne=xe.value)==null?void 0:ne.offsetWidth:0,K=Q.value?(pe=Q.value)==null?void 0:pe.offsetWidth:0;N<=K?Me.value=!0:Me.value=!1,K-v.value&&Y+ie<-v.value+N?v.value=Math.min(0,N-ie-Y-$):v.value=-(Y-(N-$-ie))}),Oe=C=>{var Y;const $=xe.value?(Y=xe.value)==null?void 0:Y.offsetWidth:0,V=Q.value?Q.value.offsetWidth:0;C>0?v.value=Math.min(0,v.value+C):$=-(V-$)&&(v.value=Math.max(v.value+C,$-V)):v.value=0,x.value=!1},Fe=C=>{x.value=!0;const $=Math.abs(C.deltaX)+Math.abs(C.deltaY);let V=0;C.deltaX<0?V=$>0?$:100:V=$>0?-$:-100,et(V)},et=C=>{let V=Math.abs(C);const Y=()=>{const ie=Math.sign(C)*Math.min(20,V);Oe(ie),V-=Math.abs(ie),V>0&&requestAnimationFrame(Y)};requestAnimationFrame(Y)};function T(C){const $=c.value.some(Y=>Y.path===C);function V(Y,ie){$||Y.forEach(N=>{N.path===ie?Ve().handleTags("push",{path:ie,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&V(N.children,ie)})}V(p.options.routes,C)}function A(){const{fullPath:C,query:$}=e(u);p.replace({path:"/redirect"+C,query:$}),_t(u,"refresh")}function P(C,$,V){var K,ne,pe,lt;const Y=c.value.findIndex(be=>{if(be.query){if(be.path===C.path)return be.query===C.query}else if(be.params){if(be.path===C.path)return be.params===C.params}else return be.path===C.path}),ie=(be,ge,ct)=>{ct?Ve().handleTags("equal",[Xe,C].flat()):Ve().handleTags("splice","",{startIndex:be,length:ge}),Ie()};V==="other"?ie(1,1,!0):V==="left"?ie(Xe.length,Y-1,!0):V==="right"?ie(Y+1,c.value.length):ie(Y,1);const N=Ve().handleTags("slice");if($===u.path){if(V==="left")return;(K=N[0])!=null&&K.query?p.push({name:N[0].name,query:N[0].query}):(ne=N[0])!=null&&ne.params?p.push({name:N[0].name,params:N[0].params}):p.push({path:N[0].path})}else{if(!c.value.length||c.value.some(be=>be.path===u.path))return;(pe=N[0])!=null&&pe.query?p.push({name:N[0].name,query:N[0].query}):(lt=N[0])!=null&<.params?p.push({name:N[0].name,params:N[0].params}):p.push({path:N[0].path})}}function ee(C,$){P(C,C.path,$),_t(u)}function I(C,$,V){if($&&$.disabled)return;let Y;switch(V?Y={path:V.path,meta:V.meta,name:V.name,query:V==null?void 0:V.query,params:V==null?void 0:V.params}:Y={path:u.path,meta:u.meta},C){case 0:A();break;case 1:ee(Y);break;case 2:ee(Y,"left");break;case 3:ee(Y,"right");break;case 4:ee(Y,"other");break;case 5:Ve().handleTags("splice","",{startIndex:Xe.length,length:c.value.length}),p.push(Ee),_t(u);break;case 6:B(),setTimeout(()=>{g.hiddenSideBar?(l[6].icon=In,l[6].text=me("buttons.pureContentExitFullScreen")):(l[6].icon=ln,l[6].text=me("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{ve(u.fullPath,u.query)})}function k(C){const{key:$,item:V}=C;I($,V)}function de(C,$){M(),I(C,$,D.value)}function fe(C){Array.of(1,2,3,4,5).forEach($=>{l[$].show=C})}function Ne(C,$=!1){Array.of(1,2,3,4,5).forEach(V=>{l[V].disabled=C}),$&&(l[2].show=!1,l[2].disabled=!0)}function ve(C,$={},V=!1){var ne,pe,lt,be;const Y=c.value,ie=c.value.length;let N=-1;Ze($)?N=Y.findIndex(ge=>ge.path===C):N=Y.findIndex(ge=>Qe(ge.query,$));function K(){var ge,ct;(ct=(ge=Y[N])==null?void 0:ge.meta)!=null&&ct.fixedTag&&Array.of(1,2,3,4,5).forEach(mn=>{l[mn].disabled=!0})}fe(!0),V&&(l[0].show=!0),N===1&&ie!==2?(l[2].show=!1,Array.of(1,3,4,5).forEach(ge=>{l[ge].disabled=!1}),l[2].disabled=!0,K()):N===1&&ie===2?(Ne(!1),Array.of(2,3,4).forEach(ge=>{l[ge].show=!1,l[ge].disabled=!0}),K()):ie-1===N&&N!==0?(l[3].show=!1,Array.of(1,2,4,5).forEach(ge=>{l[ge].disabled=!1}),l[3].disabled=!0,(pe=(ne=Y[N-1])==null?void 0:ne.meta)!=null&&pe.fixedTag&&(l[2].show=!1,l[2].disabled=!0),K()):N===0||C===`/redirect${Ee}`?Ne(!0):(Ne(!1,(be=(lt=Y[N-1])==null?void 0:lt.meta)==null?void 0:be.fixedTag),K())}function ot(C,$){var ne;M(),C.path===Ee||(ne=C==null?void 0:C.meta)!=null&&ne.fixedTag?(fe(!1),l[0].show=!0):u.path!==C.path&&u.name!==C.name?(l[0].show=!1,ve(C.path,C.query)):c.value.length===2&&u.path!==C.path?(fe(!0),l[4].show=!1):u.path===C.path&&ve(C.path,C.query,!0),D.value=C;const V=140,Y=e(te).getBoundingClientRect().left,N=e(te).offsetWidth-V,K=$.clientX-Y+5;K>N?s.value=N:s.value=K,Ot().hiddenSideBar?h.value=$.clientY:h.value=$.clientY-40,Ke(()=>{r.value=!0})}function mt(C){const{name:$,path:V}=C;$?C.query?p.push({name:$,query:C.query}):C.params?p.push({name:$,params:C.params}):p.push({name:$}):p.push({path:V}),_e.emit("tagOnClick",C)}return an(Be,M,{detectIframe:!0}),Le(u,()=>{w.value=-1,Ie()}),F(()=>{o&&(ve(u.fullPath),_e.on("tagViewsChange",C=>{e(n)!==C&&(n.value=C)}),_e.on("tagViewsShowModel",C=>{d.value=C}),_e.on("changLayoutRoute",C=>{T(C),setTimeout(()=>{ve(C)})}),pt(xe,Ie),sn().then(()=>Ie()))}),Lt(()=>{_e.off("tagViewsChange"),_e.off("tagViewsShowModel"),_e.off("changLayoutRoute")}),(C,$)=>{const V=S("IconifyIconOffline"),Y=S("el-dropdown-item"),ie=S("el-dropdown-menu"),N=S("el-dropdown");return e(n)?X("",!0):(i(),_("div",{key:0,ref_key:"containerDom",ref:te,class:"tags-view"},[oe(m("span",Qo,[f(V,{icon:e(qn),onClick:$[0]||($[0]=K=>Oe(200))},null,8,["icon"])],512),[[ye,Me.value]]),m("div",{ref_key:"scrollbarDom",ref:xe,class:Z(["scroll-container",e(d)==="chrome"&&"chrome-scroll-container"]),onWheel:Te(Fe,["prevent"])},[m("div",{ref_key:"tabDom",ref:Q,class:"tab select-none",style:le(e(z))},[(i(!0),_(ue,null,we(e(c),(K,ne)=>(i(),_("div",{ref_for:!0,ref:"dynamic"+ne,key:ne,class:Z(["scroll-item is-closable",e(E)(K),e(d)==="chrome"&&"chrome-item",e(y)(K)&&"fixed-tag"]),onContextmenu:Te(pe=>ot(K,pe),["prevent"]),onMouseenter:Te(pe=>e(U)(ne),["prevent"]),onMouseleave:Te(pe=>e(ae)(ne),["prevent"]),onClick:pe=>mt(K)},[e(d)!=="chrome"?(i(),_(ue,{key:0},[m("span",Jo,q(e(re)(K.meta.title)),1),!e(y)(K)&&(e(L)(K,ne)||ne===e(w)&&ne!==0)?(i(),_("span",{key:0,class:"el-icon-close",onClick:Te(pe=>ee(K),["stop"])},[f(V,{icon:e(t)},null,8,["icon"])],8,el)):X("",!0),e(d)!=="card"?(i(),_("span",{key:1,ref_for:!0,ref:"schedule"+ne,class:Z([e(G)(K)])},null,2)):X("",!0)],64)):(i(),_("div",tl,[m("div",nl,[f(Yo)]),m("span",ol,q(e(re)(K.meta.title)),1),!e(y)(K)&&ne!==0?(i(),_("span",{key:0,class:"chrome-close-btn",onClick:Te(pe=>ee(K),["stop"])},[f(V,{icon:e(t)},null,8,["icon"])],8,ll)):X("",!0),$[2]||($[2]=m("span",{class:"chrome-tab-divider"},null,-1))]))],42,Zo))),128))],4)],34),oe(m("span",al,[f(V,{icon:e(Pn),onClick:$[1]||($[1]=K=>Oe(-200))},null,8,["icon"])],512),[[ye,Me.value]]),f(At,{name:"el-zoom-in-top"},{default:b(()=>[oe((i(),_("ul",{ref_key:"contextmenuRef",ref:Be,key:Math.random(),style:le(e(W)),class:"contextmenu"},[(i(!0),_(ue,null,we(e(l).slice(0,6),(K,ne)=>(i(),_("div",{key:ne,style:{display:"flex","align-items":"center"}},[K.show?(i(),_("li",{key:0,onClick:pe=>de(ne,K)},[f(V,{icon:K.icon},null,8,["icon"]),se(" "+q(e(re)(K.text)),1)],8,sl)):X("",!0)]))),128))],4)),[[ye,e(r)]])]),_:1}),f(N,{trigger:"click",placement:"bottom-end",onCommand:k},{dropdown:b(()=>[f(ie,null,{default:b(()=>[(i(!0),_(ue,null,we(e(l),(K,ne)=>(i(),O(Y,{key:ne,command:{key:ne,item:K},divided:K.divided,disabled:K.disabled},{default:b(()=>[f(V,{icon:K.icon},null,8,["icon"]),se(" "+q(e(re)(K.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:b(()=>[m("span",rl,[f(V,{icon:e(jo),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),cl=ce(il,[["__scopeId","data-v-3fd67f18"]]);function ul(a=!1){const t=R(a);function u(o){t.value=o}function p(){u(!0)}function r(){u(!1)}function n(){u(!t.value)}return{bool:t,setBool:u,setTrue:p,setFalse:r,toggle:n}}const dl={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"};function hl(a,t){return i(),_("svg",dl,t[0]||(t[0]=[m("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 fn={render:hl},fl=["onMouseenter"],pl={class:"result-item-title"},ml=J({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(a,{expose:t,emit:u}){const p=R(),r=R(),n=u,o=Tt(),c=a,l=H(()=>g=>({background:(g==null?void 0:g.path)===h.value?St().epThemeColor:"",color:g.path===h.value?"#fff":"",fontSize:g.path===h.value?"16px":"14px"})),h=H({get(){return c.value},set(g){n("update:value",g)}});function s(g){return at(this,null,function*(){h.value=g.path})}function d(){n("enter")}function v(){r.value=window.innerHeight-window.innerHeight/10-140}pt(p,v);function y(g){var L;const w=(L=o==null?void 0:o.proxy)==null?void 0:L.$refs[`resultItemRef${g}`];if(!w)return 0;const x=w[0].offsetTop+128;return x>r.value?x-r.value:0}return qe(()=>{v()}),t({handleScroll:y}),(g,w)=>(i(),_("div",{ref_key:"resultRef",ref:p,class:"result"},[(i(!0),_(ue,null,we(g.options,(z,x)=>{var L,E;return i(),_("div",{key:z.path,ref_for:!0,ref:"resultItemRef"+x,class:"result-item dark:bg-[#1d1d1d]",style:le(l.value(z)),onClick:d,onMouseenter:D=>s(z)},[(i(),O($e(e(Ae)((L=z.meta)==null?void 0:L.icon)))),m("span",pl,q(e(ze)((E=z.meta)==null?void 0:E.title)),1),f(e(fn))],44,fl)}),128))],512))}}),vl=ce(ml,[["__scopeId","data-v-274aad60"]]),gl={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--mdi",viewBox:"0 0 24 24"};function _l(a,t){return i(),_("svg",gl,t[0]||(t[0]=[m("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 yl={render:_l},wl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function xl(a,t){return i(),_("svg",wl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M13 7.828V20h-2V7.828l-5.364 5.364l-1.414-1.414L12 4l7.778 7.778l-1.414 1.414z"},null,-1)]))}const bl=he({name:"ri-arrow-up-line",render:xl}),Cl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function kl(a,t){return i(),_("svg",Cl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2z"},null,-1)]))}const Sl=he({name:"ri-arrow-down-line",render:kl}),Ml={class:"search-footer text-[#333] dark:text-white"},Il={class:"search-footer-item"},Tl={class:"search-footer-item"},$l={class:"search-footer-item"},zl={key:0,class:"search-footer-total"},Ll=J({__name:"SearchFooter",props:{total:{default:0}},setup(a){const{t}=Re(),{device:u}=Se();return(p,r)=>{const n=S("IconifyIconOffline");return i(),_("div",Ml,[m("span",Il,[f(e(fn),{class:"icon"}),se(" "+q(e(t)("buttons.pureConfirm")),1)]),m("span",Tl,[f(n,{icon:e(bl),class:"icon"},null,8,["icon"]),f(n,{icon:e(Sl),class:"icon"},null,8,["icon"]),se(" "+q(e(t)("buttons.pureSwitch")),1)]),m("span",$l,[f(e(yl),{class:"icon"}),se(" "+q(e(t)("buttons.pureClose")),1)]),e(u)!=="mobile"&&p.total>0?(i(),_("p",zl,q(`${e(t)("search.pureTotal")} ${p.total}`),1)):X("",!0)])}}}),Al=ce(Ll,[["__scopeId","data-v-b0b1b20e"]]),Vl={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Hl(a,t){return i(),_("svg",Vl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m512 747.84l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08l184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256l99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96l221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1)]))}const Rl=he({name:"ep-star",render:Hl}),Bl={class:"history-item-title"},El=J({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(a,{emit:t}){const u=t;function p(n){u("collectItem",n)}function r(n){u("deleteItem",n)}return(n,o)=>{var l,h;const c=S("IconifyIconOffline");return i(),_(ue,null,[(i(),O($e(e(Ae)((l=n.item.meta)==null?void 0:l.icon)))),m("span",Bl,q(e(ze)((h=n.item.meta)==null?void 0:h.title)),1),oe(f(c,{icon:e(Rl),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:o[0]||(o[0]=Te(s=>p(n.item),["stop"]))},null,8,["icon"]),[[ye,n.item.type==="history"]]),f(c,{icon:e(ft),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:o[1]||(o[1]=Te(s=>r(n.item),["stop"]))},null,8,["icon"])],64)}}}),jt=ce(El,[["__scopeId","data-v-0fffa7d8"]]),Ol=["onMouseenter"],Dl={class:"collect-container"},Pl=["onMouseenter"],ql=J({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(a,{expose:t,emit:u}){const p=R(),r=R(),n=R(!1),{t:o}=Re(),c=u,l=Tt(),h=a,s=H(()=>M=>({background:(M==null?void 0:M.path)===v.value?St().epThemeColor:"",color:M.path===v.value?"#fff":"",fontSize:M.path===v.value?"16px":"14px"})),d=H(()=>({color:St().epThemeColor,fontWeight:500})),v=H({get(){return h.value},set(M){c("update:value",M)}});Le(()=>h.value,M=>{M&&n.value&&sn(100).then(()=>n.value=!1)});const y=H(()=>h.options.filter(M=>M.type==="history")),g=H(()=>h.options.filter(M=>M.type==="collect"));function w(M){c("collect",M)}function z(M){n.value=!0,c("delete",M)}function x(M){return at(this,null,function*(){n.value||(v.value=M.path)})}function L(){c("enter")}function E(){r.value=window.innerHeight-window.innerHeight/10-140}pt(p,E);function D(M){var re;const F=(re=l==null?void 0:l.proxy)==null?void 0:re.$refs[`historyItemRef${M}`];if(!F)return 0;const ae=(Tn(F)?F[0]:F).offsetTop+128;return ae>r.value?ae-r.value:0}const G=M=>{c("drag",{oldIndex:M.oldIndex,newIndex:M.newIndex})};let W=null;return Le(g,M=>{M.length>1&&Ke(()=>{const F=document.querySelector(".collect-container");!F||W||(W=Yn.create(F,{animation:160,onStart:U=>{U.item.style.cursor="move"},onEnd:U=>{U.item.style.cursor="pointer"},onUpdate:G}),E())})},{deep:!0,immediate:!0}),t({handleScroll:D}),(M,F)=>(i(),_("div",{ref_key:"historyRef",ref:p,class:"history"},[y.value.length?(i(),_(ue,{key:0},[m("div",{style:le(d.value)},q(e(o)("search.pureHistory")),5),(i(!0),_(ue,null,we(y.value,(U,ae)=>(i(),_("div",{key:U.path,ref_for:!0,ref:"historyItemRef"+ae,class:"history-item dark:bg-[#1d1d1d]",style:le(s.value(U)),onClick:L,onMouseenter:re=>x(U)},[f(jt,{item:U,onDeleteItem:z,onCollectItem:w},null,8,["item"])],44,Ol))),128))],64)):X("",!0),g.value.length?(i(),_(ue,{key:1},[m("div",{style:le(d.value)},q(`${e(o)("search.pureCollect")}${g.value.length>1?e(o)("search.pureDragSort"):""}`),5),m("div",Dl,[(i(!0),_(ue,null,we(g.value,(U,ae)=>(i(),_("div",{key:U.path,ref_for:!0,ref:"historyItemRef"+(ae+y.value.length),class:"history-item dark:bg-[#1d1d1d]",style:le(s.value(U)),onClick:L,onMouseenter:re=>x(U)},[f(jt,{item:U,onDeleteItem:z},null,8,["item"])],44,Pl))),128))])],64)):X("",!0)],512))}}),Fl=ce(ql,[["__scopeId","data-v-f7a9d807"]]),Nl={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Wl(a,t){return i(),_("svg",Nl,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.98 6.98 0 0 0 4.875-1.975z"},null,-1)]))}const Ul=he({name:"ri-search-line",render:Wl}),Kl={class:"search-content"},Qt="history",Yl="collect",De="menu-search-history",Ue="menu-search-collect",Xl=J({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(a,{emit:t}){const{device:u}=Se(),p=t,r=a,n=$t(),{t:o,locale:c}=Re(),l=R(""),h=R(),s=R(),d=R(),v=R(""),y=R(""),g=Ct([]),w=Ct([]),z=zn(re,300),x=je().MenuSearchHistory,L=R(null),E=H(()=>$n(Ce().wholeMenus)),D=H({get(){return r.value},set(T){p("update:value",T)}});Le(()=>r.value,T=>{T&&Fe()});const G=H(()=>l.value&&g.value.length>0),W=H(()=>!l.value&&w.value.length>0),M=H(()=>!l.value&&w.value.length===0||l.value&&g.value.length===0);function F(T){return He().getItem(T)||[]}function U(T,A){He().setItem(T,A)}function ae(T){const A=[];function P(ee){ee.forEach(I=>{A.push(I),I.children&&P(I.children)})}return P(T),A}function re(){var A;const T=ae(E.value);g.value=T.filter(P=>{var ee,I;return l.value?ze((ee=P.meta)==null?void 0:ee.title).toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim())||c.value==="zh"&&!Ze(Kn(ze((I=P.meta)==null?void 0:I.title).toLocaleLowerCase(),l.value.toLocaleLowerCase().trim())):!1}),v.value=((A=g.value)==null?void 0:A.length)>0?g.value[0].path:""}function B(){D.value=!1,setTimeout(()=>{g.value=[],y.value="",l.value=""},200)}function Q(T){const P=(g.value.length?h.value:s.value).handleScroll(T);d.value.setScrollTop(P)}function te(){const T=g.value.length>0,A=T?g.value:w.value,P=T?v.value:y.value;return{options:A,currentPath:P,isResultOptions:T}}function xe(T,A){A?v.value=g.value[T].path:y.value=w.value[T].path,Q(T)}function Be(){const{options:T,currentPath:A,isResultOptions:P}=te();if(T.length===0)return;const I=(T.findIndex(k=>k.path===A)-1+T.length)%T.length;xe(I,P)}function Me(){const{options:T,currentPath:A,isResultOptions:P}=te();if(T.length===0)return;const I=(T.findIndex(k=>k.path===A)+1)%T.length;xe(I,P)}function Ee(){const{options:T,currentPath:A,isResultOptions:P}=te();if(T.length===0||A==="")return;const ee=T.findIndex(I=>I.path===A);ee!==-1&&(P?Ge():Oe(),n.push(T[ee].path),B())}function Xe(T){const A=T.type===Qt?De:Ue;let P=F(A);P=P.filter(ee=>ee.path!==T.path),U(A,P),Fe()}function Ie(T){let A=F(De),P=F(Ue);A=A.filter(ee=>ee.path!==T.path),U(De,A),P.some(ee=>ee.path===T.path)||(P.unshift(gt(vt({},T),{type:Yl})),U(Ue,P)),Fe()}function Ge(){const{path:T,meta:A}=g.value.find(de=>de.path===v.value),P=F(De),I=F(Ue).some(de=>de.path===T),k=P.findIndex(de=>de.path===T);I||(k!==-1&&P.splice(k,1),P.length>=x&&P.pop(),P.unshift({path:T,meta:A,type:Qt}),He().setItem(De,P))}function Oe(){let T=F(De);const A=T.findIndex(P=>P.path===y.value);if(A!==-1){const[P]=T.splice(A,1);T.unshift(P),U(De,T)}}function Fe(){var P;const T=F(De),A=F(Ue);w.value=[...T,...A],y.value=(P=w.value[0])==null?void 0:P.path}function et(T){const A=F(Ue),[P]=A.splice(T.oldIndex,1);A.splice(T.newIndex,0,P),He().setItem(Ue,A),w.value=[...F(De),...F(Ue)],y.value=P.path}return yt("Enter",Ee),yt("ArrowUp",Be),yt("ArrowDown",Me),(T,A)=>{const P=S("IconifyIconOffline"),ee=S("el-input"),I=S("el-empty"),k=S("el-scrollbar"),de=S("el-dialog");return i(),O(de,{modelValue:D.value,"onUpdate:modelValue":A[3]||(A[3]=fe=>D.value=fe),top:"5vh",class:"pure-search-dialog","show-close":!1,width:e(u)==="mobile"?"80vw":"40vw","before-close":B,style:{borderRadius:"6px"},"append-to-body":"",onOpened:A[4]||(A[4]=fe=>L.value.focus()),onClosed:A[5]||(A[5]=fe=>L.value.blur())},{footer:b(()=>[f(Al,{total:g.value.length},null,8,["total"])]),default:b(()=>[f(ee,{ref_key:"inputRef",ref:L,modelValue:l.value,"onUpdate:modelValue":A[0]||(A[0]=fe=>l.value=fe),size:"large",clearable:"",placeholder:e(o)("search.purePlaceholder"),onInput:e(z)},{prefix:b(()=>[f(P,{icon:e(Ul),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),m("div",Kl,[f(k,{ref_key:"scrollbarRef",ref:d,"max-height":"calc(90vh - 140px)"},{default:b(()=>[M.value?(i(),O(I,{key:0,description:e(o)("search.pureEmpty")},null,8,["description"])):X("",!0),W.value?(i(),O(Fl,{key:1,ref_key:"historyRef",ref:s,value:y.value,"onUpdate:value":A[1]||(A[1]=fe=>y.value=fe),options:w.value,onClick:Ee,onDelete:Xe,onCollect:Ie,onDrag:et},null,8,["value","options"])):X("",!0),G.value?(i(),O(vl,{key:2,ref_key:"resultRef",ref:h,value:v.value,"onUpdate:value":A[2]||(A[2]=fe=>v.value=fe),options:g.value,onClick:Ee},null,8,["value","options"])):X("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Gl=ce(Xl,[["__scopeId","data-v-a7da6120"]]),Dt=J({__name:"index",setup(a){const{bool:t,toggle:u}=ul();function p(){u()}return(r,n)=>{const o=S("IconifyIconOffline");return i(),_("div",null,[m("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:p},[f(o,{icon:"ri/search-line"})]),f(Gl,{value:e(t),"onUpdate:value":n[0]||(n[0]=c=>Ln(t)?t.value=c:null)},null,8,["value"])])}}}),Zt=[{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")}],jl={class:"notice-container border-0 border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Ql={class:"notice-container-text"},Zl={class:"notice-text-title text-[#000000d9] dark:text-white"},Jl={class:"notice-text-datetime text-[#00000073] dark:text-white"},ea=J({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(a){const t=R(null),u=R(!1),p=R(null),r=R(!1),{tooltipEffect:n}=Se(),o=rn();function c(){Ke(()=>{var h,s;((h=t.value)==null?void 0:h.scrollWidth)>((s=t.value)==null?void 0:s.clientWidth)?u.value=!0:u.value=!1})}function l(h,s){const d=document.createElement("span");d.innerText=s,d.className="getDescriptionWidth",document.querySelector("body").appendChild(d);const v=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const y=h.target.offsetWidth;v>2*y?r.value=!0:r.value=!1}return(h,s)=>{var g,w;const d=S("el-avatar"),v=S("el-tooltip"),y=S("el-tag");return i(),_("div",jl,[a.noticeItem.avatar?(i(),O(d,{key:0,size:30,src:a.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):X("",!0),m("div",Ql,[m("div",Zl,[f(v,{"popper-class":"notice-title-popper",effect:e(n),disabled:!u.value,content:a.noticeItem.title,placement:"top-start",enterable:!e(o)},{default:b(()=>[m("div",{ref_key:"titleRef",ref:t,class:"notice-title-content",onMouseover:c},q(a.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(g=a.noticeItem)!=null&&g.extra?(i(),O(y,{key:0,type:(w=a.noticeItem)==null?void 0:w.status,size:"small",class:"notice-title-extra"},{default:b(()=>{var z;return[se(q((z=a.noticeItem)==null?void 0:z.extra),1)]}),_:1},8,["type"])):X("",!0)]),f(v,{"popper-class":"notice-title-popper",effect:e(n),disabled:!r.value,content:a.noticeItem.description,placement:"top-start"},{default:b(()=>[m("div",{ref_key:"descriptionRef",ref:p,class:"notice-text-description",onMouseover:s[0]||(s[0]=z=>l(z,a.noticeItem.description))},q(a.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),m("div",Jl,q(a.noticeItem.datetime),1)])])}}}),ta=ce(ea,[["__scopeId","data-v-dd3c145c"]]),na={key:0},oa=J({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(a){return(t,u)=>{const p=S("el-empty");return a.list.length?(i(),_("div",na,[(i(!0),_(ue,null,we(a.list,(r,n)=>(i(),O(ta,{key:n,noticeItem:r},null,8,["noticeItem"]))),128))])):(i(),O(p,{key:1,description:e(ze)(a.emptyText)},null,8,["description"]))}}}),la={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function aa(a,t){return i(),_("svg",la,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"},null,-1),m("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"},null,-1),m("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"},null,-1)]))}const sa=he({name:"ep-bell",render:aa}),ra={class:"header-notice-icon"},ia={key:1},ca={class:"noticeList-container"},ua=J({__name:"index",setup(a){var o;const{t}=Re(),u=R(0),p=R(Zt),r=R((o=Zt[0])==null?void 0:o.key);p.value.map(c=>u.value+=c.list.length);const n=H(()=>c=>t(c.name)+(c.list.length>0?`(${c.list.length})`:""));return(c,l)=>{const h=S("IconifyIconOffline"),s=S("el-badge"),d=S("el-empty"),v=S("el-scrollbar"),y=S("el-tab-pane"),g=S("el-tabs"),w=S("el-dropdown-menu"),z=S("el-dropdown");return i(),O(z,{trigger:"click",placement:"bottom-end"},{dropdown:b(()=>[f(w,null,{default:b(()=>[f(g,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=x=>r.value=x),stretch:!0,class:"dropdown-tabs",style:le({width:p.value.length===0?"200px":"330px"})},{default:b(()=>[p.value.length===0?(i(),O(d,{key:0,description:e(t)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(i(),_("span",ia,[(i(!0),_(ue,null,we(p.value,x=>(i(),O(y,{key:x.key,label:n.value(x),name:`${x.key}`},{default:b(()=>[f(v,{"max-height":"330px"},{default:b(()=>[m("div",ca,[f(oa,{list:x.list,emptyText:x.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:b(()=>[m("span",{class:Z(["dropdown-badge","navbar-bg-hover","select-none",Number(u.value)!==0&&"mr-[10px]"])},[f(s,{value:Number(u.value)===0?"":u.value,max:99},{default:b(()=>[m("span",ra,[f(h,{icon:e(sa)},null,8,["icon"])])]),_:1},8,["value"])],2)]),_:1})}}}),Pt=ce(ua,[["__scopeId","data-v-cc85f925"]]),da={key:0,class:"flex justify-center items-center"},Mt=J({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(a){return(t,u)=>a.extraIcon?(i(),_("div",da,[(i(),O($e(e(Ae)(ke(a.extraIcon))),{class:"w-[30px] h-[30px]"}))])):X("",!0)}}),qt=J({__name:"SidebarFullScreen",setup(a){const t=R(),{toggle:u,isFullscreen:p,Fullscreen:r,ExitFullscreen:n}=Se();return p.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Le(p,o=>{t.value=o?n:r},{immediate:!0}),(o,c)=>{const l=S("IconifyIconOffline");return i(),_("span",{class:"fullscreen-icon navbar-bg-hover",onClick:c[0]||(c[0]=(...h)=>e(u)&&e(u)(...h))},[f(l,{icon:t.value},null,8,["icon"])])}}}),ha={viewBox:"0 0 24 24",width:"1em",height:"1em"};function fa(a,t){return i(),_("svg",ha,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M12 14v2a6 6 0 0 0-6 6H4a8 8 0 0 1 8-8m0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m2.595 7.811a3.5 3.5 0 0 1 0-1.622l-.992-.573l1-1.732l.992.573A3.5 3.5 0 0 1 17 14.645V13.5h2v1.145c.532.158 1.012.44 1.405.812l.992-.573l1 1.732l-.991.573a3.5 3.5 0 0 1 0 1.622l.991.573l-1 1.732l-.992-.573a3.5 3.5 0 0 1-1.405.812V22.5h-2v-1.145a3.5 3.5 0 0 1-1.405-.812l-.992.573l-1-1.732zM18 19.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3"},null,-1)]))}const Ft=he({name:"ri-user-settings-line",render:fa}),pa={viewBox:"0 0 24 24",width:"1em",height:"1em"};function ma(a,t){return i(),_("svg",pa,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.99 9.99 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.99 9.99 0 0 1 12 22m7-6v-3h-8v-2h8V8l5 4z"},null,-1)]))}const Nt=he({name:"ri-logout-circle-r-line",render:ma}),va={key:0,class:"horizontal-header"},ga={class:"select-none"},_a={class:"horizontal-header-right"},ya={class:"check-zh"},wa={class:"check-en"},xa={class:"el-dropdown-link navbar-bg-hover select-none"},ba=["src"],Ca={key:0,class:"dark:text-white"},ka=["title"],Sa=J({__name:"NavMix",setup(a){const t=R(),u=R(null),{t:p,route:r,locale:n,translationCh:o,translationEn:c}=Bt(t),{device:l,logout:h,onPanel:s,resolvePath:d,username:v,userAvatar:y,getDivStyle:g,avatarsStyle:w,toAccountSettings:z,getDropdownItemStyle:x,getDropdownItemClass:L}=Se();function E(D){var M,F,U;const G=Ce().wholeMenus,W=Vt(D,G)[0];u.value=Ze((M=r.meta)==null?void 0:M.activePath)?(U=(F=dt(W,G))==null?void 0:F.children[0])==null?void 0:U.path:r.meta.activePath}return qe(()=>{E(r.path)}),Ke(()=>{var D;(D=t.value)==null||D.handleResize()}),Le(()=>[r.path,Ce().wholeMenus],()=>{E(r.path)}),(D,G)=>{const W=S("el-menu-item"),M=S("el-menu"),F=S("IconifyIconOffline"),U=S("el-dropdown-item"),ae=S("el-dropdown-menu"),re=S("el-dropdown"),B=Ye("loading");return e(l)!=="mobile"?oe((i(),_("div",va,[f(M,{ref_key:"menuRef",ref:t,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":u.value},{default:b(()=>[(i(!0),_(ue,null,we(e(Ce)().wholeMenus,Q=>(i(),O(W,{key:Q.path,index:e(d)(Q)||Q.redirect},{title:b(()=>[ke(Q.meta.icon)?(i(),_("div",{key:0,class:Z(["sub-menu-icon",Q.meta.icon])},[(i(),O($e(e(Ae)(Q.meta&&ke(Q.meta.icon)))))],2)):X("",!0),m("div",{style:le(e(g))},[m("span",ga,q(e(ze)(Q.meta.title)),1),f(Mt,{extraIcon:Q.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),m("div",_a,[f(Dt,{id:"header-search"}),f(re,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[f(ae,{class:"translation"},{default:b(()=>[f(U,{style:le(e(x)(e(n),"zh")),class:Z(["dark:text-white!",e(L)(e(n),"zh")]),onClick:e(o)},{default:b(()=>[oe(m("span",ya,[f(F,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="zh"]]),G[1]||(G[1]=se(" 简体中文 "))]),_:1},8,["style","class","onClick"]),f(U,{style:le(e(x)(e(n),"en")),class:Z(["dark:text-white!",e(L)(e(n),"en")]),onClick:e(c)},{default:b(()=>[oe(m("span",wa,[f(F,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="en"]]),G[2]||(G[2]=se(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[f(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"})]),_:1}),f(qt,{id:"full-screen"}),f(Pt,{id:"header-notice"}),f(re,{trigger:"click"},{dropdown:b(()=>[f(U,{onClick:e(z)},{default:b(()=>[f(F,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+q(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),f(ae,{class:"logout"},{default:b(()=>[f(U,{onClick:e(h)},{default:b(()=>[f(F,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+q(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[m("span",xa,[m("img",{src:e(y),style:le(e(w))},null,12,ba),e(v)?(i(),_("p",Ca,q(e(v)),1)):X("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:G[0]||(G[0]=(...Q)=>e(s)&&e(s)(...Q))},[f(F,{icon:e(Rt)},null,8,["icon"])],8,ka)])])),[[B,e(Ce)().wholeMenus.length===0]]):X("",!0)}}}),Ma=ce(Sa,[["__scopeId","data-v-57ee6161"]]),Ia=["onClick"],Ta=J({__name:"SidebarBreadCrumb",setup(a){const t=zt(),u=R([]),p=$t(),r=p.options.routes,n=Ve().multiTags,o=()=>{let l;Object.keys(t.query).length>0?n.forEach(d=>{Qe(t.query,d==null?void 0:d.query)&&(l=ke(d))}):Object.keys(t.params).length>0?n.forEach(d=>{Qe(t.params,d==null?void 0:d.params)&&(l=ke(d))}):l=dt(p.currentRoute.value.path,r);const h=Vt(p.currentRoute.value.name,r,"name"),s=[];h.forEach(d=>{d!=="/"&&s.push(dt(d,r))}),s.push(l),s.forEach((d,v)=>{l!=null&&l.query||l!=null&&l.params||d!=null&&d.children&&d.children.forEach(y=>{var g,w;((g=y==null?void 0:y.meta)==null?void 0:g.title)===((w=d==null?void 0:d.meta)==null?void 0:w.title)&&s.splice(v,1)})}),u.value=s.filter(d=>(d==null?void 0:d.meta)&&(d==null?void 0:d.meta.title)!==!1)},c=l=>{const{redirect:h,name:s,path:d}=l;h?p.push(h):s?l.query?p.push({name:s,query:l.query}):l.params?p.push({name:s,params:l.params}):p.push({name:s}):p.push({path:d})};return qe(()=>{o()}),Le(()=>t.path,()=>{o()},{deep:!0}),(l,h)=>{const s=S("el-breadcrumb-item"),d=S("el-breadcrumb");return i(),O(d,{class:"leading-[50px]! select-none",separator:"/"},{default:b(()=>[f(An,{name:"breadcrumb"},{default:b(()=>[(i(!0),_(ue,null,we(u.value,v=>(i(),O(s,{key:v.path,class:"inline! items-stretch!"},{default:b(()=>[m("a",{onClick:Te(y=>c(v),["prevent"])},q(e(ze)(v.meta.title)),9,Ia)]),_:2},1024))),128))]),_:1})]),_:1})}}}),$a={class:"navbar bg-[#fff] shadow-xs shadow-[rgba(0,21,41,0.08)]"},za={key:3,class:"vertical-header-right"},La={class:"check-en"},Aa={class:"el-dropdown-link navbar-bg-hover select-none"},Va=["src"],Ha={key:0,class:"dark:text-white"},Ra=["title"],Ba=J({__name:"index",setup(a){const{layout:t,device:u,logout:p,onPanel:r,pureApp:n,username:o,userAvatar:c,avatarsStyle:l,toggleSideBar:h,toAccountSettings:s,getDropdownItemStyle:d,getDropdownItemClass:v}=Se(),{t:y,locale:g,translationCh:w,translationEn:z}=Bt();return(x,L)=>{const E=S("IconifyIconOffline"),D=S("el-dropdown-item"),G=S("el-dropdown-menu"),W=S("el-dropdown");return i(),_("div",$a,[e(u)==="mobile"?(i(),O(Fn,{key:0,class:"hamburger-container","is-active":e(n).sidebar.opened,onToggleClick:e(h)},null,8,["is-active","onToggleClick"])):X("",!0),e(t)!=="mix"&&e(u)!=="mobile"?(i(),O(Ta,{key:1,class:"breadcrumb-container"})):X("",!0),e(t)==="mix"?(i(),O(Ma,{key:2})):X("",!0),e(t)==="vertical"?(i(),_("div",za,[f(Dt,{id:"header-search"}),f(W,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[f(G,{class:"translation"},{default:b(()=>[f(D,{style:le(e(d)(e(g),"zh")),class:Z(["dark:text-white!",e(v)(e(g),"zh")]),onClick:e(w)},{default:b(()=>[oe(f(E,{class:"check-zh",icon:e(Je)},null,8,["icon"]),[[ye,e(g)==="zh"]]),L[1]||(L[1]=se(" 简体中文 "))]),_:1},8,["style","class","onClick"]),f(D,{style:le(e(d)(e(g),"en")),class:Z(["dark:text-white!",e(v)(e(g),"en")]),onClick:e(z)},{default:b(()=>[oe(m("span",La,[f(E,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(g)==="en"]]),L[2]||(L[2]=se(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[f(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"})]),_:1}),f(qt,{id:"full-screen"}),f(Pt,{id:"header-notice"}),f(W,{trigger:"click"},{dropdown:b(()=>[f(G,{class:"logout"},{default:b(()=>[f(D,{onClick:e(s)},{default:b(()=>[f(E,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+q(e(y)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),f(D,{onClick:e(p)},{default:b(()=>[f(E,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+q(e(y)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[m("span",Aa,[m("img",{src:e(c),style:le(e(l))},null,12,Va),e(o)?(i(),_("p",Ha,q(e(o)),1)):X("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:e(y)("buttons.pureOpenSystemSet"),onClick:L[0]||(L[0]=(...M)=>e(r)&&e(r)(...M))},[f(E,{icon:e(Rt)},null,8,["icon"])],8,Ra)])):X("",!0)])}}}),Ea=ce(Ba,[["__scopeId","data-v-5979c53e"]]),st=new Map,Oa=()=>{function a(p,r){st.set(p,r)}function t(p){return p?st.get(p):[...st.entries()]}function u(p){st.delete(p)}return{setMap:a,getMap:t,delMap:u,MAP:st}},Da={class:"w-full h-full"},Pa=J({__name:"index",props:{currRoute:{},currComp:{}},setup(a){const t=a,u=Ct([]),{setMap:p,getMap:r,MAP:n,delMap:o}=Oa(),c=H(()=>{var h,s;return je().KeepAlive&&((h=t.currRoute.meta)==null?void 0:h.keepAlive)&&!!((s=t.currRoute.meta)!=null&&s.frameSrc)}),l=H(()=>!c.value&&t.currComp);return Le(Ve().multiTags,h=>{if(!Array.isArray(h)||!c.value)return;if(h.filter(d=>{var v;return(v=d.meta)==null?void 0:v.frameSrc}).lengthv.path===d)||(o(d),u.value=r())}),Le(()=>t.currRoute.fullPath,h=>{const d=Ve().multiTags.filter(v=>{var y;return(y=v.meta)==null?void 0:y.frameSrc});c.value&&d.length!==n.size&&([...n.keys()].find(y=>h===y)||p(h,t.currComp)),n.size>0&&(u.value=r())},{immediate:!0}),(h,s)=>(i(),_(ue,null,[(i(!0),_(ue,null,we(u.value,([d,v])=>{var y;return oe((i(),_("div",{key:d,class:"w-full h-full"},[ht(h.$slots,"default",{fullPath:d,Comp:v,frameInfo:{frameSrc:(y=h.currRoute.meta)==null?void 0:y.frameSrc,fullPath:d}})],512)),[[ye,d===h.currRoute.fullPath]])}),128)),oe(m("div",Da,[ht(h.$slots,"default",{Comp:l.value,fullPath:h.currRoute.fullPath})],512),[[ye,!c.value]])],64))}}),qa={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},Fa={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Na=J({__name:"index",setup(a){const t=je("Title");return(u,p)=>(i(),_("footer",qa,[p[0]||(p[0]=se(" Copyright © 2020-2025 ")),m("a",Fa," "+q(e(t)),1)]))}}),Jt=ce(Na,[["__scopeId","data-v-d2894726"]]),Wa={class:"grow"},Ua={key:1,class:"grow"},Ka=J({__name:"index",props:{fixedHeader:Boolean},setup(a){const t=a,{t:u}=Re(),{showModel:p}=hn(),{$storage:r,$config:n}=it(),o=H(()=>n==null?void 0:n.KeepAlive),c=H(()=>w=>w.meta.transition),l=H(()=>r==null?void 0:r.configure.hideTabs),h=H(()=>r==null?void 0:r.configure.hideFooter),s=H(()=>r==null?void 0:r.configure.stretch),d=H(()=>(r==null?void 0:r.layout.layout)==="vertical"),v=H(()=>kt(s.value)?s.value+"px":s.value?"1440px":"100%"),y=H(()=>[l.value&&d?"padding-top: 48px;":"",!l.value&&d?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",l.value&&!d.value?"padding-top: 48px;":"",!l.value&&!d.value?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",t.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=J({props:{route:{type:void 0,required:!0}},render(){var L,E,D;const w=((L=c.value(this.route))==null?void 0:L.name)||"fade-transform",z=(E=c.value(this.route))==null?void 0:E.enterTransition,x=(D=c.value(this.route))==null?void 0:D.leaveTransition;return rt(At,{name:z?"pure-classes-transition":w,enterActiveClass:z?`animate__animated ${z}`:void 0,leaveActiveClass:x?`animate__animated ${x}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(w,z)=>{const x=S("el-backtop"),L=S("el-scrollbar"),E=S("router-view");return i(),_("section",{class:Z([a.fixedHeader?"app-main":"app-main-nofixed-header"]),style:le(y.value)},[f(E,null,{default:b(({Component:D,route:G})=>[f(Pa,{currComp:D,currRoute:G},{default:b(({Comp:W,fullPath:M,frameInfo:F})=>[a.fixedHeader?(i(),O(L,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":v.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:b(()=>[f(x,{title:e(u)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:b(()=>[f(e(dn))]),_:1},8,["title"]),m("div",Wa,[f(e(g),{route:G},{default:b(()=>[o.value?(i(),O(Yt,{key:0,include:e(Ce)().cachePageList},[(i(),O($e(W),{key:M,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(i(),O($e(W),{key:M,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),h.value?X("",!0):(i(),O(Jt,{key:0}))]),_:2},1032,["wrap-style"])):(i(),_("div",Ua,[f(e(g),{route:G},{default:b(()=>[o.value?(i(),O(Yt,{key:0,include:e(Ce)().cachePageList},[(i(),O($e(W),{key:M,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(i(),O($e(W),{key:M,frameInfo:F,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!h.value&&!a.fixedHeader?(i(),O(Jt,{key:0})):X("",!0)],6)}}}),en=ce(Ka,[["__scopeId","data-v-5fc75f4c"]]),Ya={class:"project-configuration border-0 border-b-[1px] border-solid border-[var(--pure-border-color)]"},Xa={class:"dark:text-white"},Ga={class:"flex justify-end p-3 border-0 border-t-[1px] border-solid border-[var(--pure-border-color)]"},ja=J({__name:"index",setup(a){const t=R(null),u=R(!1),p=H(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-hidden","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{t:r}=Re(),{onReset:n}=Ht();return an(t,o=>{o.clientX>t.value.offsetLeft||(u.value=!1)}),qe(()=>{_e.on("openPanel",()=>{u.value=!0})}),Lt(()=>{_e.off("openPanel")}),(o,c)=>{const l=S("IconifyIconOffline"),h=S("el-scrollbar"),s=S("el-button"),d=Ye("tippy");return i(),_("div",{class:Z({show:u.value})},[c[1]||(c[1]=m("div",{class:"right-panel-background"},null,-1)),m("div",{ref_key:"target",ref:t,class:"right-panel bg-bg_color"},[m("div",Ya,[m("h4",Xa,q(e(r)("panel.pureSystemSet")),1),oe((i(),_("span",{class:Z(p.value)},[f(l,{class:"dark:text-white",width:"18px",height:"18px",icon:e(ft),onClick:c[0]||(c[0]=v=>u.value=!u.value)},null,8,["icon"])],2)),[[d,{content:e(r)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),f(h,null,{default:b(()=>[ht(o.$slots,"default",{},void 0,!0)]),_:3}),m("div",Ga,[oe((i(),O(s,{type:"danger",text:"",bg:"",onClick:e(n)},{default:b(()=>[se(q(e(r)("panel.pureClearCache")),1)]),_:1},8,["onClick"])),[[d,{content:e(r)("panel.pureClearCacheAndToLogin"),placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Qa=ce(ja,[["__scopeId","data-v-15bfdf4f"]]),Za={viewBox:"0 0 24 24",width:"20",height:"20"};function Ja(a,t){return i(),_("svg",Za,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414z"},null,-1)]))}const tn=he({name:"ri-arrow-left-s-line",render:Ja}),es={viewBox:"0 0 24 24",width:"20",height:"20"};function ts(a,t){return i(),_("svg",es,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"},null,-1)]))}const nn=he({name:"ri-arrow-right-s-line",render:ts}),ns={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"};function os(a,t){return i(),_("svg",ns,t[0]||(t[0]=[m("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),m("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 ls={render:os},as={class:"p-5"},ss={class:"theme-color"},rs=["onClick"],is={class:"pure-theme"},cs={key:0},us={class:"mt-5! font-medium text-sm dark:text-white"},ds={class:"setting"},hs={class:"dark:text-white"},fs={class:"dark:text-white"},ps={class:"dark:text-white"},ms={class:"dark:text-white"},vs={class:"dark:text-white"},gs=J({__name:"index",setup(a){var T,A,P,ee;const{t}=Re(),{device:u}=Se(),{isDark:p}=cn(),{$storage:r}=it(),n=R(),o=R(),c=R(),{dataTheme:l,overallStyle:h,layoutTheme:s,themeColors:d,toggleClass:v,dataThemeChange:y,setLayoutThemeColor:g}=Ht();if(e(s)){const I=e(s).layout,k=e(s).theme;document.documentElement.setAttribute("data-theme",k),Ie(I)}const w=R((A=(T=r.configure)==null?void 0:T.showModel)!=null?A:"smart"),z=R((ee=(P=r.configure)==null?void 0:P.showLogo)!=null?ee:!0),x=It({greyVal:r.configure.grey,weakVal:r.configure.weak,tabsVal:r.configure.hideTabs,showLogo:r.configure.showLogo,showModel:r.configure.showModel,hideFooter:r.configure.hideFooter,multiTagsCache:r.configure.multiTagsCache,stretch:r.configure.stretch}),L=H(()=>I=>({background:I})),E=H(()=>I=>!(I==="light"&&p.value));function D(I,k){const de=r.configure;de[I]=k,r.configure=de}const G=I=>{const k=document.querySelector("html");v(x.greyVal,"html-grey",k),D("grey",I)},W=I=>{const k=document.querySelector("html");v(x.weakVal,"html-weakness",k),D("weak",I)},M=()=>{const I=x.tabsVal;D("hideTabs",I),_e.emit("tagViewsChange",I)},F=()=>{const I=x.hideFooter;D("hideFooter",I)},U=()=>{const I=x.multiTagsCache;D("multiTagsCache",I),Ve().multiTagsCacheChange(I)};function ae({option:I}){const{value:k}=I;w.value=k,D("showModel",k),_e.emit("tagViewsShowModel",k)}function re(){e(z)?D("showLogo",!0):D("showLogo",!1),_e.emit("logoChange",e(z))}function B(I){I.forEach(k=>{v(!1,"is-select",e(k))})}const Q=H(()=>[{label:t("panel.pureStretchFixed"),tip:t("panel.pureStretchFixedTip"),value:"fixed"},{label:t("panel.pureStretchCustom"),tip:t("panel.pureStretchCustomTip"),value:"custom"}]),te=I=>{x.stretch=I,D("stretch",I)},xe=({option:I})=>{const{value:k}=I;te(k==="custom"?1440:!1)},Be=H(()=>I=>I===s.value.theme&&s.value.theme!=="light"?"#fff":I===s.value.theme&&s.value.theme==="light"?"#1d2b45":"transparent"),Me=H(()=>["mb-[12px]!","font-medium","text-sm","dark:text-white"]),Ee=H(()=>[{label:t("panel.pureOverallStyleLight"),icon:Wn,theme:"light",tip:t("panel.pureOverallStyleLightTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:t("panel.pureOverallStyleDark"),icon:Un,theme:"dark",tip:t("panel.pureOverallStyleDarkTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:t("panel.pureOverallStyleSystem"),icon:ls,theme:"system",tip:t("panel.pureOverallStyleSystemTip"),iconAttrs:{fill:p.value?"#fff":"#000"}}]),Xe=H(()=>[{label:t("panel.pureTagsStyleSmart"),tip:t("panel.pureTagsStyleSmartTip"),value:"smart"},{label:t("panel.pureTagsStyleCard"),tip:t("panel.pureTagsStyleCardTip"),value:"card"},{label:t("panel.pureTagsStyleChrome"),tip:t("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function Ie(I){var k,de,fe,Ne,ve;s.value.layout=I,window.document.body.setAttribute("layout",I),r.layout={layout:I,theme:s.value.theme,darkMode:(k=r.layout)==null?void 0:k.darkMode,sidebarStatus:(de=r.layout)==null?void 0:de.sidebarStatus,epThemeColor:(fe=r.layout)==null?void 0:fe.epThemeColor,themeColor:(Ne=r.layout)==null?void 0:Ne.themeColor,overallStyle:(ve=r.layout)==null?void 0:ve.overallStyle},Pe().setLayout(I)}Le(r,({layout:I})=>{switch(I.layout){case"vertical":v(!0,"is-select",e(o)),tt(B([c]),50),tt(B([n]),50);break;case"horizontal":v(!0,"is-select",e(c)),tt(B([o]),50),tt(B([n]),50);break;case"mix":v(!0,"is-select",e(n)),tt(B([o]),50),tt(B([c]),50);break}});const Ge=window.matchMedia("(prefers-color-scheme: dark)");function Oe(){h.value==="system"&&(Ge.matches?l.value=!0:l.value=!1,y(h.value))}function Fe(){Ge.removeEventListener("change",Oe)}function et(){Oe(),Fe(),Ge.addEventListener("change",Oe)}return un(()=>{Ke(()=>{var I,k;et(),x.greyVal&&((I=document.querySelector("html"))==null||I.classList.add("html-grey")),x.weakVal&&((k=document.querySelector("html"))==null||k.classList.add("html-weakness")),x.tabsVal&&M(),x.hideFooter&&F()})}),Vn(()=>Fe),(I,k)=>{const de=S("IconifyIconOffline"),fe=S("el-icon"),Ne=S("el-input-number"),ve=S("el-switch"),ot=Ye("tippy"),mt=Ye("ripple");return i(),O(Qa,null,{default:b(()=>[m("div",as,[m("p",{class:Z(Me.value)},q(e(t)("panel.pureOverallStyle")),3),f(e(wt),{resize:"",class:"select-none",modelValue:e(h)==="system"?2:e(l)?1:0,options:Ee.value,onChange:k[0]||(k[0]=j=>{j.index===1&&j.index!==2?l.value=!0:l.value=!1,h.value=j.option.theme,e(y)(j.option.theme),j.index===2&&et()})},null,8,["modelValue","options"]),m("p",{class:Z(["mt-5!",Me.value])},q(e(t)("panel.pureThemeColor")),3),m("ul",ss,[(i(!0),_(ue,null,we(e(d),(j,C)=>oe((i(),_("li",{key:C,style:le(L.value(j.color)),onClick:$=>e(g)(j.themeColor)},[f(fe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Be.value(j.themeColor)},{default:b(()=>[f(de,{icon:e(Je)},null,8,["icon"])]),_:2},1032,["color"])],12,rs)),[[ye,E.value(j.themeColor)]])),128))]),m("p",{class:Z(["mt-5!",Me.value])},q(e(t)("panel.pureLayoutModel")),3),m("ul",is,[oe((i(),_("li",{ref_key:"verticalRef",ref:o,class:Z(e(s).layout==="vertical"?"is-select":""),onClick:k[1]||(k[1]=j=>Ie("vertical"))},k[13]||(k[13]=[m("div",null,null,-1),m("div",null,null,-1)]),2)),[[ot,{content:e(t)("panel.pureVerticalTip"),zIndex:41e3}]]),e(u)!=="mobile"?oe((i(),_("li",{key:0,ref_key:"horizontalRef",ref:c,class:Z(e(s).layout==="horizontal"?"is-select":""),onClick:k[2]||(k[2]=j=>Ie("horizontal"))},k[14]||(k[14]=[m("div",null,null,-1),m("div",null,null,-1)]),2)),[[ot,{content:e(t)("panel.pureHorizontalTip"),zIndex:41e3}]]):X("",!0),e(u)!=="mobile"?oe((i(),_("li",{key:1,ref_key:"mixRef",ref:n,class:Z(e(s).layout==="mix"?"is-select":""),onClick:k[3]||(k[3]=j=>Ie("mix"))},k[15]||(k[15]=[m("div",null,null,-1),m("div",null,null,-1)]),2)),[[ot,{content:e(t)("panel.pureMixTip"),zIndex:41e3}]]):X("",!0)]),e(Pe)().getViewportWidth>1280?(i(),_("span",cs,[m("p",{class:Z(["mt-5!",Me.value])},q(e(t)("panel.pureStretch")),3),f(e(wt),{resize:"",class:"mb-2 select-none",modelValue:e(kt)(x.stretch)?1:0,options:Q.value,onChange:xe},null,8,["modelValue","options"]),e(kt)(x.stretch)?(i(),O(Ne,{key:0,modelValue:x.stretch,"onUpdate:modelValue":k[4]||(k[4]=j=>x.stretch=j),min:1280,max:1600,"controls-position":"right",onChange:k[5]||(k[5]=j=>te(j))},null,8,["modelValue"])):oe((i(),_("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]=j=>te(!x.stretch))},[m("div",{class:Z(["flex-bc transition-all duration-300",[x.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[f(de,{icon:x.stretch?e(nn):e(tn)},null,8,["icon"]),k[16]||(k[16]=m("div",{class:"grow border-0 border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),f(de,{icon:x.stretch?e(tn):e(nn)},null,8,["icon"])],2)])),[[mt,{class:"text-gray-300"}]])])):X("",!0),m("p",{class:Z(["mt-4!",Me.value])},q(e(t)("panel.pureTagsStyle")),3),f(e(wt),{resize:"",class:"select-none",modelValue:w.value==="smart"?0:w.value==="card"?1:2,options:Xe.value,onChange:ae},null,8,["modelValue","options"]),m("p",us,q(e(t)("panel.pureInterfaceDisplay")),1),m("ul",ds,[m("li",null,[m("span",hs,q(e(t)("panel.pureGreyModel")),1),f(ve,{modelValue:x.greyVal,"onUpdate:modelValue":k[7]||(k[7]=j=>x.greyVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:G},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",fs,q(e(t)("panel.pureWeakModel")),1),f(ve,{modelValue:x.weakVal,"onUpdate:modelValue":k[8]||(k[8]=j=>x.weakVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",ps,q(e(t)("panel.pureHiddenTags")),1),f(ve,{modelValue:x.tabsVal,"onUpdate:modelValue":k[9]||(k[9]=j=>x.tabsVal=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:M},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",ms,q(e(t)("panel.pureHiddenFooter")),1),f(ve,{modelValue:x.hideFooter,"onUpdate:modelValue":k[10]||(k[10]=j=>x.hideFooter=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:F},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[k[17]||(k[17]=m("span",{class:"dark:text-white"},"Logo",-1)),f(ve,{modelValue:z.value,"onUpdate:modelValue":k[11]||(k[11]=j=>z.value=j),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:re},null,8,["modelValue","active-text","inactive-text"])]),m("li",null,[m("span",vs,q(e(t)("panel.pureMultiTagsCache")),1),f(ve,{modelValue:x.multiTagsCache,"onUpdate:modelValue":k[12]||(k[12]=j=>x.multiTagsCache=j),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:U},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),_s=ce(gs,[["__scopeId","data-v-42b0bf91"]]),ys=["src"],ws={class:"sidebar-title"},xs=["src"],bs={class:"sidebar-title"},Cs=J({__name:"SidebarLogo",props:{collapse:Boolean},setup(a){const{title:t,getLogo:u}=Se();return(p,r)=>{const n=S("router-link");return i(),_("div",{class:Z(["sidebar-logo-container",{collapses:a.collapse}])},[f(At,{name:"sidebarLogoFade"},{default:b(()=>{var o,c,l,h;return[a.collapse?(i(),O(n,{key:"collapse",title:e(t),class:"sidebar-logo-link",to:(c=(o=e(bt)())==null?void 0:o.path)!=null?c:"/"},{default:b(()=>[m("img",{src:e(u)(),alt:"logo"},null,8,ys),m("span",ws,q(e(t)),1)]),_:1},8,["title","to"])):(i(),O(n,{key:"expand",title:e(t),class:"sidebar-logo-link",to:(h=(l=e(bt)())==null?void 0:l.path)!=null?h:"/"},{default:b(()=>[m("img",{src:e(u)(),alt:"logo"},null,8,xs),m("span",bs,q(e(t)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),ks=ce(Cs,[["__scopeId","data-v-4dd8e86d"]]);var xt,on;function Ss(){if(on)return xt;on=1;function a(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function t(r,n){for(var o="",c=0,l=-1,h=0,s,d=0;d<=r.length;++d){if(d2){var v=o.lastIndexOf("/");if(v!==o.length-1){v===-1?(o="",c=0):(o=o.slice(0,v),c=o.length-1-o.lastIndexOf("/")),l=d,h=0;continue}}else if(o.length===2||o.length===1){o="",c=0,l=d,h=0;continue}}n&&(o.length>0?o+="/..":o="..",c=2)}else o.length>0?o+="/"+r.slice(l+1,d):o=r.slice(l+1,d),c=d-l-1;l=d,h=0}else s===46&&h!==-1?++h:h=-1}return o}function u(r,n){var o=n.dir||n.root,c=n.base||(n.name||"")+(n.ext||"");return o?o===n.root?o+c:o+r+c:c}var p={resolve:function(){for(var n="",o=!1,c,l=arguments.length-1;l>=-1&&!o;l--){var h;l>=0?h=arguments[l]:(c===void 0&&(c=process.cwd()),h=c),a(h),h.length!==0&&(n=h+"/"+n,o=h.charCodeAt(0)===47)}return n=t(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(n){if(a(n),n.length===0)return".";var o=n.charCodeAt(0)===47,c=n.charCodeAt(n.length-1)===47;return n=t(n,!o),n.length===0&&!o&&(n="."),n.length>0&&c&&(n+="/"),o?"/"+n:n},isAbsolute:function(n){return a(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,o=0;o0&&(n===void 0?n=c:n+="/"+c)}return n===void 0?".":p.normalize(n)},relative:function(n,o){if(a(n),a(o),n===o||(n=p.resolve(n),o=p.resolve(o),n===o))return"";for(var c=1;cy){if(o.charCodeAt(s+w)===47)return o.slice(s+w+1);if(w===0)return o.slice(s+w)}else h>y&&(n.charCodeAt(c+w)===47?g=w:w===0&&(g=0));break}var z=n.charCodeAt(c+w),x=o.charCodeAt(s+w);if(z!==x)break;z===47&&(g=w)}var L="";for(w=c+g+1;w<=l;++w)(w===l||n.charCodeAt(w)===47)&&(L.length===0?L+="..":L+="/..");return L.length>0?L+o.slice(s+g):(s+=g,o.charCodeAt(s)===47&&++s,o.slice(s))},_makeLong:function(n){return n},dirname:function(n){if(a(n),n.length===0)return".";for(var o=n.charCodeAt(0),c=o===47,l=-1,h=!0,s=n.length-1;s>=1;--s)if(o=n.charCodeAt(s),o===47){if(!h){l=s;break}}else h=!1;return l===-1?c?"/":".":c&&l===1?"//":n.slice(0,l)},basename:function(n,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');a(n);var c=0,l=-1,h=!0,s;if(o!==void 0&&o.length>0&&o.length<=n.length){if(o.length===n.length&&o===n)return"";var d=o.length-1,v=-1;for(s=n.length-1;s>=0;--s){var y=n.charCodeAt(s);if(y===47){if(!h){c=s+1;break}}else v===-1&&(h=!1,v=s+1),d>=0&&(y===o.charCodeAt(d)?--d===-1&&(l=s):(d=-1,l=v))}return c===l?l=v:l===-1&&(l=n.length),n.slice(c,l)}else{for(s=n.length-1;s>=0;--s)if(n.charCodeAt(s)===47){if(!h){c=s+1;break}}else l===-1&&(h=!1,l=s+1);return l===-1?"":n.slice(c,l)}},extname:function(n){a(n);for(var o=-1,c=0,l=-1,h=!0,s=0,d=n.length-1;d>=0;--d){var v=n.charCodeAt(d);if(v===47){if(!h){c=d+1;break}continue}l===-1&&(h=!1,l=d+1),v===46?o===-1?o=d:s!==1&&(s=1):o!==-1&&(s=-1)}return o===-1||l===-1||s===0||s===1&&o===l-1&&o===c+1?"":n.slice(o,l)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return u("/",n)},parse:function(n){a(n);var o={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return o;var c=n.charCodeAt(0),l=c===47,h;l?(o.root="/",h=1):h=0;for(var s=-1,d=0,v=-1,y=!0,g=n.length-1,w=0;g>=h;--g){if(c=n.charCodeAt(g),c===47){if(!y){d=g+1;break}continue}v===-1&&(y=!1,v=g+1),c===46?s===-1?s=g:w!==1&&(w=1):s!==-1&&(w=-1)}return s===-1||v===-1||w===0||w===1&&s===v-1&&s===d+1?v!==-1&&(d===0&&l?o.base=o.name=n.slice(1,v):o.base=o.name=n.slice(d,v)):(d===0&&l?(o.name=n.slice(1,s),o.base=n.slice(1,v)):(o.name=n.slice(d,s),o.base=n.slice(d,v)),o.ext=n.slice(s,v)),d>0?o.dir=n.slice(0,d-1):l&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return p.posix=p,xt=p,xt}var Ms=Ss();const Is=J({__name:"SidebarLinkItem",props:{to:{}},setup(a){const t=a,u=H(()=>Hn(t.to.name)),p=r=>u.value?{href:r.name,target:"_blank",rel:"noopener"}:{to:r};return(r,n)=>(i(),O($e(u.value?"a":"router-link"),Rn(Bn(p(r.to))),{default:b(()=>[ht(r.$slots,"default")]),_:3},16))}}),Ts={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function $s(a,t){return i(),_("svg",Ts,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8l316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"},null,-1)]))}const zs=he({name:"ep-arrow-up-bold",render:$s}),Ls={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function As(a,t){return i(),_("svg",Ls,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8l316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"},null,-1)]))}const Vs=he({name:"ep-arrow-down-bold",render:As}),Hs={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Rs(a,t){return i(),_("svg",Hs,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"},null,-1)]))}const Bs=he({name:"ep-arrow-left-bold",render:Rs}),Es={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function Os(a,t){return i(),_("svg",Es,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"},null,-1)]))}const Ds=he({name:"ep-arrow-right-bold",render:Os}),pn=J({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(a){const t=En(),{layout:u,isCollapse:p,tooltipEffect:r,getDivStyle:n}=Se(),o=a,c=H(()=>({width:"100%",display:"flex",alignItems:"center"})),l=H(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:u.value==="horizontal"?"0 5px 0 0":p.value?"0 auto":"0 5px 0 0"})),h=H(()=>{var y;return(y=je())!=null&&y.MenuArrowIconNoTransition?{"expand-close-icon":Ae(Vs),"expand-open-icon":Ae(zs),"collapse-close-icon":Ae(Ds),"collapse-open-icon":Ae(Bs)}:""}),s=R(null);function d(y=[],g){var z,x;const w=y.filter(L=>(s.value=L,!0));return(x=(z=w[0])==null?void 0:z.meta)!=null&&x.showParent?!1:w.length===1?!0:w.length===0?(s.value=gt(vt({},g),{path:"",noShowingChildren:!0}),!0):!1}function v(y){const g=/^http(s?):\/\//;return g.test(y)||g.test(o.basePath)?y||o.basePath:Ms.posix.resolve(o.basePath,y)}return(y,g)=>{const w=S("el-text"),z=S("el-menu-item"),x=S("sidebar-item",!0),L=S("el-sub-menu");return d(a.item.children,a.item)&&(!s.value.children||s.value.noShowingChildren)?(i(),O(Is,{key:0,to:a.item},{default:b(()=>[f(z,Xt({index:v(s.value.path),class:{"submenu-title-noDropdown":!a.isNest},style:c.value},e(t)),{title:b(()=>[m("div",{style:le(e(n))},[f(e(Gt),{tippyProps:{offset:[0,-10],theme:e(r)},class:"w-full! text-inherit!"},{default:b(()=>[se(q(e(ze)(s.value.meta.title)),1)]),_:1},8,["tippyProps"]),f(Mt,{extraIcon:s.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:b(()=>{var E,D,G,W,M;return[ke(a.item.meta.icon)?(i(),_("div",{key:0,class:"sub-menu-icon",style:le(l.value)},[(i(),O($e(e(Ae)(ke(s.value.meta.icon)||a.item.meta&&ke(a.item.meta.icon)))))],4)):X("",!0),!((E=a.item)!=null&&E.meta.icon)&&e(p)&&e(u)==="vertical"&&((G=(D=a.item)==null?void 0:D.pathList)==null?void 0:G.length)===1||!s.value.meta.icon&&e(p)&&e(u)==="mix"&&((M=(W=a.item)==null?void 0:W.pathList)==null?void 0:M.length)===2?(i(),O(w,{key:1,truncated:"",class:"w-full! pl-4! text-inherit!"},{default:b(()=>[se(q(e(ze)(s.value.meta.title)),1)]),_:1})):X("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(i(),O(L,Xt({key:1,ref:"subMenu",teleported:"",index:v(a.item.path)},h.value),{title:b(()=>{var E,D;return[ke(a.item.meta.icon)?(i(),_("div",{key:0,style:le(l.value),class:"sub-menu-icon"},[(i(),O($e(e(Ae)(a.item.meta&&ke(a.item.meta.icon)))))],4)):X("",!0),(e(u)==="mix"&&ke(a.item.meta.icon)?!e(p)||((D=(E=a.item)==null?void 0:E.pathList)==null?void 0:D.length)!==2:!(e(u)==="vertical"&&e(p)&&ke(a.item.meta.icon)&&a.item.parentId===null))?(i(),O(e(Gt),{key:1,tippyProps:{offset:[0,-10],theme:e(r)},class:Z({"w-full!":!0,"text-inherit!":!0,"pl-4!":e(u)!=="horizontal"&&e(p)&&!ke(a.item.meta.icon)&&a.item.parentId===null})},{default:b(()=>[se(q(e(ze)(a.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):X("",!0),e(p)?X("",!0):(i(),O(Mt,{key:2,extraIcon:a.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:b(()=>[(i(!0),_(ue,null,we(a.item.children,E=>(i(),O(x,{key:E.path,"is-nest":!0,item:E,"base-path":v(E.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Ps={class:"left-collapse"},qs=J({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(a,{emit:t}){const{t:u}=Re(),{tooltipEffect:p}=Se(),r=H(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block!","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:n}=it(),o=H(()=>{var h;return(h=n.layout)==null?void 0:h.themeColor}),c=t,l=()=>{c("toggleClick")};return(h,s)=>{const d=S("IconifyIconOffline"),v=Ye("tippy");return i(),_("div",Ps,[oe(f(d,{icon:e(Nn),class:Z([r.value,o.value==="light"?"":"text-primary"]),style:le({transform:h.isActive?"none":"rotateY(180deg)"}),onClick:l},null,8,["icon","class","style"]),[[v,{content:h.isActive?e(u)("buttons.pureClickCollapse"):e(u)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])])}}}),Fs=ce(qs,[["__scopeId","data-v-35058a81"]]),Ns={viewBox:"0 0 24 24",width:"1em",height:"1em"};function Ws(a,t){return i(),_("svg",Ns,t[0]||(t[0]=[m("path",{fill:"currentColor",d:"m4.836 12l6.207 6.207l1.414-1.414L7.664 12l4.793-4.793l-1.414-1.414zm5.65 0l6.207 6.207l1.414-1.414L13.314 12l4.793-4.793l-1.414-1.414z"},null,-1)]))}const Us=he({name:"ri-arrow-left-double-fill",render:Ws}),Ks=J({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(a,{emit:t}){const{t:u}=Re(),{tooltipEffect:p}=Se(),r=H(()=>["w-[16px]","h-[16px]"]),{$storage:n}=it(),o=H(()=>{var h;return(h=n.layout)==null?void 0:h.themeColor}),c=t,l=()=>{c("toggleClick")};return(h,s)=>{const d=S("IconifyIconOffline"),v=Ye("tippy");return oe((i(),_("div",{class:"center-collapse",onClick:l},[f(d,{icon:e(Us),class:Z([r.value,o.value==="light"?"":"text-primary"]),style:le({transform:h.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[v,{content:h.isActive?e(u)("buttons.pureClickCollapse"):e(u)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])}}}),Ys=ce(Ks,[["__scopeId","data-v-52a12c43"]]),Xs=J({__name:"NavVertical",setup(a){var w,z;const t=zt(),u=R(!1),p=R((z=(w=He().getItem(`${nt()}configure`))==null?void 0:w.showLogo)!=null?z:!0),{device:r,pureApp:n,isCollapse:o,tooltipEffect:c,menuSelect:l,toggleSideBar:h}=Se(),s=R([]),d=H(()=>n.layout==="mix"&&r.value!=="mobile"?s.value:Ce().wholeMenus),v=H(()=>n.layout==="mix"?!1:d.value.length===0),y=H(()=>{var x;return Ze((x=t.meta)==null?void 0:x.activePath)?t.path:t.meta.activePath});function g(){let x="";x=y.value,s.value=[];const L=Vt(x,Ce().wholeMenus),E=dt(L[0]||x,Ce().wholeMenus);E!=null&&E.children&&(s.value=E==null?void 0:E.children)}return Le(()=>[t.path,Ce().wholeMenus],()=>{t.path.includes("/redirect")||(g(),l(t.path))}),qe(()=>{g(),_e.on("logoChange",x=>{p.value=x})}),Lt(()=>{_e.off("logoChange")}),(x,L)=>{const E=S("el-menu"),D=S("el-scrollbar"),G=Ye("loading");return oe((i(),_("div",{class:Z(["sidebar-container",p.value?"has-logo":"no-logo"]),onMouseenter:L[0]||(L[0]=Te(W=>u.value=!0,["prevent"])),onMouseleave:L[1]||(L[1]=Te(W=>u.value=!1,["prevent"]))},[p.value?(i(),O(ks,{key:0,collapse:e(o)},null,8,["collapse"])):X("",!0),f(D,{"wrap-class":"scrollbar-wrapper",class:Z([e(r)==="mobile"?"mobile":"pc"])},{default:b(()=>[f(E,{"unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:e(o),"collapse-transition":!1,"popper-effect":e(c),"default-active":y.value},{default:b(()=>[(i(!0),_(ue,null,we(d.value,W=>(i(),O(pn,{key:W.path,item:W,"base-path":W.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(r)!=="mobile"&&(u.value||e(o))?(i(),O(Ys,{key:1,"is-active":e(n).sidebar.opened,onToggleClick:e(h)},null,8,["is-active","onToggleClick"])):X("",!0),e(r)!=="mobile"?(i(),O(Fs,{key:2,"is-active":e(n).sidebar.opened,onToggleClick:e(h)},null,8,["is-active","onToggleClick"])):X("",!0)],34)),[[G,v.value]])}}}),Gs=ce(Xs,[["__scopeId","data-v-f94a3619"]]),js={class:"horizontal-header"},Qs=["src"],Zs={class:"horizontal-header-right"},Js={class:"check-zh"},er={class:"check-en"},tr={class:"el-dropdown-link navbar-bg-hover"},nr=["src"],or={key:0,class:"dark:text-white"},lr=["title"],ar=J({__name:"NavHorizontal",setup(a){var D,G;const t=R(),u=R((G=(D=He().getItem(`${nt()}configure`))==null?void 0:D.showLogo)!=null?G:!0),{t:p,route:r,locale:n,translationCh:o,translationEn:c}=Bt(t),{title:l,logout:h,onPanel:s,getLogo:d,username:v,userAvatar:y,backTopMenu:g,avatarsStyle:w,toAccountSettings:z,getDropdownItemStyle:x,getDropdownItemClass:L}=Se(),E=H(()=>{var W;return Ze((W=r.meta)==null?void 0:W.activePath)?r.path:r.meta.activePath});return Ke(()=>{var W;(W=t.value)==null||W.handleResize()}),qe(()=>{_e.on("logoChange",W=>{u.value=W})}),(W,M)=>{const F=S("el-menu"),U=S("IconifyIconOffline"),ae=S("el-dropdown-item"),re=S("el-dropdown-menu"),B=S("el-dropdown"),Q=Ye("loading");return oe((i(),_("div",js,[u.value?(i(),_("div",{key:0,class:"horizontal-header-left",onClick:M[0]||(M[0]=(...te)=>e(g)&&e(g)(...te))},[m("img",{src:e(d)(),alt:"logo"},null,8,Qs),m("span",null,q(e(l)),1)])):X("",!0),f(F,{ref_key:"menuRef",ref:t,mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":E.value},{default:b(()=>[(i(!0),_(ue,null,we(e(Ce)().wholeMenus,te=>(i(),O(pn,{key:te.path,item:te,"base-path":te.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),m("div",Zs,[f(Dt,{id:"header-search"}),f(B,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[f(re,{class:"translation"},{default:b(()=>[f(ae,{style:le(e(x)(e(n),"zh")),class:Z(["dark:text-white!",e(L)(e(n),"zh")]),onClick:e(o)},{default:b(()=>[oe(m("span",Js,[f(U,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="zh"]]),M[2]||(M[2]=se(" 简体中文 "))]),_:1},8,["style","class","onClick"]),f(ae,{style:le(e(x)(e(n),"en")),class:Z(["dark:text-white!",e(L)(e(n),"en")]),onClick:e(c)},{default:b(()=>[oe(m("span",er,[f(U,{icon:e(Je)},null,8,["icon"])],512),[[ye,e(n)==="en"]]),M[3]||(M[3]=se(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[f(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden"})]),_:1}),f(qt,{id:"full-screen"}),f(Pt,{id:"header-notice"}),f(B,{trigger:"click"},{dropdown:b(()=>[f(ae,{onClick:e(z)},{default:b(()=>[f(U,{icon:e(Ft),style:{margin:"5px"}},null,8,["icon"]),se(" "+q(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),f(re,{class:"logout"},{default:b(()=>[f(ae,{onClick:e(h)},{default:b(()=>[f(U,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),se(" "+q(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[m("span",tr,[m("img",{src:e(y),style:le(e(w))},null,12,nr),e(v)?(i(),_("p",or,q(e(v)),1)):X("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:M[1]||(M[1]=(...te)=>e(s)&&e(s)(...te))},[f(U,{icon:e(Rt)},null,8,["icon"])],8,lr)])])),[[Q,e(Ce)().wholeMenus.length===0]])}}}),sr=ce(ar,[["__scopeId","data-v-1f87fd56"]]),rr={key:0},ir=J({__name:"index",setup(a){const{t}=Re(),u=R(),{isDark:p}=cn(),{layout:r}=On(),n=rn(),o=Ot(),{$storage:c}=it(),l=It({sidebar:H(()=>Pe().sidebar),device:H(()=>Pe().device),fixedHeader:H(()=>o.fixedHeader),classes:H(()=>({hideSidebar:!l.sidebar.opened,openSidebar:l.sidebar.opened,withoutAnimation:l.sidebar.withoutAnimation,mobile:l.device==="mobile"})),hideTabs:H(()=>c==null?void 0:c.configure.hideTabs)});function h(y){var g,w,z,x,L,E;window.document.body.setAttribute("layout",y),c.layout={layout:`${y}`,theme:(g=c.layout)==null?void 0:g.theme,darkMode:(w=c.layout)==null?void 0:w.darkMode,sidebarStatus:(z=c.layout)==null?void 0:z.sidebarStatus,epThemeColor:(x=c.layout)==null?void 0:x.epThemeColor,themeColor:(L=c.layout)==null?void 0:L.themeColor,overallStyle:(E=c.layout)==null?void 0:E.overallStyle}}function s(y,g){Pe().toggleDevice(y),Pe().toggleSideBar(g,"resize")}let d=!0;pt(u,y=>{if(n)return;const g=y[0],[{inlineSize:w,blockSize:z}]=g.borderBoxSize;Pe().setViewportSize({width:w,height:z}),w<=760?h("vertical"):h(Pe().layout),w>0&&w<=760?(s("mobile",!1),d=!0):w>760&&w<=990?d&&(s("desktop",!1),d=!1):w>990&&!l.sidebar.isClickCollapse?(s("desktop",!0),d=!0):(s("desktop",!1),d=!1)}),qe(()=>{n&&s("mobile",!1)}),un(()=>{var y;Ht().dataThemeChange((y=c.layout)==null?void 0:y.overallStyle)});const v=J({name:"LayHeader",render(){return rt("div",{class:{"fixed-header":l.fixedHeader},style:[l.hideTabs&&r.value.includes("horizontal")?p.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!o.hiddenSideBar&&(r.value.includes("vertical")||r.value.includes("mix"))?rt(Ea):null,!o.hiddenSideBar&&r.value.includes("horizontal")?rt(sr):null,rt(cl)]})}});return(y,g)=>{const w=S("el-backtop"),z=S("el-scrollbar");return i(),_("div",{ref_key:"appWrapperRef",ref:u,class:Z(["app-wrapper",l.classes])},[oe(m("div",{class:"app-mask",onClick:g[0]||(g[0]=x=>e(Pe)().toggleSideBar())},null,512),[[ye,l.device==="mobile"&&l.sidebar.opened&&e(r).includes("vertical")]]),oe(f(Gs,null,null,512),[[ye,!e(o).hiddenSideBar&&(e(r).includes("vertical")||e(r).includes("mix"))]]),m("div",{class:Z(["main-container",e(o).hiddenSideBar?"main-hidden":""])},[l.fixedHeader?(i(),_("div",rr,[f(e(v)),f(en,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])])):(i(),O(z,{key:1},{default:b(()=>[f(w,{title:e(t)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:b(()=>[f(e(dn))]),_:1},8,["title"]),f(e(v)),f(en,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),f(_s)],2)}}}),Tr=ce(ir,[["__scopeId","data-v-6b7a8a68"]]);export{Tr as default};