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