mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
75 KiB
JavaScript
11 lines
75 KiB
JavaScript
import{b6 as pe,aB as nn,aE as Je,aF as on,e as h,k as T,i as _,d as le,Y as an,r as E,x as q,o as We,F as ye,l as xe,A as ne,c as O,Q as Ae,h as t,C as Q,f as i,a7 as Et,_ as me,b as k,g as oe,ab as Y,a0 as ot,b1 as sn,K as ln,D as ge,w as v,ax as Ot,G as we,a_ as Zt,ak as Dt,n as Be,b2 as ke,y as Re,j as at,m as ve,ao as ce,ap as Ce,b7 as gt,b8 as nt,b5 as yt,b9 as Te,an as rn,ai as Ge,ba as Ne,aC as Ue,aD as Ke,ag as bt,bb as _e,bc as Ye,bd as cn,be as tt,as as je,bf as vt,am as st,bg as He,bh as wt,bi as ft,bj as un,bk as zt,bl as jt,bm as kt,bn as Lt,I as Xe,aa as dn,p as lt,q as rt,a6 as Pt,bo as hn,bp as fn,bq as pn,L as Fe,Z as vn,O as mn,aj as _n}from"./index-16a5163c.js";import{d as gn}from"./menu-a4fe64fb.js";import{d as yn}from"./set-up-e6942411.js";import{d as bn}from"./home-filled-05cc090c.js";import{d as wn}from"./admin-line-92b9acda.js";import{d as kn}from"./git-branch-line-aa4cb38f.js";import{u as Me,a as xt,g as Ct,b as Rt,t as xn,d as Cn,c as Sn,e as $n}from"./dark-bc95c6e2.js";import{u as Pe}from"./app-bdb35527.js";import{u as Nt,o as pt,a as In,b as Mn,c as Tn}from"./index-70c4c0c6.js";import{u as Vn}from"./epTheme-045ca37a.js";import{u as Le}from"./hooks-f16ca4cf.js";import{d as zn}from"./search-cc37b371.js";import{d as qe}from"./check-3815600c.js";import{d as Ln}from"./refresh-right-6177e75c.js";import{d as An}from"./arrow-right-s-line-2977cc7e.js";import{b as Bt}from"./back_top-18fdcea3.js";const Hn={width:24,height:24,body:'<path fill="currentColor" d="M22.001 12c0 5.522-4.477 10-10 10s-10-4.478-10-10c0-5.523 4.477-10 10-10s10 4.477 10 10Zm-16.8-1.336a1.335 1.335 0 1 0 0 2.67a1.335 1.335 0 0 0 0-2.67Zm9.533 6.069a1.334 1.334 0 1 0 1.334 2.31a1.334 1.334 0 0 0-1.334-2.31ZM8.1 12c0-1.32.656-2.485 1.659-3.19l-.977-1.636a5.813 5.813 0 0 0-2.398 3.371a1.875 1.875 0 0 1 0 2.91a5.812 5.812 0 0 0 2.398 3.371l.977-1.636A3.892 3.892 0 0 1 8.1 12ZM12 8.1a3.9 3.9 0 0 1 3.884 3.554l1.903-.028a5.781 5.781 0 0 0-1.724-3.762A1.872 1.872 0 0 1 13.55 6.41a5.829 5.829 0 0 0-4.12.39l.927 1.663A3.885 3.885 0 0 1 12 8.1Zm0 7.8c-.587 0-1.143-.13-1.643-.363l-.927 1.662a5.774 5.774 0 0 0 4.12.39a1.872 1.872 0 0 1 2.514-1.454a5.782 5.782 0 0 0 1.723-3.762l-1.903-.027A3.898 3.898 0 0 1 12 15.9Zm2.732-8.633a1.335 1.335 0 1 0 1.335-2.312a1.335 1.335 0 0 0-1.335 2.312Z"/>'},En={width:1024,height:1024,body:'<path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"/><path fill="currentColor" d="m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"/>'},On={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"/>'},Zn={width:24,height:24,body:'<path fill="currentColor" d="M20 9V5H4v4h16Zm0 2H4v8h16v-8ZM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 9h3v5H5v-5Zm0-6h2v2H5V6Zm4 0h2v2H9V6Z"/>'},Dn={width:1024,height:1024,body:'<path fill="currentColor" d="M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"/><path fill="currentColor" d="m220.8 256l-71.232 80l71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496l-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"/>'},jn={width:24,height:24,body:'<path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm17 8h-16v8h16v-8Zm0-2V5h-16v4h16Zm-6 6h4v2h-4v-2Z"/>'},Pn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Rn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},Nn={width:24,height:24,body:'<path fill="currentColor" d="m2.859 2.878l12.57-1.796a.5.5 0 0 1 .571.495v20.847a.5.5 0 0 1-.57.495L2.858 21.123a1 1 0 0 1-.859-.99V3.868a1 1 0 0 1 .859-.99ZM4 4.735v14.53l10 1.43V3.305L4 4.735ZM17 19h3V5h-3V3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4v-2ZM5 8h8v6H7v2H5V8Zm2 2v2h4v-2H7Z"/>'},Bn={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.997-4L6.76 11.757l1.414-1.414l2.829 2.829l5.657-5.657l1.414 1.414L11.003 16Z"/>'},qn={width:24,height:24,body:'<path fill="currentColor" d="M12 14v8H4a8 8 0 0 1 8-8Zm0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6Zm9 4h1v5h-8v-5h1v-1a3 3 0 1 1 6 0v1Zm-2 0v-1a1 1 0 1 0-2 0v1h2Z"/>'},it={width:24,height:24,body:'<path fill="currentColor" d="M3.34 17a10.017 10.017 0 0 1-.979-2.326a3 3 0 0 0 .003-5.347a9.99 9.99 0 0 1 2.5-4.337a3 3 0 0 0 4.632-2.674a9.99 9.99 0 0 1 5.007.003a3 3 0 0 0 4.632 2.671a10.056 10.056 0 0 1 2.503 4.336a3 3 0 0 0-.002 5.347a9.99 9.99 0 0 1-2.501 4.337a3 3 0 0 0-4.632 2.674a9.99 9.99 0 0 1-5.007-.002a3 3 0 0 0-4.631-2.672A10.018 10.018 0 0 1 3.339 17Zm5.66.196a4.992 4.992 0 0 1 2.25 2.77c.499.047 1 .048 1.499.002a4.993 4.993 0 0 1 2.25-2.772a4.993 4.993 0 0 1 3.526-.564c.29-.408.54-.843.748-1.298A4.993 4.993 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8.152 8.152 0 0 0-.75-1.298A4.993 4.993 0 0 1 15 6.804a4.993 4.993 0 0 1-2.25-2.77c-.5-.047-1-.048-1.5-.001A4.993 4.993 0 0 1 9 6.804a4.993 4.993 0 0 1-3.526.564c-.29.408-.54.843-.747 1.298A4.993 4.993 0 0 1 6 12c0 1.26-.471 2.437-1.273 3.334a8.16 8.16 0 0 0 .75 1.298A4.993 4.993 0 0 1 9 17.196ZM12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6Zm0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z"/>'},Fn={width:1024,height:1024,body:'<path fill="currentColor" d="M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"/>'},Un={width:1024,height:1024,body:'<path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"/>'};pe("ubuntuFill",Hn);pe("menu",gn);pe("edit",En);pe("informationLine",On);pe("setUp",yn);pe("terminalWindowLine",Zn);pe("guide",Dn);pe("homeFilled",bn);pe("card",jn);pe("listCheck",Pn);pe("histogram",Rn);pe("ppt",Nn);pe("checkboxCircleLine",Bn);pe("flUser",wn);pe("role",qn);pe("setting",it);pe("dept",kn);pe("lollipop",Fn);pe("monitor",Un);const Wn=nn({id:"pure-setting",state:()=>({title:Je().Title,fixedHeader:Je().FixedHeader,hiddenSideBar:Je().HiddenSideBar}),getters:{getTitle(n){return n.title},getFixedHeader(n){return n.fixedHeader},getHiddenSideBar(n){return n.hiddenSideBar}},actions:{CHANGE_SETTING({key:n,value:e}){Reflect.has(this,n)&&(this[n]=e)},changeSetting(n){this.CHANGE_SETTING(n)}}});function St(){return Wn(on)}const Gn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Kn=_("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-8z"},null,-1),Xn=[Kn];function Jn(n,e){return h(),T("svg",Gn,Xn)}const qt={render:Jn},Yn={width:24,height:24,body:'<path fill="currentColor" d="M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1Zm13 2H6v15.432l6-3.761l6 3.761V4ZM8 9h8v2H8V9Z"/>'},Qn=["onMouseenter"],eo={class:"result-item-title"},to=le({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(n,{expose:e,emit:o}){const a=n,{t:c}=an(),r=E(),u=E(),m=Et(),g=q(()=>I=>({background:(I==null?void 0:I.path)===x.value?Vn().epThemeColor:"",color:I.path===x.value?"#fff":"",fontSize:I.path===x.value?"16px":"14px"})),x=q({get(){return a.value},set(I){o("update:value",I)}});async function f(I){x.value=I.path}function p(){o("enter")}function C(){u.value=window.innerHeight-window.innerHeight/10-140}Nt(r,()=>{C()});function b(I){var G;const L=(G=m==null?void 0:m.proxy)==null?void 0:G.$refs[`resultItemRef${I}`];if(!L)return 0;const z=L[0].offsetTop+128;return z>u.value?z-u.value:0}return We(()=>{C()}),e({handleScroll:b}),(I,L)=>(h(),T("div",{ref_key:"resultRef",ref:r,class:"result"},[(h(!0),T(ye,null,xe(I.options,(V,z)=>{var G,j;return h(),T("div",{key:V.path,ref_for:!0,ref:"resultItemRef"+z,class:"result-item dark:bg-[#1d1d1d]",style:ne(g.value(V)),onClick:p,onMouseenter:M=>f(V)},[(h(),O(Ae(t(Le)(((G=V.meta)==null?void 0:G.icon)??t(Yn))))),_("span",eo,Q(t(c)((j=V.meta)==null?void 0:j.title)),1),i(t(qt))],44,Qn)}),128))],512))}});const no=me(to,[["__scopeId","data-v-a3562d68"]]),oo={width:24,height:24,body:'<path fill="currentColor" d="M13 7.828V20h-2V7.828l-5.364 5.364l-1.414-1.414L12 4l7.778 7.778l-1.414 1.414L13 7.828Z"/>'},ao={width:24,height:24,body:'<path fill="currentColor" d="m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2v12.172Z"/>'},so={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},lo=_("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 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-2Z"},null,-1),ro=[lo];function io(n,e){return h(),T("svg",so,ro)}const co={render:io},uo={class:"search-footer text-[#333] dark:text-white"},ho={class:"search-footer-item"},fo={class:"search-footer-item"},po={class:"search-footer-item"},vo={key:0,class:"search-footer-total"},mo=le({__name:"SearchFooter",props:{total:{default:0}},setup(n){const e=n,{device:o}=Me();return(a,c)=>{const r=k("IconifyIconOffline");return h(),T("div",uo,[_("span",ho,[i(t(qt),{class:"icon"}),oe(" 确认 ")]),_("span",fo,[i(r,{icon:t(oo),class:"icon"},null,8,["icon"]),i(r,{icon:t(ao),class:"icon"},null,8,["icon"]),oe(" 切换 ")]),_("span",po,[i(t(co),{class:"icon"}),oe(" 关闭 ")]),t(o)!=="mobile"&&e.total>0?(h(),T("p",vo," 共"+Q(e.total)+"项 ",1)):Y("",!0)])}}});const _o=me(mo,[["__scopeId","data-v-d2a25abb"]]),go={width:24,height:24,body:'<path fill="currentColor" d="m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"/>'},yo={class:"search-result-container"},bo=le({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(n,{emit:e}){const o=n,{device:a}=Me(),c=ot(),r=E(""),u=E(),m=E(),g=E(""),x=E(null),f=sn([]),p=Ot(L,300),C=q(()=>ln(ge().wholeMenus)),b=q({get(){return o.value},set(y){e("update:value",y)}});function I(y){const w=[];function P(F){F.forEach($=>{w.push($),$.children&&P($.children)})}return P(y),w}function L(){var w;const y=I(C.value);f.value=y.filter(P=>{var F;return r.value&&we((F=P.meta)==null?void 0:F.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())}),((w=f.value)==null?void 0:w.length)>0?g.value=f.value[0].path:g.value=""}function V(){b.value=!1,setTimeout(()=>{f.value=[],r.value=""},200)}function z(y){const w=m.value.handleScroll(y);u.value.setScrollTop(w)}function G(){const{length:y}=f.value;if(y===0)return;const w=f.value.findIndex(P=>P.path===g.value);w===0?(g.value=f.value[y-1].path,z(f.value.length-1)):(g.value=f.value[w-1].path,z(w-1))}function j(){const{length:y}=f.value;if(y===0)return;const w=f.value.findIndex(P=>P.path===g.value);w+1===y?g.value=f.value[0].path:g.value=f.value[w+1].path,z(w+1)}function M(){const{length:y}=f.value;y===0||g.value===""||(c.push(g.value),V())}return pt("Enter",M),pt("ArrowUp",G),pt("ArrowDown",j),(y,w)=>{const P=k("IconifyIconOffline"),F=k("el-input"),$=k("el-empty"),Z=k("el-scrollbar"),he=k("el-dialog");return h(),O(he,{top:"5vh",class:"pure-search-dialog",modelValue:b.value,"onUpdate:modelValue":w[2]||(w[2]=J=>b.value=J),"show-close":!1,width:t(a)==="mobile"?"80vw":"40vw","before-close":V,style:{borderRadius:"6px"},onOpened:w[3]||(w[3]=J=>x.value.focus()),onClosed:w[4]||(w[4]=J=>x.value.blur())},{footer:v(()=>[i(_o,{total:f.value.length},null,8,["total"])]),default:v(()=>[i(F,{ref_key:"inputRef",ref:x,size:"large",modelValue:r.value,"onUpdate:modelValue":w[0]||(w[0]=J=>r.value=J),clearable:"",placeholder:"搜索菜单",onInput:t(p)},{prefix:v(()=>[i(P,{icon:t(go),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),_("div",yo,[i(Z,{ref_key:"scrollbarRef",ref:u,"max-height":"calc(90vh - 140px)"},{default:v(()=>[f.value.length===0?(h(),O($,{key:0,description:"暂无搜索结果"})):(h(),O(no,{key:1,ref_key:"resultRef",ref:m,value:g.value,"onUpdate:value":w[1]||(w[1]=J=>g.value=J),options:f.value,onClick:M},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}});const wo=me(bo,[["__scopeId","data-v-d78b0935"]]);function ko(n=!1){const e=E(n);function o(u){e.value=u}function a(){o(!0)}function c(){o(!1)}function r(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:c,toggle:r}}const $t=le({__name:"index",setup(n){const{bool:e,toggle:o}=ko();function a(){o()}return(c,r)=>{const u=k("IconifyIconOffline");return h(),T(ye,null,[_("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[i(u,{icon:t(zn)},null,8,["icon"])]),i(t(wo),{value:t(e),"onUpdate:value":r[0]||(r[0]=m=>Zt(e)?e.value=m:null)},null,8,["value"])],64)}}}),At=[{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"}]}],xo={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Co={class:"notice-container-text"},So={class:"notice-text-title text-[#000000d9] dark:text-white"},$o={class:"notice-text-datetime text-[#00000073] dark:text-white"},Io=le({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(n){const e=n,o=E(null),a=E(!1),c=E(null),r=E(!1),{tooltipEffect:u}=Me(),m=Dt();function g(){Be(()=>{var f,p;((f=o.value)==null?void 0:f.scrollWidth)>((p=o.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function x(f,p){const C=document.createElement("span");C.innerText=p,C.className="getDescriptionWidth",document.querySelector("body").appendChild(C);const b=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const I=f.target.offsetWidth;b>2*I?r.value=!0:r.value=!1}return(f,p)=>{var L,V;const C=k("el-avatar"),b=k("el-tooltip"),I=k("el-tag");return h(),T("div",xo,[e.noticeItem.avatar?(h(),O(C,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),_("div",Co,[_("div",So,[i(b,{"popper-class":"notice-title-popper",effect:t(u),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!t(m)},{default:v(()=>[_("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:g},Q(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(h(),O(I,{key:0,type:(V=e.noticeItem)==null?void 0:V.status,size:"small",class:"notice-title-extra"},{default:v(()=>{var z;return[oe(Q((z=e.noticeItem)==null?void 0:z.extra),1)]}),_:1},8,["type"])):Y("",!0)]),i(b,{"popper-class":"notice-title-popper",effect:t(u),disabled:!r.value,content:e.noticeItem.description,placement:"top-start"},{default:v(()=>[_("div",{ref_key:"descriptionRef",ref:c,class:"notice-text-description",onMouseover:p[0]||(p[0]=z=>x(z,e.noticeItem.description))},Q(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),_("div",$o,Q(e.noticeItem.datetime),1)])])}}});const Mo=me(Io,[["__scopeId","data-v-2a7dbc48"]]),To={key:0},Vo=le({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(n){const e=n;return(o,a)=>{const c=k("el-empty");return e.list.length?(h(),T("div",To,[(h(!0),T(ye,null,xe(e.list,(r,u)=>(h(),O(Mo,{noticeItem:r,key:u},null,8,["noticeItem"]))),128))])):(h(),O(c,{key:1,description:"暂无数据"}))}}}),zo={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"/><path fill="currentColor" d="M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"/><path fill="currentColor" d="M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"/>'},Lo={class:"dropdown-badge navbar-bg-hover select-none"},Ao={class:"header-notice-icon"},Ho={class:"noticeList-container"},Eo=le({__name:"index",setup(n){const e=E(0),o=E(At),a=E(At[0].key);return o.value.map(c=>e.value+=c.list.length),(c,r)=>{const u=k("IconifyIconOffline"),m=k("el-badge"),g=k("el-scrollbar"),x=k("el-tab-pane"),f=k("el-tabs"),p=k("el-dropdown-menu"),C=k("el-dropdown");return h(),O(C,{trigger:"click",placement:"bottom-end"},{dropdown:v(()=>[i(p,null,{default:v(()=>[i(f,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=b=>a.value=b),class:"dropdown-tabs"},{default:v(()=>[(h(!0),T(ye,null,xe(o.value,b=>(h(),O(x,{key:b.key,label:`${b.name}(${b.list.length})`,name:`${b.key}`},{default:v(()=>[i(g,{"max-height":"330px"},{default:v(()=>[_("div",Ho,[i(Vo,{list:b.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:v(()=>[_("span",Lo,[i(m,{value:e.value,max:99},{default:v(()=>[_("span",Ao,[i(u,{icon:t(zo)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const It=me(Eo,[["__scopeId","data-v-4e7fe581"]]),Oo={key:0,class:"flex justify-center items-center"},mt=le({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(n){const e=n;return(o,a)=>e.extraIcon?(h(),T("div",Oo,[(h(),O(Ae(t(Le)(ke(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),ct={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.985 9.985 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.985 9.985 0 0 1 12 22Zm7-6v-3h-8v-2h8V8l5 4l-5 4Z"/>'},Zo={key:0,class:"horizontal-header"},Do={class:"select-none"},jo={class:"horizontal-header-right"},Po={class:"check-zh"},Ro={class:"check-en"},No={class:"el-dropdown-link navbar-bg-hover select-none"},Bo=["src"],qo={key:0,class:"dark:text-white"},Fo=["title"],Uo=le({__name:"mixNav",setup(n){const e=E(),o=E(null),{t:a,route:c,locale:r,translationCh:u,translationEn:m}=xt(e),{device:g,routers:x,logout:f,onPanel:p,menuSelect:C,resolvePath:b,username:I,userAvatar:L,getDivStyle:V,avatarsStyle:z,getDropdownItemStyle:G,getDropdownItemClass:j}=Me();function M(y){var F,$;const w=ge().wholeMenus,P=gt(y,w)[0];o.value=($=(F=nt(P,w))==null?void 0:F.children[0])==null?void 0:$.path}return We(()=>{M(c.path)}),Be(()=>{var y;(y=e.value)==null||y.handleResize()}),Re(()=>[c.path,ge().wholeMenus],()=>{M(c.path)}),(y,w)=>{const P=k("el-menu-item"),F=k("el-menu"),$=k("IconifyIconOffline"),Z=k("el-dropdown-item"),he=k("el-dropdown-menu"),J=k("el-dropdown"),re=at("loading");return t(g)!=="mobile"?ve((h(),T("div",Zo,[i(F,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value,onSelect:w[0]||(w[0]=ae=>t(C)(ae,t(x)))},{default:v(()=>[(h(!0),T(ye,null,xe(t(ge)().wholeMenus,ae=>(h(),O(P,{key:ae.path,index:t(b)(ae)||ae.redirect},{title:v(()=>[ke(ae.meta.icon)?(h(),T("div",{key:0,class:ce(["sub-menu-icon",ae.meta.icon])},[(h(),O(Ae(t(Le)(ae.meta&&ke(ae.meta.icon)))))],2)):Y("",!0),_("div",{style:ne(t(V))},[_("span",Do,Q(t(we)(ae.meta.title)),1),i(mt,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),_("div",jo,[i($t),i(It,{id:"header-notice"}),i(J,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(he,{class:"translation"},{default:v(()=>[i(Z,{style:ne(t(G)(t(r),"zh")),class:ce(["dark:!text-white",t(j)(t(r),"zh")]),onClick:t(u)},{default:v(()=>[ve(_("span",Po,[i($,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(r)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(Z,{style:ne(t(G)(t(r),"en")),class:ce(["dark:!text-white",t(j)(t(r),"en")]),onClick:t(m)},{default:v(()=>[ve(_("span",Ro,[i($,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(r)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(J,{trigger:"click"},{dropdown:v(()=>[i(he,{class:"logout"},{default:v(()=>[i(Z,{onClick:t(f)},{default:v(()=>[i($,{icon:t(ct),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[_("span",No,[_("img",{src:t(L),style:ne(t(z))},null,12,Bo),t(I)?(h(),T("p",qo,Q(t(I)),1)):Y("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:t(a)("buttons.hssystemSet"),onClick:w[1]||(w[1]=(...ae)=>t(p)&&t(p)(...ae))},[i($,{icon:t(it)},null,8,["icon"])],8,Fo)])])),[[re,t(ge)().wholeMenus.length===0]]):Y("",!0)}}});const Wo=me(Uo,[["__scopeId","data-v-59cf1b62"]]),Go=["onClick"],Ko=le({__name:"breadCrumb",setup(n){const e=yt(),o=E([]),a=ot(),c=a.options.routes,r=Te().multiTags,u=()=>{let g;Object.keys(e.query).length>0?r.forEach(p=>{Ne(e.query,p==null?void 0:p.query)&&(g=ke(p))}):Object.keys(e.params).length>0?r.forEach(p=>{Ne(e.params,p==null?void 0:p.params)&&(g=ke(p))}):g=nt(a.currentRoute.value.path,c);const x=gt(a.currentRoute.value.name,c,"name"),f=[];x.forEach(p=>{p!=="/"&&f.push(nt(p,c))}),f.push(g),f.forEach((p,C)=>{g!=null&&g.query||g!=null&&g.params||p!=null&&p.children&&p.children.forEach(b=>{var I,L;((I=b==null?void 0:b.meta)==null?void 0:I.title)===((L=p==null?void 0:p.meta)==null?void 0:L.title)&&f.splice(C,1)})}),o.value=f.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},m=g=>{const{redirect:x,path:f}=g;x?a.push(x):a.push(f)};return We(()=>{u()}),Re(()=>e.path,()=>{u()},{deep:!0}),(g,x)=>{const f=k("el-breadcrumb-item"),p=k("el-breadcrumb");return h(),O(p,{class:"!leading-[50px] select-none",separator:"/"},{default:v(()=>[i(rn,{name:"breadcrumb"},{default:v(()=>[(h(!0),T(ye,null,xe(o.value,C=>(h(),O(f,{class:"!inline !items-stretch",key:C.path},{default:v(()=>[_("a",{onClick:Ge(b=>m(C),["prevent"])},Q(t(we)(C.meta.title)),9,Go)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Ft={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM6.95 3.55v9.9L2 8.5l4.95-4.95ZM21 11v2h-9v-2h9Zm0-7v2h-9V4h9Z"/>'},Xo={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM17.05 3.55L22 8.5l-4.95 4.95v-9.9ZM12 11v2H3v-2h9Zm0-7v2H3V4h9Z"/>'},Jo=["title"],Yo=le({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=()=>{e("toggleClick")};return(c,r)=>{const u=k("IconifyIconOffline");return h(),T("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[i(u,{icon:o.isActive?t(Ft):t(Xo),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Jo)}}}),Qo={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},ea={key:3,class:"vertical-header-right"},ta={class:"check-en"},na={class:"el-dropdown-link navbar-bg-hover select-none"},oa=["src"],aa={key:0,class:"dark:text-white"},sa=["title"],la=le({__name:"navbar",setup(n){const{layout:e,device:o,logout:a,onPanel:c,pureApp:r,username:u,userAvatar:m,avatarsStyle:g,toggleSideBar:x,getDropdownItemStyle:f,getDropdownItemClass:p}=Me(),{t:C,locale:b,translationCh:I,translationEn:L}=xt();return(V,z)=>{const G=k("IconifyIconOffline"),j=k("el-dropdown-item"),M=k("el-dropdown-menu"),y=k("el-dropdown");return h(),T("div",Qo,[t(o)==="mobile"?(h(),O(Yo,{key:0,class:"hamburger-container","is-active":t(r).sidebar.opened,onToggleClick:t(x)},null,8,["is-active","onToggleClick"])):Y("",!0),t(e)!=="mix"&&t(o)!=="mobile"?(h(),O(Ko,{key:1,class:"breadcrumb-container"})):Y("",!0),t(e)==="mix"?(h(),O(Wo,{key:2})):Y("",!0),t(e)==="vertical"?(h(),T("div",ea,[i($t),i(It,{id:"header-notice"}),i(y,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(M,{class:"translation"},{default:v(()=>[i(j,{style:ne(t(f)(t(b),"zh")),class:ce(["dark:!text-white",t(p)(t(b),"zh")]),onClick:t(I)},{default:v(()=>[ve(i(G,{class:"check-zh",icon:t(qe)},null,8,["icon"]),[[Ce,t(b)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(j,{style:ne(t(f)(t(b),"en")),class:ce(["dark:!text-white",t(p)(t(b),"en")]),onClick:t(L)},{default:v(()=>[ve(_("span",ta,[i(G,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(b)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(y,{trigger:"click"},{dropdown:v(()=>[i(M,{class:"logout"},{default:v(()=>[i(j,{onClick:t(a)},{default:v(()=>[i(G,{icon:t(ct),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(C)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[_("span",na,[_("img",{src:t(m),style:ne(t(g))},null,12,oa),t(u)?(h(),T("p",aa,Q(t(u)),1)):Y("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:t(C)("buttons.hssystemSet"),onClick:z[0]||(z[0]=(...w)=>t(c)&&t(c)(...w))},[i(G,{icon:t(it)},null,8,["icon"])],8,sa)])):Y("",!0)])}}});const ra=me(la,[["__scopeId","data-v-fc735608"]]),ia={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ca={width:24,height:24,body:'<path fill="currentColor" d="M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5V17Zm6-11v9h-2V6H5V4h14v2h-6Z"/>'},ua={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5Zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2h12Z"/>'},da={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5ZM7 17h12v2H7v2.5L3 18l4-3.5V17Z"/>'},Ut={width:1024,height:1024,body:'<path fill="currentColor" d="M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"/>'};function ha(){var F;const n=yt(),e=ot(),o=Et(),a=St(),c=E(0),r=E(0),u=E(0),m=E(!1),g=E(-1),x=E({}),f=E(((F=Ue().getItem(`${Ke()}configure`))==null?void 0:F.showModel)||"smart"),p=E(Ue().getItem(`${Ke()}configure`).hideTabs)??E("false"),C=q(()=>Te().multiTags),b=bt([{icon:Ln,text:_e("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Ut,text:_e("buttons.hscloseCurrentTab"),divided:!1,disabled:!(C.value.length>1),show:!0},{icon:da,text:_e("buttons.hscloseLeftTabs"),divided:!0,disabled:!(C.value.length>1),show:!0},{icon:ua,text:_e("buttons.hscloseRightTabs"),divided:!1,disabled:!(C.value.length>1),show:!0},{icon:ca,text:_e("buttons.hscloseOtherTabs"),divided:!0,disabled:!(C.value.length>2),show:!0},{icon:ia,text:_e("buttons.hscloseAllTabs"),divided:!1,disabled:!(C.value.length>1),show:!0},{icon:Ye,text:_e("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Ye,text:_e("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function I($,Z,he){var J,re;return cn((J=n==null?void 0:n.meta)==null?void 0:J.showLink)&&((re=n==null?void 0:n.meta)==null?void 0:re.showLink)===!1?Object.keys(n.query).length>0?Ne(n.query,$.query)?Z:he:Ne(n.params,$.params)?Z:he:n.path===$.path?Z:he}const L=q(()=>($,Z)=>{if(Z!==0)return I($,!0,!1)}),V=q(()=>$=>I($,"is-active","")),z=q(()=>$=>I($,"schedule-active","")),G=q(()=>({transform:`translateX(${u.value}px)`})),j=q(()=>({left:r.value+"px",top:c.value+"px"})),M=()=>{m.value=!1};function y($){if($&&(g.value=$),t(f)==="smart"){if(tt(o.refs["schedule"+$][0],"schedule-active"))return;je(!0,"schedule-in",o.refs["schedule"+$][0]),je(!1,"schedule-out",o.refs["schedule"+$][0])}else{if(tt(o.refs["dynamic"+$][0],"card-active"))return;je(!0,"card-in",o.refs["dynamic"+$][0]),je(!1,"card-out",o.refs["dynamic"+$][0])}}function w($){if(g.value=-1,t(f)==="smart"){if(tt(o.refs["schedule"+$][0],"schedule-active"))return;je(!1,"schedule-in",o.refs["schedule"+$][0]),je(!0,"schedule-out",o.refs["schedule"+$][0])}else{if(tt(o.refs["dynamic"+$][0],"card-active"))return;je(!1,"card-in",o.refs["dynamic"+$][0]),je(!0,"card-out",o.refs["dynamic"+$][0])}}function P(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return We(()=>{if(!f.value){const $=Ue().getItem(`${Ke()}configure`);$.showModel="card",Ue().setItem(`${Ke()}configure`,$)}}),Re(()=>m.value,()=>{In(document,"click",M)}),{route:n,router:e,visible:m,showTags:p,instance:o,multiTags:C,showModel:f,tagsViews:b,buttonTop:c,buttonLeft:r,translateX:u,pureSetting:a,activeIndex:g,getTabStyle:G,iconIsActive:L,linkIsActive:V,currentSelect:x,scheduleIsActive:z,getContextMenuStyle:j,$t:_e,closeMenu:M,onMounted:We,onMouseenter:y,onMouseleave:w,transformI18n:we,onContentFullScreen:P}}const fa={width:24,height:24,body:'<path fill="currentColor" d="m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222l4.95 4.95Z"/>'},pa={width:24,height:24,body:'<path fill="currentColor" d="m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414l-4.95 4.95Z"/>'},va={width:1024,height:1024,body:'<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'},ma={class:"arrow-left"},_a=["onContextmenu","onMouseenter","onMouseleave","onClick"],ga=["onClick"],ya={class:"arrow-right"},ba=["onClick"],wa={class:"arrow-down"},ka=le({__name:"index",setup(n){const{route:e,router:o,visible:a,showTags:c,instance:r,multiTags:u,tagsViews:m,buttonTop:g,buttonLeft:x,showModel:f,translateX:p,pureSetting:C,activeIndex:b,getTabStyle:I,iconIsActive:L,linkIsActive:V,currentSelect:z,scheduleIsActive:G,getContextMenuStyle:j,closeMenu:M,onMounted:y,onMouseenter:w,onMouseleave:P,transformI18n:F,onContentFullScreen:$}=ha(),Z=E(),he=E(),J=E(),re=E(!1),ae=vt().path,{VITE_HIDE_HOME:Ee}={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},{isFullscreen:Oe,toggle:l}=Mn(),s=()=>{const S=u.value.findIndex(A=>A.query?Ne(e.query,A.query):A.params?Ne(e.params,A.params):A.path===e.path);d(S)},d=async S=>{var B,ie;if(!r.refs["dynamic"+S])return;const D=r.refs["dynamic"+S][0],X=D==null?void 0:D.offsetLeft,fe=D==null?void 0:D.offsetWidth,R=J.value?(B=J.value)==null?void 0:B.offsetWidth:0;await Be();const te=Z.value?(ie=Z.value)==null?void 0:ie.offsetWidth:0;R<=te?re.value=!0:re.value=!1,te<R||X===0?p.value=0:X<-p.value?p.value=-X+10:X>-p.value&&X+fe<-p.value+R?p.value=Math.min(0,R-fe-X-10):p.value=-(X-(R-10-fe))},H=S=>{var X;const A=J.value?(X=J.value)==null?void 0:X.offsetWidth:0,D=Z.value?Z.value.offsetWidth:0;S>0?p.value=Math.min(0,p.value+S):A<D?p.value>=-(D-A)&&(p.value=Math.max(p.value+S,A-D)):p.value=0};function U(S,A){const D=u.value.some(fe=>fe.path===S);function X(fe,R,te){D||fe.forEach(B=>{const ie=te+B.path;B.path===R||ie===R?Te().handleTags("push",{path:R,parentPath:`/${te.split("/")[1]}`,meta:B.meta,name:B.name}):B.children&&B.children.length>0&&X(B.children,R,te)})}X(o.options.routes,S,A)}function N(){const{fullPath:S,query:A}=t(e);o.replace({path:"/redirect"+S,query:A}),ft(e,"refresh")}function W(S,A,D){var te,B,ie,ze;const X=u.value.findIndex($e=>{if($e.query){if($e.path===S.path)return $e.query===S.query}else if($e.params){if($e.path===S.path)return $e.params===S.params}else return $e.path===S.path}),fe=($e,en,tn)=>{tn?Te().handleTags("equal",[Ee==="false"?jt[0]:ke(vt()),S]):Te().handleTags("splice","",{startIndex:$e,length:en}),s()};D==="other"?fe(1,1,!0):D==="left"?fe(1,X-1):D==="right"?fe(X+1,u.value.length):fe(X,1);const R=Te().handleTags("slice");if(A===e.path){if(D==="left")return;(te=R[0])!=null&&te.query?o.push({name:R[0].name,query:R[0].query}):(B=R[0])!=null&&B.params?o.push({name:R[0].name,params:R[0].params}):o.push({path:R[0].path})}else{if(!u.value.length||u.value.some($e=>$e.path===e.path))return;(ie=R[0])!=null&&ie.query?o.push({name:R[0].name,query:R[0].query}):(ze=R[0])!=null&&ze.params?o.push({name:R[0].name,params:R[0].params}):o.push({path:R[0].path})}}function K(S,A){W(S,S.path,A),ft(e)}function se(S,A,D){if(A&&A.disabled)return;let X;switch(D?X={path:D.path,meta:D.meta,name:D.name,query:D==null?void 0:D.query,params:D==null?void 0:D.params}:X={path:e.path,meta:e.meta},S){case 0:N();break;case 1:K(X);break;case 2:K(X,"left");break;case 3:K(X,"right");break;case 4:K(X,"other");break;case 5:Te().handleTags("splice","",{startIndex:1,length:u.value.length}),o.push(ae),ft(e);break;case 6:l(),setTimeout(()=>{Oe.value?(m[6].icon=zt,m[6].text=_e("buttons.hswholeExitFullScreen")):(m[6].icon=Ye,m[6].text=_e("buttons.hswholeFullScreen"))},100);break;case 7:$(),setTimeout(()=>{C.hiddenSideBar?(m[7].icon=zt,m[7].text=_e("buttons.hscontentExitFullScreen")):(m[7].icon=Ye,m[7].text=_e("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{De(e.fullPath,e.query)})}function be(S){const{key:A,item:D}=S;se(A,D)}function Ze(S,A){se(S,A,z.value)}function ee(S){Array.of(1,2,3,4,5).forEach(A=>{m[A].show=S})}function Ve(S){Array.of(1,2,3,4,5).forEach(A=>{m[A].disabled=S})}function De(S,A={},D=!1){const X=u.value,fe=u.value.length;let R=-1;un(A)?R=X.findIndex(te=>te.path===S):R=X.findIndex(te=>Ne(te.query,A)),ee(!0),D&&(m[0].show=!0),R===1&&fe!==2?(m[2].show=!1,Array.of(1,3,4,5).forEach(te=>{m[te].disabled=!1}),m[2].disabled=!0):R===1&&fe===2?(Ve(!1),Array.of(2,3,4).forEach(te=>{m[te].show=!1,m[te].disabled=!0})):fe-1===R&&R!==0?(m[3].show=!1,Array.of(1,2,4,5).forEach(te=>{m[te].disabled=!1}),m[3].disabled=!0):R===0||S===`/redirect${ae}`?Ve(!0):Ve(!1)}function Yt(S,A){M(),S.path===ae?(ee(!1),m[0].show=!0):e.path!==S.path&&e.name!==S.name?(m[0].show=!1,De(S.path,S.query)):u.value.length===2&&e.path!==S.path?(ee(!0),m[4].show=!1):e.path===S.path&&De(S.path,S.query,!0),z.value=S;const D=105,X=t(he).getBoundingClientRect().left,R=t(he).offsetWidth-D,te=A.clientX-X+5;te>R?x.value=R:x.value=te,St().hiddenSideBar?g.value=A.clientY:g.value=A.clientY-40,Be(()=>{a.value=!0})}function Qt(S){const{name:A,path:D}=S;A?S.query?o.push({name:A,query:S.query}):S.params?o.push({name:A,params:S.params}):o.push({name:A}):o.push({path:D})}return st(()=>{r&&(De(e.fullPath),He.on("tagViewsChange",S=>{t(c)!==S&&(c.value=S)}),He.on("tagViewsShowModel",S=>{f.value=S}),He.on("changLayoutRoute",({indexPath:S,parentPath:A})=>{U(S,A),setTimeout(()=>{De(S)})}))}),Re([e],()=>{b.value=-1,s()}),Re(Oe,()=>{m[6].icon=Ye,m[6].text=_e("buttons.hswholeFullScreen")}),y(()=>{Nt(J,Ot(()=>{s()},200))}),(S,A)=>{const D=k("IconifyIconOffline"),X=k("router-link"),fe=k("el-dropdown-item"),R=k("el-dropdown-menu"),te=k("el-dropdown");return t(c)?Y("",!0):(h(),T("div",{key:0,ref_key:"containerDom",ref:he,class:"tags-view"},[ve(_("span",ma,[i(D,{icon:t(pa),onClick:A[0]||(A[0]=B=>H(200))},null,8,["icon"])],512),[[Ce,re.value]]),_("div",{ref_key:"scrollbarDom",ref:J,class:"scroll-container"},[_("div",{class:"tab select-none",ref_key:"tabDom",ref:Z,style:ne(t(I))},[(h(!0),T(ye,null,xe(t(u),(B,ie)=>(h(),T("div",{ref_for:!0,ref:"dynamic"+ie,key:ie,class:ce(["scroll-item is-closable",t(V)(B),t(e).path===B.path&&t(f)==="card"?"card-active":""]),onContextmenu:Ge(ze=>Yt(B,ze),["prevent"]),onMouseenter:Ge(ze=>t(w)(ie),["prevent"]),onMouseleave:Ge(ze=>t(P)(ie),["prevent"]),onClick:ze=>Qt(B)},[i(X,{to:B.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:v(()=>[oe(Q(t(F)(B.meta.title)),1)]),_:2},1032,["to"]),t(L)(B,ie)||ie===t(b)&&ie!==0?(h(),T("span",{key:0,class:"el-icon-close",onClick:Ge(ze=>K(B),["stop"])},[i(D,{icon:t(va)},null,8,["icon"])],8,ga)):Y("",!0),t(f)!=="card"?(h(),T("div",{key:1,ref_for:!0,ref:"schedule"+ie,class:ce([t(G)(B)])},null,2)):Y("",!0)],42,_a))),128))],4)],512),ve(_("span",ya,[i(D,{icon:t(An),onClick:A[1]||(A[1]=B=>H(-200))},null,8,["icon"])],512),[[Ce,re.value]]),i(wt,{name:"el-zoom-in-top"},{default:v(()=>[ve((h(),T("ul",{key:Math.random(),style:ne(t(j)),class:"contextmenu"},[(h(!0),T(ye,null,xe(t(m).slice(0,6),(B,ie)=>(h(),T("div",{key:ie,style:{display:"flex","align-items":"center"}},[B.show?(h(),T("li",{key:0,onClick:ze=>Ze(ie,B)},[i(D,{icon:B.icon},null,8,["icon"]),oe(" "+Q(t(F)(B.text)),1)],8,ba)):Y("",!0)]))),128))],4)),[[Ce,t(a)]])]),_:1}),i(te,{trigger:"click",placement:"bottom-end",onCommand:be},{dropdown:v(()=>[i(R,null,{default:v(()=>[(h(!0),T(ye,null,xe(t(m),(B,ie)=>(h(),O(fe,{key:ie,command:{key:ie,item:B},divided:B.divided,disabled:B.disabled},{default:v(()=>[i(D,{icon:B.icon},null,8,["icon"]),oe(" "+Q(t(F)(B.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:v(()=>[_("span",wa,[i(D,{icon:t(fa),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const xa=me(ka,[["__scopeId","data-v-9eba6a11"]]),Ca={key:1},Sa=le({__name:"appMain",props:{fixedHeader:Boolean},setup(n){const e=n,{$storage:o,$config:a}=kt(),c=q(()=>a==null?void 0:a.KeepAlive),r=q(()=>f=>f.meta.transition),u=q(()=>o==null?void 0:o.configure.hideTabs),m=q(()=>(o==null?void 0:o.layout.layout)==="vertical"),g=q(()=>[u.value&&m?"padding-top: 48px;":"",!u.value&&m?"padding-top: 85px;":"",u.value&&!m.value?"padding-top: 48px":"",!u.value&&!m.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),x=le({render(){return Xe(wt,{name:r.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":r.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(f,p)=>{const C=k("el-backtop"),b=k("el-scrollbar"),I=k("router-view");return h(),T("section",{class:ce([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ne(g.value)},[i(I,null,{default:v(({Component:L,route:V})=>[e.fixedHeader?(h(),O(b,{key:0},{default:v(()=>[i(C,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:v(()=>[i(t(Bt))]),_:1}),i(t(x),{route:V},{default:v(()=>[c.value?(h(),O(Lt,{key:0,include:t(ge)().cachePageList},[(h(),O(Ae(L),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(h(),O(Ae(L),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(h(),T("div",Ca,[i(t(x),{route:V},{default:v(()=>[c.value?(h(),O(Lt,{key:0,include:t(ge)().cachePageList},[(h(),O(Ae(L),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(h(),O(Ae(L),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Ht=me(Sa,[["__scopeId","data-v-ac212d1d"]]),Mt=n=>(lt("data-v-2fe46f27"),n=n(),rt(),n),$a=Mt(()=>_("div",{class:"right-panel-background"},null,-1)),Ia={class:"right-panel-items"},Ma={class:"project-configuration"},Ta=Mt(()=>_("h4",{class:"dark:text-white"},"项目配置",-1)),Va=Mt(()=>_("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),za=le({__name:"index",setup(n){const e=E(null),o=E(!1),a=q(()=>["mr-[20px]","outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]);return Tn(e,c=>{c.clientX>e.value.offsetLeft||(o.value=!1)}),He.on("openPanel",()=>{o.value=!0}),(c,r)=>{const u=k("IconifyIconOffline");return h(),T("div",{class:ce([{show:o.value},"right-panel-container"])},[$a,_("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[_("div",Ia,[_("div",Ma,[Ta,_("span",{title:"关闭配置",class:ce(a.value)},[i(u,{class:"dark:text-white",width:"20px",height:"20px",icon:t(Ut),onClick:r[0]||(r[0]=m=>o.value=!o.value)},null,8,["icon"])],2)]),Va,dn(c.$slots,"default",{},void 0,!0)])],512)],2)}}});const La=me(za,[["__scopeId","data-v-2fe46f27"]]),Se=n=>(lt("data-v-1ae80617"),n=n(),rt(),n),Aa={class:"pure-theme"},Ha=Se(()=>_("div",null,null,-1)),Ea=Se(()=>_("div",null,null,-1)),Oa=[Ha,Ea],Za=Se(()=>_("div",null,null,-1)),Da=Se(()=>_("div",null,null,-1)),ja=[Za,Da],Pa=Se(()=>_("div",null,null,-1)),Ra=Se(()=>_("div",null,null,-1)),Na=[Pa,Ra],Ba={class:"theme-color"},qa=["onClick"],Fa={class:"setting"},Ua=Se(()=>_("span",{class:"dark:text-white"},"灰色模式",-1)),Wa=Se(()=>_("span",{class:"dark:text-white"},"色弱模式",-1)),Ga=Se(()=>_("span",{class:"dark:text-white"},"隐藏标签页",-1)),Ka=Se(()=>_("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Xa=Se(()=>_("span",{class:"dark:text-white"},"标签页持久化",-1)),Ja=Se(()=>_("span",{class:"dark:text-white"},"标签风格",-1)),Ya=le({__name:"index",setup(n){var Oe,l;const e=ot(),{isDark:o}=Pt(),{device:a,tooltipEffect:c}=Me(),{$storage:r}=kt(),u=E(),m=E(),g=E(),{dataTheme:x,layoutTheme:f,themeColors:p,dataThemeChange:C,setEpThemeColor:b,setLayoutThemeColor:I}=Rt();if(t(f)){const s=t(f).layout,d=t(f).theme;xn({scopeName:`layout-theme-${d}`}),Ee(s)}const L=E(((Oe=r.configure)==null?void 0:Oe.showModel)??"smart"),V=E(((l=r.configure)==null?void 0:l.showLogo)??!0),z=bt({greyVal:r.configure.grey,weakVal:r.configure.weak,tabsVal:r.configure.hideTabs,showLogo:r.configure.showLogo,showModel:r.configure.showModel,multiTagsCache:r.configure.multiTagsCache}),G=q(()=>s=>({background:s})),j=q(()=>s=>!(s==="light"&&o.value));function M(s,d){const H=r.configure;H[s]=d,r.configure=H}function y(s,d,H){const U=H||document.body;let{className:N}=U;N=N.replace(d,"").trim(),U.className=s?`${N} ${d} `:N}const w=s=>{y(z.greyVal,"html-grey",document.querySelector("html")),M("grey",s)},P=s=>{y(z.weakVal,"html-weakness",document.querySelector("html")),M("weak",s)},F=()=>{const s=z.tabsVal;M("hideTabs",s),He.emit("tagViewsChange",s)},$=()=>{const s=z.multiTagsCache;M("multiTagsCache",s),Te().multiTagsCacheChange(s)};function Z(){hn(),Ue().clear(),fn().clear();const{Grey:s,Weak:d,MultiTagsCache:H,EpThemeColor:U,Layout:N}=Je();Pe().setLayout(N),b(U),Te().multiTagsCacheChange(H),y(s,"html-grey",document.querySelector("html")),y(d,"html-weakness",document.querySelector("html")),e.push("/login"),Te().handleTags("equal",[...jt]),pn()}function he(s){M("showModel",s),He.emit("tagViewsShowModel",s)}function J(){t(V)?M("showLogo",!0):M("showLogo",!1),He.emit("logoChange",t(V))}function re(s){s.forEach(d=>{y(!1,"is-select",t(d))})}const ae=q(()=>s=>s===f.value.theme&&f.value.theme!=="light"?"#fff":s===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent");function Ee(s){var d,H,U;f.value.layout=s,window.document.body.setAttribute("layout",s),r.layout={layout:s,theme:f.value.theme,darkMode:(d=r.layout)==null?void 0:d.darkMode,sidebarStatus:(H=r.layout)==null?void 0:H.sidebarStatus,epThemeColor:(U=r.layout)==null?void 0:U.epThemeColor},Pe().setLayout(s)}return Re(r,({layout:s})=>{switch(s.layout){case"vertical":y(!0,"is-select",t(m)),Fe(re([g]),50),Fe(re([u]),50);break;case"horizontal":y(!0,"is-select",t(g)),Fe(re([m]),50),Fe(re([u]),50);break;case"mix":y(!0,"is-select",t(u)),Fe(re([m]),50),Fe(re([g]),50);break}}),st(()=>{Be(()=>{var s,d;z.greyVal&&((s=document.querySelector("html"))==null||s.setAttribute("class","html-grey")),z.weakVal&&((d=document.querySelector("html"))==null||d.setAttribute("class","html-weakness")),z.tabsVal&&F()})}),(s,d)=>{const H=k("el-divider"),U=k("el-switch"),N=k("el-tooltip"),W=k("IconifyIconOffline"),K=k("el-icon"),se=k("el-radio"),be=k("el-radio-group"),Ze=k("el-button");return h(),O(La,null,{default:v(()=>[i(H,null,{default:v(()=>[oe("主题")]),_:1}),i(U,{modelValue:t(x),"onUpdate:modelValue":d[0]||(d[0]=ee=>Zt(x)?x.value=ee:null),"inline-prompt":"",class:"pure-datatheme","active-icon":t(Cn),"inactive-icon":t(Sn),onChange:t(C)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),i(H,null,{default:v(()=>[oe("导航栏模式")]),_:1}),_("ul",Aa,[i(N,{effect:t(c),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[_("li",{class:ce(t(f).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:m,onClick:d[1]||(d[1]=ee=>Ee("vertical"))},Oa,2)]),_:1},8,["effect"]),t(a)!=="mobile"?(h(),O(N,{key:0,effect:t(c),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[_("li",{class:ce(t(f).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:g,onClick:d[2]||(d[2]=ee=>Ee("horizontal"))},ja,2)]),_:1},8,["effect"])):Y("",!0),t(a)!=="mobile"?(h(),O(N,{key:1,effect:t(c),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[_("li",{class:ce(t(f).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:u,onClick:d[3]||(d[3]=ee=>Ee("mix"))},Na,2)]),_:1},8,["effect"])):Y("",!0)]),i(H,null,{default:v(()=>[oe("主题色")]),_:1}),_("ul",Ba,[(h(!0),T(ye,null,xe(t(p),(ee,Ve)=>ve((h(),T("li",{key:Ve,style:ne(G.value(ee.color)),onClick:De=>t(I)(ee.themeColor)},[i(K,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:ae.value(ee.themeColor)},{default:v(()=>[i(W,{icon:t(qe)},null,8,["icon"])]),_:2},1032,["color"])],12,qa)),[[Ce,j.value(ee.themeColor)]])),128))]),i(H,null,{default:v(()=>[oe("界面显示")]),_:1}),_("ul",Fa,[_("li",null,[Ua,i(U,{modelValue:z.greyVal,"onUpdate:modelValue":d[4]||(d[4]=ee=>z.greyVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:w},null,8,["modelValue"])]),_("li",null,[Wa,i(U,{modelValue:z.weakVal,"onUpdate:modelValue":d[5]||(d[5]=ee=>z.weakVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:P},null,8,["modelValue"])]),_("li",null,[Ga,i(U,{modelValue:z.tabsVal,"onUpdate:modelValue":d[6]||(d[6]=ee=>z.tabsVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])]),_("li",null,[Ka,i(U,{modelValue:V.value,"onUpdate:modelValue":d[7]||(d[7]=ee=>V.value=ee),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:J},null,8,["modelValue"])]),_("li",null,[Xa,i(U,{modelValue:z.multiTagsCache,"onUpdate:modelValue":d[8]||(d[8]=ee=>z.multiTagsCache=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:$},null,8,["modelValue"])]),_("li",null,[Ja,i(be,{modelValue:L.value,"onUpdate:modelValue":d[9]||(d[9]=ee=>L.value=ee),size:"small",onChange:he},{default:v(()=>[i(se,{label:"card"},{default:v(()=>[oe("卡片")]),_:1}),i(se,{label:"smart"},{default:v(()=>[oe("灵动")]),_:1})]),_:1},8,["modelValue"])])]),i(H),i(Ze,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:Z},{default:v(()=>[i(W,{icon:t(ct),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),oe(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const Qa=me(Ya,[["__scopeId","data-v-1ae80617"]]),Tt="/vue-pure-admin/logo.svg",Wt=n=>(lt("data-v-4cc9900f"),n=n(),rt(),n),es=Wt(()=>_("img",{src:Tt,alt:"logo"},null,-1)),ts={class:"sidebar-title"},ns=Wt(()=>_("img",{src:Tt,alt:"logo"},null,-1)),os={class:"sidebar-title"},as=le({__name:"logo",props:{collapse:Boolean},setup(n){const e=n,{title:o}=Me(),a=vt().path;return(c,r)=>{const u=k("router-link");return h(),T("div",{class:ce(["sidebar-logo-container",{collapses:e.collapse}])},[i(wt,{name:"sidebarLogoFade"},{default:v(()=>[e.collapse?(h(),O(u,{key:"props.collapse",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[es,_("span",ts,Q(t(o)),1)]),_:1},8,["title","to"])):(h(),O(u,{key:"expand",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[ns,_("span",os,Q(t(o)),1)]),_:1},8,["title","to"]))]),_:1})],2)}}});const ss=me(as,[["__scopeId","data-v-4cc9900f"]]);var et={exports:{}},Gt={},ls=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},_t={exports:{}};typeof Object.create=="function"?_t.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:_t.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var rs=_t.exports;(function(n){var e=/%[sdj%]/g;n.format=function(l){if(!j(l)){for(var s=[],d=0;d<arguments.length;d++)s.push(c(arguments[d]));return s.join(" ")}for(var d=1,H=arguments,U=H.length,N=String(l).replace(e,function(K){if(K==="%%")return"%";if(d>=U)return K;switch(K){case"%s":return String(H[d++]);case"%d":return Number(H[d++]);case"%j":try{return JSON.stringify(H[d++])}catch{return"[Circular]"}default:return K}}),W=H[d];d<U;W=H[++d])V(W)||!P(W)?N+=" "+W:N+=" "+c(W);return N},n.deprecate=function(l,s){if(y(vn.process))return function(){return n.deprecate(l,s).apply(this,arguments)};if(process.noDeprecation===!0)return l;var d=!1;function H(){if(!d){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),d=!0}return l.apply(this,arguments)}return H};var o={},a;n.debuglog=function(l){if(y(a)&&(a={}.NODE_DEBUG||""),l=l.toUpperCase(),!o[l])if(new RegExp("\\b"+l+"\\b","i").test(a)){var s=process.pid;o[l]=function(){var d=n.format.apply(n,arguments);console.error("%s %d: %s",l,s,d)}}else o[l]=function(){};return o[l]};function c(l,s){var d={seen:[],stylize:u};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),L(s)?d.showHidden=s:s&&n._extend(d,s),y(d.showHidden)&&(d.showHidden=!1),y(d.depth)&&(d.depth=2),y(d.colors)&&(d.colors=!1),y(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=r),g(d,l,d.depth)}n.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(l,s){var d=c.styles[s];return d?"\x1B["+c.colors[d][0]+"m"+l+"\x1B["+c.colors[d][1]+"m":l}function u(l,s){return l}function m(l){var s={};return l.forEach(function(d,H){s[d]=!0}),s}function g(l,s,d){if(l.customInspect&&s&&Z(s.inspect)&&s.inspect!==n.inspect&&!(s.constructor&&s.constructor.prototype===s)){var H=s.inspect(d,l);return j(H)||(H=g(l,H,d)),H}var U=x(l,s);if(U)return U;var N=Object.keys(s),W=m(N);if(l.showHidden&&(N=Object.getOwnPropertyNames(s)),$(s)&&(N.indexOf("message")>=0||N.indexOf("description")>=0))return f(s);if(N.length===0){if(Z(s)){var K=s.name?": "+s.name:"";return l.stylize("[Function"+K+"]","special")}if(w(s))return l.stylize(RegExp.prototype.toString.call(s),"regexp");if(F(s))return l.stylize(Date.prototype.toString.call(s),"date");if($(s))return f(s)}var se="",be=!1,Ze=["{","}"];if(I(s)&&(be=!0,Ze=["[","]"]),Z(s)){var ee=s.name?": "+s.name:"";se=" [Function"+ee+"]"}if(w(s)&&(se=" "+RegExp.prototype.toString.call(s)),F(s)&&(se=" "+Date.prototype.toUTCString.call(s)),$(s)&&(se=" "+f(s)),N.length===0&&(!be||s.length==0))return Ze[0]+se+Ze[1];if(d<0)return w(s)?l.stylize(RegExp.prototype.toString.call(s),"regexp"):l.stylize("[Object]","special");l.seen.push(s);var Ve;return be?Ve=p(l,s,d,W,N):Ve=N.map(function(De){return C(l,s,d,W,De,be)}),l.seen.pop(),b(Ve,se,Ze)}function x(l,s){if(y(s))return l.stylize("undefined","undefined");if(j(s)){var d="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(d,"string")}if(G(s))return l.stylize(""+s,"number");if(L(s))return l.stylize(""+s,"boolean");if(V(s))return l.stylize("null","null")}function f(l){return"["+Error.prototype.toString.call(l)+"]"}function p(l,s,d,H,U){for(var N=[],W=0,K=s.length;W<K;++W)Oe(s,String(W))?N.push(C(l,s,d,H,String(W),!0)):N.push("");return U.forEach(function(se){se.match(/^\d+$/)||N.push(C(l,s,d,H,se,!0))}),N}function C(l,s,d,H,U,N){var W,K,se;if(se=Object.getOwnPropertyDescriptor(s,U)||{value:s[U]},se.get?se.set?K=l.stylize("[Getter/Setter]","special"):K=l.stylize("[Getter]","special"):se.set&&(K=l.stylize("[Setter]","special")),Oe(H,U)||(W="["+U+"]"),K||(l.seen.indexOf(se.value)<0?(V(d)?K=g(l,se.value,null):K=g(l,se.value,d-1),K.indexOf(`
|
||
`)>-1&&(N?K=K.split(`
|
||
`).map(function(be){return" "+be}).join(`
|
||
`).substr(2):K=`
|
||
`+K.split(`
|
||
`).map(function(be){return" "+be}).join(`
|
||
`))):K=l.stylize("[Circular]","special")),y(W)){if(N&&U.match(/^\d+$/))return K;W=JSON.stringify(""+U),W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.substr(1,W.length-2),W=l.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=l.stylize(W,"string"))}return W+": "+K}function b(l,s,d){var H=l.reduce(function(U,N){return N.indexOf(`
|
||
`)>=0,U+N.replace(/\u001b\[\d\d?m/g,"").length+1},0);return H>60?d[0]+(s===""?"":s+`
|
||
`)+" "+l.join(`,
|
||
`)+" "+d[1]:d[0]+s+" "+l.join(", ")+" "+d[1]}function I(l){return Array.isArray(l)}n.isArray=I;function L(l){return typeof l=="boolean"}n.isBoolean=L;function V(l){return l===null}n.isNull=V;function z(l){return l==null}n.isNullOrUndefined=z;function G(l){return typeof l=="number"}n.isNumber=G;function j(l){return typeof l=="string"}n.isString=j;function M(l){return typeof l=="symbol"}n.isSymbol=M;function y(l){return l===void 0}n.isUndefined=y;function w(l){return P(l)&&J(l)==="[object RegExp]"}n.isRegExp=w;function P(l){return typeof l=="object"&&l!==null}n.isObject=P;function F(l){return P(l)&&J(l)==="[object Date]"}n.isDate=F;function $(l){return P(l)&&(J(l)==="[object Error]"||l instanceof Error)}n.isError=$;function Z(l){return typeof l=="function"}n.isFunction=Z;function he(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l>"u"}n.isPrimitive=he,n.isBuffer=ls;function J(l){return Object.prototype.toString.call(l)}function re(l){return l<10?"0"+l.toString(10):l.toString(10)}var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var l=new Date,s=[re(l.getHours()),re(l.getMinutes()),re(l.getSeconds())].join(":");return[l.getDate(),ae[l.getMonth()],s].join(" ")}n.log=function(){console.log("%s - %s",Ee(),n.format.apply(n,arguments))},n.inherits=rs,n._extend=function(l,s){if(!s||!P(s))return l;for(var d=Object.keys(s),H=d.length;H--;)l[d[H]]=s[d[H]];return l};function Oe(l,s){return Object.prototype.hasOwnProperty.call(l,s)}})(Gt);var is=process.platform==="win32",Ie=Gt;function ut(n,e){for(var o=[],a=0;a<n.length;a++){var c=n[a];!c||c==="."||(c===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(c))}return o}function Qe(n){for(var e=n.length-1,o=0;o<=e&&!n[o];o++);for(var a=e;a>=0&&!n[a];a--);return o===0&&a===e?n:o>a?[]:n.slice(o,a+1)}var Kt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,cs=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ue={};function dt(n){var e=Kt.exec(n),o=(e[1]||"")+(e[2]||""),a=e[3]||"",c=cs.exec(a),r=c[1],u=c[2],m=c[3];return[o,r,u,m]}function Vt(n){var e=Kt.exec(n),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Xt(n){return"\\\\"+n.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ue.resolve=function(){for(var n="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var c;if(a>=0?c=arguments[a]:n?(c=process.env["="+n],(!c||c.substr(0,3).toLowerCase()!==n.toLowerCase()+"\\")&&(c=n+"\\")):c=process.cwd(),Ie.isString(c)){if(!c)continue}else throw new TypeError("Arguments to path.resolve must be strings");var r=Vt(c),u=r.device,m=r.isUnc,g=r.isAbsolute,x=r.tail;if(!(u&&n&&u.toLowerCase()!==n.toLowerCase())&&(n||(n=u),o||(e=x+"\\"+e,o=g),n&&o))break}return m&&(n=Xt(n)),e=ut(e.split(/[\\\/]+/),!o).join("\\"),n+(o?"\\":"")+e||"."};ue.normalize=function(n){var e=Vt(n),o=e.device,a=e.isUnc,c=e.isAbsolute,r=e.tail,u=/[\\\/]$/.test(r);return r=ut(r.split(/[\\\/]+/),!c).join("\\"),!r&&!c&&(r="."),r&&u&&(r+="\\"),a&&(o=Xt(o)),o+(c?"\\":"")+r};ue.isAbsolute=function(n){return Vt(n).isAbsolute};ue.join=function(){for(var n=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&n.push(o)}var a=n.join("\\");return/^[\\\/]{2}[^\\\/]/.test(n[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),ue.normalize(a)};ue.relative=function(n,e){n=ue.resolve(n),e=ue.resolve(e);for(var o=n.toLowerCase(),a=e.toLowerCase(),c=Qe(e.split("\\")),r=Qe(o.split("\\")),u=Qe(a.split("\\")),m=Math.min(r.length,u.length),g=m,x=0;x<m;x++)if(r[x]!==u[x]){g=x;break}if(g==0)return e;for(var f=[],x=g;x<r.length;x++)f.push("..");return f=f.concat(c.slice(g)),f.join("\\")};ue._makeLong=function(n){if(!Ie.isString(n))return n;if(!n)return"";var e=ue.resolve(n);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):n};ue.dirname=function(n){var e=dt(n),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};ue.basename=function(n,e){var o=dt(n)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};ue.extname=function(n){return dt(n)[3]};ue.format=function(n){if(!Ie.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Ie.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir,a=n.base||"";return o?o[o.length-1]===ue.sep?o+a:o+ue.sep+a:a};ue.parse=function(n){if(!Ie.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=dt(n);if(!e||e.length!==4)throw new TypeError("Invalid path '"+n+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};ue.sep="\\";ue.delimiter=";";var us=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,de={};function ht(n){return us.exec(n).slice(1)}de.resolve=function(){for(var n="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ie.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");n=a+"/"+n,e=a[0]==="/"}return n=ut(n.split("/"),!e).join("/"),(e?"/":"")+n||"."};de.normalize=function(n){var e=de.isAbsolute(n),o=n&&n[n.length-1]==="/";return n=ut(n.split("/"),!e).join("/"),!n&&!e&&(n="."),n&&o&&(n+="/"),(e?"/":"")+n};de.isAbsolute=function(n){return n.charAt(0)==="/"};de.join=function(){for(var n="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(n?n+="/"+o:n+=o)}return de.normalize(n)};de.relative=function(n,e){n=de.resolve(n).substr(1),e=de.resolve(e).substr(1);for(var o=Qe(n.split("/")),a=Qe(e.split("/")),c=Math.min(o.length,a.length),r=c,u=0;u<c;u++)if(o[u]!==a[u]){r=u;break}for(var m=[],u=r;u<o.length;u++)m.push("..");return m=m.concat(a.slice(r)),m.join("/")};de._makeLong=function(n){return n};de.dirname=function(n){var e=ht(n),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};de.basename=function(n,e){var o=ht(n)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};de.extname=function(n){return ht(n)[3]};de.format=function(n){if(!Ie.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Ie.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir?n.dir+de.sep:"",a=n.base||"";return o+a};de.parse=function(n){if(!Ie.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=ht(n);if(!e||e.length!==4)throw new TypeError("Invalid path '"+n+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};de.sep="/";de.delimiter=":";is?et.exports=ue:et.exports=de;et.exports.posix=de;et.exports.win32=ue;var ds=et.exports;const hs=mn(ds),fs={width:1024,height:1024,body:'<path fill="currentColor" d="M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8l316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"/>'},ps={width:1024,height:1024,body:'<path fill="currentColor" d="M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8l316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"/>'},vs={width:1024,height:1024,body:'<path fill="currentColor" d="M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"/>'},ms={width:1024,height:1024,body:'<path fill="currentColor" d="M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"/>'},_s={key:0},gs={key:1},Jt=le({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(n){const e=n,{layout:o,isCollapse:a,tooltipEffect:c,getDivStyle:r}=Me(),u=q(()=>({width:"100%",textAlign:"center"})),m=q(()=>({display:"flex",alignItems:"center"})),g=q(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),x=q(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),f=q(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),p=q(()=>M=>{var y;return a.value?{width:"100%",textAlign:(M==null?void 0:M.parentId)===null||o.value==="mix"&&((y=M==null?void 0:M.pathList)==null?void 0:y.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),C=q(()=>{var M;return(M=Je())!=null&&M.MenuArrowIconNoTransition?{"expand-close-icon":Le(ps),"expand-open-icon":Le(fs),"collapse-close-icon":Le(ms),"collapse-open-icon":Le(vs)}:""}),b=E(null),I=new WeakMap,L=E(null);function V(M){I.get(M)||Be(()=>{var y,w;((y=L.value)==null?void 0:y.scrollWidth)>((w=L.value)==null?void 0:w.clientWidth)?Object.assign(M,{showTooltip:!0}):Object.assign(M,{showTooltip:!1}),I.set(M,!0)})}function z(M,y){var P;const w=((M==null?void 0:M.length)>1?M.toString().slice(0,1):M)+"...";return y&&!(a.value&&(y==null?void 0:y.parentId)===null)?o.value==="mix"&&((P=y==null?void 0:y.pathList)==null?void 0:P.length)===2&&a.value?w:M:w}function G(M=[],y){var P,F;const w=M.filter($=>(b.value=$,!0));return(F=(P=w[0])==null?void 0:P.meta)!=null&&F.showParent?!1:w.length===1?!0:w.length===0?(b.value={...y,path:"",noShowingChildren:!0},!0):!1}function j(M){const y=/^http(s?):\/\//;return y.test(M)||y.test(e.basePath)?M||e.basePath:hs.posix.resolve(e.basePath,M)}return(M,y)=>{const w=k("el-tooltip"),P=k("el-menu-item"),F=k("sidebar-item",!0),$=k("el-sub-menu");return G(e.item.children,e.item)&&(!b.value.children||b.value.noShowingChildren)?(h(),O(P,{key:0,index:j(b.value.path),class:ce({"submenu-title-noDropdown":!n.isNest}),style:ne(m.value)},{title:v(()=>[_("div",{style:ne(t(r))},[t(o)==="horizontal"?(h(),T("span",_s,Q(t(we)(b.value.meta.title)),1)):(h(),O(w,{key:1,placement:"top",effect:t(c),offset:-10,disabled:!b.value.showTooltip},{content:v(()=>[oe(Q(t(we)(b.value.meta.title)),1)]),default:v(()=>[_("span",{ref_key:"menuTextRef",ref:L,style:ne(g.value),onMouseover:y[0]||(y[0]=Z=>V(b.value))},Q(t(we)(b.value.meta.title)),37)]),_:1},8,["effect","disabled"])),i(mt,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:v(()=>{var Z,he,J,re,ae;return[ke(e.item.meta.icon)?(h(),T("div",{key:0,class:"sub-menu-icon",style:ne(x.value)},[(h(),O(Ae(t(Le)(ke(b.value.meta.icon)||e.item.meta&&ke(e.item.meta.icon)))))],4)):Y("",!0),!((Z=e.item)!=null&&Z.meta.icon)&&t(a)&&t(o)==="vertical"&&((J=(he=e.item)==null?void 0:he.pathList)==null?void 0:J.length)===1?(h(),T("span",{key:1,style:ne(u.value)},Q(z(t(we)(b.value.meta.title))),5)):Y("",!0),!b.value.meta.icon&&t(a)&&t(o)==="mix"&&((ae=(re=e.item)==null?void 0:re.pathList)==null?void 0:ae.length)===2?(h(),T("span",{key:2,style:ne(u.value)},Q(z(t(we)(b.value.meta.title))),5)):Y("",!0)]}),_:1},8,["index","class","style"])):(h(),O($,_n({key:1,ref:"subMenu"},C.value,{index:j(e.item.path)}),{title:v(()=>[ke(e.item.meta.icon)?(h(),T("div",{key:0,style:ne(x.value),class:"sub-menu-icon"},[(h(),O(Ae(t(Le)(e.item.meta&&ke(e.item.meta.icon)))))],4)):Y("",!0),t(o)==="horizontal"?(h(),T("span",gs,Q(t(we)(e.item.meta.title)),1)):Y("",!0),t(a)&&ke(e.item.meta.icon)&&e.item.parentId===null?Y("",!0):(h(),T("div",{key:2,style:ne(p.value(e.item))},[t(o)!=="horizontal"?(h(),O(w,{key:0,placement:"top",effect:t(c),offset:-10,disabled:!e.item.showTooltip},{content:v(()=>[oe(Q(t(we)(e.item.meta.title)),1)]),default:v(()=>[_("span",{ref_key:"menuTextRef",ref:L,style:ne(f.value),onMouseover:y[1]||(y[1]=Z=>V(e.item))},Q(z(t(we)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Y("",!0),t(a)?Y("",!0):(h(),O(mt,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:v(()=>[(h(!0),T(ye,null,xe(e.item.children,Z=>(h(),O(F,{key:Z.path,"is-nest":!0,item:Z,"base-path":j(Z.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),ys={class:"container"},bs=le({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=E(!1),{tooltipEffect:c}=Me(),r=q(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[100ms]","hover:text-primary","dark:hover:!text-white"]),u=()=>{e("toggleClick")};return(m,g)=>{const x=k("IconifyIconOffline"),f=k("el-tooltip");return h(),T("div",ys,[i(f,{placement:"right",visible:a.value,effect:t(c),content:o.isActive?"点击折叠":"点击展开"},{default:v(()=>[i(x,{icon:t(Ft),class:ce(r.value),style:ne({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:u,onMouseenter:g[0]||(g[0]=p=>a.value=!0),onMouseleave:g[1]||(g[1]=p=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const ws=me(bs,[["__scopeId","data-v-ed074d28"]]),ks=le({__name:"vertical",setup(n){var b;const e=yt(),o=E(((b=Ue().getItem(`${Ke()}configure`))==null?void 0:b.showLogo)??!0),{routers:a,device:c,pureApp:r,isCollapse:u,menuSelect:m,toggleSideBar:g}=Me(),x=E([]),f=q(()=>r.layout==="mix"&&c.value!=="mobile"?x.value:ge().wholeMenus),p=q(()=>r.layout==="mix"?!1:f.value.length===0);function C(I){x.value=[];const L=gt(I,ge().wholeMenus),V=nt(L[0]||I,ge().wholeMenus);V!=null&&V.children&&(x.value=V==null?void 0:V.children)}return C(e.path),st(()=>{He.on("logoChange",I=>{o.value=I})}),Re(()=>[e.path,ge().wholeMenus],()=>{e.path.includes("/redirect")||(C(e.path),m(e.path,a))}),(I,L)=>{const V=k("el-menu"),z=k("el-scrollbar"),G=at("loading");return ve((h(),T("div",{class:ce(["sidebar-container",o.value?"has-logo":""])},[o.value?(h(),O(ss,{key:0,collapse:t(u)},null,8,["collapse"])):Y("",!0),i(z,{"wrap-class":"scrollbar-wrapper",class:ce([t(c)==="mobile"?"mobile":"pc"])},{default:v(()=>[i(V,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:t(u),"default-active":t(e).path,"collapse-transition":!1,onSelect:L[0]||(L[0]=j=>t(m)(j,t(a)))},{default:v(()=>[(h(!0),T(ye,null,xe(f.value,j=>(h(),O(Jt,{key:j.path,item:j,"base-path":j.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),t(c)!=="mobile"?(h(),O(ws,{key:1,"is-active":t(r).sidebar.opened,onToggleClick:t(g)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[G,p.value]])}}});const xs=me(ks,[["__scopeId","data-v-f5a1735a"]]),Cs=n=>(lt("data-v-01984c7c"),n=n(),rt(),n),Ss={class:"horizontal-header"},$s=Cs(()=>_("img",{src:Tt,alt:"logo"},null,-1)),Is={class:"horizontal-header-right"},Ms={class:"check-zh"},Ts={class:"check-en"},Vs={class:"el-dropdown-link navbar-bg-hover"},zs=["src"],Ls={key:0,class:"dark:text-white"},As=["title"],Hs=le({__name:"horizontal",setup(n){const e=E(),{t:o,route:a,locale:c,translationCh:r,translationEn:u}=xt(e),{title:m,routers:g,logout:x,backTopMenu:f,onPanel:p,menuSelect:C,username:b,userAvatar:I,avatarsStyle:L,getDropdownItemStyle:V,getDropdownItemClass:z}=Me();return Be(()=>{var G;(G=e.value)==null||G.handleResize()}),Re(()=>a.path,()=>{C(a.path,g)}),(G,j)=>{const M=k("el-menu"),y=k("IconifyIconOffline"),w=k("el-dropdown-item"),P=k("el-dropdown-menu"),F=k("el-dropdown"),$=at("loading");return ve((h(),T("div",Ss,[_("div",{class:"horizontal-header-left",onClick:j[0]||(j[0]=(...Z)=>t(f)&&t(f)(...Z))},[$s,_("span",null,Q(t(m)),1)]),i(M,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":t(a).path,onSelect:j[1]||(j[1]=Z=>t(C)(Z,t(g)))},{default:v(()=>[(h(!0),T(ye,null,xe(t(ge)().wholeMenus,Z=>(h(),O(Jt,{key:Z.path,item:Z,"base-path":Z.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),_("div",Is,[i($t),i(It,{id:"header-notice"}),i(F,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(P,{class:"translation"},{default:v(()=>[i(w,{style:ne(t(V)(t(c),"zh")),class:ce(["dark:!text-white",t(z)(t(c),"zh")]),onClick:t(r)},{default:v(()=>[ve(_("span",Ms,[i(y,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(c)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(w,{style:ne(t(V)(t(c),"en")),class:ce(["dark:!text-white",t(z)(t(c),"en")]),onClick:t(u)},{default:v(()=>[ve(_("span",Ts,[i(y,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(c)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(F,{trigger:"click"},{dropdown:v(()=>[i(P,{class:"logout"},{default:v(()=>[i(w,{onClick:t(x)},{default:v(()=>[i(y,{icon:t(ct),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[_("span",Vs,[_("img",{src:t(I),style:ne(t(L))},null,12,zs),t(b)?(h(),T("p",Ls,Q(t(b)),1)):Y("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:t(o)("buttons.hssystemSet"),onClick:j[2]||(j[2]=(...Z)=>t(p)&&t(p)(...Z))},[i(y,{icon:t(it)},null,8,["icon"])],8,As)])])),[[$,t(ge)().wholeMenus.length===0]])}}});const Es=me(Hs,[["__scopeId","data-v-01984c7c"]]),Os={key:0},Zs=le({__name:"index",setup(n){const{isDark:e}=Pt(),{layout:o}=$n(),a=Dt(),c=St(),{$storage:r}=kt(),u=bt({sidebar:q(()=>Pe().sidebar),device:q(()=>Pe().device),fixedHeader:q(()=>c.fixedHeader),classes:q(()=>({hideSidebar:!u.sidebar.opened,openSidebar:u.sidebar.opened,withoutAnimation:u.sidebar.withoutAnimation,mobile:u.device==="mobile"})),hideTabs:q(()=>r==null?void 0:r.configure.hideTabs)});function m(p){var C,b,I,L;window.document.body.setAttribute("layout",p),r.layout={layout:`${p}`,theme:(C=r.layout)==null?void 0:C.theme,darkMode:(b=r.layout)==null?void 0:b.darkMode,sidebarStatus:(I=r.layout)==null?void 0:I.sidebarStatus,epThemeColor:(L=r.layout)==null?void 0:L.epThemeColor}}function g(p,C){Pe().toggleDevice(p),Pe().toggleSideBar(C,"resize")}let x=!0;He.on("resize",({detail:p})=>{if(a)return;const{width:C}=p;C<=760?m("vertical"):m(Pe().layout),C>0&&C<=760?(g("mobile",!1),x=!0):C>760&&C<=990?x&&(g("desktop",!1),x=!1):C>990&&(u.sidebar.isClickCollapse||(g("desktop",!0),x=!0))}),We(()=>{a&&g("mobile",!1)}),st(()=>{Rt().dataThemeChange()});const f=le({render(){return Xe("div",{class:{"fixed-header":u.fixedHeader},style:[u.hideTabs&&o.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!c.hiddenSideBar&&(o.value.includes("vertical")||o.value.includes("mix"))?Xe(ra):null,!c.hiddenSideBar&&o.value.includes("horizontal")?Xe(Es):null,Xe(xa)]})}});return(p,C)=>{const b=k("el-backtop"),I=k("el-scrollbar"),L=at("resize");return ve((h(),T("div",{class:ce(["app-wrapper",u.classes])},[ve(_("div",{class:"app-mask",onClick:C[0]||(C[0]=V=>t(Pe)().toggleSideBar())},null,512),[[Ce,u.device==="mobile"&&u.sidebar.opened&&t(o).includes("vertical")]]),ve(i(xs,null,null,512),[[Ce,!t(c).hiddenSideBar&&(t(o).includes("vertical")||t(o).includes("mix"))]]),_("div",{class:ce(["main-container",t(c).hiddenSideBar?"main-hidden":""])},[u.fixedHeader?(h(),T("div",Os,[i(t(f)),i(Ht,{"fixed-header":u.fixedHeader},null,8,["fixed-header"])])):(h(),O(I,{key:1},{default:v(()=>[i(b,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:v(()=>[i(t(Bt))]),_:1}),i(t(f)),i(Ht,{"fixed-header":u.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),i(Qa)],2)),[[L]])}}});const el=me(Zs,[["__scopeId","data-v-a30409cb"]]);export{el as default};
|