mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
11 lines
93 KiB
JavaScript
11 lines
93 KiB
JavaScript
var Hn=Object.defineProperty,zn=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var ln=Object.getOwnPropertySymbols;var En=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable;var sn=(t,n,o)=>n in t?Hn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Tt=(t,n)=>{for(var o in n||(n={}))En.call(n,o)&&sn(t,o,n[o]);if(ln)for(var o of ln(n))On.call(n,o)&&sn(t,o,n[o]);return t},Mt=(t,n)=>zn(t,An(n));var ct=(t,n,o)=>new Promise((a,l)=>{var r=s=>{try{h(o.next(s))}catch(d){l(d)}},p=s=>{try{h(o.throw(s))}catch(d){l(d)}},h=s=>s.done?a(s.value):Promise.resolve(s.value).then(r,p);h((o=o.apply(t,n)).next())});import{fA as ae,at as Zn,aw as nt,ax as Rn,ae as Dt,af as Nt,Z as Bt,a as N,au as qe,av as rt,p as Z,fB as Fe,r as Ft,fC as Se,fD as gn,fE as rn,m as Ge,ac as Pe,fF as ot,u as e,fG as gt,a_ as Xe,_ as ye,f as u,k as S,aL as Pn,d as re,fH as _t,fI as Dn,a9 as ze,fJ as _n,n as De,aM as xt,aN as yn,z as qt,e as H,B as he,a2 as Te,g as v,i as c,s as fe,F as be,l as Me,v as se,q as Ze,t as U,j as X,w as C,h as me,dQ as jt,b as B,y as Qe,aX as at,fK as Lt,C as Ut,D as Wt,fL as Nn,bk as Ve,X as Re,U as je,aT as Bn,O as zt,bf as Fn,ag as qn,fM as Vt,aF as jn,$ as bn,A as et,fN as Kt,fO as yt,M as Un,S as bt,fP as pt,aU as At,fQ as cn,N as dt,ar as wn,W as st,a0 as xn,o as Wn,c as Kn,V as Gn,fR as Yn,aq as Xn,bj as Jn,fw as Qn,a5 as un}from"./index-DPW8Wnaw.js";import{d as eo,a as wt}from"./close-CObHKOmY.js";import{H as to}from"./home-filled-lghak5MV.js";import{d as no}from"./git-branch-line-BhusJOme.js";import{d as oo}from"./admin-line-CpqWPwjZ.js";import{d as Ct,a as ao,b as Et,_ as lo,c as so}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-DQ77rIvZ.js";import{d as ro,u as Ee,a as Gt,g as Yt,b as io,c as co}from"./dark-uvs8s2qs.js";import{u as Xt,t as uo,a as ho}from"./useDataThemeChange-COkTlVO8.js";import{u as Ke}from"./app-DQ6mXmiL.js";import{e as He}from"./mitt-E5P-NQ8u.js";import{d as fo}from"./refresh-right-Du3ZsAuC.js";import{d as Ot}from"./arrow-right-s-line-CxPb13eK.js";import{m as po}from"./index-AOzRgmre.js";import{u as Zt}from"./epTheme-CKLCAVmH.js";import{u as Be}from"./hooks-CBN6oGny.js";import{S as mo}from"./sortable.esm-CkCitmyH.js";import{d as lt}from"./check-CIQVCvCT.js";import{B as Cn}from"./back_top-IqkyDlav.js";import{R as Ht}from"./index-DcESedwk.js";import{R as dn}from"./index-D4_tUUtI.js";import"./user-DNtD0Fqa.js";const vo={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"/>'},go={width:1024,height:1024,body:'<path fill="currentColor" d="M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"/><path fill="currentColor" d="M384 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256z"/><path fill="currentColor" d="M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256z"/><path fill="currentColor" d="M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"/>'},_o={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"/>'},yo={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"/>'},bo={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"/>'},wo={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},xo={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"/>'},Co={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"/>'},ko={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"/>'},So={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"/>'},$o={width:24,height:24,body:'<path fill="currentColor" d="M15 4H5v16h14V8h-4V4ZM3 2.992C3 2.444 3.447 2 3.998 2H16l5 5v13.992A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008V2.992ZM11 11h2v6h-2v-6Zm0-4h2v2h-2V7Z"/>'},Io={width:24,height:24,body:'<path fill="currentColor" d="M4 8h16V5H4v3Zm10 11v-9h-4v9h4Zm2 0h4v-9h-4v9Zm-8 0v-9H4v9h4ZM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"/>'},To={width:24,height:24,body:'<path fill="currentColor" d="m13.06 8.11l1.415 1.415a7 7 0 0 1 0 9.9l-.354.353a7 7 0 1 1-9.9-9.9l1.415 1.415a5 5 0 0 0 7.07 7.07l.354-.353a5 5 0 0 0 0-7.07l-1.414-1.415L13.06 8.11Zm6.718 6.011l-1.414-1.414a5 5 0 0 0-7.071-7.071l-.354.353a5 5 0 0 0 0 7.071l1.414 1.415l-1.414 1.414l-1.414-1.414a7 7 0 0 1 0-9.9l.353-.353a7 7 0 0 1 9.9 9.9Z"/>'},kn={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"/>'},Mo={width:24,height:24,body:'<path fill="currentColor" d="M18 3a3 3 0 1 1 0 6h-3a3.001 3.001 0 0 1-2.829-2H11c-1.1 0-2 .9-2 2v.171a3.001 3.001 0 0 1 0 5.658V15c0 1.1.9 2 2 2h1.17A3.001 3.001 0 0 1 15 15h3a3 3 0 1 1 0 6h-3a3.001 3.001 0 0 1-2.829-2H11c-2.21 0-4-1.79-4-4H5a3 3 0 1 1 0-6h2a4 4 0 0 1 4-4h1.17A3.001 3.001 0 0 1 15 3h3Zm0 14h-3a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2ZM8 11H5a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2Zm10-6h-3a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2Z"/>'},Lo={width:24,height:24,body:'<path fill="currentColor" d="M12 3v2H3V3h9Zm4 16v2H3v-2h13Zm6-8v2H3v-2h19Z"/>'},Vo={width:24,height:24,body:'<path fill="currentColor" d="M8.586 17H3v-2h18v2h-5.586l3.243 3.243l-1.414 1.414L13 17.414V20h-2v-2.586l-4.243 4.243l-1.414-1.414L8.586 17ZM5 3h14a1 1 0 0 1 1 1v10H4V4a1 1 0 0 1 1-1Zm1 2v7h12V5H6Z"/>'},Ho={width:24,height:24,body:'<path fill="currentColor" d="M15 4H5v16h14V8h-4V4ZM3 2.992C3 2.444 3.447 2 3.998 2H16l5 5v13.992A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008V2.992Zm10.529 11.454a4.001 4.001 0 0 1-4.86-6.274a4 4 0 0 1 6.274 4.86l2.21 2.21l-1.413 1.415l-2.211-2.21Zm-.618-2.032a2 2 0 1 0-2.828-2.828a2 2 0 0 0 2.828 2.828Z"/>'},zo={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Ao={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"/>'},Eo={width:24,height:24,body:'<path fill="currentColor" d="M1 22a8 8 0 0 1 16 0h-2a6 6 0 0 0-12 0H1Zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6Zm0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4ZM21.548.784A13.942 13.942 0 0 1 23 7c0 2.233-.523 4.344-1.452 6.217l-1.645-1.197A11.956 11.956 0 0 0 21 7a11.96 11.96 0 0 0-1.097-5.02L21.548.784Zm-3.302 2.4A9.97 9.97 0 0 1 19 7a9.97 9.97 0 0 1-.754 3.816l-1.677-1.22A7.99 7.99 0 0 0 17 7a7.99 7.99 0 0 0-.43-2.596l1.676-1.22Z"/>'},Oo={width:24,height:24,body:'<path fill="currentColor" d="m16.757 2.997l-2 2H5v14h14V9.239l2-2v12.758a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-16a1 1 0 0 1 1-1h12.757Zm3.728-.9L21.9 3.511l-9.193 9.193l-1.412.002l-.002-1.416l9.192-9.193Z"/>'},Zo={width:24,height:24,body:'<path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12h2a8 8 0 1 0 1.865-5.135L8 9H2V3l2.447 2.446A9.977 9.977 0 0 1 12 2Zm1 5v4.585l3.243 3.243l-1.415 1.415L11 12.413V7h2Z"/>'},Ro={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"/>'},Po={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"/>'};ae("ep:menu",eo);ae("ep:edit",vo);ae("ep:set-up",go);ae("ep:guide",_o);ae("ep:monitor",yo);ae("ep:lollipop",bo);ae("ep:histogram",wo);ae("ep:home-filled",to);ae("ri:bookmark-2-line",xo);ae("ri:file-ppt-2-line",Co);ae("ri:bank-card-line",ko);ae("ri:admin-fill",So);ae("ri:file-info-line",$o);ae("ri:git-branch-line",no);ae("ri:links-fill",To);ae("ri:table-line",Io);ae("ri:search-line",kn);ae("ri:admin-line",oo);ae("ri:settings-3-line",Ct);ae("ri:mind-map",Mo);ae("ri:bar-chart-horizontal-line",Lo);ae("ri:window-line",ao);ae("ri:file-search-line",Ho);ae("ri:artboard-line",Vo);ae("ri:list-check",zo);ae("ri:ubuntu-fill",Ao);ae("ri:user-voice-line",Eo);ae("ri:edit-box-line",Oo);ae("ri:history-fill",Zo);ae("ri:information-line",ro);ae("ri:terminal-window-line",Ro);ae("ri:checkbox-circle-line",Po);const Do=Zn({id:"pure-setting",state:()=>({title:nt().Title,fixedHeader:nt().FixedHeader,hiddenSideBar:nt().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:n}){Reflect.has(this,t)&&(this[t]=n)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Jt(){return Do(Rn)}const No={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},Bo={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"/>'},Fo={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"/>'},qo={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"/>'};function Sn(){var ie,ue;const t=Dt(),n=Nt(),o=Bt(),a=Jt(),l=N(0),r=N(0),p=N(0),h=N(!1),s=N(-1),d=N({}),m=N(!1),f=N(((ie=qe().getItem(`${rt()}configure`))==null?void 0:ie.showModel)||"smart"),_=(ue=N(qe().getItem(`${rt()}configure`).hideTabs))!=null?ue:N("false"),b=Z(()=>Fe().multiTags),x=Ft([{icon:fo,text:Se("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:wt,text:Se("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:qo,text:Se("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(b.value.length>1),show:!0},{icon:Fo,text:Se("buttons.pureCloseRightTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:Bo,text:Se("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(b.value.length>2),show:!0},{icon:No,text:Se("buttons.pureCloseAllTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:gn,text:Se("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function T(P,J,le){var xe,Oe;return rn((xe=t==null?void 0:t.meta)==null?void 0:xe.showLink)&&((Oe=t==null?void 0:t.meta)==null?void 0:Oe.showLink)===!1?Object.keys(t.query).length>0?ot(t.query,P.query)?J:le:ot(t.params,P.params)?J:le:t.path===P.path?J:le}const z=Z(()=>P=>{var J,le;return rn((J=P==null?void 0:P.meta)==null?void 0:J.fixedTag)&&((le=P==null?void 0:P.meta)==null?void 0:le.fixedTag)===!0}),y=Z(()=>(P,J)=>{if(J!==0)return T(P,!0,!1)}),j=Z(()=>P=>T(P,"is-active","")),R=Z(()=>P=>T(P,"schedule-active","")),D=Z(()=>({transform:`translateX(${p.value}px)`,transition:m.value?"none":"transform 0.5s ease-in-out"})),ne=Z(()=>({left:r.value+"px",top:l.value+"px"})),F=()=>{h.value=!1};function V(P){if(P&&(s.value=P),e(f)==="smart"){if(gt(o.refs["schedule"+P][0],"schedule-active"))return;Xe(!0,"schedule-in",o.refs["schedule"+P][0]),Xe(!1,"schedule-out",o.refs["schedule"+P][0])}else{if(gt(o.refs["dynamic"+P][0],"is-active"))return;Xe(!0,"card-in",o.refs["dynamic"+P][0]),Xe(!1,"card-out",o.refs["dynamic"+P][0])}}function q(P){if(s.value=-1,e(f)==="smart"){if(gt(o.refs["schedule"+P][0],"schedule-active"))return;Xe(!1,"schedule-in",o.refs["schedule"+P][0]),Xe(!0,"schedule-out",o.refs["schedule"+P][0])}else{if(gt(o.refs["dynamic"+P][0],"is-active"))return;Xe(!1,"card-in",o.refs["dynamic"+P][0]),Xe(!0,"card-out",o.refs["dynamic"+P][0])}}function W(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ge(()=>{if(!f.value){const P=qe().getItem(`${rt()}configure`);P.showModel="card",qe().setItem(`${rt()}configure`,P)}}),{Close:wt,route:t,router:n,visible:h,showTags:_,instance:o,multiTags:b,showModel:f,tagsViews:x,buttonTop:l,buttonLeft:r,translateX:p,isFixedTag:z,pureSetting:a,activeIndex:s,getTabStyle:D,isScrolling:m,iconIsActive:y,linkIsActive:j,currentSelect:d,scheduleIsActive:R,getContextMenuStyle:ne,$t:Se,closeMenu:F,onMounted:Ge,onMouseenter:V,onMouseleave:q,transformI18n:Pe,onContentFullScreen:W}}const jo={},Uo={class:"w-full h-full"},Wo=Pn('<defs><symbol id="geometry-left" viewBox="0 0 214 36"><path d="M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"></path></symbol><symbol id="geometry-right" viewBox="0 0 214 36"><use xlink:href="#geometry-left"></use></symbol><clipPath><rect width="100%" height="100%" x="0"></rect></clipPath></defs><svg width="51%" height="100%"><use xlink:href="#geometry-left" width="214" height="36" fill="currentColor"></use></svg><g transform="scale(-1, 1)"><svg width="51%" height="100%" x="-100%" y="0"><use xlink:href="#geometry-right" width="214" height="36" fill="currentColor"></use></svg></g>',3),Ko=[Wo];function Go(t,n){return u(),S("svg",Uo,Ko)}const Yo=ye(jo,[["render",Go]]),Xo={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"/>'},Jo={BASE_URL:"/vue-pure-admin/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_CDN:"false",VITE_COMPRESSION:"none",VITE_HIDE_HOME:"false",VITE_PORT:"8848",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash"},Qo=t=>(Ut("data-v-890d6ae6"),t=t(),Wt(),t),ea={class:"arrow-left"},ta=["onContextmenu","onMouseenter","onMouseleave","onClick"],na={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},oa=["onClick"],aa={key:1,class:"chrome-tab"},la={class:"chrome-tab__bg"},sa={class:"tag-title"},ra=["onClick"],ia=Qo(()=>v("span",{class:"chrome-tab-divider"},null,-1)),ca={class:"arrow-right"},ua=["onClick"],da={class:"arrow-down"},ha=re({__name:"index",setup(t){var mt;const{Close:n,route:o,router:a,visible:l,showTags:r,instance:p,multiTags:h,tagsViews:s,buttonTop:d,buttonLeft:m,showModel:f,translateX:_,isFixedTag:b,pureSetting:x,activeIndex:T,getTabStyle:z,isScrolling:y,iconIsActive:j,linkIsActive:R,currentSelect:D,scheduleIsActive:ne,getContextMenuStyle:F,closeMenu:V,onMounted:q,onMouseenter:W,onMouseleave:ie,transformI18n:ue,onContentFullScreen:P}=Sn(),J=N(),le=N(),xe=N(),Oe=N(),$e=N(!1),i=(mt=_t())==null?void 0:mt.path,{VITE_HIDE_HOME:g}=Jo,I=[...Dn,...ze().flatteningRoutes.filter(k=>{var E;return(E=k==null?void 0:k.meta)==null?void 0:E.fixedTag})],Q=()=>ct(this,null,function*(){yield Qe();const k=h.value.findIndex(E=>at(o.query)?at(o.params)?o.path===E.path:ot(o.params,E.params):ot(o.query,E.query));pe(k)}),pe=k=>ct(this,null,function*(){var de,ke;yield Qe();const E=10;if(!p.refs["dynamic"+k])return;const O=p.refs["dynamic"+k][0],Y=O==null?void 0:O.offsetLeft,ve=O==null?void 0:O.offsetWidth,K=xe.value?(de=xe.value)==null?void 0:de.offsetWidth:0,G=J.value?(ke=J.value)==null?void 0:ke.offsetWidth:0;K<=G?$e.value=!0:$e.value=!1,G<K||Y===0?_.value=0:Y<-_.value?_.value=-Y+E:Y>-_.value&&Y+ve<-_.value+K?_.value=Math.min(0,K-ve-Y-E):_.value=-(Y-(K-E-ve))}),te=k=>{var Y;const E=xe.value?(Y=xe.value)==null?void 0:Y.offsetWidth:0,O=J.value?J.value.offsetWidth:0;k>0?_.value=Math.min(0,_.value+k):E<O?_.value>=-(O-E)&&(_.value=Math.max(_.value+k,E-O)):_.value=0,y.value=!1},ee=k=>{y.value=!0;const E=Math.abs(k.deltaX)+Math.abs(k.deltaY);let O=0;k.deltaX<0?O=E>0?E:100:O=E>0?-E:-100,w(O)},w=k=>{let O=Math.abs(k);const Y=()=>{const ve=Math.sign(k)*Math.min(20,O);te(ve),O-=Math.abs(ve),O>0&&requestAnimationFrame(Y)};requestAnimationFrame(Y)};function $(k){const E=h.value.some(Y=>Y.path===k);function O(Y,ve){E||Y.forEach(K=>{K.path===ve?Fe().handleTags("push",{path:ve,meta:K.meta,name:K.name}):K.children&&K.children.length>0&&O(K.children,ve)})}O(a.options.routes,k)}function A(){const{fullPath:k,query:E}=e(o);a.replace({path:"/redirect"+k,query:E}),Lt(o,"refresh")}function ce(k,E,O){var G,de,ke,it;const Y=h.value.findIndex(Le=>{if(Le.query){if(Le.path===k.path)return Le.query===k.query}else if(Le.params){if(Le.path===k.path)return Le.params===k.params}else return Le.path===k.path}),ve=(Le,Ie,vt)=>{vt?Fe().handleTags("equal",[g==="false"?I:Ve(_t()),k].flat()):Fe().handleTags("splice","",{startIndex:Le,length:Ie}),Q()};O==="other"?ve(1,1,!0):O==="left"?ve(I.length,Y-1,!0):O==="right"?ve(Y+1,h.value.length):ve(Y,1);const K=Fe().handleTags("slice");if(E===o.path){if(O==="left")return;(G=K[0])!=null&&G.query?a.push({name:K[0].name,query:K[0].query}):(de=K[0])!=null&&de.params?a.push({name:K[0].name,params:K[0].params}):a.push({path:K[0].path})}else{if(!h.value.length||h.value.some(Le=>Le.path===o.path))return;(ke=K[0])!=null&&ke.query?a.push({name:K[0].name,query:K[0].query}):(it=K[0])!=null&&it.params?a.push({name:K[0].name,params:K[0].params}):a.push({path:K[0].path})}}function M(k,E){ce(k,k.path,E),Lt(o)}function L(k,E,O){if(E&&E.disabled)return;let Y;switch(O?Y={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:Y={path:o.path,meta:o.meta},k){case 0:A();break;case 1:M(Y);break;case 2:M(Y,"left");break;case 3:M(Y,"right");break;case 4:M(Y,"other");break;case 5:Fe().handleTags("splice","",{startIndex:I.length,length:h.value.length}),a.push(i),Lt(o);break;case 6:P(),setTimeout(()=>{x.hiddenSideBar?(s[6].icon=Nn,s[6].text=Se("buttons.pureContentExitFullScreen")):(s[6].icon=gn,s[6].text=Se("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{Ue(o.fullPath,o.query)})}function ge(k){const{key:E,item:O}=k;L(E,O)}function Ce(k,E){V(),L(k,E,D.value)}function Ye(k){Array.of(1,2,3,4,5).forEach(E=>{s[E].show=k})}function Ae(k,E=!1){Array.of(1,2,3,4,5).forEach(O=>{s[O].disabled=k}),E&&(s[2].show=!1,s[2].disabled=!0)}function Ue(k,E={},O=!1){var de,ke,it,Le;const Y=h.value,ve=h.value.length;let K=-1;at(E)?K=Y.findIndex(Ie=>Ie.path===k):K=Y.findIndex(Ie=>ot(Ie.query,E));function G(){var Ie,vt;(vt=(Ie=Y[K])==null?void 0:Ie.meta)!=null&&vt.fixedTag&&Array.of(1,2,3,4,5).forEach(Vn=>{s[Vn].disabled=!0})}Ye(!0),O&&(s[0].show=!0),K===1&&ve!==2?(s[2].show=!1,Array.of(1,3,4,5).forEach(Ie=>{s[Ie].disabled=!1}),s[2].disabled=!0,G()):K===1&&ve===2?(Ae(!1),Array.of(2,3,4).forEach(Ie=>{s[Ie].show=!1,s[Ie].disabled=!0}),G()):ve-1===K&&K!==0?(s[3].show=!1,Array.of(1,2,4,5).forEach(Ie=>{s[Ie].disabled=!1}),s[3].disabled=!0,(ke=(de=Y[K-1])==null?void 0:de.meta)!=null&&ke.fixedTag&&(s[2].show=!1,s[2].disabled=!0),G()):K===0||k===`/redirect${i}`?Ae(!0):(Ae(!1,(Le=(it=Y[K-1])==null?void 0:it.meta)==null?void 0:Le.fixedTag),G())}function It(k,E){var de;V(),k.path===i||(de=k==null?void 0:k.meta)!=null&&de.fixedTag?(Ye(!1),s[0].show=!0):o.path!==k.path&&o.name!==k.name?(s[0].show=!1,Ue(k.path,k.query)):h.value.length===2&&o.path!==k.path?(Ye(!0),s[4].show=!1):o.path===k.path&&Ue(k.path,k.query,!0),D.value=k;const O=140,Y=e(le).getBoundingClientRect().left,K=e(le).offsetWidth-O,G=E.clientX-Y+5;G>K?m.value=K:m.value=G,Jt().hiddenSideBar?d.value=E.clientY:d.value=E.clientY-40,Qe(()=>{l.value=!0})}function oe(k){const{name:E,path:O}=k;E?k.query?a.push({name:E,query:k.query}):k.params?a.push({name:E,params:k.params}):a.push({name:E}):a.push({path:O})}return _n(Oe,V,{detectIframe:!0}),De(o,()=>{T.value=-1,Q()}),q(()=>{p&&(Ue(o.fullPath),He.on("tagViewsChange",k=>{e(r)!==k&&(r.value=k)}),He.on("tagViewsShowModel",k=>{f.value=k}),He.on("changLayoutRoute",k=>{$(k),setTimeout(()=>{Ue(k)})}),xt(xe,Q),yn().then(()=>Q()))}),qt(()=>{He.off("tagViewsChange"),He.off("tagViewsShowModel"),He.off("changLayoutRoute")}),(k,E)=>{const O=H("IconifyIconOffline"),Y=H("el-dropdown-item"),ve=H("el-dropdown-menu"),K=H("el-dropdown");return e(r)?X("",!0):(u(),S("div",{key:0,ref_key:"containerDom",ref:le,class:"tags-view"},[he(v("span",ea,[c(O,{icon:e(Et),onClick:E[0]||(E[0]=G=>te(200))},null,8,["icon"])],512),[[Te,$e.value]]),v("div",{ref_key:"scrollbarDom",ref:xe,class:se(["scroll-container",e(f)==="chrome"&&"chrome-scroll-container"]),onWheel:Ze(ee,["prevent"])},[v("div",{ref_key:"tabDom",ref:J,class:"tab select-none",style:fe(e(z))},[(u(!0),S(be,null,Me(e(h),(G,de)=>(u(),S("div",{ref_for:!0,ref:"dynamic"+de,key:de,class:se(["scroll-item is-closable",e(R)(G),e(f)==="chrome"&&"chrome-item",e(b)(G)&&"fixed-tag"]),onContextmenu:Ze(ke=>It(G,ke),["prevent"]),onMouseenter:Ze(ke=>e(W)(de),["prevent"]),onMouseleave:Ze(ke=>e(ie)(de),["prevent"]),onClick:ke=>oe(G)},[e(f)!=="chrome"?(u(),S(be,{key:0},[v("span",na,U(e(ue)(G.meta.title)),1),!e(b)(G)&&(e(j)(G,de)||de===e(T)&&de!==0)?(u(),S("span",{key:0,class:"el-icon-close",onClick:Ze(ke=>M(G),["stop"])},[c(O,{icon:e(n)},null,8,["icon"])],8,oa)):X("",!0),e(f)!=="card"?(u(),S("span",{key:1,ref_for:!0,ref:"schedule"+de,class:se([e(ne)(G)])},null,2)):X("",!0)],64)):(u(),S("div",aa,[v("div",la,[c(Yo)]),v("span",sa,U(e(ue)(G.meta.title)),1),!e(b)(G)&&de!==0?(u(),S("span",{key:0,class:"chrome-close-btn",onClick:Ze(ke=>M(G),["stop"])},[c(O,{icon:e(n)},null,8,["icon"])],8,ra)):X("",!0),ia]))],42,ta))),128))],4)],34),he(v("span",ca,[c(O,{icon:e(Ot),onClick:E[1]||(E[1]=G=>te(-200))},null,8,["icon"])],512),[[Te,$e.value]]),c(jt,{name:"el-zoom-in-top"},{default:C(()=>[he((u(),S("ul",{ref_key:"contextmenuRef",ref:Oe,key:Math.random(),style:fe(e(F)),class:"contextmenu"},[(u(!0),S(be,null,Me(e(s).slice(0,6),(G,de)=>(u(),S("div",{key:de,style:{display:"flex","align-items":"center"}},[G.show?(u(),S("li",{key:0,onClick:ke=>Ce(de,G)},[c(O,{icon:G.icon},null,8,["icon"]),me(" "+U(e(ue)(G.text)),1)],8,ua)):X("",!0)]))),128))],4)),[[Te,e(l)]])]),_:1}),c(K,{trigger:"click",placement:"bottom-end",onCommand:ge},{dropdown:C(()=>[c(ve,null,{default:C(()=>[(u(!0),S(be,null,Me(e(s),(G,de)=>(u(),B(Y,{key:de,command:{key:de,item:G},divided:G.divided,disabled:G.disabled},{default:C(()=>[c(O,{icon:G.icon},null,8,["icon"]),me(" "+U(e(ue)(G.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:C(()=>[v("span",da,[c(O,{icon:e(Xo),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),fa=ye(ha,[["__scopeId","data-v-890d6ae6"]]);function pa(t=!1){const n=N(t);function o(p){n.value=p}function a(){o(!0)}function l(){o(!1)}function r(){o(!n.value)}return{bool:n,setBool:o,setTrue:a,setFalse:l,toggle:r}}const ma={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},va=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),ga=[va];function _a(t,n){return u(),S("svg",ma,[...ga])}const $n={render:_a},ya=["onMouseenter"],ba={class:"result-item-title"},wa=re({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:n,emit:o}){const a=N(),l=N(),r=o,p=Bt(),h=t,s=Z(()=>x=>({background:(x==null?void 0:x.path)===d.value?Zt().epThemeColor:"",color:x.path===d.value?"#fff":"",fontSize:x.path===d.value?"16px":"14px"})),d=Z({get(){return h.value},set(x){r("update:value",x)}});function m(x){return ct(this,null,function*(){d.value=x.path})}function f(){r("enter")}function _(){l.value=window.innerHeight-window.innerHeight/10-140}xt(a,_);function b(x){var j;const T=(j=p==null?void 0:p.proxy)==null?void 0:j.$refs[`resultItemRef${x}`];if(!T)return 0;const y=T[0].offsetTop+128;return y>l.value?y-l.value:0}return Ge(()=>{_()}),n({handleScroll:b}),(x,T)=>(u(),S("div",{ref_key:"resultRef",ref:a,class:"result"},[(u(!0),S(be,null,Me(x.options,(z,y)=>{var j,R;return u(),S("div",{key:z.path,ref_for:!0,ref:"resultItemRef"+y,class:"result-item dark:bg-[#1d1d1d]",style:fe(s.value(z)),onClick:f,onMouseenter:D=>m(z)},[(u(),B(Re(e(Be)((j=z.meta)==null?void 0:j.icon)))),v("span",ba,U(e(Pe)((R=z.meta)==null?void 0:R.title)),1),c(e($n))],44,ya)}),128))],512))}}),xa=ye(wa,[["__scopeId","data-v-274aad60"]]),Ca={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},ka=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),Sa=[ka];function $a(t,n){return u(),S("svg",Ca,[...Sa])}const Ia={render:$a},Ta={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"/>'},Ma={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"/>'},La={class:"search-footer text-[#333] dark:text-white"},Va={class:"search-footer-item"},Ha={class:"search-footer-item"},za={class:"search-footer-item"},Aa={key:0,class:"search-footer-total"},Ea=re({__name:"SearchFooter",props:{total:{default:0}},setup(t){const{t:n}=je(),{device:o}=Ee();return(a,l)=>{const r=H("IconifyIconOffline");return u(),S("div",La,[v("span",Va,[c(e($n),{class:"icon"}),me(" "+U(e(n)("buttons.pureConfirm")),1)]),v("span",Ha,[c(r,{icon:e(Ta),class:"icon"},null,8,["icon"]),c(r,{icon:e(Ma),class:"icon"},null,8,["icon"]),me(" "+U(e(n)("buttons.pureSwitch")),1)]),v("span",za,[c(e(Ia),{class:"icon"}),me(" "+U(e(n)("buttons.pureClose")),1)]),e(o)!=="mobile"&&a.total>0?(u(),S("p",Aa,U(`${e(n)("search.pureTotal")} ${a.total}`),1)):X("",!0)])}}}),Oa=ye(Ea,[["__scopeId","data-v-7ba3ef39"]]),Za={width:1024,height:1024,body:'<path fill="currentColor" d="m512 747.84l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08l184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256l99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96l221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"/>'},Ra={class:"history-item-title"},Pa=re({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(t,{emit:n}){const o=n;function a(r){o("collectItem",r)}function l(r){o("deleteItem",r)}return(r,p)=>{var s,d;const h=H("IconifyIconOffline");return u(),S(be,null,[(u(),B(Re(e(Be)((s=r.item.meta)==null?void 0:s.icon)))),v("span",Ra,U(e(Pe)((d=r.item.meta)==null?void 0:d.title)),1),he(c(h,{icon:e(Za),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:p[0]||(p[0]=Ze(m=>a(r.item),["stop"]))},null,8,["icon"]),[[Te,r.item.type==="history"]]),c(h,{icon:e(wt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:p[1]||(p[1]=Ze(m=>l(r.item),["stop"]))},null,8,["icon"])],64)}}}),hn=ye(Pa,[["__scopeId","data-v-ba0c91b5"]]),Da=["onMouseenter"],Na={class:"collect-container"},Ba=["onMouseenter"],Fa=re({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:n,emit:o}){const a=N(),l=N(),r=N(!1),{t:p}=je(),h=o,s=Bt(),d=t,m=Z(()=>V=>({background:(V==null?void 0:V.path)===_.value?Zt().epThemeColor:"",color:V.path===_.value?"#fff":"",fontSize:V.path===_.value?"16px":"14px"})),f=Z(()=>({color:Zt().epThemeColor,fontWeight:500})),_=Z({get(){return d.value},set(V){h("update:value",V)}});De(()=>d.value,V=>{V&&r.value&&yn(100).then(()=>r.value=!1)});const b=Z(()=>d.options.filter(V=>V.type==="history")),x=Z(()=>d.options.filter(V=>V.type==="collect"));function T(V){h("collect",V)}function z(V){r.value=!0,h("delete",V)}function y(V){return ct(this,null,function*(){r.value||(_.value=V.path)})}function j(){h("enter")}function R(){l.value=window.innerHeight-window.innerHeight/10-140}xt(a,R);function D(V){var ue;const q=(ue=s==null?void 0:s.proxy)==null?void 0:ue.$refs[`historyItemRef${V}`];if(!q)return 0;const ie=(Bn(q)?q[0]:q).offsetTop+128;return ie>l.value?ie-l.value:0}const ne=V=>{h("drag",{oldIndex:V.oldIndex,newIndex:V.newIndex})};let F=null;return De(x,V=>{V.length>1&&Qe(()=>{const q=document.querySelector(".collect-container");!q||F||(F=mo.create(q,{animation:160,onStart:W=>{W.item.style.cursor="move"},onEnd:W=>{W.item.style.cursor="pointer"},onUpdate:ne}),R())})},{deep:!0,immediate:!0}),n({handleScroll:D}),(V,q)=>(u(),S("div",{ref_key:"historyRef",ref:a,class:"history"},[b.value.length?(u(),S(be,{key:0},[v("div",{style:fe(f.value)},U(e(p)("search.pureHistory")),5),(u(!0),S(be,null,Me(b.value,(W,ie)=>(u(),S("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+ie,class:"history-item dark:bg-[#1d1d1d]",style:fe(m.value(W)),onClick:j,onMouseenter:ue=>y(W)},[c(hn,{item:W,onDeleteItem:z,onCollectItem:T},null,8,["item"])],44,Da))),128))],64)):X("",!0),x.value.length?(u(),S(be,{key:1},[v("div",{style:fe(f.value)},U(`${e(p)("search.pureCollect")}${x.value.length>1?e(p)("search.pureDragSort"):""}`),5),v("div",Na,[(u(!0),S(be,null,Me(x.value,(W,ie)=>(u(),S("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+(ie+b.value.length),class:"history-item dark:bg-[#1d1d1d]",style:fe(m.value(W)),onClick:j,onMouseenter:ue=>y(W)},[c(hn,{item:W,onDeleteItem:z},null,8,["item"])],44,Ba))),128))])],64)):X("",!0)],512))}}),qa=ye(Fa,[["__scopeId","data-v-f7a9d807"]]),ja={class:"search-content"},fn="history",Ua="collect",We="menu-search-history",Je="menu-search-collect",Wa=re({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:n}){const{device:o}=Ee(),a=n,l=t,r=Nt(),{t:p,locale:h}=je(),s=N(""),d=N(),m=N(),f=N(),_=N(""),b=N(""),x=zt([]),T=zt([]),z=Fn(ue,300),y=nt().MenuSearchHistory,j=N(null),R=Z(()=>qn(ze().wholeMenus)),D=Z({get(){return l.value},set(w){a("update:value",w)}});De(()=>l.value,w=>{w&&te()});const ne=Z(()=>s.value&&x.value.length>0),F=Z(()=>!s.value&&T.value.length>0),V=Z(()=>!s.value&&T.value.length===0||s.value&&x.value.length===0);function q(w){return qe().getItem(w)||[]}function W(w,$){qe().setItem(w,$)}function ie(w){const $=[];function A(ce){ce.forEach(M=>{$.push(M),M.children&&A(M.children)})}return A(w),$}function ue(){var $;const w=ie(R.value);x.value=w.filter(A=>{var ce,M;return s.value?Pe((ce=A.meta)==null?void 0:ce.title).toLocaleLowerCase().includes(s.value.toLocaleLowerCase().trim())||h.value==="zh"&&!at(po(Pe((M=A.meta)==null?void 0:M.title).toLocaleLowerCase(),s.value.toLocaleLowerCase().trim())):!1}),_.value=(($=x.value)==null?void 0:$.length)>0?x.value[0].path:""}function P(){D.value=!1,setTimeout(()=>{x.value=[],b.value="",s.value=""},200)}function J(w){const A=(x.value.length?d.value:m.value).handleScroll(w);f.value.setScrollTop(A)}function le(){const w=x.value.length>0,$=w?x.value:T.value,A=w?_.value:b.value;return{options:$,currentPath:A,isResultOptions:w}}function xe(w,$){$?_.value=x.value[w].path:b.value=T.value[w].path,J(w)}function Oe(){const{options:w,currentPath:$,isResultOptions:A}=le();if(w.length===0)return;const M=(w.findIndex(L=>L.path===$)-1+w.length)%w.length;xe(M,A)}function $e(){const{options:w,currentPath:$,isResultOptions:A}=le();if(w.length===0)return;const M=(w.findIndex(L=>L.path===$)+1)%w.length;xe(M,A)}function i(){const{options:w,currentPath:$,isResultOptions:A}=le();if(w.length===0||$==="")return;const ce=w.findIndex(M=>M.path===$);ce!==-1&&(A?Q():pe(),r.push(w[ce].path),P())}function g(w){const $=w.type===fn?We:Je;let A=q($);A=A.filter(ce=>ce.path!==w.path),W($,A),te()}function I(w){let $=q(We),A=q(Je);$=$.filter(ce=>ce.path!==w.path),W(We,$),A.some(ce=>ce.path===w.path)||(A.unshift(Mt(Tt({},w),{type:Ua})),W(Je,A)),te()}function Q(){const{path:w,meta:$}=x.value.find(ge=>ge.path===_.value),A=q(We),M=q(Je).some(ge=>ge.path===w),L=A.findIndex(ge=>ge.path===w);M||(L!==-1&&A.splice(L,1),A.length>=y&&A.pop(),A.unshift({path:w,meta:$,type:fn}),qe().setItem(We,A))}function pe(){let w=q(We);const $=w.findIndex(A=>A.path===b.value);if($!==-1){const[A]=w.splice($,1);w.unshift(A),W(We,w)}}function te(){var A;const w=q(We),$=q(Je);T.value=[...w,...$],b.value=(A=T.value[0])==null?void 0:A.path}function ee(w){const $=q(Je),[A]=$.splice(w.oldIndex,1);$.splice(w.newIndex,0,A),qe().setItem(Je,$),T.value=[...q(We),...q(Je)],b.value=A.path}return Vt("Enter",i),Vt("ArrowUp",Oe),Vt("ArrowDown",$e),(w,$)=>{const A=H("IconifyIconOffline"),ce=H("el-input"),M=H("el-empty"),L=H("el-scrollbar"),ge=H("el-dialog");return u(),B(ge,{modelValue:D.value,"onUpdate:modelValue":$[3]||($[3]=Ce=>D.value=Ce),top:"5vh",class:"pure-search-dialog","show-close":!1,width:e(o)==="mobile"?"80vw":"40vw","before-close":P,style:{borderRadius:"6px"},"append-to-body":"",onOpened:$[4]||($[4]=Ce=>j.value.focus()),onClosed:$[5]||($[5]=Ce=>j.value.blur())},{footer:C(()=>[c(Oa,{total:x.value.length},null,8,["total"])]),default:C(()=>[c(ce,{ref_key:"inputRef",ref:j,modelValue:s.value,"onUpdate:modelValue":$[0]||($[0]=Ce=>s.value=Ce),size:"large",clearable:"",placeholder:e(p)("search.purePlaceholder"),onInput:e(z)},{prefix:C(()=>[c(A,{icon:e(kn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),v("div",ja,[c(L,{ref_key:"scrollbarRef",ref:f,"max-height":"calc(90vh - 140px)"},{default:C(()=>[V.value?(u(),B(M,{key:0,description:e(p)("search.pureEmpty")},null,8,["description"])):X("",!0),F.value?(u(),B(qa,{key:1,ref_key:"historyRef",ref:m,value:b.value,"onUpdate:value":$[1]||($[1]=Ce=>b.value=Ce),options:T.value,onClick:i,onDelete:g,onCollect:I,onDrag:ee},null,8,["value","options"])):X("",!0),ne.value?(u(),B(xa,{key:2,ref_key:"resultRef",ref:d,value:_.value,"onUpdate:value":$[2]||($[2]=Ce=>_.value=Ce),options:x.value,onClick:i},null,8,["value","options"])):X("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Ka=ye(Wa,[["__scopeId","data-v-1155c5fc"]]),Qt=re({__name:"index",setup(t){const{bool:n,toggle:o}=pa();function a(){o()}return(l,r)=>{const p=H("IconifyIconOffline");return u(),S("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[c(p,{icon:"ri:search-line"})]),c(Ka,{value:e(n),"onUpdate:value":r[0]||(r[0]=h=>jn(n)?n.value=h:null)},null,8,["value"])])}}}),pn=[{key:"1",name:Se("status.pureNotify"),list:[],emptyText:Se("status.pureNoNotify")},{key:"2",name:Se("status.pureMessage"),list:[{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile1.svg",title:"小铭 评论了你",description:"诚在于心,信在于行,诚信在于心行合一。",datetime:"今天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile2.svg",title:"李白 回复了你",description:"长风破浪会有时,直挂云帆济沧海。",datetime:"昨天",type:"2"},{avatar:"https://xiaoxian521.github.io/hyperlink/svg/smile5.svg",title:"标题",description:"请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"时间",type:"2"}],emptyText:Se("status.pureNoMessage")},{key:"3",name:Se("status.pureTodo"),list:[{avatar:"",title:"第三方紧急代码变更",description:"小林提交于 2024-05-10,需在 2024-05-11 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"版本发布",description:"指派小铭于 2024-06-18 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"新功能开发",description:"开发多租户管理",datetime:"",extra:"进行中",type:"3"},{avatar:"",title:"任务名称",description:"任务需要在 2030-10-30 10:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"}],emptyText:Se("status.pureNoTodo")}],Ga={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Ya={class:"notice-container-text"},Xa={class:"notice-text-title text-[#000000d9] dark:text-white"},Ja={class:"notice-text-datetime text-[#00000073] dark:text-white"},Qa=re({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const n=N(null),o=N(!1),a=N(null),l=N(!1),{tooltipEffect:r}=Ee(),p=bn();function h(){Qe(()=>{var d,m;((d=n.value)==null?void 0:d.scrollWidth)>((m=n.value)==null?void 0:m.clientWidth)?o.value=!0:o.value=!1})}function s(d,m){const f=document.createElement("span");f.innerText=m,f.className="getDescriptionWidth",document.querySelector("body").appendChild(f);const _=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=d.target.offsetWidth;_>2*b?l.value=!0:l.value=!1}return(d,m)=>{var x,T;const f=H("el-avatar"),_=H("el-tooltip"),b=H("el-tag");return u(),S("div",Ga,[t.noticeItem.avatar?(u(),B(f,{key:0,size:30,src:t.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):X("",!0),v("div",Ya,[v("div",Xa,[c(_,{"popper-class":"notice-title-popper",effect:e(r),disabled:!o.value,content:t.noticeItem.title,placement:"top-start",enterable:!e(p)},{default:C(()=>[v("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:h},U(t.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(x=t.noticeItem)!=null&&x.extra?(u(),B(b,{key:0,type:(T=t.noticeItem)==null?void 0:T.status,size:"small",class:"notice-title-extra"},{default:C(()=>{var z;return[me(U((z=t.noticeItem)==null?void 0:z.extra),1)]}),_:1},8,["type"])):X("",!0)]),c(_,{"popper-class":"notice-title-popper",effect:e(r),disabled:!l.value,content:t.noticeItem.description,placement:"top-start"},{default:C(()=>[v("div",{ref_key:"descriptionRef",ref:a,class:"notice-text-description",onMouseover:m[0]||(m[0]=z=>s(z,t.noticeItem.description))},U(t.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",Ja,U(t.noticeItem.datetime),1)])])}}}),el=ye(Qa,[["__scopeId","data-v-197133ce"]]),tl={key:0},nl=re({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(t){return(n,o)=>{const a=H("el-empty");return t.list.length?(u(),S("div",tl,[(u(!0),S(be,null,Me(t.list,(l,r)=>(u(),B(el,{key:r,noticeItem:l},null,8,["noticeItem"]))),128))])):(u(),B(a,{key:1,description:e(Pe)(t.emptyText)},null,8,["description"]))}}}),ol={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"/>'},al={class:"header-notice-icon"},ll={key:1},sl={class:"noticeList-container"},rl=re({__name:"index",setup(t){var p;const{t:n}=je(),o=N(0),a=N(pn),l=N((p=pn[0])==null?void 0:p.key);a.value.map(h=>o.value+=h.list.length);const r=Z(()=>h=>n(h.name)+(h.list.length>0?`(${h.list.length})`:""));return(h,s)=>{const d=H("IconifyIconOffline"),m=H("el-badge"),f=H("el-empty"),_=H("el-scrollbar"),b=H("el-tab-pane"),x=H("el-tabs"),T=H("el-dropdown-menu"),z=H("el-dropdown");return u(),B(z,{trigger:"click",placement:"bottom-end"},{dropdown:C(()=>[c(T,null,{default:C(()=>[c(x,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=y=>l.value=y),stretch:!0,class:"dropdown-tabs",style:fe({width:a.value.length===0?"200px":"330px"})},{default:C(()=>[a.value.length===0?(u(),B(f,{key:0,description:e(n)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(u(),S("span",ll,[(u(!0),S(be,null,Me(a.value,y=>(u(),B(b,{key:y.key,label:r.value(y),name:`${y.key}`},{default:C(()=>[c(_,{"max-height":"330px"},{default:C(()=>[v("div",sl,[c(nl,{list:y.list,emptyText:y.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:C(()=>[v("span",{class:se(["dropdown-badge","navbar-bg-hover","select-none",Number(o.value)!==0&&"mr-[10px]"])},[c(m,{value:Number(o.value)===0?"":o.value,max:99},{default:C(()=>[v("span",al,[c(d,{icon:e(ol)},null,8,["icon"])])]),_:1},8,["value"])],2)]),_:1})}}}),en=ye(rl,[["__scopeId","data-v-1760ac04"]]),il={key:0,class:"flex justify-center items-center"},Rt=re({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(t){return(n,o)=>t.extraIcon?(u(),S("div",il,[(u(),B(Re(e(Be)(Ve(t.extraIcon))),{class:"w-[30px] h-[30px]"}))])):X("",!0)}}),tn=re({__name:"SidebarFullScreen",setup(t){const n=N(),{toggle:o,isFullscreen:a,Fullscreen:l,ExitFullscreen:r}=Ee();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),De(a,p=>{n.value=p?r:l},{immediate:!0}),(p,h)=>{const s=H("IconifyIconOffline");return u(),S("span",{class:"fullscreen-icon navbar-bg-hover",onClick:h[0]||(h[0]=(...d)=>e(o)&&e(o)(...d))},[c(s,{icon:n.value},null,8,["icon"])])}}}),nn={width:24,height:24,body:'<path fill="currentColor" d="M12 14v2a6 6 0 0 0-6 6H4a8 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 6Zm0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4Zm2.595 7.811a3.505 3.505 0 0 1 0-1.622l-.992-.573l1-1.732l.992.573A3.498 3.498 0 0 1 17 14.645V13.5h2v1.145c.532.158 1.012.44 1.405.812l.992-.573l1 1.732l-.991.573a3.512 3.512 0 0 1 0 1.622l.991.573l-1 1.732l-.992-.573a3.495 3.495 0 0 1-1.405.812V22.5h-2v-1.145a3.495 3.495 0 0 1-1.405-.812l-.992.573l-1-1.732l.992-.573ZM18 19.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Z"/>'},on={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"/>'},cl={key:0,class:"horizontal-header"},ul={class:"select-none"},dl={class:"horizontal-header-right"},hl={class:"check-zh"},fl={class:"check-en"},pl={class:"el-dropdown-link navbar-bg-hover select-none"},ml=["src"],vl={key:0,class:"dark:text-white"},gl=["title"],_l=re({__name:"NavMix",setup(t){const n=N(),o=N(null),{t:a,route:l,locale:r,translationCh:p,translationEn:h}=Gt(n),{device:s,logout:d,onPanel:m,resolvePath:f,username:_,userAvatar:b,getDivStyle:x,avatarsStyle:T,toAccountSettings:z,getDropdownItemStyle:y,getDropdownItemClass:j}=Ee();function R(D){var V,q,W;const ne=ze().wholeMenus,F=Kt(D,ne)[0];o.value=at((V=l.meta)==null?void 0:V.activePath)?(W=(q=yt(F,ne))==null?void 0:q.children[0])==null?void 0:W.path:l.meta.activePath}return Ge(()=>{R(l.path)}),Qe(()=>{var D;(D=n.value)==null||D.handleResize()}),De(()=>[l.path,ze().wholeMenus],()=>{R(l.path)}),(D,ne)=>{const F=H("el-menu-item"),V=H("el-menu"),q=H("IconifyIconOffline"),W=H("el-dropdown-item"),ie=H("el-dropdown-menu"),ue=H("el-dropdown"),P=et("loading");return e(s)!=="mobile"?he((u(),S("div",cl,[c(V,{ref_key:"menuRef",ref:n,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":o.value},{default:C(()=>[(u(!0),S(be,null,Me(e(ze)().wholeMenus,J=>(u(),B(F,{key:J.path,index:e(f)(J)||J.redirect},{title:C(()=>[Ve(J.meta.icon)?(u(),S("div",{key:0,class:se(["sub-menu-icon",J.meta.icon])},[(u(),B(Re(e(Be)(J.meta&&Ve(J.meta.icon)))))],2)):X("",!0),v("div",{style:fe(e(x))},[v("span",ul,U(e(Pe)(J.meta.title)),1),c(Rt,{extraIcon:J.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",dl,[c(Qt,{id:"header-search"}),c(ue,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ie,{class:"translation"},{default:C(()=>[c(W,{style:fe(e(y)(e(r),"zh")),class:se(["dark:!text-white",e(j)(e(r),"zh")]),onClick:e(p)},{default:C(()=>[he(v("span",hl,[c(q,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="zh"]]),me(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(W,{style:fe(e(y)(e(r),"en")),class:se(["dark:!text-white",e(j)(e(r),"en")]),onClick:e(h)},{default:C(()=>[he(v("span",fl,[c(q,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="en"]]),me(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Yt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(tn,{id:"full-screen"}),c(en,{id:"header-notice"}),c(ue,{trigger:"click"},{dropdown:C(()=>[c(W,{onClick:e(z)},{default:C(()=>[c(q,{icon:e(nn),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),c(ie,{class:"logout"},{default:C(()=>[c(W,{onClick:e(d)},{default:C(()=>[c(q,{icon:e(on),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",pl,[v("img",{src:e(b),style:fe(e(T))},null,12,ml),e(_)?(u(),S("p",vl,U(e(_)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(a)("buttons.pureOpenSystemSet"),onClick:ne[0]||(ne[0]=(...J)=>e(m)&&e(m)(...J))},[c(q,{icon:e(Ct)},null,8,["icon"])],8,gl)])])),[[P,e(ze)().wholeMenus.length===0]]):X("",!0)}}}),yl=ye(_l,[["__scopeId","data-v-9f22ffe1"]]),bl=["onClick"],wl=re({__name:"SidebarBreadCrumb",setup(t){const n=Dt(),o=N([]),a=Nt(),l=a.options.routes,r=Fe().multiTags,p=()=>{let s;Object.keys(n.query).length>0?r.forEach(f=>{ot(n.query,f==null?void 0:f.query)&&(s=Ve(f))}):Object.keys(n.params).length>0?r.forEach(f=>{ot(n.params,f==null?void 0:f.params)&&(s=Ve(f))}):s=yt(a.currentRoute.value.path,l);const d=Kt(a.currentRoute.value.name,l,"name"),m=[];d.forEach(f=>{f!=="/"&&m.push(yt(f,l))}),m.push(s),m.forEach((f,_)=>{s!=null&&s.query||s!=null&&s.params||f!=null&&f.children&&f.children.forEach(b=>{var x,T;((x=b==null?void 0:b.meta)==null?void 0:x.title)===((T=f==null?void 0:f.meta)==null?void 0:T.title)&&m.splice(_,1)})}),o.value=m.filter(f=>(f==null?void 0:f.meta)&&(f==null?void 0:f.meta.title)!==!1)},h=s=>{const{redirect:d,name:m,path:f}=s;d?a.push(d):m?s.query?a.push({name:m,query:s.query}):s.params?a.push({name:m,params:s.params}):a.push({name:m}):a.push({path:f})};return Ge(()=>{p()}),De(()=>n.path,()=>{p()},{deep:!0}),(s,d)=>{const m=H("el-breadcrumb-item"),f=H("el-breadcrumb");return u(),B(f,{class:"!leading-[50px] select-none",separator:"/"},{default:C(()=>[c(Un,{name:"breadcrumb"},{default:C(()=>[(u(!0),S(be,null,Me(o.value,_=>(u(),B(m,{key:_.path,class:"!inline !items-stretch"},{default:C(()=>[v("a",{onClick:Ze(b=>h(_),["prevent"])},U(e(Pe)(_.meta.title)),9,bl)]),_:2},1024))),128))]),_:1})]),_:1})}}}),xl={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Cl={key:3,class:"vertical-header-right"},kl={class:"check-en"},Sl={class:"el-dropdown-link navbar-bg-hover select-none"},$l=["src"],Il={key:0,class:"dark:text-white"},Tl=["title"],Ml=re({__name:"index",setup(t){const{layout:n,device:o,logout:a,onPanel:l,pureApp:r,username:p,userAvatar:h,avatarsStyle:s,toggleSideBar:d,toAccountSettings:m,getDropdownItemStyle:f,getDropdownItemClass:_}=Ee(),{t:b,locale:x,translationCh:T,translationEn:z}=Gt();return(y,j)=>{const R=H("IconifyIconOffline"),D=H("el-dropdown-item"),ne=H("el-dropdown-menu"),F=H("el-dropdown");return u(),S("div",xl,[e(o)==="mobile"?(u(),B(lo,{key:0,class:"hamburger-container","is-active":e(r).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0),e(n)!=="mix"&&e(o)!=="mobile"?(u(),B(wl,{key:1,class:"breadcrumb-container"})):X("",!0),e(n)==="mix"?(u(),B(yl,{key:2})):X("",!0),e(n)==="vertical"?(u(),S("div",Cl,[c(Qt,{id:"header-search"}),c(F,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ne,{class:"translation"},{default:C(()=>[c(D,{style:fe(e(f)(e(x),"zh")),class:se(["dark:!text-white",e(_)(e(x),"zh")]),onClick:e(T)},{default:C(()=>[he(c(R,{class:"check-zh",icon:e(lt)},null,8,["icon"]),[[Te,e(x)==="zh"]]),me(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(D,{style:fe(e(f)(e(x),"en")),class:se(["dark:!text-white",e(_)(e(x),"en")]),onClick:e(z)},{default:C(()=>[he(v("span",kl,[c(R,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(x)==="en"]]),me(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Yt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(tn,{id:"full-screen"}),c(en,{id:"header-notice"}),c(F,{trigger:"click"},{dropdown:C(()=>[c(ne,{class:"logout"},{default:C(()=>[c(D,{onClick:e(m)},{default:C(()=>[c(R,{icon:e(nn),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(b)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),c(D,{onClick:e(a)},{default:C(()=>[c(R,{icon:e(on),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(b)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",Sl,[v("img",{src:e(h),style:fe(e(s))},null,12,$l),e(p)?(u(),S("p",Il,U(e(p)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(b)("buttons.pureOpenSystemSet"),onClick:j[0]||(j[0]=(...V)=>e(l)&&e(l)(...V))},[c(R,{icon:e(Ct)},null,8,["icon"])],8,Tl)])):X("",!0)])}}}),Ll=ye(Ml,[["__scopeId","data-v-b43dc9be"]]),ut=new Map,Vl=()=>{function t(a,l){ut.set(a,l)}function n(a){return a?ut.get(a):[...ut.entries()]}function o(a){ut.delete(a)}return{setMap:t,getMap:n,delMap:o,MAP:ut}},Hl={class:"w-full h-full"},zl=re({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const n=t,o=zt([]),{setMap:a,getMap:l,MAP:r,delMap:p}=Vl(),h=Z(()=>{var d,m;return nt().KeepAlive&&((d=n.currRoute.meta)==null?void 0:d.keepAlive)&&!!((m=n.currRoute.meta)!=null&&m.frameSrc)}),s=Z(()=>!h.value&&n.currComp);return De(Fe().multiTags,d=>{if(!Array.isArray(d)||!h.value)return;if(d.filter(f=>{var _;return(_=f.meta)==null?void 0:_.frameSrc}).length<r.size)for(const f of r.keys())d.some(_=>_.path===f)||(p(f),o.value=l())}),De(()=>n.currRoute.fullPath,d=>{const f=Fe().multiTags.filter(_=>{var b;return(b=_.meta)==null?void 0:b.frameSrc});h.value&&f.length!==r.size&&([...r.keys()].find(b=>d===b)||a(d,n.currComp)),r.size>0&&(o.value=l())},{immediate:!0}),(d,m)=>(u(),S(be,null,[(u(!0),S(be,null,Me(o.value,([f,_])=>{var b;return he((u(),S("div",{key:f,class:"w-full h-full"},[bt(d.$slots,"default",{fullPath:f,Comp:_,frameInfo:{frameSrc:(b=d.currRoute.meta)==null?void 0:b.frameSrc,fullPath:f}})],512)),[[Te,f===d.currRoute.fullPath]])}),128)),he(v("div",Hl,[bt(d.$slots,"default",{Comp:s.value,fullPath:d.currRoute.fullPath})],512),[[Te,!h.value]])],64))}}),Al={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},El={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Ol=re({__name:"index",setup(t){const n=nt("Title");return(o,a)=>(u(),S("footer",Al,[me(" Copyright © 2020-2024 "),v("a",El," "+U(e(n)),1)]))}}),mn=ye(Ol,[["__scopeId","data-v-8ec2f332"]]),Zl={class:"grow"},Rl={key:1,class:"grow"},Pl=re({__name:"index",props:{fixedHeader:Boolean},setup(t){const n=t,{t:o}=je(),{showModel:a}=Sn(),{$storage:l,$config:r}=pt(),p=Z(()=>r==null?void 0:r.KeepAlive),h=Z(()=>T=>T.meta.transition),s=Z(()=>l==null?void 0:l.configure.hideTabs),d=Z(()=>l==null?void 0:l.configure.hideFooter),m=Z(()=>l==null?void 0:l.configure.stretch),f=Z(()=>(l==null?void 0:l.layout.layout)==="vertical"),_=Z(()=>At(m.value)?m.value+"px":m.value?"1440px":"100%"),b=Z(()=>[s.value&&f?"padding-top: 48px;":"",!s.value&&f?a.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",s.value&&!f.value?"padding-top: 48px;":"",!s.value&&!f.value?a.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",n.fixedHeader?"":`padding-top: 0;${s.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),x=re({props:{route:{type:void 0,required:!0}},render(){var j,R,D;const T=((j=h.value(this.route))==null?void 0:j.name)||"fade-transform",z=(R=h.value(this.route))==null?void 0:R.enterTransition,y=(D=h.value(this.route))==null?void 0:D.leaveTransition;return dt(jt,{name:z?"pure-classes-transition":T,enterActiveClass:z?`animate__animated ${z}`:void 0,leaveActiveClass:y?`animate__animated ${y}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(T,z)=>{const y=H("el-backtop"),j=H("el-scrollbar"),R=H("router-view");return u(),S("section",{class:se([t.fixedHeader?"app-main":"app-main-nofixed-header"]),style:fe(b.value)},[c(R,null,{default:C(({Component:D,route:ne})=>[c(zl,{currComp:D,currRoute:ne},{default:C(({Comp:F,fullPath:V,frameInfo:q})=>[t.fixedHeader?(u(),B(j,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":_.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:C(()=>[c(y,{title:e(o)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:C(()=>[c(e(Cn))]),_:1},8,["title"]),v("div",Zl,[c(e(x),{route:ne},{default:C(()=>[p.value?(u(),B(cn,{key:0,include:e(ze)().cachePageList},[(u(),B(Re(F),{key:V,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),B(Re(F),{key:V,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?X("",!0):(u(),B(mn,{key:0}))]),_:2},1032,["wrap-style"])):(u(),S("div",Rl,[c(e(x),{route:ne},{default:C(()=>[p.value?(u(),B(cn,{key:0,include:e(ze)().cachePageList},[(u(),B(Re(F),{key:V,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),B(Re(F),{key:V,frameInfo:q,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!t.fixedHeader?(u(),B(mn,{key:0})):X("",!0)],6)}}}),vn=ye(Pl,[["__scopeId","data-v-5fc75f4c"]]),Dl=t=>(Ut("data-v-c826562e"),t=t(),Wt(),t),Nl=Dl(()=>v("div",{class:"right-panel-background"},null,-1)),Bl={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Fl={class:"dark:text-white"},ql={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},jl=re({__name:"index",setup(t){const n=N(null),o=N(!1),a=Z(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-none","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{t:l}=je(),{onReset:r}=Xt();return _n(n,p=>{p.clientX>n.value.offsetLeft||(o.value=!1)}),Ge(()=>{He.on("openPanel",()=>{o.value=!0})}),qt(()=>{He.off("openPanel")}),(p,h)=>{const s=H("IconifyIconOffline"),d=H("el-scrollbar"),m=H("el-button"),f=et("tippy");return u(),S("div",{class:se({show:o.value})},[Nl,v("div",{ref_key:"target",ref:n,class:"right-panel bg-bg_color"},[v("div",Bl,[v("h4",Fl,U(e(l)("panel.pureSystemSet")),1),he((u(),S("span",{class:se(a.value)},[c(s,{class:"dark:text-white",width:"18px",height:"18px",icon:e(wt),onClick:h[0]||(h[0]=_=>o.value=!o.value)},null,8,["icon"])],2)),[[f,{content:e(l)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),c(d,null,{default:C(()=>[bt(p.$slots,"default",{},void 0,!0)]),_:3}),v("div",ql,[he((u(),B(m,{type:"danger",text:"",bg:"",onClick:e(r)},{default:C(()=>[me(U(e(l)("panel.pureClearCache")),1)]),_:1},8,["onClick"])),[[f,{content:e(l)("panel.pureClearCacheAndToLogin"),placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Ul=ye(jl,[["__scopeId","data-v-c826562e"]]),Wl={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},Kl=v("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),Gl=v("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),Yl=[Kl,Gl];function Xl(t,n){return u(),S("svg",Wl,[...Yl])}const Jl={render:Xl},tt=t=>(Ut("data-v-a63f193b"),t=t(),Wt(),t),Ql={class:"p-5"},es={class:"theme-color"},ts=["onClick"],ns={class:"pure-theme"},os=tt(()=>v("div",null,null,-1)),as=tt(()=>v("div",null,null,-1)),ls=[os,as],ss=tt(()=>v("div",null,null,-1)),rs=tt(()=>v("div",null,null,-1)),is=[ss,rs],cs=tt(()=>v("div",null,null,-1)),us=tt(()=>v("div",null,null,-1)),ds=[cs,us],hs={key:0},fs=tt(()=>v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),ps={class:"mt-5 font-medium text-sm dark:text-white"},ms={class:"setting"},vs={class:"dark:text-white"},gs={class:"dark:text-white"},_s={class:"dark:text-white"},ys={class:"dark:text-white"},bs=tt(()=>v("span",{class:"dark:text-white"},"Logo",-1)),ws={class:"dark:text-white"},xs=re({__name:"index",setup(t){var w,$,A,ce;const{t:n}=je(),{device:o}=Ee(),{isDark:a}=wn(),{$storage:l}=pt(),r=N(),p=N(),h=N(),{dataTheme:s,overallStyle:d,layoutTheme:m,themeColors:f,toggleClass:_,dataThemeChange:b,setLayoutThemeColor:x}=Xt();if(e(m)){const M=e(m).layout,L=e(m).theme;uo({scopeName:`layout-theme-${L}`}),I(M)}const T=N(($=(w=l.configure)==null?void 0:w.showModel)!=null?$:"smart"),z=N((ce=(A=l.configure)==null?void 0:A.showLogo)!=null?ce:!0),y=Ft({greyVal:l.configure.grey,weakVal:l.configure.weak,tabsVal:l.configure.hideTabs,showLogo:l.configure.showLogo,showModel:l.configure.showModel,hideFooter:l.configure.hideFooter,multiTagsCache:l.configure.multiTagsCache,stretch:l.configure.stretch}),j=Z(()=>M=>({background:M})),R=Z(()=>M=>!(M==="light"&&a.value));function D(M,L){const ge=l.configure;ge[M]=L,l.configure=ge}const ne=M=>{const L=document.querySelector("html");_(y.greyVal,"html-grey",L),D("grey",M)},F=M=>{const L=document.querySelector("html");_(y.weakVal,"html-weakness",L),D("weak",M)},V=()=>{const M=y.tabsVal;D("hideTabs",M),He.emit("tagViewsChange",M)},q=()=>{const M=y.hideFooter;D("hideFooter",M)},W=()=>{const M=y.multiTagsCache;D("multiTagsCache",M),Fe().multiTagsCacheChange(M)};function ie({option:M}){const{value:L}=M;T.value=L,D("showModel",L),He.emit("tagViewsShowModel",L)}function ue(){e(z)?D("showLogo",!0):D("showLogo",!1),He.emit("logoChange",e(z))}function P(M){M.forEach(L=>{_(!1,"is-select",e(L))})}const J=Z(()=>[{label:n("panel.pureStretchFixed"),tip:n("panel.pureStretchFixedTip"),value:"fixed"},{label:n("panel.pureStretchCustom"),tip:n("panel.pureStretchCustomTip"),value:"custom"}]),le=M=>{y.stretch=M,D("stretch",M)},xe=({option:M})=>{const{value:L}=M;le(L==="custom"?1440:!1)},Oe=Z(()=>M=>M===m.value.theme&&m.value.theme!=="light"?"#fff":M===m.value.theme&&m.value.theme==="light"?"#1d2b45":"transparent"),$e=Z(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),i=Z(()=>[{label:n("panel.pureOverallStyleLight"),icon:io,theme:"light",tip:n("panel.pureOverallStyleLightTip"),iconAttrs:{fill:a.value?"#fff":"#000"}},{label:n("panel.pureOverallStyleDark"),icon:co,theme:"dark",tip:n("panel.pureOverallStyleDarkTip"),iconAttrs:{fill:a.value?"#fff":"#000"}},{label:n("panel.pureOverallStyleSystem"),icon:Jl,theme:"system",tip:n("panel.pureOverallStyleSystemTip"),iconAttrs:{fill:a.value?"#fff":"#000"}}]),g=Z(()=>[{label:n("panel.pureTagsStyleSmart"),tip:n("panel.pureTagsStyleSmartTip"),value:"smart"},{label:n("panel.pureTagsStyleCard"),tip:n("panel.pureTagsStyleCardTip"),value:"card"},{label:n("panel.pureTagsStyleChrome"),tip:n("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function I(M){var L,ge,Ce,Ye,Ae;m.value.layout=M,window.document.body.setAttribute("layout",M),l.layout={layout:M,theme:m.value.theme,darkMode:(L=l.layout)==null?void 0:L.darkMode,sidebarStatus:(ge=l.layout)==null?void 0:ge.sidebarStatus,epThemeColor:(Ce=l.layout)==null?void 0:Ce.epThemeColor,themeColor:(Ye=l.layout)==null?void 0:Ye.themeColor,overallStyle:(Ae=l.layout)==null?void 0:Ae.overallStyle},Ke().setLayout(M)}De(l,({layout:M})=>{switch(M.layout){case"vertical":_(!0,"is-select",e(p)),st(P([h]),50),st(P([r]),50);break;case"horizontal":_(!0,"is-select",e(h)),st(P([p]),50),st(P([r]),50);break;case"mix":_(!0,"is-select",e(r)),st(P([p]),50),st(P([h]),50);break}});const Q=window.matchMedia("(prefers-color-scheme: dark)");function pe(){d.value==="system"&&(Q.matches?s.value=!0:s.value=!1,b(d.value))}function te(){Q.removeEventListener("change",pe)}function ee(){pe(),te(),Q.addEventListener("change",pe)}return xn(()=>{Qe(()=>{var M,L;ee(),y.greyVal&&((M=document.querySelector("html"))==null||M.classList.add("html-grey")),y.weakVal&&((L=document.querySelector("html"))==null||L.classList.add("html-weakness")),y.tabsVal&&V(),y.hideFooter&&q()})}),Wn(()=>te),(M,L)=>{const ge=H("IconifyIconOffline"),Ce=H("el-icon"),Ye=H("el-input-number"),Ae=H("el-switch"),Ue=et("tippy"),It=et("ripple");return u(),B(Ul,null,{default:C(()=>[v("div",Ql,[v("p",{class:se($e.value)},U(e(n)("panel.pureOverallStyle")),3),c(e(Ht),{resize:"",class:"select-none",modelValue:e(d)==="system"?2:e(s)?1:0,options:i.value,onChange:L[0]||(L[0]=oe=>{oe.index===1&&oe.index!==2?s.value=!0:s.value=!1,d.value=oe.option.theme,e(b)(oe.option.theme),oe.index===2&&ee()})},null,8,["modelValue","options"]),v("p",{class:se(["mt-5",$e.value])},U(e(n)("panel.pureThemeColor")),3),v("ul",es,[(u(!0),S(be,null,Me(e(f),(oe,mt)=>he((u(),S("li",{key:mt,style:fe(j.value(oe.color)),onClick:k=>e(x)(oe.themeColor)},[c(Ce,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Oe.value(oe.themeColor)},{default:C(()=>[c(ge,{icon:e(lt)},null,8,["icon"])]),_:2},1032,["color"])],12,ts)),[[Te,R.value(oe.themeColor)]])),128))]),v("p",{class:se(["mt-5",$e.value])},U(e(n)("panel.pureLayoutModel")),3),v("ul",ns,[he((u(),S("li",{ref_key:"verticalRef",ref:p,class:se(e(m).layout==="vertical"?"is-select":""),onClick:L[1]||(L[1]=oe=>I("vertical"))},ls,2)),[[Ue,{content:e(n)("panel.pureVerticalTip"),zIndex:41e3}]]),e(o)!=="mobile"?he((u(),S("li",{key:0,ref_key:"horizontalRef",ref:h,class:se(e(m).layout==="horizontal"?"is-select":""),onClick:L[2]||(L[2]=oe=>I("horizontal"))},is,2)),[[Ue,{content:e(n)("panel.pureHorizontalTip"),zIndex:41e3}]]):X("",!0),e(o)!=="mobile"?he((u(),S("li",{key:1,ref_key:"mixRef",ref:r,class:se(e(m).layout==="mix"?"is-select":""),onClick:L[3]||(L[3]=oe=>I("mix"))},ds,2)),[[Ue,{content:e(n)("panel.pureMixTip"),zIndex:41e3}]]):X("",!0)]),e(Ke)().getViewportWidth>1280?(u(),S("span",hs,[v("p",{class:se(["mt-5",$e.value])},U(e(n)("panel.pureStretch")),3),c(e(Ht),{resize:"",class:"mb-2 select-none",modelValue:e(At)(y.stretch)?1:0,options:J.value,onChange:xe},null,8,["modelValue","options"]),e(At)(y.stretch)?(u(),B(Ye,{key:0,modelValue:y.stretch,"onUpdate:modelValue":L[4]||(L[4]=oe=>y.stretch=oe),min:1280,max:1600,"controls-position":"right",onChange:L[5]||(L[5]=oe=>le(oe))},null,8,["modelValue"])):he((u(),S("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]",onClick:L[6]||(L[6]=oe=>le(!y.stretch))},[v("div",{class:se(["flex-bc transition-all duration-300",[y.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[c(ge,{icon:y.stretch?e(Ot):e(Et),height:"20"},null,8,["icon"]),fs,c(ge,{icon:y.stretch?e(Et):e(Ot),height:"20"},null,8,["icon"])],2)])),[[It,{class:"text-gray-300"}]])])):X("",!0),v("p",{class:se(["mt-4",$e.value])},U(e(n)("panel.pureTagsStyle")),3),c(e(Ht),{resize:"",class:"select-none",modelValue:T.value==="smart"?0:T.value==="card"?1:2,options:g.value,onChange:ie},null,8,["modelValue","options"]),v("p",ps,U(e(n)("panel.pureInterfaceDisplay")),1),v("ul",ms,[v("li",null,[v("span",vs,U(e(n)("panel.pureGreyModel")),1),c(Ae,{modelValue:y.greyVal,"onUpdate:modelValue":L[7]||(L[7]=oe=>y.greyVal=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:ne},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",gs,U(e(n)("panel.pureWeakModel")),1),c(Ae,{modelValue:y.weakVal,"onUpdate:modelValue":L[8]||(L[8]=oe=>y.weakVal=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:F},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",_s,U(e(n)("panel.pureHiddenTags")),1),c(Ae,{modelValue:y.tabsVal,"onUpdate:modelValue":L[9]||(L[9]=oe=>y.tabsVal=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:V},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",ys,U(e(n)("panel.pureHiddenFooter")),1),c(Ae,{modelValue:y.hideFooter,"onUpdate:modelValue":L[10]||(L[10]=oe=>y.hideFooter=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:q},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[bs,c(Ae,{modelValue:z.value,"onUpdate:modelValue":L[11]||(L[11]=oe=>z.value=oe),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:ue},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",ws,U(e(n)("panel.pureMultiTagsCache")),1),c(Ae,{modelValue:y.multiTagsCache,"onUpdate:modelValue":L[12]||(L[12]=oe=>y.multiTagsCache=oe),"inline-prompt":"","active-text":e(n)("buttons.pureOpenText"),"inactive-text":e(n)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),Cs=ye(xs,[["__scopeId","data-v-a63f193b"]]),ks=["src"],Ss={class:"sidebar-title"},$s=["src"],Is={class:"sidebar-title"},Ts=re({__name:"SidebarLogo",props:{collapse:Boolean},setup(t){const{title:n,getLogo:o}=Ee();return(a,l)=>{const r=H("router-link");return u(),S("div",{class:se(["sidebar-logo-container",{collapses:t.collapse}])},[c(jt,{name:"sidebarLogoFade"},{default:C(()=>{var p,h,s,d;return[t.collapse?(u(),B(r,{key:"collapse",title:e(n),class:"sidebar-logo-link",to:(h=(p=e(_t)())==null?void 0:p.path)!=null?h:"/"},{default:C(()=>[v("img",{src:e(o)(),alt:"logo"},null,8,ks),v("span",Ss,U(e(n)),1)]),_:1},8,["title","to"])):(u(),B(r,{key:"expand",title:e(n),class:"sidebar-logo-link",to:(d=(s=e(_t)())==null?void 0:s.path)!=null?d:"/"},{default:C(()=>[v("img",{src:e(o)(),alt:"logo"},null,8,$s),v("span",Is,U(e(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Ms=ye(Ts,[["__scopeId","data-v-3c9cd1d3"]]);var ft={exports:{}},In={},Ls=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},Pt={exports:{}};typeof Object.create=="function"?Pt.exports=function(n,o){n.super_=o,n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:Pt.exports=function(n,o){n.super_=o;var a=function(){};a.prototype=o.prototype,n.prototype=new a,n.prototype.constructor=n};var Vs=Pt.exports;(function(t){var n={},o=/%[sdj%]/g;t.format=function(i){if(!D(i)){for(var g=[],I=0;I<arguments.length;I++)g.push(r(arguments[I]));return g.join(" ")}for(var I=1,Q=arguments,pe=Q.length,te=String(i).replace(o,function(w){if(w==="%%")return"%";if(I>=pe)return w;switch(w){case"%s":return String(Q[I++]);case"%d":return Number(Q[I++]);case"%j":try{return JSON.stringify(Q[I++])}catch($){return"[Circular]"}default:return w}}),ee=Q[I];I<pe;ee=Q[++I])y(ee)||!q(ee)?te+=" "+ee:te+=" "+r(ee);return te},t.deprecate=function(i,g){if(F(Kn.process))return function(){return t.deprecate(i,g).apply(this,arguments)};if(process.noDeprecation===!0)return i;var I=!1;function Q(){if(!I){if(process.throwDeprecation)throw new Error(g);process.traceDeprecation?console.trace(g):console.error(g),I=!0}return i.apply(this,arguments)}return Q};var a={},l;t.debuglog=function(i){if(F(l)&&(l=n.NODE_DEBUG||""),i=i.toUpperCase(),!a[i])if(new RegExp("\\b"+i+"\\b","i").test(l)){var g=process.pid;a[i]=function(){var I=t.format.apply(t,arguments);console.error("%s %d: %s",i,g,I)}}else a[i]=function(){};return a[i]};function r(i,g){var I={seen:[],stylize:h};return arguments.length>=3&&(I.depth=arguments[2]),arguments.length>=4&&(I.colors=arguments[3]),z(g)?I.showHidden=g:g&&t._extend(I,g),F(I.showHidden)&&(I.showHidden=!1),F(I.depth)&&(I.depth=2),F(I.colors)&&(I.colors=!1),F(I.customInspect)&&(I.customInspect=!0),I.colors&&(I.stylize=p),d(I,i,I.depth)}t.inspect=r,r.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]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(i,g){var I=r.styles[g];return I?"\x1B["+r.colors[I][0]+"m"+i+"\x1B["+r.colors[I][1]+"m":i}function h(i,g){return i}function s(i){var g={};return i.forEach(function(I,Q){g[I]=!0}),g}function d(i,g,I){if(i.customInspect&&g&&ue(g.inspect)&&g.inspect!==t.inspect&&!(g.constructor&&g.constructor.prototype===g)){var Q=g.inspect(I,i);return D(Q)||(Q=d(i,Q,I)),Q}var pe=m(i,g);if(pe)return pe;var te=Object.keys(g),ee=s(te);if(i.showHidden&&(te=Object.getOwnPropertyNames(g)),ie(g)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return f(g);if(te.length===0){if(ue(g)){var w=g.name?": "+g.name:"";return i.stylize("[Function"+w+"]","special")}if(V(g))return i.stylize(RegExp.prototype.toString.call(g),"regexp");if(W(g))return i.stylize(Date.prototype.toString.call(g),"date");if(ie(g))return f(g)}var $="",A=!1,ce=["{","}"];if(T(g)&&(A=!0,ce=["[","]"]),ue(g)){var M=g.name?": "+g.name:"";$=" [Function"+M+"]"}if(V(g)&&($=" "+RegExp.prototype.toString.call(g)),W(g)&&($=" "+Date.prototype.toUTCString.call(g)),ie(g)&&($=" "+f(g)),te.length===0&&(!A||g.length==0))return ce[0]+$+ce[1];if(I<0)return V(g)?i.stylize(RegExp.prototype.toString.call(g),"regexp"):i.stylize("[Object]","special");i.seen.push(g);var L;return A?L=_(i,g,I,ee,te):L=te.map(function(ge){return b(i,g,I,ee,ge,A)}),i.seen.pop(),x(L,$,ce)}function m(i,g){if(F(g))return i.stylize("undefined","undefined");if(D(g)){var I="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(I,"string")}if(R(g))return i.stylize(""+g,"number");if(z(g))return i.stylize(""+g,"boolean");if(y(g))return i.stylize("null","null")}function f(i){return"["+Error.prototype.toString.call(i)+"]"}function _(i,g,I,Q,pe){for(var te=[],ee=0,w=g.length;ee<w;++ee)$e(g,String(ee))?te.push(b(i,g,I,Q,String(ee),!0)):te.push("");return pe.forEach(function($){$.match(/^\d+$/)||te.push(b(i,g,I,Q,$,!0))}),te}function b(i,g,I,Q,pe,te){var ee,w,$;if($=Object.getOwnPropertyDescriptor(g,pe)||{value:g[pe]},$.get?$.set?w=i.stylize("[Getter/Setter]","special"):w=i.stylize("[Getter]","special"):$.set&&(w=i.stylize("[Setter]","special")),$e(Q,pe)||(ee="["+pe+"]"),w||(i.seen.indexOf($.value)<0?(y(I)?w=d(i,$.value,null):w=d(i,$.value,I-1),w.indexOf(`
|
||
`)>-1&&(te?w=w.split(`
|
||
`).map(function(A){return" "+A}).join(`
|
||
`).substr(2):w=`
|
||
`+w.split(`
|
||
`).map(function(A){return" "+A}).join(`
|
||
`))):w=i.stylize("[Circular]","special")),F(ee)){if(te&&pe.match(/^\d+$/))return w;ee=JSON.stringify(""+pe),ee.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.substr(1,ee.length-2),ee=i.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=i.stylize(ee,"string"))}return ee+": "+w}function x(i,g,I){var Q=i.reduce(function(pe,te){return te.indexOf(`
|
||
`)>=0,pe+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Q>60?I[0]+(g===""?"":g+`
|
||
`)+" "+i.join(`,
|
||
`)+" "+I[1]:I[0]+g+" "+i.join(", ")+" "+I[1]}function T(i){return Array.isArray(i)}t.isArray=T;function z(i){return typeof i=="boolean"}t.isBoolean=z;function y(i){return i===null}t.isNull=y;function j(i){return i==null}t.isNullOrUndefined=j;function R(i){return typeof i=="number"}t.isNumber=R;function D(i){return typeof i=="string"}t.isString=D;function ne(i){return typeof i=="symbol"}t.isSymbol=ne;function F(i){return i===void 0}t.isUndefined=F;function V(i){return q(i)&&J(i)==="[object RegExp]"}t.isRegExp=V;function q(i){return typeof i=="object"&&i!==null}t.isObject=q;function W(i){return q(i)&&J(i)==="[object Date]"}t.isDate=W;function ie(i){return q(i)&&(J(i)==="[object Error]"||i instanceof Error)}t.isError=ie;function ue(i){return typeof i=="function"}t.isFunction=ue;function P(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i=="undefined"}t.isPrimitive=P,t.isBuffer=Ls;function J(i){return Object.prototype.toString.call(i)}function le(i){return i<10?"0"+i.toString(10):i.toString(10)}var xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oe(){var i=new Date,g=[le(i.getHours()),le(i.getMinutes()),le(i.getSeconds())].join(":");return[i.getDate(),xe[i.getMonth()],g].join(" ")}t.log=function(){console.log("%s - %s",Oe(),t.format.apply(t,arguments))},t.inherits=Vs,t._extend=function(i,g){if(!g||!q(g))return i;for(var I=Object.keys(g),Q=I.length;Q--;)i[I[Q]]=g[I[Q]];return i};function $e(i,g){return Object.prototype.hasOwnProperty.call(i,g)}})(In);var Hs={},zs=process.platform==="win32",Ne=In;function kt(t,n){for(var o=[],a=0;a<t.length;a++){var l=t[a];!l||l==="."||(l===".."?o.length&&o[o.length-1]!==".."?o.pop():n&&o.push(".."):o.push(l))}return o}function ht(t){for(var n=t.length-1,o=0;o<=n&&!t[o];o++);for(var a=n;a>=0&&!t[a];a--);return o===0&&a===n?t:o>a?[]:t.slice(o,a+1)}var Tn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,As=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,_e={};function St(t){var n=Tn.exec(t),o=(n[1]||"")+(n[2]||""),a=n[3]||"",l=As.exec(a),r=l[1],p=l[2],h=l[3];return[o,r,p,h]}function an(t){var n=Tn.exec(t),o=n[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!n[2],tail:n[3]}}function Mn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}_e.resolve=function(){for(var t="",n="",o=!1,a=arguments.length-1;a>=-1;a--){var l;if(a>=0?l=arguments[a]:t?(l=Hs["="+t],(!l||l.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(l=t+"\\")):l=process.cwd(),Ne.isString(l)){if(!l)continue}else throw new TypeError("Arguments to path.resolve must be strings");var r=an(l),p=r.device,h=r.isUnc,s=r.isAbsolute,d=r.tail;if(!(p&&t&&p.toLowerCase()!==t.toLowerCase())&&(t||(t=p),o||(n=d+"\\"+n,o=s),t&&o))break}return h&&(t=Mn(t)),n=kt(n.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+n||"."};_e.normalize=function(t){var n=an(t),o=n.device,a=n.isUnc,l=n.isAbsolute,r=n.tail,p=/[\\\/]$/.test(r);return r=kt(r.split(/[\\\/]+/),!l).join("\\"),!r&&!l&&(r="."),r&&p&&(r+="\\"),a&&(o=Mn(o)),o+(l?"\\":"")+r};_e.isAbsolute=function(t){return an(t).isAbsolute};_e.join=function(){for(var t=[],n=0;n<arguments.length;n++){var o=arguments[n];if(!Ne.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&t.push(o)}var a=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),_e.normalize(a)};_e.relative=function(t,n){t=_e.resolve(t),n=_e.resolve(n);for(var o=t.toLowerCase(),a=n.toLowerCase(),l=ht(n.split("\\")),r=ht(o.split("\\")),p=ht(a.split("\\")),h=Math.min(r.length,p.length),s=h,d=0;d<h;d++)if(r[d]!==p[d]){s=d;break}if(s==0)return n;for(var m=[],d=s;d<r.length;d++)m.push("..");return m=m.concat(l.slice(s)),m.join("\\")};_e._makeLong=function(t){if(!Ne.isString(t))return t;if(!t)return"";var n=_e.resolve(t);return/^[a-zA-Z]\:\\/.test(n)?"\\\\?\\"+n:/^\\\\[^?.]/.test(n)?"\\\\?\\UNC\\"+n.substring(2):t};_e.dirname=function(t){var n=St(t),o=n[0],a=n[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};_e.basename=function(t,n){var o=St(t)[2];return n&&o.substr(-1*n.length)===n&&(o=o.substr(0,o.length-n.length)),o};_e.extname=function(t){return St(t)[3]};_e.format=function(t){if(!Ne.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var n=t.root||"";if(!Ne.isString(n))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir,a=t.base||"";return o?o[o.length-1]===_e.sep?o+a:o+_e.sep+a:a};_e.parse=function(t){if(!Ne.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var n=St(t);if(!n||n.length!==4)throw new TypeError("Invalid path '"+t+"'");return{root:n[0],dir:n[0]+n[1].slice(0,-1),base:n[2],ext:n[3],name:n[2].slice(0,n[2].length-n[3].length)}};_e.sep="\\";_e.delimiter=";";var Es=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,we={};function $t(t){return Es.exec(t).slice(1)}we.resolve=function(){for(var t="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var a=o>=0?arguments[o]:process.cwd();if(Ne.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,n=a[0]==="/"}return t=kt(t.split("/"),!n).join("/"),(n?"/":"")+t||"."};we.normalize=function(t){var n=we.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=kt(t.split("/"),!n).join("/"),!t&&!n&&(t="."),t&&o&&(t+="/"),(n?"/":"")+t};we.isAbsolute=function(t){return t.charAt(0)==="/"};we.join=function(){for(var t="",n=0;n<arguments.length;n++){var o=arguments[n];if(!Ne.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(t?t+="/"+o:t+=o)}return we.normalize(t)};we.relative=function(t,n){t=we.resolve(t).substr(1),n=we.resolve(n).substr(1);for(var o=ht(t.split("/")),a=ht(n.split("/")),l=Math.min(o.length,a.length),r=l,p=0;p<l;p++)if(o[p]!==a[p]){r=p;break}for(var h=[],p=r;p<o.length;p++)h.push("..");return h=h.concat(a.slice(r)),h.join("/")};we._makeLong=function(t){return t};we.dirname=function(t){var n=$t(t),o=n[0],a=n[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};we.basename=function(t,n){var o=$t(t)[2];return n&&o.substr(-1*n.length)===n&&(o=o.substr(0,o.length-n.length)),o};we.extname=function(t){return $t(t)[3]};we.format=function(t){if(!Ne.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var n=t.root||"";if(!Ne.isString(n))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir?t.dir+we.sep:"",a=t.base||"";return o+a};we.parse=function(t){if(!Ne.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var n=$t(t);if(!n||n.length!==4)throw new TypeError("Invalid path '"+t+"'");return n[1]=n[1]||"",n[2]=n[2]||"",n[3]=n[3]||"",{root:n[0],dir:n[0]+n[1].slice(0,-1),base:n[2],ext:n[3],name:n[2].slice(0,n[2].length-n[3].length)}};we.sep="/";we.delimiter=":";zs?ft.exports=_e:ft.exports=we;ft.exports.posix=we;ft.exports.win32=_e;var Os=ft.exports;const Zs=Gn(Os),Rs=re({__name:"SidebarLinkItem",props:{to:{}},setup(t){const n=t,o=Z(()=>Yn(n.to.name)),a=l=>o.value?{href:l.name,target:"_blank",rel:"noopener"}:{to:l};return(l,r)=>(u(),B(Re(o.value?"a":"router-link"),Xn(Jn(a(l.to))),{default:C(()=>[bt(l.$slots,"default")]),_:3},16))}}),Ps={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"/>'},Ds={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"/>'},Ns={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"/>'},Bs={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"/>'},Ln=re({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const n=Qn(),{layout:o,isCollapse:a,tooltipEffect:l,getDivStyle:r}=Ee(),p=t,h=Z(()=>({width:"100%",display:"flex",alignItems:"center"})),s=Z(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),d=Z(()=>{var b;return(b=nt())!=null&&b.MenuArrowIconNoTransition?{"expand-close-icon":Be(Ds),"expand-open-icon":Be(Ps),"collapse-close-icon":Be(Bs),"collapse-open-icon":Be(Ns)}:""}),m=N(null);function f(b=[],x){var z,y;const T=b.filter(j=>(m.value=j,!0));return(y=(z=T[0])==null?void 0:z.meta)!=null&&y.showParent?!1:T.length===1?!0:T.length===0?(m.value=Mt(Tt({},x),{path:"",noShowingChildren:!0}),!0):!1}function _(b){const x=/^http(s?):\/\//;return x.test(b)||x.test(p.basePath)?b||p.basePath:Zs.posix.resolve(p.basePath,b)}return(b,x)=>{const T=H("el-text"),z=H("el-menu-item"),y=H("sidebar-item",!0),j=H("el-sub-menu");return f(t.item.children,t.item)&&(!m.value.children||m.value.noShowingChildren)?(u(),B(Rs,{key:0,to:t.item},{default:C(()=>[c(z,un({index:_(m.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:h.value},e(n)),{title:C(()=>[v("div",{style:fe(e(r))},[c(e(dn),{tippyProps:{offset:[0,-10],theme:e(l)},class:"!w-full !text-inherit"},{default:C(()=>[me(U(e(Pe)(m.value.meta.title)),1)]),_:1},8,["tippyProps"]),c(Rt,{extraIcon:m.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:C(()=>{var R,D,ne,F,V;return[Ve(t.item.meta.icon)?(u(),S("div",{key:0,class:"sub-menu-icon",style:fe(s.value)},[(u(),B(Re(e(Be)(Ve(m.value.meta.icon)||t.item.meta&&Ve(t.item.meta.icon)))))],4)):X("",!0),!((R=t.item)!=null&&R.meta.icon)&&e(a)&&e(o)==="vertical"&&((ne=(D=t.item)==null?void 0:D.pathList)==null?void 0:ne.length)===1||!m.value.meta.icon&&e(a)&&e(o)==="mix"&&((V=(F=t.item)==null?void 0:F.pathList)==null?void 0:V.length)===2?(u(),B(T,{key:1,truncated:"",class:"!w-full !pl-4 !text-inherit"},{default:C(()=>[me(U(e(Pe)(m.value.meta.title)),1)]),_:1})):X("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(u(),B(j,un({key:1,ref:"subMenu",teleported:"",index:_(t.item.path)},d.value),{title:C(()=>{var R,D;return[Ve(t.item.meta.icon)?(u(),S("div",{key:0,style:fe(s.value),class:"sub-menu-icon"},[(u(),B(Re(e(Be)(t.item.meta&&Ve(t.item.meta.icon)))))],4)):X("",!0),(e(o)==="mix"&&Ve(t.item.meta.icon)?!e(a)||((D=(R=t.item)==null?void 0:R.pathList)==null?void 0:D.length)!==2:!(e(o)==="vertical"&&e(a)&&Ve(t.item.meta.icon)&&t.item.parentId===null))?(u(),B(e(dn),{key:1,tippyProps:{offset:[0,-10],theme:e(l)},class:se({"!w-full":!0,"!text-inherit":!0,"!pl-4":e(o)!=="horizontal"&&e(a)&&!Ve(t.item.meta.icon)&&t.item.parentId===null})},{default:C(()=>[me(U(e(Pe)(t.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):X("",!0),e(a)?X("",!0):(u(),B(Rt,{key:2,extraIcon:t.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:C(()=>[(u(!0),S(be,null,Me(t.item.children,R=>(u(),B(y,{key:R.path,"is-nest":!0,item:R,"base-path":_(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Fs={class:"left-collapse"},qs=re({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:n}){const{t:o}=je(),{tooltipEffect:a}=Ee(),l=Z(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:r}=pt(),p=Z(()=>{var d;return(d=r.layout)==null?void 0:d.themeColor}),h=n,s=()=>{h("toggleClick")};return(d,m)=>{const f=H("IconifyIconOffline"),_=et("tippy");return u(),S("div",Fs,[he(c(f,{icon:e(so),class:se([l.value,p.value==="light"?"":"text-primary"]),style:fe({transform:d.isActive?"none":"rotateY(180deg)"}),onClick:s},null,8,["icon","class","style"]),[[_,{content:d.isActive?e(o)("buttons.pureClickCollapse"):e(o)("buttons.pureClickExpand"),theme:e(a),hideOnClick:"toggle",placement:"right"}]])])}}}),js=ye(qs,[["__scopeId","data-v-b883211c"]]),Us={width:24,height:24,body:'<path fill="currentColor" d="m4.836 12l6.207 6.207l1.414-1.414L7.664 12l4.793-4.793l-1.414-1.414L4.836 12Zm5.65 0l6.207 6.207l1.414-1.414L13.314 12l4.793-4.793l-1.414-1.414L10.486 12Z"/>'},Ws=re({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:n}){const{t:o}=je(),{tooltipEffect:a}=Ee(),l=Z(()=>["w-[16px]","h-[16px]"]),{$storage:r}=pt(),p=Z(()=>{var d;return(d=r.layout)==null?void 0:d.themeColor}),h=n,s=()=>{h("toggleClick")};return(d,m)=>{const f=H("IconifyIconOffline"),_=et("tippy");return he((u(),S("div",{class:"center-collapse",onClick:s},[c(f,{icon:e(Us),class:se([l.value,p.value==="light"?"":"text-primary"]),style:fe({transform:d.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[_,{content:d.isActive?e(o)("buttons.pureClickCollapse"):e(o)("buttons.pureClickExpand"),theme:e(a),hideOnClick:"toggle",placement:"right"}]])}}}),Ks=ye(Ws,[["__scopeId","data-v-1c646820"]]),Gs=re({__name:"NavVertical",setup(t){var T,z;const n=Dt(),o=N(!1),a=N((z=(T=qe().getItem(`${rt()}configure`))==null?void 0:T.showLogo)!=null?z:!0),{device:l,pureApp:r,isCollapse:p,tooltipEffect:h,menuSelect:s,toggleSideBar:d}=Ee(),m=N([]),f=Z(()=>r.layout==="mix"&&l.value!=="mobile"?m.value:ze().wholeMenus),_=Z(()=>r.layout==="mix"?!1:f.value.length===0),b=Z(()=>{var y;return at((y=n.meta)==null?void 0:y.activePath)?n.path:n.meta.activePath});function x(){let y="";y=b.value,m.value=[];const j=Kt(y,ze().wholeMenus),R=yt(j[0]||y,ze().wholeMenus);R!=null&&R.children&&(m.value=R==null?void 0:R.children)}return De(()=>[n.path,ze().wholeMenus],()=>{n.path.includes("/redirect")||(x(),s(n.path))}),Ge(()=>{x(),He.on("logoChange",y=>{a.value=y})}),qt(()=>{He.off("logoChange")}),(y,j)=>{const R=H("el-menu"),D=H("el-scrollbar"),ne=et("loading");return he((u(),S("div",{class:se(["sidebar-container",a.value?"has-logo":"no-logo"]),onMouseenter:j[0]||(j[0]=Ze(F=>o.value=!0,["prevent"])),onMouseleave:j[1]||(j[1]=Ze(F=>o.value=!1,["prevent"]))},[a.value?(u(),B(Ms,{key:0,collapse:e(p)},null,8,["collapse"])):X("",!0),c(D,{"wrap-class":"scrollbar-wrapper",class:se([e(l)==="mobile"?"mobile":"pc"])},{default:C(()=>[c(R,{"unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:e(p),"collapse-transition":!1,"popper-effect":e(h),"default-active":b.value},{default:C(()=>[(u(!0),S(be,null,Me(f.value,F=>(u(),B(Ln,{key:F.path,item:F,"base-path":F.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(l)!=="mobile"&&(o.value||e(p))?(u(),B(Ks,{key:1,"is-active":e(r).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0),e(l)!=="mobile"?(u(),B(js,{key:2,"is-active":e(r).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0)],34)),[[ne,_.value]])}}}),Ys=ye(Gs,[["__scopeId","data-v-f94a3619"]]),Xs={class:"horizontal-header"},Js=["src"],Qs={class:"horizontal-header-right"},er={class:"check-zh"},tr={class:"check-en"},nr={class:"el-dropdown-link navbar-bg-hover"},or=["src"],ar={key:0,class:"dark:text-white"},lr=["title"],sr=re({__name:"NavHorizontal",setup(t){var D,ne;const n=N(),o=N((ne=(D=qe().getItem(`${rt()}configure`))==null?void 0:D.showLogo)!=null?ne:!0),{t:a,route:l,locale:r,translationCh:p,translationEn:h}=Gt(n),{title:s,logout:d,onPanel:m,getLogo:f,username:_,userAvatar:b,backTopMenu:x,avatarsStyle:T,toAccountSettings:z,getDropdownItemStyle:y,getDropdownItemClass:j}=Ee(),R=Z(()=>{var F;return at((F=l.meta)==null?void 0:F.activePath)?l.path:l.meta.activePath});return Qe(()=>{var F;(F=n.value)==null||F.handleResize()}),Ge(()=>{He.on("logoChange",F=>{o.value=F})}),(F,V)=>{const q=H("el-menu"),W=H("IconifyIconOffline"),ie=H("el-dropdown-item"),ue=H("el-dropdown-menu"),P=H("el-dropdown"),J=et("loading");return he((u(),S("div",Xs,[o.value?(u(),S("div",{key:0,class:"horizontal-header-left",onClick:V[0]||(V[0]=(...le)=>e(x)&&e(x)(...le))},[v("img",{src:e(f)(),alt:"logo"},null,8,Js),v("span",null,U(e(s)),1)])):X("",!0),c(q,{ref_key:"menuRef",ref:n,mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":R.value},{default:C(()=>[(u(!0),S(be,null,Me(e(ze)().wholeMenus,le=>(u(),B(Ln,{key:le.path,item:le,"base-path":le.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Qs,[c(Qt,{id:"header-search"}),c(P,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ue,{class:"translation"},{default:C(()=>[c(ie,{style:fe(e(y)(e(r),"zh")),class:se(["dark:!text-white",e(j)(e(r),"zh")]),onClick:e(p)},{default:C(()=>[he(v("span",er,[c(W,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="zh"]]),me(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(ie,{style:fe(e(y)(e(r),"en")),class:se(["dark:!text-white",e(j)(e(r),"en")]),onClick:e(h)},{default:C(()=>[he(v("span",tr,[c(W,{icon:e(lt)},null,8,["icon"])],512),[[Te,e(r)==="en"]]),me(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Yt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(tn,{id:"full-screen"}),c(en,{id:"header-notice"}),c(P,{trigger:"click"},{dropdown:C(()=>[c(ie,{onClick:e(z)},{default:C(()=>[c(W,{icon:e(nn),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),c(ue,{class:"logout"},{default:C(()=>[c(ie,{onClick:e(d)},{default:C(()=>[c(W,{icon:e(on),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",nr,[v("img",{src:e(b),style:fe(e(T))},null,12,or),e(_)?(u(),S("p",ar,U(e(_)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(a)("buttons.pureOpenSystemSet"),onClick:V[1]||(V[1]=(...le)=>e(m)&&e(m)(...le))},[c(W,{icon:e(Ct)},null,8,["icon"])],8,lr)])])),[[J,e(ze)().wholeMenus.length===0]])}}}),rr=ye(sr,[["__scopeId","data-v-3bf860c7"]]),ir={key:0},cr=re({__name:"index",setup(t){const{t:n}=je(),o=N(),{isDark:a}=wn(),{layout:l}=ho(),r=bn(),p=Jt(),{$storage:h}=pt(),s=Ft({sidebar:Z(()=>Ke().sidebar),device:Z(()=>Ke().device),fixedHeader:Z(()=>p.fixedHeader),classes:Z(()=>({hideSidebar:!s.sidebar.opened,openSidebar:s.sidebar.opened,withoutAnimation:s.sidebar.withoutAnimation,mobile:s.device==="mobile"})),hideTabs:Z(()=>h==null?void 0:h.configure.hideTabs)});function d(b){var x,T,z,y,j,R;window.document.body.setAttribute("layout",b),h.layout={layout:`${b}`,theme:(x=h.layout)==null?void 0:x.theme,darkMode:(T=h.layout)==null?void 0:T.darkMode,sidebarStatus:(z=h.layout)==null?void 0:z.sidebarStatus,epThemeColor:(y=h.layout)==null?void 0:y.epThemeColor,themeColor:(j=h.layout)==null?void 0:j.themeColor,overallStyle:(R=h.layout)==null?void 0:R.overallStyle}}function m(b,x){Ke().toggleDevice(b),Ke().toggleSideBar(x,"resize")}let f=!0;xt(o,b=>{if(r)return;const x=b[0],[{inlineSize:T,blockSize:z}]=x.borderBoxSize;Ke().setViewportSize({width:T,height:z}),T<=760?d("vertical"):d(Ke().layout),T>0&&T<=760?(m("mobile",!1),f=!0):T>760&&T<=990?f&&(m("desktop",!1),f=!1):T>990&&!s.sidebar.isClickCollapse?(m("desktop",!0),f=!0):(m("desktop",!1),f=!1)}),Ge(()=>{r&&m("mobile",!1)}),xn(()=>{var b;Xt().dataThemeChange((b=h.layout)==null?void 0:b.overallStyle)});const _=re({name:"LayHeader",render(){return dt("div",{class:{"fixed-header":s.fixedHeader},style:[s.hideTabs&&l.value.includes("horizontal")?a.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!p.hiddenSideBar&&(l.value.includes("vertical")||l.value.includes("mix"))?dt(Ll):null,!p.hiddenSideBar&&l.value.includes("horizontal")?dt(rr):null,dt(fa)]})}});return(b,x)=>{const T=H("el-backtop"),z=H("el-scrollbar");return u(),S("div",{ref_key:"appWrapperRef",ref:o,class:se(["app-wrapper",s.classes])},[he(v("div",{class:"app-mask",onClick:x[0]||(x[0]=y=>e(Ke)().toggleSideBar())},null,512),[[Te,s.device==="mobile"&&s.sidebar.opened&&e(l).includes("vertical")]]),he(c(Ys,null,null,512),[[Te,!e(p).hiddenSideBar&&(e(l).includes("vertical")||e(l).includes("mix"))]]),v("div",{class:se(["main-container",e(p).hiddenSideBar?"main-hidden":""])},[s.fixedHeader?(u(),S("div",ir,[c(e(_)),c(vn,{"fixed-header":s.fixedHeader},null,8,["fixed-header"])])):(u(),B(z,{key:1},{default:C(()=>[c(T,{title:e(n)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:C(()=>[c(e(Cn))]),_:1},8,["title"]),c(e(_)),c(vn,{"fixed-header":s.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),c(Cs)],2)}}}),Hr=ye(cr,[["__scopeId","data-v-29796f23"]]);export{Hr as default};
|