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