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