vue-pure-admin/static/js/index-CiH_NjpO.js

11 lines
93 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Mn=Object.defineProperty,Ln=Object.defineProperties;var Vn=Object.getOwnPropertyDescriptors;var nn=Object.getOwnPropertySymbols;var Hn=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable;var on=(n,t,o)=>t in n?Mn(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,$t=(n,t)=>{for(var o in t||(t={}))Hn.call(t,o)&&on(n,o,t[o]);if(nn)for(var o of nn(t))zn.call(t,o)&&on(n,o,t[o]);return n},Tt=(n,t)=>Ln(n,Vn(t));var it=(n,t,o)=>new Promise((a,l)=>{var s=r=>{try{h(o.next(r))}catch(d){l(d)}},p=r=>{try{h(o.throw(r))}catch(d){l(d)}},h=r=>r.done?a(r.value):Promise.resolve(r.value).then(s,p);h((o=o.apply(n,t)).next())});import{fE as ae,av as An,aw as En,az as tt,a as N,ax as Fe,ay as rt,p as Z,r as Pt,fF as Se,fG as pn,m as Ye,aa as Pe,ac as Dt,ae as Nt,Z as Bt,fH as qe,fI as an,u as e,fJ as vt,b0 as Xe,fK as nt,_ as _e,f as u,k as S,aN as On,d as se,fL as gt,fM as Zn,a7 as ze,fN as mn,n as De,aO as wt,aP as vn,z as qt,e as H,B as he,a0 as Te,g as v,i as c,s as fe,F as be,l as Me,v as re,q as Ze,t as U,j as X,w as C,h as me,dU as Ft,b as q,y as Qe,aZ as ot,fO as Mt,fP as Rn,bo as Ve,U as Re,R as je,aV as Pn,M as Ht,bi as Dn,ad as Nn,fQ as Lt,aH as Bn,X as gn,A as et,fR as jt,fS as yt,K as qn,Q as _t,fT as ft,aW as zt,fU as ln,L as ut,at as yn,W as lt,Y as _n,o as Fn,c as jn,S as Un,fV as Wn,as as Kn,bn as Yn,fB as Gn,a3 as rn}from"./index-AFhnwzwZ.js";import{d as Xn,a as bt}from"./close-CObHKOmY.js";import{d as Jn}from"./home-filled-NADQtN-e.js";import{d as Qn}from"./git-branch-line-BhusJOme.js";import{d as eo}from"./admin-line-CpqWPwjZ.js";import{d as xt,a as to,b as At,_ as no,c as oo}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-D-RCLPqw.js";import{d as ao,u as Ee,a as Ut,g as Wt,b as lo,c as ro}from"./dark-DZCoNMpI.js";import{u as Kt,t as so,a as io}from"./useDataThemeChange-D7aTkze5.js";import{u as Ke}from"./app-Cp1TpsuP.js";import{e as He}from"./mitt-E5P-NQ8u.js";import{d as co}from"./refresh-right-Du3ZsAuC.js";import{d as Et}from"./arrow-right-s-line-CxPb13eK.js";import{m as uo}from"./index-DUS3SmWP.js";import{u as Ot}from"./epTheme-rJf1qnVw.js";import{u as Be}from"./hooks-CaC3u4N2.js";import{S as ho}from"./sortable.esm-Br3T5NCo.js";import{d as at}from"./check-CIQVCvCT.js";import{B as bn}from"./back_top-B_m2U_ZU.js";import{R as Vt}from"./index-u0vKWnyJ.js";import{R as sn}from"./index-DCLVZHw7.js";import"./user-DNtD0Fqa.js";const fo={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"/>'},po={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"/>'},mo={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"/>'},vo={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"/>'},go={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"/>'},yo={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},_o={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"/>'},bo={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"/>'},wo={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"/>'},xo={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"/>'},Co={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"/>'},ko={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"/>'},So={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"/>'},wn={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"/>'},Io={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"/>'},$o={width:24,height:24,body:'<path fill="currentColor" d="M12 3v2H3V3h9Zm4 16v2H3v-2h13Zm6-8v2H3v-2h19Z"/>'},To={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"/>'},Mo={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"/>'},Lo={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Vo={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"/>'},Ho={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"/>'},zo={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"/>'},Ao={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"/>'},Eo={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"/>'},Oo={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",Xn);ae("ep:edit",fo);ae("ep:set-up",po);ae("ep:guide",mo);ae("ep:monitor",vo);ae("ep:lollipop",go);ae("ep:histogram",yo);ae("ep:home-filled",Jn);ae("ri:bookmark-2-line",_o);ae("ri:file-ppt-2-line",bo);ae("ri:bank-card-line",wo);ae("ri:admin-fill",xo);ae("ri:file-info-line",Co);ae("ri:git-branch-line",Qn);ae("ri:links-fill",So);ae("ri:table-line",ko);ae("ri:search-line",wn);ae("ri:admin-line",eo);ae("ri:settings-3-line",xt);ae("ri:mind-map",Io);ae("ri:bar-chart-horizontal-line",$o);ae("ri:window-line",to);ae("ri:file-search-line",Mo);ae("ri:artboard-line",To);ae("ri:list-check",Lo);ae("ri:ubuntu-fill",Vo);ae("ri:user-voice-line",Ho);ae("ri:edit-box-line",zo);ae("ri:history-fill",Ao);ae("ri:information-line",ao);ae("ri:terminal-window-line",Eo);ae("ri:checkbox-circle-line",Oo);const Zo=En({id:"pure-setting",state:()=>({title:tt().Title,fixedHeader:tt().FixedHeader,hiddenSideBar:tt().HiddenSideBar}),getters:{getTitle(n){return n.title},getFixedHeader(n){return n.fixedHeader},getHiddenSideBar(n){return n.hiddenSideBar}},actions:{CHANGE_SETTING({key:n,value:t}){Reflect.has(this,n)&&(this[n]=t)},changeSetting(n){this.CHANGE_SETTING(n)}}});function Yt(){return Zo(An)}const Ro={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},Po={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"/>'},Do={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"/>'},No={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 xn(){var ie,ue;const n=Dt(),t=Nt(),o=Bt(),a=Yt(),l=N(0),s=N(0),p=N(0),h=N(!1),r=N(-1),d=N({}),m=N(!1),f=N(((ie=Fe().getItem(`${rt()}configure`))==null?void 0:ie.showModel)||"smart"),y=(ue=N(Fe().getItem(`${rt()}configure`).hideTabs))!=null?ue:N("false"),b=Z(()=>qe().multiTags),x=Pt([{icon:co,text:Se("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:bt,text:Se("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:No,text:Se("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(b.value.length>1),show:!0},{icon:Do,text:Se("buttons.pureCloseRightTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:Po,text:Se("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(b.value.length>2),show:!0},{icon:Ro,text:Se("buttons.pureCloseAllTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:pn,text:Se("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function M(P,Q,le){var xe,Oe;return an((xe=n==null?void 0:n.meta)==null?void 0:xe.showLink)&&((Oe=n==null?void 0:n.meta)==null?void 0:Oe.showLink)===!1?Object.keys(n.query).length>0?nt(n.query,P.query)?Q:le:nt(n.params,P.params)?Q:le:n.path===P.path?Q:le}const A=Z(()=>P=>{var Q,le;return an((Q=P==null?void 0:P.meta)==null?void 0:Q.fixedTag)&&((le=P==null?void 0:P.meta)==null?void 0:le.fixedTag)===!0}),_=Z(()=>(P,Q)=>{if(Q!==0)return M(P,!0,!1)}),B=Z(()=>P=>M(P,"is-active","")),R=Z(()=>P=>M(P,"schedule-active","")),D=Z(()=>({transform:`translateX(${p.value}px)`,transition:m.value?"none":"transform 0.5s ease-in-out"})),J=Z(()=>({left:s.value+"px",top:l.value+"px"})),F=()=>{h.value=!1};function V(P){if(P&&(r.value=P),e(f)==="smart"){if(vt(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(vt(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 j(P){if(r.value=-1,e(f)==="smart"){if(vt(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(vt(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 Ye(()=>{if(!f.value){const P=Fe().getItem(`${rt()}configure`);P.showModel="card",Fe().setItem(`${rt()}configure`,P)}}),{Close:bt,route:n,router:t,visible:h,showTags:y,instance:o,multiTags:b,showModel:f,tagsViews:x,buttonTop:l,buttonLeft:s,translateX:p,isFixedTag:A,pureSetting:a,activeIndex:r,getTabStyle:D,isScrolling:m,iconIsActive:_,linkIsActive:B,currentSelect:d,scheduleIsActive:R,getContextMenuStyle:J,$t:Se,closeMenu:F,onMounted:Ye,onMouseenter:V,onMouseleave:j,transformI18n:Pe,onContentFullScreen:W}}const Bo={},qo={class:"w-full h-full"};function Fo(n,t){return u(),S("svg",qo,t[0]||(t[0]=[On('<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)]))}const jo=_e(Bo,[["render",Fo]]),Uo={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"/>'},Wo={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"},Ko={class:"arrow-left"},Yo=["onContextmenu","onMouseenter","onMouseleave","onClick"],Go={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},Xo=["onClick"],Jo={key:1,class:"chrome-tab"},Qo={class:"chrome-tab__bg"},ea={class:"tag-title"},ta=["onClick"],na={class:"arrow-right"},oa=["onClick"],aa={class:"arrow-down"},la=se({__name:"index",setup(n){var pt;const{Close:t,route:o,router:a,visible:l,showTags:s,instance:p,multiTags:h,tagsViews:r,buttonTop:d,buttonLeft:m,showModel:f,translateX:y,isFixedTag:b,pureSetting:x,activeIndex:M,getTabStyle:A,isScrolling:_,iconIsActive:B,linkIsActive:R,currentSelect:D,scheduleIsActive:J,getContextMenuStyle:F,closeMenu:V,onMounted:j,onMouseenter:W,onMouseleave:ie,transformI18n:ue,onContentFullScreen:P}=xn(),Q=N(),le=N(),xe=N(),Oe=N(),Ie=N(!1),i=(pt=gt())==null?void 0:pt.path,{VITE_HIDE_HOME:g}=Wo,T=[...Zn,...ze().flatteningRoutes.filter(k=>{var z;return(z=k==null?void 0:k.meta)==null?void 0:z.fixedTag})],ee=()=>it(this,null,function*(){yield Qe();const k=h.value.findIndex(z=>ot(o.query)?ot(o.params)?o.path===z.path:nt(o.params,z.params):nt(o.query,z.query));pe(k)}),pe=k=>it(this,null,function*(){var de,ke;yield Qe();const z=10;if(!p.refs["dynamic"+k])return;const O=p.refs["dynamic"+k][0],G=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,Y=Q.value?(ke=Q.value)==null?void 0:ke.offsetWidth:0;K<=Y?Ie.value=!0:Ie.value=!1,Y<K||G===0?y.value=0:G<-y.value?y.value=-G+z:G>-y.value&&G+ve<-y.value+K?y.value=Math.min(0,K-ve-G-z):y.value=-(G-(K-z-ve))}),ne=k=>{var G;const z=xe.value?(G=xe.value)==null?void 0:G.offsetWidth:0,O=Q.value?Q.value.offsetWidth:0;k>0?y.value=Math.min(0,y.value+k):z<O?y.value>=-(O-z)&&(y.value=Math.max(y.value+k,z-O)):y.value=0,_.value=!1},te=k=>{_.value=!0;const z=Math.abs(k.deltaX)+Math.abs(k.deltaY);let O=0;k.deltaX<0?O=z>0?z:100:O=z>0?-z:-100,w(O)},w=k=>{let O=Math.abs(k);const G=()=>{const ve=Math.sign(k)*Math.min(20,O);ne(ve),O-=Math.abs(ve),O>0&&requestAnimationFrame(G)};requestAnimationFrame(G)};function I(k){const z=h.value.some(G=>G.path===k);function O(G,ve){z||G.forEach(K=>{K.path===ve?qe().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 E(){const{fullPath:k,query:z}=e(o);a.replace({path:"/redirect"+k,query:z}),Mt(o,"refresh")}function ce(k,z,O){var Y,de,ke,st;const G=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,$e,mt)=>{mt?qe().handleTags("equal",[g==="false"?T:Ve(gt()),k].flat()):qe().handleTags("splice","",{startIndex:Le,length:$e}),ee()};O==="other"?ve(1,1,!0):O==="left"?ve(T.length,G-1,!0):O==="right"?ve(G+1,h.value.length):ve(G,1);const K=qe().handleTags("slice");if(z===o.path){if(O==="left")return;(Y=K[0])!=null&&Y.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}):(st=K[0])!=null&&st.params?a.push({name:K[0].name,params:K[0].params}):a.push({path:K[0].path})}}function L(k,z){ce(k,k.path,z),Mt(o)}function $(k,z,O){if(z&&z.disabled)return;let G;switch(O?G={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:G={path:o.path,meta:o.meta},k){case 0:E();break;case 1:L(G);break;case 2:L(G,"left");break;case 3:L(G,"right");break;case 4:L(G,"other");break;case 5:qe().handleTags("splice","",{startIndex:T.length,length:h.value.length}),a.push(i),Mt(o);break;case 6:P(),setTimeout(()=>{x.hiddenSideBar?(r[6].icon=Rn,r[6].text=Se("buttons.pureContentExitFullScreen")):(r[6].icon=pn,r[6].text=Se("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{Ue(o.fullPath,o.query)})}function ge(k){const{key:z,item:O}=k;$(z,O)}function Ce(k,z){V(),$(k,z,D.value)}function Ge(k){Array.of(1,2,3,4,5).forEach(z=>{r[z].show=k})}function Ae(k,z=!1){Array.of(1,2,3,4,5).forEach(O=>{r[O].disabled=k}),z&&(r[2].show=!1,r[2].disabled=!0)}function Ue(k,z={},O=!1){var de,ke,st,Le;const G=h.value,ve=h.value.length;let K=-1;ot(z)?K=G.findIndex($e=>$e.path===k):K=G.findIndex($e=>nt($e.query,z));function Y(){var $e,mt;(mt=($e=G[K])==null?void 0:$e.meta)!=null&&mt.fixedTag&&Array.of(1,2,3,4,5).forEach(Tn=>{r[Tn].disabled=!0})}Ge(!0),O&&(r[0].show=!0),K===1&&ve!==2?(r[2].show=!1,Array.of(1,3,4,5).forEach($e=>{r[$e].disabled=!1}),r[2].disabled=!0,Y()):K===1&&ve===2?(Ae(!1),Array.of(2,3,4).forEach($e=>{r[$e].show=!1,r[$e].disabled=!0}),Y()):ve-1===K&&K!==0?(r[3].show=!1,Array.of(1,2,4,5).forEach($e=>{r[$e].disabled=!1}),r[3].disabled=!0,(ke=(de=G[K-1])==null?void 0:de.meta)!=null&&ke.fixedTag&&(r[2].show=!1,r[2].disabled=!0),Y()):K===0||k===`/redirect${i}`?Ae(!0):(Ae(!1,(Le=(st=G[K-1])==null?void 0:st.meta)==null?void 0:Le.fixedTag),Y())}function It(k,z){var de;V(),k.path===i||(de=k==null?void 0:k.meta)!=null&&de.fixedTag?(Ge(!1),r[0].show=!0):o.path!==k.path&&o.name!==k.name?(r[0].show=!1,Ue(k.path,k.query)):h.value.length===2&&o.path!==k.path?(Ge(!0),r[4].show=!1):o.path===k.path&&Ue(k.path,k.query,!0),D.value=k;const O=140,G=e(le).getBoundingClientRect().left,K=e(le).offsetWidth-O,Y=z.clientX-G+5;Y>K?m.value=K:m.value=Y,Yt().hiddenSideBar?d.value=z.clientY:d.value=z.clientY-40,Qe(()=>{l.value=!0})}function oe(k){const{name:z,path:O}=k;z?k.query?a.push({name:z,query:k.query}):k.params?a.push({name:z,params:k.params}):a.push({name:z}):a.push({path:O})}return mn(Oe,V,{detectIframe:!0}),De(o,()=>{M.value=-1,ee()}),j(()=>{p&&(Ue(o.fullPath),He.on("tagViewsChange",k=>{e(s)!==k&&(s.value=k)}),He.on("tagViewsShowModel",k=>{f.value=k}),He.on("changLayoutRoute",k=>{I(k),setTimeout(()=>{Ue(k)})}),wt(xe,ee),vn().then(()=>ee()))}),qt(()=>{He.off("tagViewsChange"),He.off("tagViewsShowModel"),He.off("changLayoutRoute")}),(k,z)=>{const O=H("IconifyIconOffline"),G=H("el-dropdown-item"),ve=H("el-dropdown-menu"),K=H("el-dropdown");return e(s)?X("",!0):(u(),S("div",{key:0,ref_key:"containerDom",ref:le,class:"tags-view"},[he(v("span",Ko,[c(O,{icon:e(At),onClick:z[0]||(z[0]=Y=>ne(200))},null,8,["icon"])],512),[[Te,Ie.value]]),v("div",{ref_key:"scrollbarDom",ref:xe,class:re(["scroll-container",e(f)==="chrome"&&"chrome-scroll-container"]),onWheel:Ze(te,["prevent"])},[v("div",{ref_key:"tabDom",ref:Q,class:"tab select-none",style:fe(e(A))},[(u(!0),S(be,null,Me(e(h),(Y,de)=>(u(),S("div",{ref_for:!0,ref:"dynamic"+de,key:de,class:re(["scroll-item is-closable",e(R)(Y),e(f)==="chrome"&&"chrome-item",e(b)(Y)&&"fixed-tag"]),onContextmenu:Ze(ke=>It(Y,ke),["prevent"]),onMouseenter:Ze(ke=>e(W)(de),["prevent"]),onMouseleave:Ze(ke=>e(ie)(de),["prevent"]),onClick:ke=>oe(Y)},[e(f)!=="chrome"?(u(),S(be,{key:0},[v("span",Go,U(e(ue)(Y.meta.title)),1),!e(b)(Y)&&(e(B)(Y,de)||de===e(M)&&de!==0)?(u(),S("span",{key:0,class:"el-icon-close",onClick:Ze(ke=>L(Y),["stop"])},[c(O,{icon:e(t)},null,8,["icon"])],8,Xo)):X("",!0),e(f)!=="card"?(u(),S("span",{key:1,ref_for:!0,ref:"schedule"+de,class:re([e(J)(Y)])},null,2)):X("",!0)],64)):(u(),S("div",Jo,[v("div",Qo,[c(jo)]),v("span",ea,U(e(ue)(Y.meta.title)),1),!e(b)(Y)&&de!==0?(u(),S("span",{key:0,class:"chrome-close-btn",onClick:Ze(ke=>L(Y),["stop"])},[c(O,{icon:e(t)},null,8,["icon"])],8,ta)):X("",!0),z[2]||(z[2]=v("span",{class:"chrome-tab-divider"},null,-1))]))],42,Yo))),128))],4)],34),he(v("span",na,[c(O,{icon:e(Et),onClick:z[1]||(z[1]=Y=>ne(-200))},null,8,["icon"])],512),[[Te,Ie.value]]),c(Ft,{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(r).slice(0,6),(Y,de)=>(u(),S("div",{key:de,style:{display:"flex","align-items":"center"}},[Y.show?(u(),S("li",{key:0,onClick:ke=>Ce(de,Y)},[c(O,{icon:Y.icon},null,8,["icon"]),me(" "+U(e(ue)(Y.text)),1)],8,oa)):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(r),(Y,de)=>(u(),q(G,{key:de,command:{key:de,item:Y},divided:Y.divided,disabled:Y.disabled},{default:C(()=>[c(O,{icon:Y.icon},null,8,["icon"]),me(" "+U(e(ue)(Y.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:C(()=>[v("span",aa,[c(O,{icon:e(Uo),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),ra=_e(la,[["__scopeId","data-v-890d6ae6"]]);function sa(n=!1){const t=N(n);function o(p){t.value=p}function a(){o(!0)}function l(){o(!1)}function s(){o(!t.value)}return{bool:t,setBool:o,setTrue:a,setFalse:l,toggle:s}}const ia={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"};function ca(n,t){return u(),S("svg",ia,t[0]||(t[0]=[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)]))}const Cn={render:ca},ua=["onMouseenter"],da={class:"result-item-title"},ha=se({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(n,{expose:t,emit:o}){const a=N(),l=N(),s=o,p=Bt(),h=n,r=Z(()=>x=>({background:(x==null?void 0:x.path)===d.value?Ot().epThemeColor:"",color:x.path===d.value?"#fff":"",fontSize:x.path===d.value?"16px":"14px"})),d=Z({get(){return h.value},set(x){s("update:value",x)}});function m(x){return it(this,null,function*(){d.value=x.path})}function f(){s("enter")}function y(){l.value=window.innerHeight-window.innerHeight/10-140}wt(a,y);function b(x){var B;const M=(B=p==null?void 0:p.proxy)==null?void 0:B.$refs[`resultItemRef${x}`];if(!M)return 0;const _=M[0].offsetTop+128;return _>l.value?_-l.value:0}return Ye(()=>{y()}),t({handleScroll:b}),(x,M)=>(u(),S("div",{ref_key:"resultRef",ref:a,class:"result"},[(u(!0),S(be,null,Me(x.options,(A,_)=>{var B,R;return u(),S("div",{key:A.path,ref_for:!0,ref:"resultItemRef"+_,class:"result-item dark:bg-[#1d1d1d]",style:fe(r.value(A)),onClick:f,onMouseenter:D=>m(A)},[(u(),q(Re(e(Be)((B=A.meta)==null?void 0:B.icon)))),v("span",da,U(e(Pe)((R=A.meta)==null?void 0:R.title)),1),c(e(Cn))],44,ua)}),128))],512))}}),fa=_e(ha,[["__scopeId","data-v-274aad60"]]),pa={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"};function ma(n,t){return u(),S("svg",pa,t[0]||(t[0]=[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)]))}const va={render:ma},ga={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"/>'},ya={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"/>'},_a={class:"search-footer text-[#333] dark:text-white"},ba={class:"search-footer-item"},wa={class:"search-footer-item"},xa={class:"search-footer-item"},Ca={key:0,class:"search-footer-total"},ka=se({__name:"SearchFooter",props:{total:{default:0}},setup(n){const{t}=je(),{device:o}=Ee();return(a,l)=>{const s=H("IconifyIconOffline");return u(),S("div",_a,[v("span",ba,[c(e(Cn),{class:"icon"}),me(" "+U(e(t)("buttons.pureConfirm")),1)]),v("span",wa,[c(s,{icon:e(ga),class:"icon"},null,8,["icon"]),c(s,{icon:e(ya),class:"icon"},null,8,["icon"]),me(" "+U(e(t)("buttons.pureSwitch")),1)]),v("span",xa,[c(e(va),{class:"icon"}),me(" "+U(e(t)("buttons.pureClose")),1)]),e(o)!=="mobile"&&a.total>0?(u(),S("p",Ca,U(`${e(t)("search.pureTotal")} ${a.total}`),1)):X("",!0)])}}}),Sa=_e(ka,[["__scopeId","data-v-7ba3ef39"]]),Ia={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"/>'},$a={class:"history-item-title"},Ta=se({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(n,{emit:t}){const o=t;function a(s){o("collectItem",s)}function l(s){o("deleteItem",s)}return(s,p)=>{var r,d;const h=H("IconifyIconOffline");return u(),S(be,null,[(u(),q(Re(e(Be)((r=s.item.meta)==null?void 0:r.icon)))),v("span",$a,U(e(Pe)((d=s.item.meta)==null?void 0:d.title)),1),he(c(h,{icon:e(Ia),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:p[0]||(p[0]=Ze(m=>a(s.item),["stop"]))},null,8,["icon"]),[[Te,s.item.type==="history"]]),c(h,{icon:e(bt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:p[1]||(p[1]=Ze(m=>l(s.item),["stop"]))},null,8,["icon"])],64)}}}),cn=_e(Ta,[["__scopeId","data-v-ba0c91b5"]]),Ma=["onMouseenter"],La={class:"collect-container"},Va=["onMouseenter"],Ha=se({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(n,{expose:t,emit:o}){const a=N(),l=N(),s=N(!1),{t:p}=je(),h=o,r=Bt(),d=n,m=Z(()=>V=>({background:(V==null?void 0:V.path)===y.value?Ot().epThemeColor:"",color:V.path===y.value?"#fff":"",fontSize:V.path===y.value?"16px":"14px"})),f=Z(()=>({color:Ot().epThemeColor,fontWeight:500})),y=Z({get(){return d.value},set(V){h("update:value",V)}});De(()=>d.value,V=>{V&&s.value&&vn(100).then(()=>s.value=!1)});const b=Z(()=>d.options.filter(V=>V.type==="history")),x=Z(()=>d.options.filter(V=>V.type==="collect"));function M(V){h("collect",V)}function A(V){s.value=!0,h("delete",V)}function _(V){return it(this,null,function*(){s.value||(y.value=V.path)})}function B(){h("enter")}function R(){l.value=window.innerHeight-window.innerHeight/10-140}wt(a,R);function D(V){var ue;const j=(ue=r==null?void 0:r.proxy)==null?void 0:ue.$refs[`historyItemRef${V}`];if(!j)return 0;const ie=(Pn(j)?j[0]:j).offsetTop+128;return ie>l.value?ie-l.value:0}const J=V=>{h("drag",{oldIndex:V.oldIndex,newIndex:V.newIndex})};let F=null;return De(x,V=>{V.length>1&&Qe(()=>{const j=document.querySelector(".collect-container");!j||F||(F=ho.create(j,{animation:160,onStart:W=>{W.item.style.cursor="move"},onEnd:W=>{W.item.style.cursor="pointer"},onUpdate:J}),R())})},{deep:!0,immediate:!0}),t({handleScroll:D}),(V,j)=>(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:B,onMouseenter:ue=>_(W)},[c(cn,{item:W,onDeleteItem:A,onCollectItem:M},null,8,["item"])],44,Ma))),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",La,[(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:B,onMouseenter:ue=>_(W)},[c(cn,{item:W,onDeleteItem:A},null,8,["item"])],44,Va))),128))])],64)):X("",!0)],512))}}),za=_e(Ha,[["__scopeId","data-v-f7a9d807"]]),Aa={class:"search-content"},un="history",Ea="collect",We="menu-search-history",Je="menu-search-collect",Oa=se({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(n,{emit:t}){const{device:o}=Ee(),a=t,l=n,s=Nt(),{t:p,locale:h}=je(),r=N(""),d=N(),m=N(),f=N(),y=N(""),b=N(""),x=Ht([]),M=Ht([]),A=Dn(ue,300),_=tt().MenuSearchHistory,B=N(null),R=Z(()=>Nn(ze().wholeMenus)),D=Z({get(){return l.value},set(w){a("update:value",w)}});De(()=>l.value,w=>{w&&ne()});const J=Z(()=>r.value&&x.value.length>0),F=Z(()=>!r.value&&M.value.length>0),V=Z(()=>!r.value&&M.value.length===0||r.value&&x.value.length===0);function j(w){return Fe().getItem(w)||[]}function W(w,I){Fe().setItem(w,I)}function ie(w){const I=[];function E(ce){ce.forEach(L=>{I.push(L),L.children&&E(L.children)})}return E(w),I}function ue(){var I;const w=ie(R.value);x.value=w.filter(E=>{var ce,L;return r.value?Pe((ce=E.meta)==null?void 0:ce.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())||h.value==="zh"&&!ot(uo(Pe((L=E.meta)==null?void 0:L.title).toLocaleLowerCase(),r.value.toLocaleLowerCase().trim())):!1}),y.value=((I=x.value)==null?void 0:I.length)>0?x.value[0].path:""}function P(){D.value=!1,setTimeout(()=>{x.value=[],b.value="",r.value=""},200)}function Q(w){const E=(x.value.length?d.value:m.value).handleScroll(w);f.value.setScrollTop(E)}function le(){const w=x.value.length>0,I=w?x.value:M.value,E=w?y.value:b.value;return{options:I,currentPath:E,isResultOptions:w}}function xe(w,I){I?y.value=x.value[w].path:b.value=M.value[w].path,Q(w)}function Oe(){const{options:w,currentPath:I,isResultOptions:E}=le();if(w.length===0)return;const L=(w.findIndex($=>$.path===I)-1+w.length)%w.length;xe(L,E)}function Ie(){const{options:w,currentPath:I,isResultOptions:E}=le();if(w.length===0)return;const L=(w.findIndex($=>$.path===I)+1)%w.length;xe(L,E)}function i(){const{options:w,currentPath:I,isResultOptions:E}=le();if(w.length===0||I==="")return;const ce=w.findIndex(L=>L.path===I);ce!==-1&&(E?ee():pe(),s.push(w[ce].path),P())}function g(w){const I=w.type===un?We:Je;let E=j(I);E=E.filter(ce=>ce.path!==w.path),W(I,E),ne()}function T(w){let I=j(We),E=j(Je);I=I.filter(ce=>ce.path!==w.path),W(We,I),E.some(ce=>ce.path===w.path)||(E.unshift(Tt($t({},w),{type:Ea})),W(Je,E)),ne()}function ee(){const{path:w,meta:I}=x.value.find(ge=>ge.path===y.value),E=j(We),L=j(Je).some(ge=>ge.path===w),$=E.findIndex(ge=>ge.path===w);L||($!==-1&&E.splice($,1),E.length>=_&&E.pop(),E.unshift({path:w,meta:I,type:un}),Fe().setItem(We,E))}function pe(){let w=j(We);const I=w.findIndex(E=>E.path===b.value);if(I!==-1){const[E]=w.splice(I,1);w.unshift(E),W(We,w)}}function ne(){var E;const w=j(We),I=j(Je);M.value=[...w,...I],b.value=(E=M.value[0])==null?void 0:E.path}function te(w){const I=j(Je),[E]=I.splice(w.oldIndex,1);I.splice(w.newIndex,0,E),Fe().setItem(Je,I),M.value=[...j(We),...j(Je)],b.value=E.path}return Lt("Enter",i),Lt("ArrowUp",Oe),Lt("ArrowDown",Ie),(w,I)=>{const E=H("IconifyIconOffline"),ce=H("el-input"),L=H("el-empty"),$=H("el-scrollbar"),ge=H("el-dialog");return u(),q(ge,{modelValue:D.value,"onUpdate:modelValue":I[3]||(I[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:I[4]||(I[4]=Ce=>B.value.focus()),onClosed:I[5]||(I[5]=Ce=>B.value.blur())},{footer:C(()=>[c(Sa,{total:x.value.length},null,8,["total"])]),default:C(()=>[c(ce,{ref_key:"inputRef",ref:B,modelValue:r.value,"onUpdate:modelValue":I[0]||(I[0]=Ce=>r.value=Ce),size:"large",clearable:"",placeholder:e(p)("search.purePlaceholder"),onInput:e(A)},{prefix:C(()=>[c(E,{icon:e(wn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),v("div",Aa,[c($,{ref_key:"scrollbarRef",ref:f,"max-height":"calc(90vh - 140px)"},{default:C(()=>[V.value?(u(),q(L,{key:0,description:e(p)("search.pureEmpty")},null,8,["description"])):X("",!0),F.value?(u(),q(za,{key:1,ref_key:"historyRef",ref:m,value:b.value,"onUpdate:value":I[1]||(I[1]=Ce=>b.value=Ce),options:M.value,onClick:i,onDelete:g,onCollect:T,onDrag:te},null,8,["value","options"])):X("",!0),J.value?(u(),q(fa,{key:2,ref_key:"resultRef",ref:d,value:y.value,"onUpdate:value":I[2]||(I[2]=Ce=>y.value=Ce),options:x.value,onClick:i},null,8,["value","options"])):X("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Za=_e(Oa,[["__scopeId","data-v-1155c5fc"]]),Gt=se({__name:"index",setup(n){const{bool:t,toggle:o}=sa();function a(){o()}return(l,s)=>{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(Za,{value:e(t),"onUpdate:value":s[0]||(s[0]=h=>Bn(t)?t.value=h:null)},null,8,["value"])])}}}),dn=[{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")}],Ra={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Pa={class:"notice-container-text"},Da={class:"notice-text-title text-[#000000d9] dark:text-white"},Na={class:"notice-text-datetime text-[#00000073] dark:text-white"},Ba=se({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(n){const t=N(null),o=N(!1),a=N(null),l=N(!1),{tooltipEffect:s}=Ee(),p=gn();function h(){Qe(()=>{var d,m;((d=t.value)==null?void 0:d.scrollWidth)>((m=t.value)==null?void 0:m.clientWidth)?o.value=!0:o.value=!1})}function r(d,m){const f=document.createElement("span");f.innerText=m,f.className="getDescriptionWidth",document.querySelector("body").appendChild(f);const y=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=d.target.offsetWidth;y>2*b?l.value=!0:l.value=!1}return(d,m)=>{var x,M;const f=H("el-avatar"),y=H("el-tooltip"),b=H("el-tag");return u(),S("div",Ra,[n.noticeItem.avatar?(u(),q(f,{key:0,size:30,src:n.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):X("",!0),v("div",Pa,[v("div",Da,[c(y,{"popper-class":"notice-title-popper",effect:e(s),disabled:!o.value,content:n.noticeItem.title,placement:"top-start",enterable:!e(p)},{default:C(()=>[v("div",{ref_key:"titleRef",ref:t,class:"notice-title-content",onMouseover:h},U(n.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(x=n.noticeItem)!=null&&x.extra?(u(),q(b,{key:0,type:(M=n.noticeItem)==null?void 0:M.status,size:"small",class:"notice-title-extra"},{default:C(()=>{var A;return[me(U((A=n.noticeItem)==null?void 0:A.extra),1)]}),_:1},8,["type"])):X("",!0)]),c(y,{"popper-class":"notice-title-popper",effect:e(s),disabled:!l.value,content:n.noticeItem.description,placement:"top-start"},{default:C(()=>[v("div",{ref_key:"descriptionRef",ref:a,class:"notice-text-description",onMouseover:m[0]||(m[0]=A=>r(A,n.noticeItem.description))},U(n.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",Na,U(n.noticeItem.datetime),1)])])}}}),qa=_e(Ba,[["__scopeId","data-v-197133ce"]]),Fa={key:0},ja=se({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(n){return(t,o)=>{const a=H("el-empty");return n.list.length?(u(),S("div",Fa,[(u(!0),S(be,null,Me(n.list,(l,s)=>(u(),q(qa,{key:s,noticeItem:l},null,8,["noticeItem"]))),128))])):(u(),q(a,{key:1,description:e(Pe)(n.emptyText)},null,8,["description"]))}}}),Ua={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"/>'},Wa={class:"header-notice-icon"},Ka={key:1},Ya={class:"noticeList-container"},Ga=se({__name:"index",setup(n){var p;const{t}=je(),o=N(0),a=N(dn),l=N((p=dn[0])==null?void 0:p.key);a.value.map(h=>o.value+=h.list.length);const s=Z(()=>h=>t(h.name)+(h.list.length>0?`(${h.list.length})`:""));return(h,r)=>{const d=H("IconifyIconOffline"),m=H("el-badge"),f=H("el-empty"),y=H("el-scrollbar"),b=H("el-tab-pane"),x=H("el-tabs"),M=H("el-dropdown-menu"),A=H("el-dropdown");return u(),q(A,{trigger:"click",placement:"bottom-end"},{dropdown:C(()=>[c(M,null,{default:C(()=>[c(x,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=_=>l.value=_),stretch:!0,class:"dropdown-tabs",style:fe({width:a.value.length===0?"200px":"330px"})},{default:C(()=>[a.value.length===0?(u(),q(f,{key:0,description:e(t)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(u(),S("span",Ka,[(u(!0),S(be,null,Me(a.value,_=>(u(),q(b,{key:_.key,label:s.value(_),name:`${_.key}`},{default:C(()=>[c(y,{"max-height":"330px"},{default:C(()=>[v("div",Ya,[c(ja,{list:_.list,emptyText:_.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:C(()=>[v("span",{class:re(["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",Wa,[c(d,{icon:e(Ua)},null,8,["icon"])])]),_:1},8,["value"])],2)]),_:1})}}}),Xt=_e(Ga,[["__scopeId","data-v-1760ac04"]]),Xa={key:0,class:"flex justify-center items-center"},Zt=se({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(n){return(t,o)=>n.extraIcon?(u(),S("div",Xa,[(u(),q(Re(e(Be)(Ve(n.extraIcon))),{class:"w-[30px] h-[30px]"}))])):X("",!0)}}),Jt=se({__name:"SidebarFullScreen",setup(n){const t=N(),{toggle:o,isFullscreen:a,Fullscreen:l,ExitFullscreen:s}=Ee();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),De(a,p=>{t.value=p?s:l},{immediate:!0}),(p,h)=>{const r=H("IconifyIconOffline");return u(),S("span",{class:"fullscreen-icon navbar-bg-hover",onClick:h[0]||(h[0]=(...d)=>e(o)&&e(o)(...d))},[c(r,{icon:t.value},null,8,["icon"])])}}}),Qt={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"/>'},en={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"/>'},Ja={key:0,class:"horizontal-header"},Qa={class:"select-none"},el={class:"horizontal-header-right"},tl={class:"check-zh"},nl={class:"check-en"},ol={class:"el-dropdown-link navbar-bg-hover select-none"},al=["src"],ll={key:0,class:"dark:text-white"},rl=["title"],sl=se({__name:"NavMix",setup(n){const t=N(),o=N(null),{t:a,route:l,locale:s,translationCh:p,translationEn:h}=Ut(t),{device:r,logout:d,onPanel:m,resolvePath:f,username:y,userAvatar:b,getDivStyle:x,avatarsStyle:M,toAccountSettings:A,getDropdownItemStyle:_,getDropdownItemClass:B}=Ee();function R(D){var V,j,W;const J=ze().wholeMenus,F=jt(D,J)[0];o.value=ot((V=l.meta)==null?void 0:V.activePath)?(W=(j=yt(F,J))==null?void 0:j.children[0])==null?void 0:W.path:l.meta.activePath}return Ye(()=>{R(l.path)}),Qe(()=>{var D;(D=t.value)==null||D.handleResize()}),De(()=>[l.path,ze().wholeMenus],()=>{R(l.path)}),(D,J)=>{const F=H("el-menu-item"),V=H("el-menu"),j=H("IconifyIconOffline"),W=H("el-dropdown-item"),ie=H("el-dropdown-menu"),ue=H("el-dropdown"),P=et("loading");return e(r)!=="mobile"?he((u(),S("div",Ja,[c(V,{ref_key:"menuRef",ref:t,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,Q=>(u(),q(F,{key:Q.path,index:e(f)(Q)||Q.redirect},{title:C(()=>[Ve(Q.meta.icon)?(u(),S("div",{key:0,class:re(["sub-menu-icon",Q.meta.icon])},[(u(),q(Re(e(Be)(Q.meta&&Ve(Q.meta.icon)))))],2)):X("",!0),v("div",{style:fe(e(x))},[v("span",Qa,U(e(Pe)(Q.meta.title)),1),c(Zt,{extraIcon:Q.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",el,[c(Gt,{id:"header-search"}),c(ue,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ie,{class:"translation"},{default:C(()=>[c(W,{style:fe(e(_)(e(s),"zh")),class:re(["dark:!text-white",e(B)(e(s),"zh")]),onClick:e(p)},{default:C(()=>[he(v("span",tl,[c(j,{icon:e(at)},null,8,["icon"])],512),[[Te,e(s)==="zh"]]),J[1]||(J[1]=me(" 简体中文 "))]),_:1},8,["style","class","onClick"]),c(W,{style:fe(e(_)(e(s),"en")),class:re(["dark:!text-white",e(B)(e(s),"en")]),onClick:e(h)},{default:C(()=>[he(v("span",nl,[c(j,{icon:e(at)},null,8,["icon"])],512),[[Te,e(s)==="en"]]),J[2]||(J[2]=me(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Wt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(Jt,{id:"full-screen"}),c(Xt,{id:"header-notice"}),c(ue,{trigger:"click"},{dropdown:C(()=>[c(W,{onClick:e(A)},{default:C(()=>[c(j,{icon:e(Qt),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(j,{icon:e(en),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",ol,[v("img",{src:e(b),style:fe(e(M))},null,12,al),e(y)?(u(),S("p",ll,U(e(y)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(a)("buttons.pureOpenSystemSet"),onClick:J[0]||(J[0]=(...Q)=>e(m)&&e(m)(...Q))},[c(j,{icon:e(xt)},null,8,["icon"])],8,rl)])])),[[P,e(ze)().wholeMenus.length===0]]):X("",!0)}}}),il=_e(sl,[["__scopeId","data-v-9f22ffe1"]]),cl=["onClick"],ul=se({__name:"SidebarBreadCrumb",setup(n){const t=Dt(),o=N([]),a=Nt(),l=a.options.routes,s=qe().multiTags,p=()=>{let r;Object.keys(t.query).length>0?s.forEach(f=>{nt(t.query,f==null?void 0:f.query)&&(r=Ve(f))}):Object.keys(t.params).length>0?s.forEach(f=>{nt(t.params,f==null?void 0:f.params)&&(r=Ve(f))}):r=yt(a.currentRoute.value.path,l);const d=jt(a.currentRoute.value.name,l,"name"),m=[];d.forEach(f=>{f!=="/"&&m.push(yt(f,l))}),m.push(r),m.forEach((f,y)=>{r!=null&&r.query||r!=null&&r.params||f!=null&&f.children&&f.children.forEach(b=>{var x,M;((x=b==null?void 0:b.meta)==null?void 0:x.title)===((M=f==null?void 0:f.meta)==null?void 0:M.title)&&m.splice(y,1)})}),o.value=m.filter(f=>(f==null?void 0:f.meta)&&(f==null?void 0:f.meta.title)!==!1)},h=r=>{const{redirect:d,name:m,path:f}=r;d?a.push(d):m?r.query?a.push({name:m,query:r.query}):r.params?a.push({name:m,params:r.params}):a.push({name:m}):a.push({path:f})};return Ye(()=>{p()}),De(()=>t.path,()=>{p()},{deep:!0}),(r,d)=>{const m=H("el-breadcrumb-item"),f=H("el-breadcrumb");return u(),q(f,{class:"!leading-[50px] select-none",separator:"/"},{default:C(()=>[c(qn,{name:"breadcrumb"},{default:C(()=>[(u(!0),S(be,null,Me(o.value,y=>(u(),q(m,{key:y.path,class:"!inline !items-stretch"},{default:C(()=>[v("a",{onClick:Ze(b=>h(y),["prevent"])},U(e(Pe)(y.meta.title)),9,cl)]),_:2},1024))),128))]),_:1})]),_:1})}}}),dl={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},hl={key:3,class:"vertical-header-right"},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"],yl=se({__name:"index",setup(n){const{layout:t,device:o,logout:a,onPanel:l,pureApp:s,username:p,userAvatar:h,avatarsStyle:r,toggleSideBar:d,toAccountSettings:m,getDropdownItemStyle:f,getDropdownItemClass:y}=Ee(),{t:b,locale:x,translationCh:M,translationEn:A}=Ut();return(_,B)=>{const R=H("IconifyIconOffline"),D=H("el-dropdown-item"),J=H("el-dropdown-menu"),F=H("el-dropdown");return u(),S("div",dl,[e(o)==="mobile"?(u(),q(no,{key:0,class:"hamburger-container","is-active":e(s).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0),e(t)!=="mix"&&e(o)!=="mobile"?(u(),q(ul,{key:1,class:"breadcrumb-container"})):X("",!0),e(t)==="mix"?(u(),q(il,{key:2})):X("",!0),e(t)==="vertical"?(u(),S("div",hl,[c(Gt,{id:"header-search"}),c(F,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(J,{class:"translation"},{default:C(()=>[c(D,{style:fe(e(f)(e(x),"zh")),class:re(["dark:!text-white",e(y)(e(x),"zh")]),onClick:e(M)},{default:C(()=>[he(c(R,{class:"check-zh",icon:e(at)},null,8,["icon"]),[[Te,e(x)==="zh"]]),B[1]||(B[1]=me(" 简体中文 "))]),_:1},8,["style","class","onClick"]),c(D,{style:fe(e(f)(e(x),"en")),class:re(["dark:!text-white",e(y)(e(x),"en")]),onClick:e(A)},{default:C(()=>[he(v("span",fl,[c(R,{icon:e(at)},null,8,["icon"])],512),[[Te,e(x)==="en"]]),B[2]||(B[2]=me(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Wt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(Jt,{id:"full-screen"}),c(Xt,{id:"header-notice"}),c(F,{trigger:"click"},{dropdown:C(()=>[c(J,{class:"logout"},{default:C(()=>[c(D,{onClick:e(m)},{default:C(()=>[c(R,{icon:e(Qt),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(en),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(b)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",pl,[v("img",{src:e(h),style:fe(e(r))},null,12,ml),e(p)?(u(),S("p",vl,U(e(p)),1)):X("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(b)("buttons.pureOpenSystemSet"),onClick:B[0]||(B[0]=(...V)=>e(l)&&e(l)(...V))},[c(R,{icon:e(xt)},null,8,["icon"])],8,gl)])):X("",!0)])}}}),_l=_e(yl,[["__scopeId","data-v-b43dc9be"]]),ct=new Map,bl=()=>{function n(a,l){ct.set(a,l)}function t(a){return a?ct.get(a):[...ct.entries()]}function o(a){ct.delete(a)}return{setMap:n,getMap:t,delMap:o,MAP:ct}},wl={class:"w-full h-full"},xl=se({__name:"index",props:{currRoute:{},currComp:{}},setup(n){const t=n,o=Ht([]),{setMap:a,getMap:l,MAP:s,delMap:p}=bl(),h=Z(()=>{var d,m;return tt().KeepAlive&&((d=t.currRoute.meta)==null?void 0:d.keepAlive)&&!!((m=t.currRoute.meta)!=null&&m.frameSrc)}),r=Z(()=>!h.value&&t.currComp);return De(qe().multiTags,d=>{if(!Array.isArray(d)||!h.value)return;if(d.filter(f=>{var y;return(y=f.meta)==null?void 0:y.frameSrc}).length<s.size)for(const f of s.keys())d.some(y=>y.path===f)||(p(f),o.value=l())}),De(()=>t.currRoute.fullPath,d=>{const f=qe().multiTags.filter(y=>{var b;return(b=y.meta)==null?void 0:b.frameSrc});h.value&&f.length!==s.size&&([...s.keys()].find(b=>d===b)||a(d,t.currComp)),s.size>0&&(o.value=l())},{immediate:!0}),(d,m)=>(u(),S(be,null,[(u(!0),S(be,null,Me(o.value,([f,y])=>{var b;return he((u(),S("div",{key:f,class:"w-full h-full"},[_t(d.$slots,"default",{fullPath:f,Comp:y,frameInfo:{frameSrc:(b=d.currRoute.meta)==null?void 0:b.frameSrc,fullPath:f}})],512)),[[Te,f===d.currRoute.fullPath]])}),128)),he(v("div",wl,[_t(d.$slots,"default",{Comp:r.value,fullPath:d.currRoute.fullPath})],512),[[Te,!h.value]])],64))}}),Cl={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},kl={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Sl=se({__name:"index",setup(n){const t=tt("Title");return(o,a)=>(u(),S("footer",Cl,[a[0]||(a[0]=me(" Copyright © 2020-2024 ")),v("a",kl,"  "+U(e(t)),1)]))}}),hn=_e(Sl,[["__scopeId","data-v-8ec2f332"]]),Il={class:"grow"},$l={key:1,class:"grow"},Tl=se({__name:"index",props:{fixedHeader:Boolean},setup(n){const t=n,{t:o}=je(),{showModel:a}=xn(),{$storage:l,$config:s}=ft(),p=Z(()=>s==null?void 0:s.KeepAlive),h=Z(()=>M=>M.meta.transition),r=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"),y=Z(()=>zt(m.value)?m.value+"px":m.value?"1440px":"100%"),b=Z(()=>[r.value&&f?"padding-top: 48px;":"",!r.value&&f?a.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",r.value&&!f.value?"padding-top: 48px;":"",!r.value&&!f.value?a.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",t.fixedHeader?"":`padding-top: 0;${r.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),x=se({props:{route:{type:void 0,required:!0}},render(){var B,R,D;const M=((B=h.value(this.route))==null?void 0:B.name)||"fade-transform",A=(R=h.value(this.route))==null?void 0:R.enterTransition,_=(D=h.value(this.route))==null?void 0:D.leaveTransition;return ut(Ft,{name:A?"pure-classes-transition":M,enterActiveClass:A?`animate__animated ${A}`:void 0,leaveActiveClass:_?`animate__animated ${_}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(M,A)=>{const _=H("el-backtop"),B=H("el-scrollbar"),R=H("router-view");return u(),S("section",{class:re([n.fixedHeader?"app-main":"app-main-nofixed-header"]),style:fe(b.value)},[c(R,null,{default:C(({Component:D,route:J})=>[c(xl,{currComp:D,currRoute:J},{default:C(({Comp:F,fullPath:V,frameInfo:j})=>[n.fixedHeader?(u(),q(B,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":y.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:C(()=>[c(_,{title:e(o)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:C(()=>[c(e(bn))]),_:1},8,["title"]),v("div",Il,[c(e(x),{route:J},{default:C(()=>[p.value?(u(),q(ln,{key:0,include:e(ze)().cachePageList},[(u(),q(Re(F),{key:V,frameInfo:j,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),q(Re(F),{key:V,frameInfo:j,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?X("",!0):(u(),q(hn,{key:0}))]),_:2},1032,["wrap-style"])):(u(),S("div",$l,[c(e(x),{route:J},{default:C(()=>[p.value?(u(),q(ln,{key:0,include:e(ze)().cachePageList},[(u(),q(Re(F),{key:V,frameInfo:j,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),q(Re(F),{key:V,frameInfo:j,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!n.fixedHeader?(u(),q(hn,{key:0})):X("",!0)],6)}}}),fn=_e(Tl,[["__scopeId","data-v-5fc75f4c"]]),Ml={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Ll={class:"dark:text-white"},Vl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Hl=se({__name:"index",setup(n){const t=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:s}=Kt();return mn(t,p=>{p.clientX>t.value.offsetLeft||(o.value=!1)}),Ye(()=>{He.on("openPanel",()=>{o.value=!0})}),qt(()=>{He.off("openPanel")}),(p,h)=>{const r=H("IconifyIconOffline"),d=H("el-scrollbar"),m=H("el-button"),f=et("tippy");return u(),S("div",{class:re({show:o.value})},[h[1]||(h[1]=v("div",{class:"right-panel-background"},null,-1)),v("div",{ref_key:"target",ref:t,class:"right-panel bg-bg_color"},[v("div",Ml,[v("h4",Ll,U(e(l)("panel.pureSystemSet")),1),he((u(),S("span",{class:re(a.value)},[c(r,{class:"dark:text-white",width:"18px",height:"18px",icon:e(bt),onClick:h[0]||(h[0]=y=>o.value=!o.value)},null,8,["icon"])],2)),[[f,{content:e(l)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),c(d,null,{default:C(()=>[_t(p.$slots,"default",{},void 0,!0)]),_:3}),v("div",Vl,[he((u(),q(m,{type:"danger",text:"",bg:"",onClick:e(s)},{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)}}}),zl=_e(Hl,[["__scopeId","data-v-c826562e"]]),Al={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"};function El(n,t){return u(),S("svg",Al,t[0]||(t[0]=[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),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)]))}const Ol={render:El},Zl={class:"p-5"},Rl={class:"theme-color"},Pl=["onClick"],Dl={class:"pure-theme"},Nl={key:0},Bl={class:"mt-5 font-medium text-sm dark:text-white"},ql={class:"setting"},Fl={class:"dark:text-white"},jl={class:"dark:text-white"},Ul={class:"dark:text-white"},Wl={class:"dark:text-white"},Kl={class:"dark:text-white"},Yl=se({__name:"index",setup(n){var w,I,E,ce;const{t}=je(),{device:o}=Ee(),{isDark:a}=yn(),{$storage:l}=ft(),s=N(),p=N(),h=N(),{dataTheme:r,overallStyle:d,layoutTheme:m,themeColors:f,toggleClass:y,dataThemeChange:b,setLayoutThemeColor:x}=Kt();if(e(m)){const L=e(m).layout,$=e(m).theme;so({scopeName:`layout-theme-${$}`}),T(L)}const M=N((I=(w=l.configure)==null?void 0:w.showModel)!=null?I:"smart"),A=N((ce=(E=l.configure)==null?void 0:E.showLogo)!=null?ce:!0),_=Pt({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}),B=Z(()=>L=>({background:L})),R=Z(()=>L=>!(L==="light"&&a.value));function D(L,$){const ge=l.configure;ge[L]=$,l.configure=ge}const J=L=>{const $=document.querySelector("html");y(_.greyVal,"html-grey",$),D("grey",L)},F=L=>{const $=document.querySelector("html");y(_.weakVal,"html-weakness",$),D("weak",L)},V=()=>{const L=_.tabsVal;D("hideTabs",L),He.emit("tagViewsChange",L)},j=()=>{const L=_.hideFooter;D("hideFooter",L)},W=()=>{const L=_.multiTagsCache;D("multiTagsCache",L),qe().multiTagsCacheChange(L)};function ie({option:L}){const{value:$}=L;M.value=$,D("showModel",$),He.emit("tagViewsShowModel",$)}function ue(){e(A)?D("showLogo",!0):D("showLogo",!1),He.emit("logoChange",e(A))}function P(L){L.forEach($=>{y(!1,"is-select",e($))})}const Q=Z(()=>[{label:t("panel.pureStretchFixed"),tip:t("panel.pureStretchFixedTip"),value:"fixed"},{label:t("panel.pureStretchCustom"),tip:t("panel.pureStretchCustomTip"),value:"custom"}]),le=L=>{_.stretch=L,D("stretch",L)},xe=({option:L})=>{const{value:$}=L;le($==="custom"?1440:!1)},Oe=Z(()=>L=>L===m.value.theme&&m.value.theme!=="light"?"#fff":L===m.value.theme&&m.value.theme==="light"?"#1d2b45":"transparent"),Ie=Z(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),i=Z(()=>[{label:t("panel.pureOverallStyleLight"),icon:lo,theme:"light",tip:t("panel.pureOverallStyleLightTip"),iconAttrs:{fill:a.value?"#fff":"#000"}},{label:t("panel.pureOverallStyleDark"),icon:ro,theme:"dark",tip:t("panel.pureOverallStyleDarkTip"),iconAttrs:{fill:a.value?"#fff":"#000"}},{label:t("panel.pureOverallStyleSystem"),icon:Ol,theme:"system",tip:t("panel.pureOverallStyleSystemTip"),iconAttrs:{fill:a.value?"#fff":"#000"}}]),g=Z(()=>[{label:t("panel.pureTagsStyleSmart"),tip:t("panel.pureTagsStyleSmartTip"),value:"smart"},{label:t("panel.pureTagsStyleCard"),tip:t("panel.pureTagsStyleCardTip"),value:"card"},{label:t("panel.pureTagsStyleChrome"),tip:t("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function T(L){var $,ge,Ce,Ge,Ae;m.value.layout=L,window.document.body.setAttribute("layout",L),l.layout={layout:L,theme:m.value.theme,darkMode:($=l.layout)==null?void 0:$.darkMode,sidebarStatus:(ge=l.layout)==null?void 0:ge.sidebarStatus,epThemeColor:(Ce=l.layout)==null?void 0:Ce.epThemeColor,themeColor:(Ge=l.layout)==null?void 0:Ge.themeColor,overallStyle:(Ae=l.layout)==null?void 0:Ae.overallStyle},Ke().setLayout(L)}De(l,({layout:L})=>{switch(L.layout){case"vertical":y(!0,"is-select",e(p)),lt(P([h]),50),lt(P([s]),50);break;case"horizontal":y(!0,"is-select",e(h)),lt(P([p]),50),lt(P([s]),50);break;case"mix":y(!0,"is-select",e(s)),lt(P([p]),50),lt(P([h]),50);break}});const ee=window.matchMedia("(prefers-color-scheme: dark)");function pe(){d.value==="system"&&(ee.matches?r.value=!0:r.value=!1,b(d.value))}function ne(){ee.removeEventListener("change",pe)}function te(){pe(),ne(),ee.addEventListener("change",pe)}return _n(()=>{Qe(()=>{var L,$;te(),_.greyVal&&((L=document.querySelector("html"))==null||L.classList.add("html-grey")),_.weakVal&&(($=document.querySelector("html"))==null||$.classList.add("html-weakness")),_.tabsVal&&V(),_.hideFooter&&j()})}),Fn(()=>ne),(L,$)=>{const ge=H("IconifyIconOffline"),Ce=H("el-icon"),Ge=H("el-input-number"),Ae=H("el-switch"),Ue=et("tippy"),It=et("ripple");return u(),q(zl,null,{default:C(()=>[v("div",Zl,[v("p",{class:re(Ie.value)},U(e(t)("panel.pureOverallStyle")),3),c(e(Vt),{resize:"",class:"select-none",modelValue:e(d)==="system"?2:e(r)?1:0,options:i.value,onChange:$[0]||($[0]=oe=>{oe.index===1&&oe.index!==2?r.value=!0:r.value=!1,d.value=oe.option.theme,e(b)(oe.option.theme),oe.index===2&&te()})},null,8,["modelValue","options"]),v("p",{class:re(["mt-5",Ie.value])},U(e(t)("panel.pureThemeColor")),3),v("ul",Rl,[(u(!0),S(be,null,Me(e(f),(oe,pt)=>he((u(),S("li",{key:pt,style:fe(B.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(at)},null,8,["icon"])]),_:2},1032,["color"])],12,Pl)),[[Te,R.value(oe.themeColor)]])),128))]),v("p",{class:re(["mt-5",Ie.value])},U(e(t)("panel.pureLayoutModel")),3),v("ul",Dl,[he((u(),S("li",{ref_key:"verticalRef",ref:p,class:re(e(m).layout==="vertical"?"is-select":""),onClick:$[1]||($[1]=oe=>T("vertical"))},$[13]||($[13]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[Ue,{content:e(t)("panel.pureVerticalTip"),zIndex:41e3}]]),e(o)!=="mobile"?he((u(),S("li",{key:0,ref_key:"horizontalRef",ref:h,class:re(e(m).layout==="horizontal"?"is-select":""),onClick:$[2]||($[2]=oe=>T("horizontal"))},$[14]||($[14]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[Ue,{content:e(t)("panel.pureHorizontalTip"),zIndex:41e3}]]):X("",!0),e(o)!=="mobile"?he((u(),S("li",{key:1,ref_key:"mixRef",ref:s,class:re(e(m).layout==="mix"?"is-select":""),onClick:$[3]||($[3]=oe=>T("mix"))},$[15]||($[15]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[Ue,{content:e(t)("panel.pureMixTip"),zIndex:41e3}]]):X("",!0)]),e(Ke)().getViewportWidth>1280?(u(),S("span",Nl,[v("p",{class:re(["mt-5",Ie.value])},U(e(t)("panel.pureStretch")),3),c(e(Vt),{resize:"",class:"mb-2 select-none",modelValue:e(zt)(_.stretch)?1:0,options:Q.value,onChange:xe},null,8,["modelValue","options"]),e(zt)(_.stretch)?(u(),q(Ge,{key:0,modelValue:_.stretch,"onUpdate:modelValue":$[4]||($[4]=oe=>_.stretch=oe),min:1280,max:1600,"controls-position":"right",onChange:$[5]||($[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:$[6]||($[6]=oe=>le(!_.stretch))},[v("div",{class:re(["flex-bc transition-all duration-300",[_.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[c(ge,{icon:_.stretch?e(Et):e(At),height:"20"},null,8,["icon"]),$[16]||($[16]=v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),c(ge,{icon:_.stretch?e(At):e(Et),height:"20"},null,8,["icon"])],2)])),[[It,{class:"text-gray-300"}]])])):X("",!0),v("p",{class:re(["mt-4",Ie.value])},U(e(t)("panel.pureTagsStyle")),3),c(e(Vt),{resize:"",class:"select-none",modelValue:M.value==="smart"?0:M.value==="card"?1:2,options:g.value,onChange:ie},null,8,["modelValue","options"]),v("p",Bl,U(e(t)("panel.pureInterfaceDisplay")),1),v("ul",ql,[v("li",null,[v("span",Fl,U(e(t)("panel.pureGreyModel")),1),c(Ae,{modelValue:_.greyVal,"onUpdate:modelValue":$[7]||($[7]=oe=>_.greyVal=oe),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:J},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",jl,U(e(t)("panel.pureWeakModel")),1),c(Ae,{modelValue:_.weakVal,"onUpdate:modelValue":$[8]||($[8]=oe=>_.weakVal=oe),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:F},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Ul,U(e(t)("panel.pureHiddenTags")),1),c(Ae,{modelValue:_.tabsVal,"onUpdate:modelValue":$[9]||($[9]=oe=>_.tabsVal=oe),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:V},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Wl,U(e(t)("panel.pureHiddenFooter")),1),c(Ae,{modelValue:_.hideFooter,"onUpdate:modelValue":$[10]||($[10]=oe=>_.hideFooter=oe),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:j},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[$[17]||($[17]=v("span",{class:"dark:text-white"},"Logo",-1)),c(Ae,{modelValue:A.value,"onUpdate:modelValue":$[11]||($[11]=oe=>A.value=oe),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:ue},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Kl,U(e(t)("panel.pureMultiTagsCache")),1),c(Ae,{modelValue:_.multiTagsCache,"onUpdate:modelValue":$[12]||($[12]=oe=>_.multiTagsCache=oe),"inline-prompt":"","active-text":e(t)("buttons.pureOpenText"),"inactive-text":e(t)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),Gl=_e(Yl,[["__scopeId","data-v-a63f193b"]]),Xl=["src"],Jl={class:"sidebar-title"},Ql=["src"],er={class:"sidebar-title"},tr=se({__name:"SidebarLogo",props:{collapse:Boolean},setup(n){const{title:t,getLogo:o}=Ee();return(a,l)=>{const s=H("router-link");return u(),S("div",{class:re(["sidebar-logo-container",{collapses:n.collapse}])},[c(Ft,{name:"sidebarLogoFade"},{default:C(()=>{var p,h,r,d;return[n.collapse?(u(),q(s,{key:"collapse",title:e(t),class:"sidebar-logo-link",to:(h=(p=e(gt)())==null?void 0:p.path)!=null?h:"/"},{default:C(()=>[v("img",{src:e(o)(),alt:"logo"},null,8,Xl),v("span",Jl,U(e(t)),1)]),_:1},8,["title","to"])):(u(),q(s,{key:"expand",title:e(t),class:"sidebar-logo-link",to:(d=(r=e(gt)())==null?void 0:r.path)!=null?d:"/"},{default:C(()=>[v("img",{src:e(o)(),alt:"logo"},null,8,Ql),v("span",er,U(e(t)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),nr=_e(tr,[["__scopeId","data-v-3c9cd1d3"]]);var ht={exports:{}},kn={},or=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},Rt={exports:{}};typeof Object.create=="function"?Rt.exports=function(t,o){t.super_=o,t.prototype=Object.create(o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:Rt.exports=function(t,o){t.super_=o;var a=function(){};a.prototype=o.prototype,t.prototype=new a,t.prototype.constructor=t};var ar=Rt.exports;(function(n){var t={},o=/%[sdj%]/g;n.format=function(i){if(!D(i)){for(var g=[],T=0;T<arguments.length;T++)g.push(s(arguments[T]));return g.join(" ")}for(var T=1,ee=arguments,pe=ee.length,ne=String(i).replace(o,function(w){if(w==="%%")return"%";if(T>=pe)return w;switch(w){case"%s":return String(ee[T++]);case"%d":return Number(ee[T++]);case"%j":try{return JSON.stringify(ee[T++])}catch(I){return"[Circular]"}default:return w}}),te=ee[T];T<pe;te=ee[++T])_(te)||!j(te)?ne+=" "+te:ne+=" "+s(te);return ne},n.deprecate=function(i,g){if(F(jn.process))return function(){return n.deprecate(i,g).apply(this,arguments)};if(process.noDeprecation===!0)return i;var T=!1;function ee(){if(!T){if(process.throwDeprecation)throw new Error(g);process.traceDeprecation?console.trace(g):console.error(g),T=!0}return i.apply(this,arguments)}return ee};var a={},l;n.debuglog=function(i){if(F(l)&&(l=t.NODE_DEBUG||""),i=i.toUpperCase(),!a[i])if(new RegExp("\\b"+i+"\\b","i").test(l)){var g=process.pid;a[i]=function(){var T=n.format.apply(n,arguments);console.error("%s %d: %s",i,g,T)}}else a[i]=function(){};return a[i]};function s(i,g){var T={seen:[],stylize:h};return arguments.length>=3&&(T.depth=arguments[2]),arguments.length>=4&&(T.colors=arguments[3]),A(g)?T.showHidden=g:g&&n._extend(T,g),F(T.showHidden)&&(T.showHidden=!1),F(T.depth)&&(T.depth=2),F(T.colors)&&(T.colors=!1),F(T.customInspect)&&(T.customInspect=!0),T.colors&&(T.stylize=p),d(T,i,T.depth)}n.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(i,g){var T=s.styles[g];return T?"\x1B["+s.colors[T][0]+"m"+i+"\x1B["+s.colors[T][1]+"m":i}function h(i,g){return i}function r(i){var g={};return i.forEach(function(T,ee){g[T]=!0}),g}function d(i,g,T){if(i.customInspect&&g&&ue(g.inspect)&&g.inspect!==n.inspect&&!(g.constructor&&g.constructor.prototype===g)){var ee=g.inspect(T,i);return D(ee)||(ee=d(i,ee,T)),ee}var pe=m(i,g);if(pe)return pe;var ne=Object.keys(g),te=r(ne);if(i.showHidden&&(ne=Object.getOwnPropertyNames(g)),ie(g)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return f(g);if(ne.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 I="",E=!1,ce=["{","}"];if(M(g)&&(E=!0,ce=["[","]"]),ue(g)){var L=g.name?": "+g.name:"";I=" [Function"+L+"]"}if(V(g)&&(I=" "+RegExp.prototype.toString.call(g)),W(g)&&(I=" "+Date.prototype.toUTCString.call(g)),ie(g)&&(I=" "+f(g)),ne.length===0&&(!E||g.length==0))return ce[0]+I+ce[1];if(T<0)return V(g)?i.stylize(RegExp.prototype.toString.call(g),"regexp"):i.stylize("[Object]","special");i.seen.push(g);var $;return E?$=y(i,g,T,te,ne):$=ne.map(function(ge){return b(i,g,T,te,ge,E)}),i.seen.pop(),x($,I,ce)}function m(i,g){if(F(g))return i.stylize("undefined","undefined");if(D(g)){var T="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(T,"string")}if(R(g))return i.stylize(""+g,"number");if(A(g))return i.stylize(""+g,"boolean");if(_(g))return i.stylize("null","null")}function f(i){return"["+Error.prototype.toString.call(i)+"]"}function y(i,g,T,ee,pe){for(var ne=[],te=0,w=g.length;te<w;++te)Ie(g,String(te))?ne.push(b(i,g,T,ee,String(te),!0)):ne.push("");return pe.forEach(function(I){I.match(/^\d+$/)||ne.push(b(i,g,T,ee,I,!0))}),ne}function b(i,g,T,ee,pe,ne){var te,w,I;if(I=Object.getOwnPropertyDescriptor(g,pe)||{value:g[pe]},I.get?I.set?w=i.stylize("[Getter/Setter]","special"):w=i.stylize("[Getter]","special"):I.set&&(w=i.stylize("[Setter]","special")),Ie(ee,pe)||(te="["+pe+"]"),w||(i.seen.indexOf(I.value)<0?(_(T)?w=d(i,I.value,null):w=d(i,I.value,T-1),w.indexOf(`
`)>-1&&(ne?w=w.split(`
`).map(function(E){return" "+E}).join(`
`).substr(2):w=`
`+w.split(`
`).map(function(E){return" "+E}).join(`
`))):w=i.stylize("[Circular]","special")),F(te)){if(ne&&pe.match(/^\d+$/))return w;te=JSON.stringify(""+pe),te.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(te=te.substr(1,te.length-2),te=i.stylize(te,"name")):(te=te.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),te=i.stylize(te,"string"))}return te+": "+w}function x(i,g,T){var ee=i.reduce(function(pe,ne){return ne.indexOf(`
`)>=0,pe+ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ee>60?T[0]+(g===""?"":g+`
`)+" "+i.join(`,
`)+" "+T[1]:T[0]+g+" "+i.join(", ")+" "+T[1]}function M(i){return Array.isArray(i)}n.isArray=M;function A(i){return typeof i=="boolean"}n.isBoolean=A;function _(i){return i===null}n.isNull=_;function B(i){return i==null}n.isNullOrUndefined=B;function R(i){return typeof i=="number"}n.isNumber=R;function D(i){return typeof i=="string"}n.isString=D;function J(i){return typeof i=="symbol"}n.isSymbol=J;function F(i){return i===void 0}n.isUndefined=F;function V(i){return j(i)&&Q(i)==="[object RegExp]"}n.isRegExp=V;function j(i){return typeof i=="object"&&i!==null}n.isObject=j;function W(i){return j(i)&&Q(i)==="[object Date]"}n.isDate=W;function ie(i){return j(i)&&(Q(i)==="[object Error]"||i instanceof Error)}n.isError=ie;function ue(i){return typeof i=="function"}n.isFunction=ue;function P(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i=="undefined"}n.isPrimitive=P,n.isBuffer=or;function Q(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(" ")}n.log=function(){console.log("%s - %s",Oe(),n.format.apply(n,arguments))},n.inherits=ar,n._extend=function(i,g){if(!g||!j(g))return i;for(var T=Object.keys(g),ee=T.length;ee--;)i[T[ee]]=g[T[ee]];return i};function Ie(i,g){return Object.prototype.hasOwnProperty.call(i,g)}})(kn);var lr={},rr=process.platform==="win32",Ne=kn;function Ct(n,t){for(var o=[],a=0;a<n.length;a++){var l=n[a];!l||l==="."||(l===".."?o.length&&o[o.length-1]!==".."?o.pop():t&&o.push(".."):o.push(l))}return o}function dt(n){for(var t=n.length-1,o=0;o<=t&&!n[o];o++);for(var a=t;a>=0&&!n[a];a--);return o===0&&a===t?n:o>a?[]:n.slice(o,a+1)}var Sn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,sr=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ye={};function kt(n){var t=Sn.exec(n),o=(t[1]||"")+(t[2]||""),a=t[3]||"",l=sr.exec(a),s=l[1],p=l[2],h=l[3];return[o,s,p,h]}function tn(n){var t=Sn.exec(n),o=t[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!t[2],tail:t[3]}}function In(n){return"\\\\"+n.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ye.resolve=function(){for(var n="",t="",o=!1,a=arguments.length-1;a>=-1;a--){var l;if(a>=0?l=arguments[a]:n?(l=lr["="+n],(!l||l.substr(0,3).toLowerCase()!==n.toLowerCase()+"\\")&&(l=n+"\\")):l=process.cwd(),Ne.isString(l)){if(!l)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=tn(l),p=s.device,h=s.isUnc,r=s.isAbsolute,d=s.tail;if(!(p&&n&&p.toLowerCase()!==n.toLowerCase())&&(n||(n=p),o||(t=d+"\\"+t,o=r),n&&o))break}return h&&(n=In(n)),t=Ct(t.split(/[\\\/]+/),!o).join("\\"),n+(o?"\\":"")+t||"."};ye.normalize=function(n){var t=tn(n),o=t.device,a=t.isUnc,l=t.isAbsolute,s=t.tail,p=/[\\\/]$/.test(s);return s=Ct(s.split(/[\\\/]+/),!l).join("\\"),!s&&!l&&(s="."),s&&p&&(s+="\\"),a&&(o=In(o)),o+(l?"\\":"")+s};ye.isAbsolute=function(n){return tn(n).isAbsolute};ye.join=function(){for(var n=[],t=0;t<arguments.length;t++){var o=arguments[t];if(!Ne.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&n.push(o)}var a=n.join("\\");return/^[\\\/]{2}[^\\\/]/.test(n[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),ye.normalize(a)};ye.relative=function(n,t){n=ye.resolve(n),t=ye.resolve(t);for(var o=n.toLowerCase(),a=t.toLowerCase(),l=dt(t.split("\\")),s=dt(o.split("\\")),p=dt(a.split("\\")),h=Math.min(s.length,p.length),r=h,d=0;d<h;d++)if(s[d]!==p[d]){r=d;break}if(r==0)return t;for(var m=[],d=r;d<s.length;d++)m.push("..");return m=m.concat(l.slice(r)),m.join("\\")};ye._makeLong=function(n){if(!Ne.isString(n))return n;if(!n)return"";var t=ye.resolve(n);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):n};ye.dirname=function(n){var t=kt(n),o=t[0],a=t[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};ye.basename=function(n,t){var o=kt(n)[2];return t&&o.substr(-1*t.length)===t&&(o=o.substr(0,o.length-t.length)),o};ye.extname=function(n){return kt(n)[3]};ye.format=function(n){if(!Ne.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var t=n.root||"";if(!Ne.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir,a=n.base||"";return o?o[o.length-1]===ye.sep?o+a:o+ye.sep+a:a};ye.parse=function(n){if(!Ne.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var t=kt(n);if(!t||t.length!==4)throw new TypeError("Invalid path '"+n+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};ye.sep="\\";ye.delimiter=";";var ir=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,we={};function St(n){return ir.exec(n).slice(1)}we.resolve=function(){for(var n="",t=!1,o=arguments.length-1;o>=-1&&!t;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");n=a+"/"+n,t=a[0]==="/"}return n=Ct(n.split("/"),!t).join("/"),(t?"/":"")+n||"."};we.normalize=function(n){var t=we.isAbsolute(n),o=n&&n[n.length-1]==="/";return n=Ct(n.split("/"),!t).join("/"),!n&&!t&&(n="."),n&&o&&(n+="/"),(t?"/":"")+n};we.isAbsolute=function(n){return n.charAt(0)==="/"};we.join=function(){for(var n="",t=0;t<arguments.length;t++){var o=arguments[t];if(!Ne.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(n?n+="/"+o:n+=o)}return we.normalize(n)};we.relative=function(n,t){n=we.resolve(n).substr(1),t=we.resolve(t).substr(1);for(var o=dt(n.split("/")),a=dt(t.split("/")),l=Math.min(o.length,a.length),s=l,p=0;p<l;p++)if(o[p]!==a[p]){s=p;break}for(var h=[],p=s;p<o.length;p++)h.push("..");return h=h.concat(a.slice(s)),h.join("/")};we._makeLong=function(n){return n};we.dirname=function(n){var t=St(n),o=t[0],a=t[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};we.basename=function(n,t){var o=St(n)[2];return t&&o.substr(-1*t.length)===t&&(o=o.substr(0,o.length-t.length)),o};we.extname=function(n){return St(n)[3]};we.format=function(n){if(!Ne.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var t=n.root||"";if(!Ne.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir?n.dir+we.sep:"",a=n.base||"";return o+a};we.parse=function(n){if(!Ne.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var t=St(n);if(!t||t.length!==4)throw new TypeError("Invalid path '"+n+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};we.sep="/";we.delimiter=":";rr?ht.exports=ye:ht.exports=we;ht.exports.posix=we;ht.exports.win32=ye;var cr=ht.exports;const ur=Un(cr),dr=se({__name:"SidebarLinkItem",props:{to:{}},setup(n){const t=n,o=Z(()=>Wn(t.to.name)),a=l=>o.value?{href:l.name,target:"_blank",rel:"noopener"}:{to:l};return(l,s)=>(u(),q(Re(o.value?"a":"router-link"),Kn(Yn(a(l.to))),{default:C(()=>[_t(l.$slots,"default")]),_:3},16))}}),hr={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"/>'},fr={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"/>'},pr={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"/>'},mr={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"/>'},$n=se({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(n){const t=Gn(),{layout:o,isCollapse:a,tooltipEffect:l,getDivStyle:s}=Ee(),p=n,h=Z(()=>({width:"100%",display:"flex",alignItems:"center"})),r=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=tt())!=null&&b.MenuArrowIconNoTransition?{"expand-close-icon":Be(fr),"expand-open-icon":Be(hr),"collapse-close-icon":Be(mr),"collapse-open-icon":Be(pr)}:""}),m=N(null);function f(b=[],x){var A,_;const M=b.filter(B=>(m.value=B,!0));return(_=(A=M[0])==null?void 0:A.meta)!=null&&_.showParent?!1:M.length===1?!0:M.length===0?(m.value=Tt($t({},x),{path:"",noShowingChildren:!0}),!0):!1}function y(b){const x=/^http(s?):\/\//;return x.test(b)||x.test(p.basePath)?b||p.basePath:ur.posix.resolve(p.basePath,b)}return(b,x)=>{const M=H("el-text"),A=H("el-menu-item"),_=H("sidebar-item",!0),B=H("el-sub-menu");return f(n.item.children,n.item)&&(!m.value.children||m.value.noShowingChildren)?(u(),q(dr,{key:0,to:n.item},{default:C(()=>[c(A,rn({index:y(m.value.path),class:{"submenu-title-noDropdown":!n.isNest},style:h.value},e(t)),{title:C(()=>[v("div",{style:fe(e(s))},[c(e(sn),{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(Zt,{extraIcon:m.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:C(()=>{var R,D,J,F,V;return[Ve(n.item.meta.icon)?(u(),S("div",{key:0,class:"sub-menu-icon",style:fe(r.value)},[(u(),q(Re(e(Be)(Ve(m.value.meta.icon)||n.item.meta&&Ve(n.item.meta.icon)))))],4)):X("",!0),!((R=n.item)!=null&&R.meta.icon)&&e(a)&&e(o)==="vertical"&&((J=(D=n.item)==null?void 0:D.pathList)==null?void 0:J.length)===1||!m.value.meta.icon&&e(a)&&e(o)==="mix"&&((V=(F=n.item)==null?void 0:F.pathList)==null?void 0:V.length)===2?(u(),q(M,{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(),q(B,rn({key:1,ref:"subMenu",teleported:"",index:y(n.item.path)},d.value),{title:C(()=>{var R,D;return[Ve(n.item.meta.icon)?(u(),S("div",{key:0,style:fe(r.value),class:"sub-menu-icon"},[(u(),q(Re(e(Be)(n.item.meta&&Ve(n.item.meta.icon)))))],4)):X("",!0),(e(o)==="mix"&&Ve(n.item.meta.icon)?!e(a)||((D=(R=n.item)==null?void 0:R.pathList)==null?void 0:D.length)!==2:!(e(o)==="vertical"&&e(a)&&Ve(n.item.meta.icon)&&n.item.parentId===null))?(u(),q(e(sn),{key:1,tippyProps:{offset:[0,-10],theme:e(l)},class:re({"!w-full":!0,"!text-inherit":!0,"!pl-4":e(o)!=="horizontal"&&e(a)&&!Ve(n.item.meta.icon)&&n.item.parentId===null})},{default:C(()=>[me(U(e(Pe)(n.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):X("",!0),e(a)?X("",!0):(u(),q(Zt,{key:2,extraIcon:n.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:C(()=>[(u(!0),S(be,null,Me(n.item.children,R=>(u(),q(_,{key:R.path,"is-nest":!0,item:R,"base-path":y(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),vr={class:"left-collapse"},gr=se({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:t}){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:s}=ft(),p=Z(()=>{var d;return(d=s.layout)==null?void 0:d.themeColor}),h=t,r=()=>{h("toggleClick")};return(d,m)=>{const f=H("IconifyIconOffline"),y=et("tippy");return u(),S("div",vr,[he(c(f,{icon:e(oo),class:re([l.value,p.value==="light"?"":"text-primary"]),style:fe({transform:d.isActive?"none":"rotateY(180deg)"}),onClick:r},null,8,["icon","class","style"]),[[y,{content:d.isActive?e(o)("buttons.pureClickCollapse"):e(o)("buttons.pureClickExpand"),theme:e(a),hideOnClick:"toggle",placement:"right"}]])])}}}),yr=_e(gr,[["__scopeId","data-v-b883211c"]]),_r={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"/>'},br=se({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:t}){const{t:o}=je(),{tooltipEffect:a}=Ee(),l=Z(()=>["w-[16px]","h-[16px]"]),{$storage:s}=ft(),p=Z(()=>{var d;return(d=s.layout)==null?void 0:d.themeColor}),h=t,r=()=>{h("toggleClick")};return(d,m)=>{const f=H("IconifyIconOffline"),y=et("tippy");return he((u(),S("div",{class:"center-collapse",onClick:r},[c(f,{icon:e(_r),class:re([l.value,p.value==="light"?"":"text-primary"]),style:fe({transform:d.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[y,{content:d.isActive?e(o)("buttons.pureClickCollapse"):e(o)("buttons.pureClickExpand"),theme:e(a),hideOnClick:"toggle",placement:"right"}]])}}}),wr=_e(br,[["__scopeId","data-v-1c646820"]]),xr=se({__name:"NavVertical",setup(n){var M,A;const t=Dt(),o=N(!1),a=N((A=(M=Fe().getItem(`${rt()}configure`))==null?void 0:M.showLogo)!=null?A:!0),{device:l,pureApp:s,isCollapse:p,tooltipEffect:h,menuSelect:r,toggleSideBar:d}=Ee(),m=N([]),f=Z(()=>s.layout==="mix"&&l.value!=="mobile"?m.value:ze().wholeMenus),y=Z(()=>s.layout==="mix"?!1:f.value.length===0),b=Z(()=>{var _;return ot((_=t.meta)==null?void 0:_.activePath)?t.path:t.meta.activePath});function x(){let _="";_=b.value,m.value=[];const B=jt(_,ze().wholeMenus),R=yt(B[0]||_,ze().wholeMenus);R!=null&&R.children&&(m.value=R==null?void 0:R.children)}return De(()=>[t.path,ze().wholeMenus],()=>{t.path.includes("/redirect")||(x(),r(t.path))}),Ye(()=>{x(),He.on("logoChange",_=>{a.value=_})}),qt(()=>{He.off("logoChange")}),(_,B)=>{const R=H("el-menu"),D=H("el-scrollbar"),J=et("loading");return he((u(),S("div",{class:re(["sidebar-container",a.value?"has-logo":"no-logo"]),onMouseenter:B[0]||(B[0]=Ze(F=>o.value=!0,["prevent"])),onMouseleave:B[1]||(B[1]=Ze(F=>o.value=!1,["prevent"]))},[a.value?(u(),q(nr,{key:0,collapse:e(p)},null,8,["collapse"])):X("",!0),c(D,{"wrap-class":"scrollbar-wrapper",class:re([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(),q($n,{key:F.path,item:F,"base-path":F.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(l)!=="mobile"&&(o.value||e(p))?(u(),q(wr,{key:1,"is-active":e(s).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0),e(l)!=="mobile"?(u(),q(yr,{key:2,"is-active":e(s).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):X("",!0)],34)),[[J,y.value]])}}}),Cr=_e(xr,[["__scopeId","data-v-f94a3619"]]),kr={class:"horizontal-header"},Sr=["src"],Ir={class:"horizontal-header-right"},$r={class:"check-zh"},Tr={class:"check-en"},Mr={class:"el-dropdown-link navbar-bg-hover"},Lr=["src"],Vr={key:0,class:"dark:text-white"},Hr=["title"],zr=se({__name:"NavHorizontal",setup(n){var D,J;const t=N(),o=N((J=(D=Fe().getItem(`${rt()}configure`))==null?void 0:D.showLogo)!=null?J:!0),{t:a,route:l,locale:s,translationCh:p,translationEn:h}=Ut(t),{title:r,logout:d,onPanel:m,getLogo:f,username:y,userAvatar:b,backTopMenu:x,avatarsStyle:M,toAccountSettings:A,getDropdownItemStyle:_,getDropdownItemClass:B}=Ee(),R=Z(()=>{var F;return ot((F=l.meta)==null?void 0:F.activePath)?l.path:l.meta.activePath});return Qe(()=>{var F;(F=t.value)==null||F.handleResize()}),Ye(()=>{He.on("logoChange",F=>{o.value=F})}),(F,V)=>{const j=H("el-menu"),W=H("IconifyIconOffline"),ie=H("el-dropdown-item"),ue=H("el-dropdown-menu"),P=H("el-dropdown"),Q=et("loading");return he((u(),S("div",kr,[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,Sr),v("span",null,U(e(r)),1)])):X("",!0),c(j,{ref_key:"menuRef",ref:t,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(),q($n,{key:le.path,item:le,"base-path":le.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Ir,[c(Gt,{id:"header-search"}),c(P,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[c(ue,{class:"translation"},{default:C(()=>[c(ie,{style:fe(e(_)(e(s),"zh")),class:re(["dark:!text-white",e(B)(e(s),"zh")]),onClick:e(p)},{default:C(()=>[he(v("span",$r,[c(W,{icon:e(at)},null,8,["icon"])],512),[[Te,e(s)==="zh"]]),V[2]||(V[2]=me(" 简体中文 "))]),_:1},8,["style","class","onClick"]),c(ie,{style:fe(e(_)(e(s),"en")),class:re(["dark:!text-white",e(B)(e(s),"en")]),onClick:e(h)},{default:C(()=>[he(v("span",Tr,[c(W,{icon:e(at)},null,8,["icon"])],512),[[Te,e(s)==="en"]]),V[3]||(V[3]=me(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[c(e(Wt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(Jt,{id:"full-screen"}),c(Xt,{id:"header-notice"}),c(P,{trigger:"click"},{dropdown:C(()=>[c(ie,{onClick:e(A)},{default:C(()=>[c(W,{icon:e(Qt),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(en),style:{margin:"5px"}},null,8,["icon"]),me(" "+U(e(a)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",Mr,[v("img",{src:e(b),style:fe(e(M))},null,12,Lr),e(y)?(u(),S("p",Vr,U(e(y)),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(xt)},null,8,["icon"])],8,Hr)])])),[[Q,e(ze)().wholeMenus.length===0]])}}}),Ar=_e(zr,[["__scopeId","data-v-3bf860c7"]]),Er={key:0},Or=se({__name:"index",setup(n){const{t}=je(),o=N(),{isDark:a}=yn(),{layout:l}=io(),s=gn(),p=Yt(),{$storage:h}=ft(),r=Pt({sidebar:Z(()=>Ke().sidebar),device:Z(()=>Ke().device),fixedHeader:Z(()=>p.fixedHeader),classes:Z(()=>({hideSidebar:!r.sidebar.opened,openSidebar:r.sidebar.opened,withoutAnimation:r.sidebar.withoutAnimation,mobile:r.device==="mobile"})),hideTabs:Z(()=>h==null?void 0:h.configure.hideTabs)});function d(b){var x,M,A,_,B,R;window.document.body.setAttribute("layout",b),h.layout={layout:`${b}`,theme:(x=h.layout)==null?void 0:x.theme,darkMode:(M=h.layout)==null?void 0:M.darkMode,sidebarStatus:(A=h.layout)==null?void 0:A.sidebarStatus,epThemeColor:(_=h.layout)==null?void 0:_.epThemeColor,themeColor:(B=h.layout)==null?void 0:B.themeColor,overallStyle:(R=h.layout)==null?void 0:R.overallStyle}}function m(b,x){Ke().toggleDevice(b),Ke().toggleSideBar(x,"resize")}let f=!0;wt(o,b=>{if(s)return;const x=b[0],[{inlineSize:M,blockSize:A}]=x.borderBoxSize;Ke().setViewportSize({width:M,height:A}),M<=760?d("vertical"):d(Ke().layout),M>0&&M<=760?(m("mobile",!1),f=!0):M>760&&M<=990?f&&(m("desktop",!1),f=!1):M>990&&!r.sidebar.isClickCollapse?(m("desktop",!0),f=!0):(m("desktop",!1),f=!1)}),Ye(()=>{s&&m("mobile",!1)}),_n(()=>{var b;Kt().dataThemeChange((b=h.layout)==null?void 0:b.overallStyle)});const y=se({name:"LayHeader",render(){return ut("div",{class:{"fixed-header":r.fixedHeader},style:[r.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"))?ut(_l):null,!p.hiddenSideBar&&l.value.includes("horizontal")?ut(Ar):null,ut(ra)]})}});return(b,x)=>{const M=H("el-backtop"),A=H("el-scrollbar");return u(),S("div",{ref_key:"appWrapperRef",ref:o,class:re(["app-wrapper",r.classes])},[he(v("div",{class:"app-mask",onClick:x[0]||(x[0]=_=>e(Ke)().toggleSideBar())},null,512),[[Te,r.device==="mobile"&&r.sidebar.opened&&e(l).includes("vertical")]]),he(c(Cr,null,null,512),[[Te,!e(p).hiddenSideBar&&(e(l).includes("vertical")||e(l).includes("mix"))]]),v("div",{class:re(["main-container",e(p).hiddenSideBar?"main-hidden":""])},[r.fixedHeader?(u(),S("div",Er,[c(e(y)),c(fn,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])])):(u(),q(A,{key:1},{default:C(()=>[c(M,{title:e(t)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:C(()=>[c(e(bn))]),_:1},8,["title"]),c(e(y)),c(fn,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),c(Gl)],2)}}}),ls=_e(Or,[["__scopeId","data-v-29796f23"]]);export{ls as default};