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

2 lines
85 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

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

var gn=Object.defineProperty,yn=Object.defineProperties;var _n=Object.getOwnPropertyDescriptors;var Ut=Object.getOwnPropertySymbols;var bn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable;var Kt=(u,l,i)=>l in u?gn(u,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[l]=i,gt=(u,l)=>{for(var i in l||(l={}))bn.call(l,i)&&Kt(u,i,l[i]);if(Ut)for(var i of Ut(l))xn.call(l,i)&&Kt(u,i,l[i]);return u},yt=(u,l)=>yn(u,_n(l));var at=(u,l,i)=>new Promise((p,s)=>{var t=o=>{try{r(i.next(o))}catch(d){s(d)}},n=o=>{try{r(i.throw(o))}catch(d){s(d)}},r=o=>o.done?p(o.value):Promise.resolve(o.value).then(t,n);r((i=i.apply(u,l)).next())});import{fZ as Q,as as wn,at as Cn,av as je,a as Z,au as ze,aw as nt,p as z,f_ as Ae,r as Lt,f$ as me,g0 as ln,g1 as Yt,m as qe,aa as Le,Z as Vt,ah as Ht,ac as At,g2 as Ge,u as e,g3 as ut,b2 as Ne,_ as ue,k as C,e as f,aP as kn,d as ee,g4 as Ct,g5 as Sn,a7 as Ce,g6 as an,n as Ve,z as zt,i as Y,A as le,g as v,f as h,$ as _e,h as S,s as ae,F as de,l as be,q as Te,v as J,t as q,w as x,el as Zt,j as re,b as E,g7 as _t,g8 as $n,a$ as Qe,y as Ue,aQ as pt,aR as sn,U as Me,R as Ze,aX as In,M as kt,ag as Tn,g9 as bt,bk as Mn,aE as Ln,X as rn,bp as ke,B as Ke,ga as Rt,gb as dt,K as Vn,O as ht,gc as it,aY as St,gd as Xt,L as rt,af as cn,Y as un,o as Hn,W as tt,ge as An,aK as zn,bo as Zn,du as Rn,a3 as jt}from"./index-DGrsCPlS.js";import{d as On,a as ft}from"./close-CObHKOmY.js";import{d as En}from"./home-filled-NADQtN-e.js";import{d as Dn}from"./git-branch-line-BhusJOme.js";import{d as Pn}from"./admin-line-CpqWPwjZ.js";import{d as mt,a as qn,b as $t,_ as Bn,c as Fn}from"./SidebarTopCollapse.vue_vue_type_script_setup_true_lang-SOB8Q7kY.js";import{d as Nn,u as Se,a as Ot,g as Et,b as Wn,c as Un}from"./dark-DJxoD0_o.js";import{u as Dt,a as Kn}from"./useDataThemeChange-DBS8fWbh.js";import{u as Pe}from"./app-C-a2v3ak.js";import{e as ye}from"./mitt-E5P-NQ8u.js";import{d as Yn}from"./refresh-right-Du3ZsAuC.js";import{d as It}from"./arrow-right-s-line-CxPb13eK.js";import{m as Xn}from"./index-wh3GpahJ.js";import{u as Tt}from"./epTheme-BLONHwy7.js";import{u as He}from"./hooks-BDFJughz.js";import{S as jn}from"./sortable.esm-VSgMS8pS.js";import{d as Je}from"./check-CIQVCvCT.js";import{B as dn}from"./back_top-Cf_OJLd_.js";import{R as xt}from"./index-CqKMu_Ir.js";import{R as Gt}from"./index-DgVy-Lnl.js";import"./user-DNtD0Fqa.js";const Gn={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"/>'},Qn={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"/>'},Jn={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"/>'},eo={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"/>'},to={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"/>'},no={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},oo={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"/>'},lo={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"/>'},ao={width:24,height:24,body:'<path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm17 8h-16v8h16v-8Zm0-2V5h-16v4h16Zm-6 6h4v2h-4v-2Z"/>'},so={width:24,height:24,body:'<path fill="currentColor" d="M12 14v8H4a8 8 0 0 1 8-8Zm0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6Zm9 4h1v5h-8v-5h1v-1a3 3 0 1 1 6 0v1Zm-2 0v-1a1 1 0 1 0-2 0v1h2Z"/>'},ro={width:24,height:24,body:'<path fill="currentColor" d="M15 4H5v16h14V8h-4V4ZM3 2.992C3 2.444 3.447 2 3.998 2H16l5 5v13.992A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008V2.992ZM11 11h2v6h-2v-6Zm0-4h2v2h-2V7Z"/>'},io={width:24,height:24,body:'<path fill="currentColor" d="M4 8h16V5H4v3Zm10 11v-9h-4v9h4Zm2 0h4v-9h-4v9Zm-8 0v-9H4v9h4ZM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"/>'},co={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"/>'},hn={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"/>'},uo={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"/>'},ho={width:24,height:24,body:'<path fill="currentColor" d="M12 3v2H3V3h9Zm4 16v2H3v-2h13Zm6-8v2H3v-2h19Z"/>'},fo={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"/>'},po={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"/>'},mo={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},vo={width:24,height:24,body:'<path fill="currentColor" d="M22.001 12c0 5.522-4.477 10-10 10s-10-4.478-10-10c0-5.523 4.477-10 10-10s10 4.477 10 10Zm-16.8-1.336a1.335 1.335 0 1 0 0 2.67a1.335 1.335 0 0 0 0-2.67Zm9.533 6.069a1.334 1.334 0 1 0 1.334 2.31a1.334 1.334 0 0 0-1.334-2.31ZM8.1 12c0-1.32.656-2.485 1.659-3.19l-.977-1.636a5.813 5.813 0 0 0-2.398 3.371a1.875 1.875 0 0 1 0 2.91a5.812 5.812 0 0 0 2.398 3.371l.977-1.636A3.892 3.892 0 0 1 8.1 12ZM12 8.1a3.9 3.9 0 0 1 3.884 3.554l1.903-.028a5.781 5.781 0 0 0-1.724-3.762A1.872 1.872 0 0 1 13.55 6.41a5.829 5.829 0 0 0-4.12.39l.927 1.663A3.885 3.885 0 0 1 12 8.1Zm0 7.8c-.587 0-1.143-.13-1.643-.363l-.927 1.662a5.774 5.774 0 0 0 4.12.39a1.872 1.872 0 0 1 2.514-1.454a5.782 5.782 0 0 0 1.723-3.762l-1.903-.027A3.898 3.898 0 0 1 12 15.9Zm2.732-8.633a1.335 1.335 0 1 0 1.335-2.312a1.335 1.335 0 0 0-1.335 2.312Z"/>'},go={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"/>'},yo={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"/>'},_o={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"/>'},bo={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"/>'},xo={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"/>'};Q("ep:menu",On);Q("ep:edit",Gn);Q("ep:set-up",Qn);Q("ep:guide",Jn);Q("ep:monitor",eo);Q("ep:lollipop",to);Q("ep:histogram",no);Q("ep:home-filled",En);Q("ri:bookmark-2-line",oo);Q("ri:file-ppt-2-line",lo);Q("ri:bank-card-line",ao);Q("ri:admin-fill",so);Q("ri:file-info-line",ro);Q("ri:git-branch-line",Dn);Q("ri:links-fill",co);Q("ri:table-line",io);Q("ri:search-line",hn);Q("ri:admin-line",Pn);Q("ri:settings-3-line",mt);Q("ri:mind-map",uo);Q("ri:bar-chart-horizontal-line",ho);Q("ri:window-line",qn);Q("ri:file-search-line",po);Q("ri:artboard-line",fo);Q("ri:list-check",mo);Q("ri:ubuntu-fill",vo);Q("ri:user-voice-line",go);Q("ri:edit-box-line",yo);Q("ri:history-fill",_o);Q("ri:information-line",Nn);Q("ri:terminal-window-line",bo);Q("ri:checkbox-circle-line",xo);const wo=wn("pure-setting",{state:()=>({title:je().Title,fixedHeader:je().FixedHeader,hiddenSideBar:je().HiddenSideBar}),getters:{getTitle(u){return u.title},getFixedHeader(u){return u.fixedHeader},getHiddenSideBar(u){return u.hiddenSideBar}},actions:{CHANGE_SETTING({key:u,value:l}){Reflect.has(this,u)&&(this[u]=l)},changeSetting(u){this.CHANGE_SETTING(u)}}});function Pt(){return wo(Cn)}const Co={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ko={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"/>'},So={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"/>'},$o={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 fn(){var se,ie;const u=At(),l=Ht(),i=Vt(),p=Pt(),s=Z(0),t=Z(0),n=Z(0),r=Z(!1),o=Z(-1),d=Z({}),a=Z(!1),c=Z(((se=ze().getItem(`${nt()}configure`))==null?void 0:se.showModel)||"smart"),m=(ie=Z(ze().getItem(`${nt()}configure`).hideTabs))!=null?ie:Z("false"),y=z(()=>Ae().multiTags),g=Lt([{icon:Yn,text:me("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:ft,text:me("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:$o,text:me("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:So,text:me("buttons.pureCloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ko,text:me("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:Co,text:me("buttons.pureCloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ln,text:me("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function _(R,G,ne){var xe,Re;return Yt((xe=u==null?void 0:u.meta)==null?void 0:xe.showLink)&&((Re=u==null?void 0:u.meta)==null?void 0:Re.showLink)===!1?Object.keys(u.query).length>0?Ge(u.query,R.query)?G:ne:Ge(u.params,R.params)?G:ne:u.path===R.path?G:ne}const L=z(()=>R=>{var G,ne;return Yt((G=R==null?void 0:R.meta)==null?void 0:G.fixedTag)&&((ne=R==null?void 0:R.meta)==null?void 0:ne.fixedTag)===!0}),b=z(()=>(R,G)=>{if(G!==0)return _(R,!0,!1)}),V=z(()=>R=>_(R,"is-active","")),O=z(()=>R=>_(R,"schedule-active","")),D=z(()=>({transform:`translateX(${n.value}px)`,transition:a.value?"none":"transform 0.5s ease-in-out"})),X=z(()=>({left:t.value+"px",top:s.value+"px"})),N=()=>{r.value=!1};function $(R){if(R&&(o.value=R),e(c)==="smart"){if(ut(i.refs["schedule"+R][0],"schedule-active"))return;Ne(!0,"schedule-in",i.refs["schedule"+R][0]),Ne(!1,"schedule-out",i.refs["schedule"+R][0])}else{if(ut(i.refs["dynamic"+R][0],"is-active"))return;Ne(!0,"card-in",i.refs["dynamic"+R][0]),Ne(!1,"card-out",i.refs["dynamic"+R][0])}}function B(R){if(o.value=-1,e(c)==="smart"){if(ut(i.refs["schedule"+R][0],"schedule-active"))return;Ne(!1,"schedule-in",i.refs["schedule"+R][0]),Ne(!0,"schedule-out",i.refs["schedule"+R][0])}else{if(ut(i.refs["dynamic"+R][0],"is-active"))return;Ne(!1,"card-in",i.refs["dynamic"+R][0]),Ne(!0,"card-out",i.refs["dynamic"+R][0])}}function W(){p.hiddenSideBar?p.changeSetting({key:"hiddenSideBar",value:!1}):p.changeSetting({key:"hiddenSideBar",value:!0})}return qe(()=>{if(!c.value){const R=ze().getItem(`${nt()}configure`);R.showModel="card",ze().setItem(`${nt()}configure`,R)}}),{Close:ft,route:u,router:l,visible:r,showTags:m,instance:i,multiTags:y,showModel:c,tagsViews:g,buttonTop:s,buttonLeft:t,translateX:n,isFixedTag:L,pureSetting:p,activeIndex:o,getTabStyle:D,isScrolling:a,iconIsActive:b,linkIsActive:V,currentSelect:d,scheduleIsActive:O,getContextMenuStyle:X,$t:me,closeMenu:N,onMounted:qe,onMouseenter:$,onMouseleave:B,transformI18n:Le,onContentFullScreen:W}}const Io={},To={class:"w-full h-full"};function Mo(u,l){return f(),C("svg",To,l[0]||(l[0]=[kn('<defs><symbol id="geometry-left" viewBox="0 0 214 36"><path d="M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"></path></symbol><symbol id="geometry-right" viewBox="0 0 214 36"><use xlink:href="#geometry-left"></use></symbol><clipPath><rect width="100%" height="100%" x="0"></rect></clipPath></defs><svg width="51%" height="100%"><use xlink:href="#geometry-left" width="214" height="36" fill="currentColor"></use></svg><g transform="scale(-1, 1)"><svg width="51%" height="100%" x="-100%" y="0"><use xlink:href="#geometry-right" width="214" height="36" fill="currentColor"></use></svg></g>',3)]))}const Lo=ue(Io,[["render",Mo]]),Vo={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"/>'},Ho={class:"arrow-left"},Ao=["onContextmenu","onMouseenter","onMouseleave","onClick"],zo={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},Zo=["onClick"],Ro={key:1,class:"chrome-tab"},Oo={class:"chrome-tab__bg"},Eo={class:"tag-title"},Do=["onClick"],Po={class:"arrow-right"},qo=["onClick"],Bo={class:"arrow-down"},Fo=ee({__name:"index",setup(u){var j;const{Close:l,route:i,router:p,visible:s,showTags:t,instance:n,multiTags:r,tagsViews:o,buttonTop:d,buttonLeft:a,showModel:c,translateX:m,isFixedTag:y,pureSetting:g,activeIndex:_,getTabStyle:L,isScrolling:b,iconIsActive:V,linkIsActive:O,currentSelect:D,scheduleIsActive:X,getContextMenuStyle:N,closeMenu:$,onMounted:B,onMouseenter:W,onMouseleave:se,transformI18n:ie,onContentFullScreen:R}=fn(),G=Z(),ne=Z(),xe=Z(),Re=Z(),$e=Z(!1),Oe=(j=Ct())==null?void 0:j.path,Ye=[...Sn,...Ce().flatteningRoutes.filter(w=>{var M;return(M=w==null?void 0:w.meta)==null?void 0:M.fixedTag})],Ie=()=>at(this,null,function*(){yield Ue();const w=r.value.findIndex(M=>Qe(i.query)?Qe(i.params)?i.path===M.path:Ge(i.params,M.params):Ge(i.query,M.query));Xe(w)}),Xe=w=>at(this,null,function*(){var oe,pe;yield Ue();const M=10;if(!n.refs["dynamic"+w])return;const A=n.refs["dynamic"+w][0],K=A==null?void 0:A.offsetLeft,ce=A==null?void 0:A.offsetWidth,F=xe.value?(oe=xe.value)==null?void 0:oe.offsetWidth:0,U=G.value?(pe=G.value)==null?void 0:pe.offsetWidth:0;F<=U?$e.value=!0:$e.value=!1,U<F||K===0?m.value=0:K<-m.value?m.value=-K+M:K>-m.value&&K+ce<-m.value+F?m.value=Math.min(0,F-ce-K-M):m.value=-(K-(F-M-ce))}),Ee=w=>{var K;const M=xe.value?(K=xe.value)==null?void 0:K.offsetWidth:0,A=G.value?G.value.offsetWidth:0;w>0?m.value=Math.min(0,m.value+w):M<A?m.value>=-(A-M)&&(m.value=Math.max(m.value+w,M-A)):m.value=0,b.value=!1},Be=w=>{b.value=!0;const M=Math.abs(w.deltaX)+Math.abs(w.deltaY);let A=0;w.deltaX<0?A=M>0?M:100:A=M>0?-M:-100,et(A)},et=w=>{let A=Math.abs(w);const K=()=>{const ce=Math.sign(w)*Math.min(20,A);Ee(ce),A-=Math.abs(ce),A>0&&requestAnimationFrame(K)};requestAnimationFrame(K)};function T(w){const M=r.value.some(K=>K.path===w);function A(K,ce){M||K.forEach(F=>{F.path===ce?Ae().handleTags("push",{path:ce,meta:F.meta,name:F.name}):F.children&&F.children.length>0&&A(F.children,ce)})}A(p.options.routes,w)}function H(){const{fullPath:w,query:M}=e(i);p.replace({path:"/redirect"+w,query:M}),_t(i,"refresh")}function P(w,M,A){var U,oe,pe,lt;const K=r.value.findIndex(we=>{if(we.query){if(we.path===w.path)return we.query===w.query}else if(we.params){if(we.path===w.path)return we.params===w.params}else return we.path===w.path}),ce=(we,ge,ct)=>{ct?Ae().handleTags("equal",[Ye,w].flat()):Ae().handleTags("splice","",{startIndex:we,length:ge}),Ie()};A==="other"?ce(1,1,!0):A==="left"?ce(Ye.length,K-1,!0):A==="right"?ce(K+1,r.value.length):ce(K,1);const F=Ae().handleTags("slice");if(M===i.path){if(A==="left")return;(U=F[0])!=null&&U.query?p.push({name:F[0].name,query:F[0].query}):(oe=F[0])!=null&&oe.params?p.push({name:F[0].name,params:F[0].params}):p.push({path:F[0].path})}else{if(!r.value.length||r.value.some(we=>we.path===i.path))return;(pe=F[0])!=null&&pe.query?p.push({name:F[0].name,query:F[0].query}):(lt=F[0])!=null&&lt.params?p.push({name:F[0].name,params:F[0].params}):p.push({path:F[0].path})}}function te(w,M){P(w,w.path,M),_t(i)}function I(w,M,A){if(M&&M.disabled)return;let K;switch(A?K={path:A.path,meta:A.meta,name:A.name,query:A==null?void 0:A.query,params:A==null?void 0:A.params}:K={path:i.path,meta:i.meta},w){case 0:H();break;case 1:te(K);break;case 2:te(K,"left");break;case 3:te(K,"right");break;case 4:te(K,"other");break;case 5:Ae().handleTags("splice","",{startIndex:Ye.length,length:r.value.length}),p.push(Oe),_t(i);break;case 6:R(),setTimeout(()=>{g.hiddenSideBar?(o[6].icon=$n,o[6].text=me("buttons.pureContentExitFullScreen")):(o[6].icon=ln,o[6].text=me("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{ve(i.fullPath,i.query)})}function k(w){const{key:M,item:A}=w;I(M,A)}function he(w,M){$(),I(w,M,D.value)}function fe(w){Array.of(1,2,3,4,5).forEach(M=>{o[M].show=w})}function Fe(w,M=!1){Array.of(1,2,3,4,5).forEach(A=>{o[A].disabled=w}),M&&(o[2].show=!1,o[2].disabled=!0)}function ve(w,M={},A=!1){var oe,pe,lt,we;const K=r.value,ce=r.value.length;let F=-1;Qe(M)?F=K.findIndex(ge=>ge.path===w):F=K.findIndex(ge=>Ge(ge.query,M));function U(){var ge,ct;(ct=(ge=K[F])==null?void 0:ge.meta)!=null&&ct.fixedTag&&Array.of(1,2,3,4,5).forEach(vn=>{o[vn].disabled=!0})}fe(!0),A&&(o[0].show=!0),F===1&&ce!==2?(o[2].show=!1,Array.of(1,3,4,5).forEach(ge=>{o[ge].disabled=!1}),o[2].disabled=!0,U()):F===1&&ce===2?(Fe(!1),Array.of(2,3,4).forEach(ge=>{o[ge].show=!1,o[ge].disabled=!0}),U()):ce-1===F&&F!==0?(o[3].show=!1,Array.of(1,2,4,5).forEach(ge=>{o[ge].disabled=!1}),o[3].disabled=!0,(pe=(oe=K[F-1])==null?void 0:oe.meta)!=null&&pe.fixedTag&&(o[2].show=!1,o[2].disabled=!0),U()):F===0||w===`/redirect${Oe}`?Fe(!0):(Fe(!1,(we=(lt=K[F-1])==null?void 0:lt.meta)==null?void 0:we.fixedTag),U())}function ot(w,M){var oe;$(),w.path===Oe||(oe=w==null?void 0:w.meta)!=null&&oe.fixedTag?(fe(!1),o[0].show=!0):i.path!==w.path&&i.name!==w.name?(o[0].show=!1,ve(w.path,w.query)):r.value.length===2&&i.path!==w.path?(fe(!0),o[4].show=!1):i.path===w.path&&ve(w.path,w.query,!0),D.value=w;const A=140,K=e(ne).getBoundingClientRect().left,F=e(ne).offsetWidth-A,U=M.clientX-K+5;U>F?a.value=F:a.value=U,Pt().hiddenSideBar?d.value=M.clientY:d.value=M.clientY-40,Ue(()=>{s.value=!0})}function vt(w){const{name:M,path:A}=w;M?w.query?p.push({name:M,query:w.query}):w.params?p.push({name:M,params:w.params}):p.push({name:M}):p.push({path:A}),ye.emit("tagOnClick",w)}return an(Re,$,{detectIframe:!0}),Ve(i,()=>{_.value=-1,Ie()}),B(()=>{n&&(ve(i.fullPath),ye.on("tagViewsChange",w=>{e(t)!==w&&(t.value=w)}),ye.on("tagViewsShowModel",w=>{c.value=w}),ye.on("changLayoutRoute",w=>{T(w),setTimeout(()=>{ve(w)})}),pt(xe,Ie),sn().then(()=>Ie()))}),zt(()=>{ye.off("tagViewsChange"),ye.off("tagViewsShowModel"),ye.off("changLayoutRoute")}),(w,M)=>{const A=S("IconifyIconOffline"),K=S("el-dropdown-item"),ce=S("el-dropdown-menu"),F=S("el-dropdown");return e(t)?Y("",!0):(f(),C("div",{key:0,ref_key:"containerDom",ref:ne,class:"tags-view"},[le(v("span",Ho,[h(A,{icon:e($t),onClick:M[0]||(M[0]=U=>Ee(200))},null,8,["icon"])],512),[[_e,$e.value]]),v("div",{ref_key:"scrollbarDom",ref:xe,class:J(["scroll-container",e(c)==="chrome"&&"chrome-scroll-container"]),onWheel:Te(Be,["prevent"])},[v("div",{ref_key:"tabDom",ref:G,class:"tab select-none",style:ae(e(L))},[(f(!0),C(de,null,be(e(r),(U,oe)=>(f(),C("div",{ref_for:!0,ref:"dynamic"+oe,key:oe,class:J(["scroll-item is-closable",e(O)(U),e(c)==="chrome"&&"chrome-item",e(y)(U)&&"fixed-tag"]),onContextmenu:Te(pe=>ot(U,pe),["prevent"]),onMouseenter:Te(pe=>e(W)(oe),["prevent"]),onMouseleave:Te(pe=>e(se)(oe),["prevent"]),onClick:pe=>vt(U)},[e(c)!=="chrome"?(f(),C(de,{key:0},[v("span",zo,q(e(ie)(U.meta.title)),1),!e(y)(U)&&(e(V)(U,oe)||oe===e(_)&&oe!==0)?(f(),C("span",{key:0,class:"el-icon-close",onClick:Te(pe=>te(U),["stop"])},[h(A,{icon:e(l)},null,8,["icon"])],8,Zo)):Y("",!0),e(c)!=="card"?(f(),C("span",{key:1,ref_for:!0,ref:"schedule"+oe,class:J([e(X)(U)])},null,2)):Y("",!0)],64)):(f(),C("div",Ro,[v("div",Oo,[h(Lo)]),v("span",Eo,q(e(ie)(U.meta.title)),1),!e(y)(U)&&oe!==0?(f(),C("span",{key:0,class:"chrome-close-btn",onClick:Te(pe=>te(U),["stop"])},[h(A,{icon:e(l)},null,8,["icon"])],8,Do)):Y("",!0),M[2]||(M[2]=v("span",{class:"chrome-tab-divider"},null,-1))]))],42,Ao))),128))],4)],34),le(v("span",Po,[h(A,{icon:e(It),onClick:M[1]||(M[1]=U=>Ee(-200))},null,8,["icon"])],512),[[_e,$e.value]]),h(Zt,{name:"el-zoom-in-top"},{default:x(()=>[le((f(),C("ul",{ref_key:"contextmenuRef",ref:Re,key:Math.random(),style:ae(e(N)),class:"contextmenu"},[(f(!0),C(de,null,be(e(o).slice(0,6),(U,oe)=>(f(),C("div",{key:oe,style:{display:"flex","align-items":"center"}},[U.show?(f(),C("li",{key:0,onClick:pe=>he(oe,U)},[h(A,{icon:U.icon},null,8,["icon"]),re(" "+q(e(ie)(U.text)),1)],8,qo)):Y("",!0)]))),128))],4)),[[_e,e(s)]])]),_:1}),h(F,{trigger:"click",placement:"bottom-end",onCommand:k},{dropdown:x(()=>[h(ce,null,{default:x(()=>[(f(!0),C(de,null,be(e(o),(U,oe)=>(f(),E(K,{key:oe,command:{key:oe,item:U},divided:U.divided,disabled:U.disabled},{default:x(()=>[h(A,{icon:U.icon},null,8,["icon"]),re(" "+q(e(ie)(U.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[v("span",Bo,[h(A,{icon:e(Vo),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),No=ue(Fo,[["__scopeId","data-v-983d0a87"]]);function Wo(u=!1){const l=Z(u);function i(n){l.value=n}function p(){i(!0)}function s(){i(!1)}function t(){i(!l.value)}return{bool:l,setBool:i,setTrue:p,setFalse:s,toggle:t}}const Uo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"};function Ko(u,l){return f(),C("svg",Uo,l[0]||(l[0]=[v("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1)]))}const pn={render:Ko},Yo=["onMouseenter"],Xo={class:"result-item-title"},jo=ee({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(u,{expose:l,emit:i}){const p=Z(),s=Z(),t=i,n=Vt(),r=u,o=z(()=>g=>({background:(g==null?void 0:g.path)===d.value?Tt().epThemeColor:"",color:g.path===d.value?"#fff":"",fontSize:g.path===d.value?"16px":"14px"})),d=z({get(){return r.value},set(g){t("update:value",g)}});function a(g){return at(this,null,function*(){d.value=g.path})}function c(){t("enter")}function m(){s.value=window.innerHeight-window.innerHeight/10-140}pt(p,m);function y(g){var V;const _=(V=n==null?void 0:n.proxy)==null?void 0:V.$refs[`resultItemRef${g}`];if(!_)return 0;const b=_[0].offsetTop+128;return b>s.value?b-s.value:0}return qe(()=>{m()}),l({handleScroll:y}),(g,_)=>(f(),C("div",{ref_key:"resultRef",ref:p,class:"result"},[(f(!0),C(de,null,be(g.options,(L,b)=>{var V,O;return f(),C("div",{key:L.path,ref_for:!0,ref:"resultItemRef"+b,class:"result-item dark:bg-[#1d1d1d]",style:ae(o.value(L)),onClick:c,onMouseenter:D=>a(L)},[(f(),E(Me(e(He)((V=L.meta)==null?void 0:V.icon)))),v("span",Xo,q(e(Le)((O=L.meta)==null?void 0:O.title)),1),h(e(pn))],44,Yo)}),128))],512))}}),Go=ue(jo,[["__scopeId","data-v-274aad60"]]),Qo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",class:"iconify iconify--mdi",viewBox:"0 0 24 24"};function Jo(u,l){return f(),C("svg",Qo,l[0]||(l[0]=[v("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1)]))}const el={render:Jo},tl={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"/>'},nl={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"/>'},ol={class:"search-footer text-[#333] dark:text-white"},ll={class:"search-footer-item"},al={class:"search-footer-item"},sl={class:"search-footer-item"},rl={key:0,class:"search-footer-total"},il=ee({__name:"SearchFooter",props:{total:{default:0}},setup(u){const{t:l}=Ze(),{device:i}=Se();return(p,s)=>{const t=S("IconifyIconOffline");return f(),C("div",ol,[v("span",ll,[h(e(pn),{class:"icon"}),re(" "+q(e(l)("buttons.pureConfirm")),1)]),v("span",al,[h(t,{icon:e(tl),class:"icon"},null,8,["icon"]),h(t,{icon:e(nl),class:"icon"},null,8,["icon"]),re(" "+q(e(l)("buttons.pureSwitch")),1)]),v("span",sl,[h(e(el),{class:"icon"}),re(" "+q(e(l)("buttons.pureClose")),1)]),e(i)!=="mobile"&&p.total>0?(f(),C("p",rl,q(`${e(l)("search.pureTotal")} ${p.total}`),1)):Y("",!0)])}}}),cl=ue(il,[["__scopeId","data-v-7ba3ef39"]]),ul={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"/>'},dl={class:"history-item-title"},hl=ee({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(u,{emit:l}){const i=l;function p(t){i("collectItem",t)}function s(t){i("deleteItem",t)}return(t,n)=>{var o,d;const r=S("IconifyIconOffline");return f(),C(de,null,[(f(),E(Me(e(He)((o=t.item.meta)==null?void 0:o.icon)))),v("span",dl,q(e(Le)((d=t.item.meta)==null?void 0:d.title)),1),le(h(r,{icon:e(ul),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:n[0]||(n[0]=Te(a=>p(t.item),["stop"]))},null,8,["icon"]),[[_e,t.item.type==="history"]]),h(r,{icon:e(ft),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:n[1]||(n[1]=Te(a=>s(t.item),["stop"]))},null,8,["icon"])],64)}}}),Qt=ue(hl,[["__scopeId","data-v-ba0c91b5"]]),fl=["onMouseenter"],pl={class:"collect-container"},ml=["onMouseenter"],vl=ee({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(u,{expose:l,emit:i}){const p=Z(),s=Z(),t=Z(!1),{t:n}=Ze(),r=i,o=Vt(),d=u,a=z(()=>$=>({background:($==null?void 0:$.path)===m.value?Tt().epThemeColor:"",color:$.path===m.value?"#fff":"",fontSize:$.path===m.value?"16px":"14px"})),c=z(()=>({color:Tt().epThemeColor,fontWeight:500})),m=z({get(){return d.value},set($){r("update:value",$)}});Ve(()=>d.value,$=>{$&&t.value&&sn(100).then(()=>t.value=!1)});const y=z(()=>d.options.filter($=>$.type==="history")),g=z(()=>d.options.filter($=>$.type==="collect"));function _($){r("collect",$)}function L($){t.value=!0,r("delete",$)}function b($){return at(this,null,function*(){t.value||(m.value=$.path)})}function V(){r("enter")}function O(){s.value=window.innerHeight-window.innerHeight/10-140}pt(p,O);function D($){var ie;const B=(ie=o==null?void 0:o.proxy)==null?void 0:ie.$refs[`historyItemRef${$}`];if(!B)return 0;const se=(In(B)?B[0]:B).offsetTop+128;return se>s.value?se-s.value:0}const X=$=>{r("drag",{oldIndex:$.oldIndex,newIndex:$.newIndex})};let N=null;return Ve(g,$=>{$.length>1&&Ue(()=>{const B=document.querySelector(".collect-container");!B||N||(N=jn.create(B,{animation:160,onStart:W=>{W.item.style.cursor="move"},onEnd:W=>{W.item.style.cursor="pointer"},onUpdate:X}),O())})},{deep:!0,immediate:!0}),l({handleScroll:D}),($,B)=>(f(),C("div",{ref_key:"historyRef",ref:p,class:"history"},[y.value.length?(f(),C(de,{key:0},[v("div",{style:ae(c.value)},q(e(n)("search.pureHistory")),5),(f(!0),C(de,null,be(y.value,(W,se)=>(f(),C("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+se,class:"history-item dark:bg-[#1d1d1d]",style:ae(a.value(W)),onClick:V,onMouseenter:ie=>b(W)},[h(Qt,{item:W,onDeleteItem:L,onCollectItem:_},null,8,["item"])],44,fl))),128))],64)):Y("",!0),g.value.length?(f(),C(de,{key:1},[v("div",{style:ae(c.value)},q(`${e(n)("search.pureCollect")}${g.value.length>1?e(n)("search.pureDragSort"):""}`),5),v("div",pl,[(f(!0),C(de,null,be(g.value,(W,se)=>(f(),C("div",{key:W.path,ref_for:!0,ref:"historyItemRef"+(se+y.value.length),class:"history-item dark:bg-[#1d1d1d]",style:ae(a.value(W)),onClick:V,onMouseenter:ie=>b(W)},[h(Qt,{item:W,onDeleteItem:L},null,8,["item"])],44,ml))),128))])],64)):Y("",!0)],512))}}),gl=ue(vl,[["__scopeId","data-v-f7a9d807"]]),yl={class:"search-content"},Jt="history",_l="collect",De="menu-search-history",We="menu-search-collect",bl=ee({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(u,{emit:l}){const{device:i}=Se(),p=l,s=u,t=Ht(),{t:n,locale:r}=Ze(),o=Z(""),d=Z(),a=Z(),c=Z(),m=Z(""),y=Z(""),g=kt([]),_=kt([]),L=Mn(ie,300),b=je().MenuSearchHistory,V=Z(null),O=z(()=>Tn(Ce().wholeMenus)),D=z({get(){return s.value},set(T){p("update:value",T)}});Ve(()=>s.value,T=>{T&&Be()});const X=z(()=>o.value&&g.value.length>0),N=z(()=>!o.value&&_.value.length>0),$=z(()=>!o.value&&_.value.length===0||o.value&&g.value.length===0);function B(T){return ze().getItem(T)||[]}function W(T,H){ze().setItem(T,H)}function se(T){const H=[];function P(te){te.forEach(I=>{H.push(I),I.children&&P(I.children)})}return P(T),H}function ie(){var H;const T=se(O.value);g.value=T.filter(P=>{var te,I;return o.value?Le((te=P.meta)==null?void 0:te.title).toLocaleLowerCase().includes(o.value.toLocaleLowerCase().trim())||r.value==="zh"&&!Qe(Xn(Le((I=P.meta)==null?void 0:I.title).toLocaleLowerCase(),o.value.toLocaleLowerCase().trim())):!1}),m.value=((H=g.value)==null?void 0:H.length)>0?g.value[0].path:""}function R(){D.value=!1,setTimeout(()=>{g.value=[],y.value="",o.value=""},200)}function G(T){const P=(g.value.length?d.value:a.value).handleScroll(T);c.value.setScrollTop(P)}function ne(){const T=g.value.length>0,H=T?g.value:_.value,P=T?m.value:y.value;return{options:H,currentPath:P,isResultOptions:T}}function xe(T,H){H?m.value=g.value[T].path:y.value=_.value[T].path,G(T)}function Re(){const{options:T,currentPath:H,isResultOptions:P}=ne();if(T.length===0)return;const I=(T.findIndex(k=>k.path===H)-1+T.length)%T.length;xe(I,P)}function $e(){const{options:T,currentPath:H,isResultOptions:P}=ne();if(T.length===0)return;const I=(T.findIndex(k=>k.path===H)+1)%T.length;xe(I,P)}function Oe(){const{options:T,currentPath:H,isResultOptions:P}=ne();if(T.length===0||H==="")return;const te=T.findIndex(I=>I.path===H);te!==-1&&(P?Xe():Ee(),t.push(T[te].path),R())}function Ye(T){const H=T.type===Jt?De:We;let P=B(H);P=P.filter(te=>te.path!==T.path),W(H,P),Be()}function Ie(T){let H=B(De),P=B(We);H=H.filter(te=>te.path!==T.path),W(De,H),P.some(te=>te.path===T.path)||(P.unshift(yt(gt({},T),{type:_l})),W(We,P)),Be()}function Xe(){const{path:T,meta:H}=g.value.find(he=>he.path===m.value),P=B(De),I=B(We).some(he=>he.path===T),k=P.findIndex(he=>he.path===T);I||(k!==-1&&P.splice(k,1),P.length>=b&&P.pop(),P.unshift({path:T,meta:H,type:Jt}),ze().setItem(De,P))}function Ee(){let T=B(De);const H=T.findIndex(P=>P.path===y.value);if(H!==-1){const[P]=T.splice(H,1);T.unshift(P),W(De,T)}}function Be(){var P;const T=B(De),H=B(We);_.value=[...T,...H],y.value=(P=_.value[0])==null?void 0:P.path}function et(T){const H=B(We),[P]=H.splice(T.oldIndex,1);H.splice(T.newIndex,0,P),ze().setItem(We,H),_.value=[...B(De),...B(We)],y.value=P.path}return bt("Enter",Oe),bt("ArrowUp",Re),bt("ArrowDown",$e),(T,H)=>{const P=S("IconifyIconOffline"),te=S("el-input"),I=S("el-empty"),k=S("el-scrollbar"),he=S("el-dialog");return f(),E(he,{modelValue:D.value,"onUpdate:modelValue":H[3]||(H[3]=fe=>D.value=fe),top:"5vh",class:"pure-search-dialog","show-close":!1,width:e(i)==="mobile"?"80vw":"40vw","before-close":R,style:{borderRadius:"6px"},"append-to-body":"",onOpened:H[4]||(H[4]=fe=>V.value.focus()),onClosed:H[5]||(H[5]=fe=>V.value.blur())},{footer:x(()=>[h(cl,{total:g.value.length},null,8,["total"])]),default:x(()=>[h(te,{ref_key:"inputRef",ref:V,modelValue:o.value,"onUpdate:modelValue":H[0]||(H[0]=fe=>o.value=fe),size:"large",clearable:"",placeholder:e(n)("search.purePlaceholder"),onInput:e(L)},{prefix:x(()=>[h(P,{icon:e(hn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","placeholder","onInput"]),v("div",yl,[h(k,{ref_key:"scrollbarRef",ref:c,"max-height":"calc(90vh - 140px)"},{default:x(()=>[$.value?(f(),E(I,{key:0,description:e(n)("search.pureEmpty")},null,8,["description"])):Y("",!0),N.value?(f(),E(gl,{key:1,ref_key:"historyRef",ref:a,value:y.value,"onUpdate:value":H[1]||(H[1]=fe=>y.value=fe),options:_.value,onClick:Oe,onDelete:Ye,onCollect:Ie,onDrag:et},null,8,["value","options"])):Y("",!0),X.value?(f(),E(Go,{key:2,ref_key:"resultRef",ref:d,value:m.value,"onUpdate:value":H[2]||(H[2]=fe=>m.value=fe),options:g.value,onClick:Oe},null,8,["value","options"])):Y("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),xl=ue(bl,[["__scopeId","data-v-1155c5fc"]]),qt=ee({__name:"index",setup(u){const{bool:l,toggle:i}=Wo();function p(){i()}return(s,t)=>{const n=S("IconifyIconOffline");return f(),C("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:p},[h(n,{icon:"ri:search-line"})]),h(xl,{value:e(l),"onUpdate:value":t[0]||(t[0]=r=>Ln(l)?l.value=r:null)},null,8,["value"])])}}}),en=[{key:"1",name:me("status.pureNotify"),list:[],emptyText:me("status.pureNoNotify")},{key:"2",name:me("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:me("status.pureNoMessage")},{key:"3",name:me("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:me("status.pureNoTodo")}],wl={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Cl={class:"notice-container-text"},kl={class:"notice-text-title text-[#000000d9] dark:text-white"},Sl={class:"notice-text-datetime text-[#00000073] dark:text-white"},$l=ee({__name:"NoticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(u){const l=Z(null),i=Z(!1),p=Z(null),s=Z(!1),{tooltipEffect:t}=Se(),n=rn();function r(){Ue(()=>{var d,a;((d=l.value)==null?void 0:d.scrollWidth)>((a=l.value)==null?void 0:a.clientWidth)?i.value=!0:i.value=!1})}function o(d,a){const c=document.createElement("span");c.innerText=a,c.className="getDescriptionWidth",document.querySelector("body").appendChild(c);const m=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const y=d.target.offsetWidth;m>2*y?s.value=!0:s.value=!1}return(d,a)=>{var g,_;const c=S("el-avatar"),m=S("el-tooltip"),y=S("el-tag");return f(),C("div",wl,[u.noticeItem.avatar?(f(),E(c,{key:0,size:30,src:u.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),v("div",Cl,[v("div",kl,[h(m,{"popper-class":"notice-title-popper",effect:e(t),disabled:!i.value,content:u.noticeItem.title,placement:"top-start",enterable:!e(n)},{default:x(()=>[v("div",{ref_key:"titleRef",ref:l,class:"notice-title-content",onMouseover:r},q(u.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(g=u.noticeItem)!=null&&g.extra?(f(),E(y,{key:0,type:(_=u.noticeItem)==null?void 0:_.status,size:"small",class:"notice-title-extra"},{default:x(()=>{var L;return[re(q((L=u.noticeItem)==null?void 0:L.extra),1)]}),_:1},8,["type"])):Y("",!0)]),h(m,{"popper-class":"notice-title-popper",effect:e(t),disabled:!s.value,content:u.noticeItem.description,placement:"top-start"},{default:x(()=>[v("div",{ref_key:"descriptionRef",ref:p,class:"notice-text-description",onMouseover:a[0]||(a[0]=L=>o(L,u.noticeItem.description))},q(u.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",Sl,q(u.noticeItem.datetime),1)])])}}}),Il=ue($l,[["__scopeId","data-v-4309676b"]]),Tl={key:0},Ml=ee({__name:"NoticeList",props:{list:{type:Array,default:()=>[]},emptyText:{type:String,default:""}},setup(u){return(l,i)=>{const p=S("el-empty");return u.list.length?(f(),C("div",Tl,[(f(!0),C(de,null,be(u.list,(s,t)=>(f(),E(Il,{key:t,noticeItem:s},null,8,["noticeItem"]))),128))])):(f(),E(p,{key:1,description:e(Le)(u.emptyText)},null,8,["description"]))}}}),Ll={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"/>'},Vl={class:"header-notice-icon"},Hl={key:1},Al={class:"noticeList-container"},zl=ee({__name:"index",setup(u){var n;const{t:l}=Ze(),i=Z(0),p=Z(en),s=Z((n=en[0])==null?void 0:n.key);p.value.map(r=>i.value+=r.list.length);const t=z(()=>r=>l(r.name)+(r.list.length>0?`(${r.list.length})`:""));return(r,o)=>{const d=S("IconifyIconOffline"),a=S("el-badge"),c=S("el-empty"),m=S("el-scrollbar"),y=S("el-tab-pane"),g=S("el-tabs"),_=S("el-dropdown-menu"),L=S("el-dropdown");return f(),E(L,{trigger:"click",placement:"bottom-end"},{dropdown:x(()=>[h(_,null,{default:x(()=>[h(g,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=b=>s.value=b),stretch:!0,class:"dropdown-tabs",style:ae({width:p.value.length===0?"200px":"330px"})},{default:x(()=>[p.value.length===0?(f(),E(c,{key:0,description:e(l)("status.pureNoMessage"),"image-size":60},null,8,["description"])):(f(),C("span",Hl,[(f(!0),C(de,null,be(p.value,b=>(f(),E(y,{key:b.key,label:t.value(b),name:`${b.key}`},{default:x(()=>[h(m,{"max-height":"330px"},{default:x(()=>[v("div",Al,[h(Ml,{list:b.list,emptyText:b.emptyText},null,8,["list","emptyText"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[v("span",{class:J(["dropdown-badge","navbar-bg-hover","select-none",Number(i.value)!==0&&"mr-[10px]"])},[h(a,{value:Number(i.value)===0?"":i.value,max:99},{default:x(()=>[v("span",Vl,[h(d,{icon:e(Ll)},null,8,["icon"])])]),_:1},8,["value"])],2)]),_:1})}}}),Bt=ue(zl,[["__scopeId","data-v-1760ac04"]]),Zl={key:0,class:"flex justify-center items-center"},Mt=ee({__name:"SidebarExtraIcon",props:{extraIcon:{type:String,default:""}},setup(u){return(l,i)=>u.extraIcon?(f(),C("div",Zl,[(f(),E(Me(e(He)(ke(u.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),Ft=ee({__name:"SidebarFullScreen",setup(u){const l=Z(),{toggle:i,isFullscreen:p,Fullscreen:s,ExitFullscreen:t}=Se();return p.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ve(p,n=>{l.value=n?t:s},{immediate:!0}),(n,r)=>{const o=S("IconifyIconOffline");return f(),C("span",{class:"fullscreen-icon navbar-bg-hover",onClick:r[0]||(r[0]=(...d)=>e(i)&&e(i)(...d))},[h(o,{icon:l.value},null,8,["icon"])])}}}),Nt={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"/>'},Wt={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"/>'},Rl={key:0,class:"horizontal-header"},Ol={class:"select-none"},El={class:"horizontal-header-right"},Dl={class:"check-zh"},Pl={class:"check-en"},ql={class:"el-dropdown-link navbar-bg-hover select-none"},Bl=["src"],Fl={key:0,class:"dark:text-white"},Nl=["title"],Wl=ee({__name:"NavMix",setup(u){const l=Z(),i=Z(null),{t:p,route:s,locale:t,translationCh:n,translationEn:r}=Ot(l),{device:o,logout:d,onPanel:a,resolvePath:c,username:m,userAvatar:y,getDivStyle:g,avatarsStyle:_,toAccountSettings:L,getDropdownItemStyle:b,getDropdownItemClass:V}=Se();function O(D){var $,B,W;const X=Ce().wholeMenus,N=Rt(D,X)[0];i.value=Qe(($=s.meta)==null?void 0:$.activePath)?(W=(B=dt(N,X))==null?void 0:B.children[0])==null?void 0:W.path:s.meta.activePath}return qe(()=>{O(s.path)}),Ue(()=>{var D;(D=l.value)==null||D.handleResize()}),Ve(()=>[s.path,Ce().wholeMenus],()=>{O(s.path)}),(D,X)=>{const N=S("el-menu-item"),$=S("el-menu"),B=S("IconifyIconOffline"),W=S("el-dropdown-item"),se=S("el-dropdown-menu"),ie=S("el-dropdown"),R=Ke("loading");return e(o)!=="mobile"?le((f(),C("div",Rl,[h($,{ref_key:"menuRef",ref:l,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":i.value},{default:x(()=>[(f(!0),C(de,null,be(e(Ce)().wholeMenus,G=>(f(),E(N,{key:G.path,index:e(c)(G)||G.redirect},{title:x(()=>[ke(G.meta.icon)?(f(),C("div",{key:0,class:J(["sub-menu-icon",G.meta.icon])},[(f(),E(Me(e(He)(G.meta&&ke(G.meta.icon)))))],2)):Y("",!0),v("div",{style:ae(e(g))},[v("span",Ol,q(e(Le)(G.meta.title)),1),h(Mt,{extraIcon:G.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",El,[h(qt,{id:"header-search"}),h(ie,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[h(se,{class:"translation"},{default:x(()=>[h(W,{style:ae(e(b)(e(t),"zh")),class:J(["dark:!text-white",e(V)(e(t),"zh")]),onClick:e(n)},{default:x(()=>[le(v("span",Dl,[h(B,{icon:e(Je)},null,8,["icon"])],512),[[_e,e(t)==="zh"]]),X[1]||(X[1]=re(" 简体中文 "))]),_:1},8,["style","class","onClick"]),h(W,{style:ae(e(b)(e(t),"en")),class:J(["dark:!text-white",e(V)(e(t),"en")]),onClick:e(r)},{default:x(()=>[le(v("span",Pl,[h(B,{icon:e(Je)},null,8,["icon"])],512),[[_e,e(t)==="en"]]),X[2]||(X[2]=re(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[h(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Ft,{id:"full-screen"}),h(Bt,{id:"header-notice"}),h(ie,{trigger:"click"},{dropdown:x(()=>[h(W,{onClick:e(L)},{default:x(()=>[h(B,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(se,{class:"logout"},{default:x(()=>[h(W,{onClick:e(d)},{default:x(()=>[h(B,{icon:e(Wt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",ql,[v("img",{src:e(y),style:ae(e(_))},null,12,Bl),e(m)?(f(),C("p",Fl,q(e(m)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:X[0]||(X[0]=(...G)=>e(a)&&e(a)(...G))},[h(B,{icon:e(mt)},null,8,["icon"])],8,Nl)])])),[[R,e(Ce)().wholeMenus.length===0]]):Y("",!0)}}}),Ul=ue(Wl,[["__scopeId","data-v-9f22ffe1"]]),Kl=["onClick"],Yl=ee({__name:"SidebarBreadCrumb",setup(u){const l=At(),i=Z([]),p=Ht(),s=p.options.routes,t=Ae().multiTags,n=()=>{let o;Object.keys(l.query).length>0?t.forEach(c=>{Ge(l.query,c==null?void 0:c.query)&&(o=ke(c))}):Object.keys(l.params).length>0?t.forEach(c=>{Ge(l.params,c==null?void 0:c.params)&&(o=ke(c))}):o=dt(p.currentRoute.value.path,s);const d=Rt(p.currentRoute.value.name,s,"name"),a=[];d.forEach(c=>{c!=="/"&&a.push(dt(c,s))}),a.push(o),a.forEach((c,m)=>{o!=null&&o.query||o!=null&&o.params||c!=null&&c.children&&c.children.forEach(y=>{var g,_;((g=y==null?void 0:y.meta)==null?void 0:g.title)===((_=c==null?void 0:c.meta)==null?void 0:_.title)&&a.splice(m,1)})}),i.value=a.filter(c=>(c==null?void 0:c.meta)&&(c==null?void 0:c.meta.title)!==!1)},r=o=>{const{redirect:d,name:a,path:c}=o;d?p.push(d):a?o.query?p.push({name:a,query:o.query}):o.params?p.push({name:a,params:o.params}):p.push({name:a}):p.push({path:c})};return qe(()=>{n()}),Ve(()=>l.path,()=>{n()},{deep:!0}),(o,d)=>{const a=S("el-breadcrumb-item"),c=S("el-breadcrumb");return f(),E(c,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[h(Vn,{name:"breadcrumb"},{default:x(()=>[(f(!0),C(de,null,be(i.value,m=>(f(),E(a,{key:m.path,class:"!inline !items-stretch"},{default:x(()=>[v("a",{onClick:Te(y=>r(m),["prevent"])},q(e(Le)(m.meta.title)),9,Kl)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Xl={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},jl={key:3,class:"vertical-header-right"},Gl={class:"check-en"},Ql={class:"el-dropdown-link navbar-bg-hover select-none"},Jl=["src"],ea={key:0,class:"dark:text-white"},ta=["title"],na=ee({__name:"index",setup(u){const{layout:l,device:i,logout:p,onPanel:s,pureApp:t,username:n,userAvatar:r,avatarsStyle:o,toggleSideBar:d,toAccountSettings:a,getDropdownItemStyle:c,getDropdownItemClass:m}=Se(),{t:y,locale:g,translationCh:_,translationEn:L}=Ot();return(b,V)=>{const O=S("IconifyIconOffline"),D=S("el-dropdown-item"),X=S("el-dropdown-menu"),N=S("el-dropdown");return f(),C("div",Xl,[e(i)==="mobile"?(f(),E(Bn,{key:0,class:"hamburger-container","is-active":e(t).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):Y("",!0),e(l)!=="mix"&&e(i)!=="mobile"?(f(),E(Yl,{key:1,class:"breadcrumb-container"})):Y("",!0),e(l)==="mix"?(f(),E(Ul,{key:2})):Y("",!0),e(l)==="vertical"?(f(),C("div",jl,[h(qt,{id:"header-search"}),h(N,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[h(X,{class:"translation"},{default:x(()=>[h(D,{style:ae(e(c)(e(g),"zh")),class:J(["dark:!text-white",e(m)(e(g),"zh")]),onClick:e(_)},{default:x(()=>[le(h(O,{class:"check-zh",icon:e(Je)},null,8,["icon"]),[[_e,e(g)==="zh"]]),V[1]||(V[1]=re(" 简体中文 "))]),_:1},8,["style","class","onClick"]),h(D,{style:ae(e(c)(e(g),"en")),class:J(["dark:!text-white",e(m)(e(g),"en")]),onClick:e(L)},{default:x(()=>[le(v("span",Gl,[h(O,{icon:e(Je)},null,8,["icon"])],512),[[_e,e(g)==="en"]]),V[2]||(V[2]=re(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[h(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Ft,{id:"full-screen"}),h(Bt,{id:"header-notice"}),h(N,{trigger:"click"},{dropdown:x(()=>[h(X,{class:"logout"},{default:x(()=>[h(D,{onClick:e(a)},{default:x(()=>[h(O,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(y)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(D,{onClick:e(p)},{default:x(()=>[h(O,{icon:e(Wt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(y)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Ql,[v("img",{src:e(r),style:ae(e(o))},null,12,Jl),e(n)?(f(),C("p",ea,q(e(n)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(y)("buttons.pureOpenSystemSet"),onClick:V[0]||(V[0]=(...$)=>e(s)&&e(s)(...$))},[h(O,{icon:e(mt)},null,8,["icon"])],8,ta)])):Y("",!0)])}}}),oa=ue(na,[["__scopeId","data-v-b43dc9be"]]),st=new Map,la=()=>{function u(p,s){st.set(p,s)}function l(p){return p?st.get(p):[...st.entries()]}function i(p){st.delete(p)}return{setMap:u,getMap:l,delMap:i,MAP:st}},aa={class:"w-full h-full"},sa=ee({__name:"index",props:{currRoute:{},currComp:{}},setup(u){const l=u,i=kt([]),{setMap:p,getMap:s,MAP:t,delMap:n}=la(),r=z(()=>{var d,a;return je().KeepAlive&&((d=l.currRoute.meta)==null?void 0:d.keepAlive)&&!!((a=l.currRoute.meta)!=null&&a.frameSrc)}),o=z(()=>!r.value&&l.currComp);return Ve(Ae().multiTags,d=>{if(!Array.isArray(d)||!r.value)return;if(d.filter(c=>{var m;return(m=c.meta)==null?void 0:m.frameSrc}).length<t.size)for(const c of t.keys())d.some(m=>m.path===c)||(n(c),i.value=s())}),Ve(()=>l.currRoute.fullPath,d=>{const c=Ae().multiTags.filter(m=>{var y;return(y=m.meta)==null?void 0:y.frameSrc});r.value&&c.length!==t.size&&([...t.keys()].find(y=>d===y)||p(d,l.currComp)),t.size>0&&(i.value=s())},{immediate:!0}),(d,a)=>(f(),C(de,null,[(f(!0),C(de,null,be(i.value,([c,m])=>{var y;return le((f(),C("div",{key:c,class:"w-full h-full"},[ht(d.$slots,"default",{fullPath:c,Comp:m,frameInfo:{frameSrc:(y=d.currRoute.meta)==null?void 0:y.frameSrc,fullPath:c}})],512)),[[_e,c===d.currRoute.fullPath]])}),128)),le(v("div",aa,[ht(d.$slots,"default",{Comp:o.value,fullPath:d.currRoute.fullPath})],512),[[_e,!r.value]])],64))}}),ra={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},ia={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},ca=ee({__name:"index",setup(u){const l=je("Title");return(i,p)=>(f(),C("footer",ra,[p[0]||(p[0]=re(" Copyright © 2020-2024 ")),v("a",ia,"  "+q(e(l)),1)]))}}),tn=ue(ca,[["__scopeId","data-v-460ba5c2"]]),ua={class:"grow"},da={key:1,class:"grow"},ha=ee({__name:"index",props:{fixedHeader:Boolean},setup(u){const l=u,{t:i}=Ze(),{showModel:p}=fn(),{$storage:s,$config:t}=it(),n=z(()=>t==null?void 0:t.KeepAlive),r=z(()=>_=>_.meta.transition),o=z(()=>s==null?void 0:s.configure.hideTabs),d=z(()=>s==null?void 0:s.configure.hideFooter),a=z(()=>s==null?void 0:s.configure.stretch),c=z(()=>(s==null?void 0:s.layout.layout)==="vertical"),m=z(()=>St(a.value)?a.value+"px":a.value?"1440px":"100%"),y=z(()=>[o.value&&c?"padding-top: 48px;":"",!o.value&&c?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",o.value&&!c.value?"padding-top: 48px;":"",!o.value&&!c.value?p.value=="chrome"?"padding-top: 85px;":"padding-top: 81px;":"",l.fixedHeader?"":`padding-top: 0;${o.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=ee({props:{route:{type:void 0,required:!0}},render(){var V,O,D;const _=((V=r.value(this.route))==null?void 0:V.name)||"fade-transform",L=(O=r.value(this.route))==null?void 0:O.enterTransition,b=(D=r.value(this.route))==null?void 0:D.leaveTransition;return rt(Zt,{name:L?"pure-classes-transition":_,enterActiveClass:L?`animate__animated ${L}`:void 0,leaveActiveClass:b?`animate__animated ${b}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(_,L)=>{const b=S("el-backtop"),V=S("el-scrollbar"),O=S("router-view");return f(),C("section",{class:J([u.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ae(y.value)},[h(O,null,{default:x(({Component:D,route:X})=>[h(sa,{currComp:D,currRoute:X},{default:x(({Comp:N,fullPath:$,frameInfo:B})=>[u.fixedHeader?(f(),E(V,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":m.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:x(()=>[h(b,{title:e(i)("buttons.pureBackTop"),target:".app-main .el-scrollbar__wrap"},{default:x(()=>[h(e(dn))]),_:1},8,["title"]),v("div",ua,[h(e(g),{route:X},{default:x(()=>[n.value?(f(),E(Xt,{key:0,include:e(Ce)().cachePageList},[(f(),E(Me(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(f(),E(Me(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?Y("",!0):(f(),E(tn,{key:0}))]),_:2},1032,["wrap-style"])):(f(),C("div",da,[h(e(g),{route:X},{default:x(()=>[n.value?(f(),E(Xt,{key:0,include:e(Ce)().cachePageList},[(f(),E(Me(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(f(),E(Me(N),{key:$,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!u.fixedHeader?(f(),E(tn,{key:0})):Y("",!0)],6)}}}),nn=ue(ha,[["__scopeId","data-v-5fc75f4c"]]),fa={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},pa={class:"dark:text-white"},ma={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},va=ee({__name:"index",setup(u){const l=Z(null),i=Z(!1),p=z(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-none","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{t:s}=Ze(),{onReset:t}=Dt();return an(l,n=>{n.clientX>l.value.offsetLeft||(i.value=!1)}),qe(()=>{ye.on("openPanel",()=>{i.value=!0})}),zt(()=>{ye.off("openPanel")}),(n,r)=>{const o=S("IconifyIconOffline"),d=S("el-scrollbar"),a=S("el-button"),c=Ke("tippy");return f(),C("div",{class:J({show:i.value})},[r[1]||(r[1]=v("div",{class:"right-panel-background"},null,-1)),v("div",{ref_key:"target",ref:l,class:"right-panel bg-bg_color"},[v("div",fa,[v("h4",pa,q(e(s)("panel.pureSystemSet")),1),le((f(),C("span",{class:J(p.value)},[h(o,{class:"dark:text-white",width:"18px",height:"18px",icon:e(ft),onClick:r[0]||(r[0]=m=>i.value=!i.value)},null,8,["icon"])],2)),[[c,{content:e(s)("panel.pureCloseSystemSet"),placement:"bottom-start",zIndex:41e3}]])]),h(d,null,{default:x(()=>[ht(n.$slots,"default",{},void 0,!0)]),_:3}),v("div",ma,[le((f(),E(a,{type:"danger",text:"",bg:"",onClick:e(t)},{default:x(()=>[re(q(e(s)("panel.pureClearCache")),1)]),_:1},8,["onClick"])),[[c,{content:e(s)("panel.pureClearCacheAndToLogin"),placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),ga=ue(va,[["__scopeId","data-v-6328d368"]]),ya={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"};function _a(u,l){return f(),C("svg",ya,l[0]||(l[0]=[v("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),v("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1)]))}const ba={render:_a},xa={class:"p-5"},wa={class:"theme-color"},Ca=["onClick"],ka={class:"pure-theme"},Sa={key:0},$a={class:"mt-5 font-medium text-sm dark:text-white"},Ia={class:"setting"},Ta={class:"dark:text-white"},Ma={class:"dark:text-white"},La={class:"dark:text-white"},Va={class:"dark:text-white"},Ha={class:"dark:text-white"},Aa=ee({__name:"index",setup(u){var T,H,P,te;const{t:l}=Ze(),{device:i}=Se(),{isDark:p}=cn(),{$storage:s}=it(),t=Z(),n=Z(),r=Z(),{dataTheme:o,overallStyle:d,layoutTheme:a,themeColors:c,toggleClass:m,dataThemeChange:y,setLayoutThemeColor:g}=Dt();if(e(a)){const I=e(a).layout,k=e(a).theme;document.documentElement.setAttribute("data-theme",k),Ie(I)}const _=Z((H=(T=s.configure)==null?void 0:T.showModel)!=null?H:"smart"),L=Z((te=(P=s.configure)==null?void 0:P.showLogo)!=null?te:!0),b=Lt({greyVal:s.configure.grey,weakVal:s.configure.weak,tabsVal:s.configure.hideTabs,showLogo:s.configure.showLogo,showModel:s.configure.showModel,hideFooter:s.configure.hideFooter,multiTagsCache:s.configure.multiTagsCache,stretch:s.configure.stretch}),V=z(()=>I=>({background:I})),O=z(()=>I=>!(I==="light"&&p.value));function D(I,k){const he=s.configure;he[I]=k,s.configure=he}const X=I=>{const k=document.querySelector("html");m(b.greyVal,"html-grey",k),D("grey",I)},N=I=>{const k=document.querySelector("html");m(b.weakVal,"html-weakness",k),D("weak",I)},$=()=>{const I=b.tabsVal;D("hideTabs",I),ye.emit("tagViewsChange",I)},B=()=>{const I=b.hideFooter;D("hideFooter",I)},W=()=>{const I=b.multiTagsCache;D("multiTagsCache",I),Ae().multiTagsCacheChange(I)};function se({option:I}){const{value:k}=I;_.value=k,D("showModel",k),ye.emit("tagViewsShowModel",k)}function ie(){e(L)?D("showLogo",!0):D("showLogo",!1),ye.emit("logoChange",e(L))}function R(I){I.forEach(k=>{m(!1,"is-select",e(k))})}const G=z(()=>[{label:l("panel.pureStretchFixed"),tip:l("panel.pureStretchFixedTip"),value:"fixed"},{label:l("panel.pureStretchCustom"),tip:l("panel.pureStretchCustomTip"),value:"custom"}]),ne=I=>{b.stretch=I,D("stretch",I)},xe=({option:I})=>{const{value:k}=I;ne(k==="custom"?1440:!1)},Re=z(()=>I=>I===a.value.theme&&a.value.theme!=="light"?"#fff":I===a.value.theme&&a.value.theme==="light"?"#1d2b45":"transparent"),$e=z(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),Oe=z(()=>[{label:l("panel.pureOverallStyleLight"),icon:Wn,theme:"light",tip:l("panel.pureOverallStyleLightTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:l("panel.pureOverallStyleDark"),icon:Un,theme:"dark",tip:l("panel.pureOverallStyleDarkTip"),iconAttrs:{fill:p.value?"#fff":"#000"}},{label:l("panel.pureOverallStyleSystem"),icon:ba,theme:"system",tip:l("panel.pureOverallStyleSystemTip"),iconAttrs:{fill:p.value?"#fff":"#000"}}]),Ye=z(()=>[{label:l("panel.pureTagsStyleSmart"),tip:l("panel.pureTagsStyleSmartTip"),value:"smart"},{label:l("panel.pureTagsStyleCard"),tip:l("panel.pureTagsStyleCardTip"),value:"card"},{label:l("panel.pureTagsStyleChrome"),tip:l("panel.pureTagsStyleChromeTip"),value:"chrome"}]);function Ie(I){var k,he,fe,Fe,ve;a.value.layout=I,window.document.body.setAttribute("layout",I),s.layout={layout:I,theme:a.value.theme,darkMode:(k=s.layout)==null?void 0:k.darkMode,sidebarStatus:(he=s.layout)==null?void 0:he.sidebarStatus,epThemeColor:(fe=s.layout)==null?void 0:fe.epThemeColor,themeColor:(Fe=s.layout)==null?void 0:Fe.themeColor,overallStyle:(ve=s.layout)==null?void 0:ve.overallStyle},Pe().setLayout(I)}Ve(s,({layout:I})=>{switch(I.layout){case"vertical":m(!0,"is-select",e(n)),tt(R([r]),50),tt(R([t]),50);break;case"horizontal":m(!0,"is-select",e(r)),tt(R([n]),50),tt(R([t]),50);break;case"mix":m(!0,"is-select",e(t)),tt(R([n]),50),tt(R([r]),50);break}});const Xe=window.matchMedia("(prefers-color-scheme: dark)");function Ee(){d.value==="system"&&(Xe.matches?o.value=!0:o.value=!1,y(d.value))}function Be(){Xe.removeEventListener("change",Ee)}function et(){Ee(),Be(),Xe.addEventListener("change",Ee)}return un(()=>{Ue(()=>{var I,k;et(),b.greyVal&&((I=document.querySelector("html"))==null||I.classList.add("html-grey")),b.weakVal&&((k=document.querySelector("html"))==null||k.classList.add("html-weakness")),b.tabsVal&&$(),b.hideFooter&&B()})}),Hn(()=>Be),(I,k)=>{const he=S("IconifyIconOffline"),fe=S("el-icon"),Fe=S("el-input-number"),ve=S("el-switch"),ot=Ke("tippy"),vt=Ke("ripple");return f(),E(ga,null,{default:x(()=>[v("div",xa,[v("p",{class:J($e.value)},q(e(l)("panel.pureOverallStyle")),3),h(e(xt),{resize:"",class:"select-none",modelValue:e(d)==="system"?2:e(o)?1:0,options:Oe.value,onChange:k[0]||(k[0]=j=>{j.index===1&&j.index!==2?o.value=!0:o.value=!1,d.value=j.option.theme,e(y)(j.option.theme),j.index===2&&et()})},null,8,["modelValue","options"]),v("p",{class:J(["mt-5",$e.value])},q(e(l)("panel.pureThemeColor")),3),v("ul",wa,[(f(!0),C(de,null,be(e(c),(j,w)=>le((f(),C("li",{key:w,style:ae(V.value(j.color)),onClick:M=>e(g)(j.themeColor)},[h(fe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Re.value(j.themeColor)},{default:x(()=>[h(he,{icon:e(Je)},null,8,["icon"])]),_:2},1032,["color"])],12,Ca)),[[_e,O.value(j.themeColor)]])),128))]),v("p",{class:J(["mt-5",$e.value])},q(e(l)("panel.pureLayoutModel")),3),v("ul",ka,[le((f(),C("li",{ref_key:"verticalRef",ref:n,class:J(e(a).layout==="vertical"?"is-select":""),onClick:k[1]||(k[1]=j=>Ie("vertical"))},k[13]||(k[13]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[ot,{content:e(l)("panel.pureVerticalTip"),zIndex:41e3}]]),e(i)!=="mobile"?le((f(),C("li",{key:0,ref_key:"horizontalRef",ref:r,class:J(e(a).layout==="horizontal"?"is-select":""),onClick:k[2]||(k[2]=j=>Ie("horizontal"))},k[14]||(k[14]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[ot,{content:e(l)("panel.pureHorizontalTip"),zIndex:41e3}]]):Y("",!0),e(i)!=="mobile"?le((f(),C("li",{key:1,ref_key:"mixRef",ref:t,class:J(e(a).layout==="mix"?"is-select":""),onClick:k[3]||(k[3]=j=>Ie("mix"))},k[15]||(k[15]=[v("div",null,null,-1),v("div",null,null,-1)]),2)),[[ot,{content:e(l)("panel.pureMixTip"),zIndex:41e3}]]):Y("",!0)]),e(Pe)().getViewportWidth>1280?(f(),C("span",Sa,[v("p",{class:J(["mt-5",$e.value])},q(e(l)("panel.pureStretch")),3),h(e(xt),{resize:"",class:"mb-2 select-none",modelValue:e(St)(b.stretch)?1:0,options:G.value,onChange:xe},null,8,["modelValue","options"]),e(St)(b.stretch)?(f(),E(Fe,{key:0,modelValue:b.stretch,"onUpdate:modelValue":k[4]||(k[4]=j=>b.stretch=j),min:1280,max:1600,"controls-position":"right",onChange:k[5]||(k[5]=j=>ne(j))},null,8,["modelValue"])):le((f(),C("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]",onClick:k[6]||(k[6]=j=>ne(!b.stretch))},[v("div",{class:J(["flex-bc transition-all duration-300",[b.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[h(he,{icon:b.stretch?e(It):e($t),height:"20"},null,8,["icon"]),k[16]||(k[16]=v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),h(he,{icon:b.stretch?e($t):e(It),height:"20"},null,8,["icon"])],2)])),[[vt,{class:"text-gray-300"}]])])):Y("",!0),v("p",{class:J(["mt-4",$e.value])},q(e(l)("panel.pureTagsStyle")),3),h(e(xt),{resize:"",class:"select-none",modelValue:_.value==="smart"?0:_.value==="card"?1:2,options:Ye.value,onChange:se},null,8,["modelValue","options"]),v("p",$a,q(e(l)("panel.pureInterfaceDisplay")),1),v("ul",Ia,[v("li",null,[v("span",Ta,q(e(l)("panel.pureGreyModel")),1),h(ve,{modelValue:b.greyVal,"onUpdate:modelValue":k[7]||(k[7]=j=>b.greyVal=j),"inline-prompt":"","active-text":e(l)("buttons.pureOpenText"),"inactive-text":e(l)("buttons.pureCloseText"),onChange:X},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Ma,q(e(l)("panel.pureWeakModel")),1),h(ve,{modelValue:b.weakVal,"onUpdate:modelValue":k[8]||(k[8]=j=>b.weakVal=j),"inline-prompt":"","active-text":e(l)("buttons.pureOpenText"),"inactive-text":e(l)("buttons.pureCloseText"),onChange:N},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",La,q(e(l)("panel.pureHiddenTags")),1),h(ve,{modelValue:b.tabsVal,"onUpdate:modelValue":k[9]||(k[9]=j=>b.tabsVal=j),"inline-prompt":"","active-text":e(l)("buttons.pureOpenText"),"inactive-text":e(l)("buttons.pureCloseText"),onChange:$},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Va,q(e(l)("panel.pureHiddenFooter")),1),h(ve,{modelValue:b.hideFooter,"onUpdate:modelValue":k[10]||(k[10]=j=>b.hideFooter=j),"inline-prompt":"","active-text":e(l)("buttons.pureOpenText"),"inactive-text":e(l)("buttons.pureCloseText"),onChange:B},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[k[17]||(k[17]=v("span",{class:"dark:text-white"},"Logo",-1)),h(ve,{modelValue:L.value,"onUpdate:modelValue":k[11]||(k[11]=j=>L.value=j),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":e(l)("buttons.pureOpenText"),"inactive-text":e(l)("buttons.pureCloseText"),onChange:ie},null,8,["modelValue","active-text","inactive-text"])]),v("li",null,[v("span",Ha,q(e(l)("panel.pureMultiTagsCache")),1),h(ve,{modelValue:b.multiTagsCache,"onUpdate:modelValue":k[12]||(k[12]=j=>b.multiTagsCache=j),"inline-prompt":"","active-text":e(l)("buttons.pureOpenText"),"inactive-text":e(l)("buttons.pureCloseText"),onChange:W},null,8,["modelValue","active-text","inactive-text"])])])])]),_:1})}}}),za=ue(Aa,[["__scopeId","data-v-25985161"]]),Za=["src"],Ra={class:"sidebar-title"},Oa=["src"],Ea={class:"sidebar-title"},Da=ee({__name:"SidebarLogo",props:{collapse:Boolean},setup(u){const{title:l,getLogo:i}=Se();return(p,s)=>{const t=S("router-link");return f(),C("div",{class:J(["sidebar-logo-container",{collapses:u.collapse}])},[h(Zt,{name:"sidebarLogoFade"},{default:x(()=>{var n,r,o,d;return[u.collapse?(f(),E(t,{key:"collapse",title:e(l),class:"sidebar-logo-link",to:(r=(n=e(Ct)())==null?void 0:n.path)!=null?r:"/"},{default:x(()=>[v("img",{src:e(i)(),alt:"logo"},null,8,Za),v("span",Ra,q(e(l)),1)]),_:1},8,["title","to"])):(f(),E(t,{key:"expand",title:e(l),class:"sidebar-logo-link",to:(d=(o=e(Ct)())==null?void 0:o.path)!=null?d:"/"},{default:x(()=>[v("img",{src:e(i)(),alt:"logo"},null,8,Oa),v("span",Ea,q(e(l)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Pa=ue(Da,[["__scopeId","data-v-4dd8e86d"]]);var wt,on;function qa(){if(on)return wt;on=1;function u(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function l(s,t){for(var n="",r=0,o=-1,d=0,a,c=0;c<=s.length;++c){if(c<s.length)a=s.charCodeAt(c);else{if(a===47)break;a=47}if(a===47){if(!(o===c-1||d===1))if(o!==c-1&&d===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var m=n.lastIndexOf("/");if(m!==n.length-1){m===-1?(n="",r=0):(n=n.slice(0,m),r=n.length-1-n.lastIndexOf("/")),o=c,d=0;continue}}else if(n.length===2||n.length===1){n="",r=0,o=c,d=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+s.slice(o+1,c):n=s.slice(o+1,c),r=c-o-1;o=c,d=0}else a===46&&d!==-1?++d:d=-1}return n}function i(s,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+s+r:r}var p={resolve:function(){for(var t="",n=!1,r,o=arguments.length-1;o>=-1&&!n;o--){var d;o>=0?d=arguments[o]:(r===void 0&&(r=process.cwd()),d=r),u(d),d.length!==0&&(t=d+"/"+t,n=d.charCodeAt(0)===47)}return t=l(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(u(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=l(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return u(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];u(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":p.normalize(t)},relative:function(t,n){if(u(t),u(n),t===n||(t=p.resolve(t),n=p.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var o=t.length,d=o-r,a=1;a<n.length&&n.charCodeAt(a)===47;++a);for(var c=n.length,m=c-a,y=d<m?d:m,g=-1,_=0;_<=y;++_){if(_===y){if(m>y){if(n.charCodeAt(a+_)===47)return n.slice(a+_+1);if(_===0)return n.slice(a+_)}else d>y&&(t.charCodeAt(r+_)===47?g=_:_===0&&(g=0));break}var L=t.charCodeAt(r+_),b=n.charCodeAt(a+_);if(L!==b)break;L===47&&(g=_)}var V="";for(_=r+g+1;_<=o;++_)(_===o||t.charCodeAt(_)===47)&&(V.length===0?V+="..":V+="/..");return V.length>0?V+n.slice(a+g):(a+=g,n.charCodeAt(a)===47&&++a,n.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(u(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,o=-1,d=!0,a=t.length-1;a>=1;--a)if(n=t.charCodeAt(a),n===47){if(!d){o=a;break}}else d=!1;return o===-1?r?"/":".":r&&o===1?"//":t.slice(0,o)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');u(t);var r=0,o=-1,d=!0,a;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var c=n.length-1,m=-1;for(a=t.length-1;a>=0;--a){var y=t.charCodeAt(a);if(y===47){if(!d){r=a+1;break}}else m===-1&&(d=!1,m=a+1),c>=0&&(y===n.charCodeAt(c)?--c===-1&&(o=a):(c=-1,o=m))}return r===o?o=m:o===-1&&(o=t.length),t.slice(r,o)}else{for(a=t.length-1;a>=0;--a)if(t.charCodeAt(a)===47){if(!d){r=a+1;break}}else o===-1&&(d=!1,o=a+1);return o===-1?"":t.slice(r,o)}},extname:function(t){u(t);for(var n=-1,r=0,o=-1,d=!0,a=0,c=t.length-1;c>=0;--c){var m=t.charCodeAt(c);if(m===47){if(!d){r=c+1;break}continue}o===-1&&(d=!1,o=c+1),m===46?n===-1?n=c:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||o===-1||a===0||a===1&&n===o-1&&n===r+1?"":t.slice(n,o)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return i("/",t)},parse:function(t){u(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),o=r===47,d;o?(n.root="/",d=1):d=0;for(var a=-1,c=0,m=-1,y=!0,g=t.length-1,_=0;g>=d;--g){if(r=t.charCodeAt(g),r===47){if(!y){c=g+1;break}continue}m===-1&&(y=!1,m=g+1),r===46?a===-1?a=g:_!==1&&(_=1):a!==-1&&(_=-1)}return a===-1||m===-1||_===0||_===1&&a===m-1&&a===c+1?m!==-1&&(c===0&&o?n.base=n.name=t.slice(1,m):n.base=n.name=t.slice(c,m)):(c===0&&o?(n.name=t.slice(1,a),n.base=t.slice(1,m)):(n.name=t.slice(c,a),n.base=t.slice(c,m)),n.ext=t.slice(a,m)),c>0?n.dir=t.slice(0,c-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return p.posix=p,wt=p,wt}var Ba=qa();const Fa=ee({__name:"SidebarLinkItem",props:{to:{}},setup(u){const l=u,i=z(()=>An(l.to.name)),p=s=>i.value?{href:s.name,target:"_blank",rel:"noopener"}:{to:s};return(s,t)=>(f(),E(Me(i.value?"a":"router-link"),zn(Zn(p(s.to))),{default:x(()=>[ht(s.$slots,"default")]),_:3},16))}}),Na={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"/>'},Wa={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"/>'},Ua={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"/>'},Ka={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"/>'},mn=ee({__name:"SidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(u){const l=Rn(),{layout:i,isCollapse:p,tooltipEffect:s,getDivStyle:t}=Se(),n=u,r=z(()=>({width:"100%",display:"flex",alignItems:"center"})),o=z(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:i.value==="horizontal"?"0 5px 0 0":p.value?"0 auto":"0 5px 0 0"})),d=z(()=>{var y;return(y=je())!=null&&y.MenuArrowIconNoTransition?{"expand-close-icon":He(Wa),"expand-open-icon":He(Na),"collapse-close-icon":He(Ka),"collapse-open-icon":He(Ua)}:""}),a=Z(null);function c(y=[],g){var L,b;const _=y.filter(V=>(a.value=V,!0));return(b=(L=_[0])==null?void 0:L.meta)!=null&&b.showParent?!1:_.length===1?!0:_.length===0?(a.value=yt(gt({},g),{path:"",noShowingChildren:!0}),!0):!1}function m(y){const g=/^http(s?):\/\//;return g.test(y)||g.test(n.basePath)?y||n.basePath:Ba.posix.resolve(n.basePath,y)}return(y,g)=>{const _=S("el-text"),L=S("el-menu-item"),b=S("sidebar-item",!0),V=S("el-sub-menu");return c(u.item.children,u.item)&&(!a.value.children||a.value.noShowingChildren)?(f(),E(Fa,{key:0,to:u.item},{default:x(()=>[h(L,jt({index:m(a.value.path),class:{"submenu-title-noDropdown":!u.isNest},style:r.value},e(l)),{title:x(()=>[v("div",{style:ae(e(t))},[h(e(Gt),{tippyProps:{offset:[0,-10],theme:e(s)},class:"!w-full !text-inherit"},{default:x(()=>[re(q(e(Le)(a.value.meta.title)),1)]),_:1},8,["tippyProps"]),h(Mt,{extraIcon:a.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:x(()=>{var O,D,X,N,$;return[ke(u.item.meta.icon)?(f(),C("div",{key:0,class:"sub-menu-icon",style:ae(o.value)},[(f(),E(Me(e(He)(ke(a.value.meta.icon)||u.item.meta&&ke(u.item.meta.icon)))))],4)):Y("",!0),!((O=u.item)!=null&&O.meta.icon)&&e(p)&&e(i)==="vertical"&&((X=(D=u.item)==null?void 0:D.pathList)==null?void 0:X.length)===1||!a.value.meta.icon&&e(p)&&e(i)==="mix"&&(($=(N=u.item)==null?void 0:N.pathList)==null?void 0:$.length)===2?(f(),E(_,{key:1,truncated:"",class:"!w-full !pl-4 !text-inherit"},{default:x(()=>[re(q(e(Le)(a.value.meta.title)),1)]),_:1})):Y("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(f(),E(V,jt({key:1,ref:"subMenu",teleported:"",index:m(u.item.path)},d.value),{title:x(()=>{var O,D;return[ke(u.item.meta.icon)?(f(),C("div",{key:0,style:ae(o.value),class:"sub-menu-icon"},[(f(),E(Me(e(He)(u.item.meta&&ke(u.item.meta.icon)))))],4)):Y("",!0),(e(i)==="mix"&&ke(u.item.meta.icon)?!e(p)||((D=(O=u.item)==null?void 0:O.pathList)==null?void 0:D.length)!==2:!(e(i)==="vertical"&&e(p)&&ke(u.item.meta.icon)&&u.item.parentId===null))?(f(),E(e(Gt),{key:1,tippyProps:{offset:[0,-10],theme:e(s)},class:J({"!w-full":!0,"!text-inherit":!0,"!pl-4":e(i)!=="horizontal"&&e(p)&&!ke(u.item.meta.icon)&&u.item.parentId===null})},{default:x(()=>[re(q(e(Le)(u.item.meta.title)),1)]),_:1},8,["tippyProps","class"])):Y("",!0),e(p)?Y("",!0):(f(),E(Mt,{key:2,extraIcon:u.item.meta.extraIcon},null,8,["extraIcon"]))]}),default:x(()=>[(f(!0),C(de,null,be(u.item.children,O=>(f(),E(b,{key:O.path,"is-nest":!0,item:O,"base-path":m(O.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Ya={class:"left-collapse"},Xa=ee({__name:"SidebarLeftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(u,{emit:l}){const{t:i}=Ze(),{tooltipEffect:p}=Se(),s=z(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:t}=it(),n=z(()=>{var d;return(d=t.layout)==null?void 0:d.themeColor}),r=l,o=()=>{r("toggleClick")};return(d,a)=>{const c=S("IconifyIconOffline"),m=Ke("tippy");return f(),C("div",Ya,[le(h(c,{icon:e(Fn),class:J([s.value,n.value==="light"?"":"text-primary"]),style:ae({transform:d.isActive?"none":"rotateY(180deg)"}),onClick:o},null,8,["icon","class","style"]),[[m,{content:d.isActive?e(i)("buttons.pureClickCollapse"):e(i)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])])}}}),ja=ue(Xa,[["__scopeId","data-v-b883211c"]]),Ga={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"/>'},Qa=ee({__name:"SidebarCenterCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(u,{emit:l}){const{t:i}=Ze(),{tooltipEffect:p}=Se(),s=z(()=>["w-[16px]","h-[16px]"]),{$storage:t}=it(),n=z(()=>{var d;return(d=t.layout)==null?void 0:d.themeColor}),r=l,o=()=>{r("toggleClick")};return(d,a)=>{const c=S("IconifyIconOffline"),m=Ke("tippy");return le((f(),C("div",{class:"center-collapse",onClick:o},[h(c,{icon:e(Ga),class:J([s.value,n.value==="light"?"":"text-primary"]),style:ae({transform:d.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[m,{content:d.isActive?e(i)("buttons.pureClickCollapse"):e(i)("buttons.pureClickExpand"),theme:e(p),hideOnClick:"toggle",placement:"right"}]])}}}),Ja=ue(Qa,[["__scopeId","data-v-1c646820"]]),es=ee({__name:"NavVertical",setup(u){var _,L;const l=At(),i=Z(!1),p=Z((L=(_=ze().getItem(`${nt()}configure`))==null?void 0:_.showLogo)!=null?L:!0),{device:s,pureApp:t,isCollapse:n,tooltipEffect:r,menuSelect:o,toggleSideBar:d}=Se(),a=Z([]),c=z(()=>t.layout==="mix"&&s.value!=="mobile"?a.value:Ce().wholeMenus),m=z(()=>t.layout==="mix"?!1:c.value.length===0),y=z(()=>{var b;return Qe((b=l.meta)==null?void 0:b.activePath)?l.path:l.meta.activePath});function g(){let b="";b=y.value,a.value=[];const V=Rt(b,Ce().wholeMenus),O=dt(V[0]||b,Ce().wholeMenus);O!=null&&O.children&&(a.value=O==null?void 0:O.children)}return Ve(()=>[l.path,Ce().wholeMenus],()=>{l.path.includes("/redirect")||(g(),o(l.path))}),qe(()=>{g(),ye.on("logoChange",b=>{p.value=b})}),zt(()=>{ye.off("logoChange")}),(b,V)=>{const O=S("el-menu"),D=S("el-scrollbar"),X=Ke("loading");return le((f(),C("div",{class:J(["sidebar-container",p.value?"has-logo":"no-logo"]),onMouseenter:V[0]||(V[0]=Te(N=>i.value=!0,["prevent"])),onMouseleave:V[1]||(V[1]=Te(N=>i.value=!1,["prevent"]))},[p.value?(f(),E(Pa,{key:0,collapse:e(n)},null,8,["collapse"])):Y("",!0),h(D,{"wrap-class":"scrollbar-wrapper",class:J([e(s)==="mobile"?"mobile":"pc"])},{default:x(()=>[h(O,{"unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:e(n),"collapse-transition":!1,"popper-effect":e(r),"default-active":y.value},{default:x(()=>[(f(!0),C(de,null,be(c.value,N=>(f(),E(mn,{key:N.path,item:N,"base-path":N.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),e(s)!=="mobile"&&(i.value||e(n))?(f(),E(Ja,{key:1,"is-active":e(t).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):Y("",!0),e(s)!=="mobile"?(f(),E(ja,{key:2,"is-active":e(t).sidebar.opened,onToggleClick:e(d)},null,8,["is-active","onToggleClick"])):Y("",!0)],34)),[[X,m.value]])}}}),ts=ue(es,[["__scopeId","data-v-f94a3619"]]),ns={class:"horizontal-header"},os=["src"],ls={class:"horizontal-header-right"},as={class:"check-zh"},ss={class:"check-en"},rs={class:"el-dropdown-link navbar-bg-hover"},is=["src"],cs={key:0,class:"dark:text-white"},us=["title"],ds=ee({__name:"NavHorizontal",setup(u){var D,X;const l=Z(),i=Z((X=(D=ze().getItem(`${nt()}configure`))==null?void 0:D.showLogo)!=null?X:!0),{t:p,route:s,locale:t,translationCh:n,translationEn:r}=Ot(l),{title:o,logout:d,onPanel:a,getLogo:c,username:m,userAvatar:y,backTopMenu:g,avatarsStyle:_,toAccountSettings:L,getDropdownItemStyle:b,getDropdownItemClass:V}=Se(),O=z(()=>{var N;return Qe((N=s.meta)==null?void 0:N.activePath)?s.path:s.meta.activePath});return Ue(()=>{var N;(N=l.value)==null||N.handleResize()}),qe(()=>{ye.on("logoChange",N=>{i.value=N})}),(N,$)=>{const B=S("el-menu"),W=S("IconifyIconOffline"),se=S("el-dropdown-item"),ie=S("el-dropdown-menu"),R=S("el-dropdown"),G=Ke("loading");return le((f(),C("div",ns,[i.value?(f(),C("div",{key:0,class:"horizontal-header-left",onClick:$[0]||($[0]=(...ne)=>e(g)&&e(g)(...ne))},[v("img",{src:e(c)(),alt:"logo"},null,8,os),v("span",null,q(e(o)),1)])):Y("",!0),h(B,{ref_key:"menuRef",ref:l,mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":O.value},{default:x(()=>[(f(!0),C(de,null,be(e(Ce)().wholeMenus,ne=>(f(),E(mn,{key:ne.path,item:ne,"base-path":ne.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",ls,[h(qt,{id:"header-search"}),h(R,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[h(ie,{class:"translation"},{default:x(()=>[h(se,{style:ae(e(b)(e(t),"zh")),class:J(["dark:!text-white",e(V)(e(t),"zh")]),onClick:e(n)},{default:x(()=>[le(v("span",as,[h(W,{icon:e(Je)},null,8,["icon"])],512),[[_e,e(t)==="zh"]]),$[2]||($[2]=re(" 简体中文 "))]),_:1},8,["style","class","onClick"]),h(se,{style:ae(e(b)(e(t),"en")),class:J(["dark:!text-white",e(V)(e(t),"en")]),onClick:e(r)},{default:x(()=>[le(v("span",ss,[h(W,{icon:e(Je)},null,8,["icon"])],512),[[_e,e(t)==="en"]]),$[3]||($[3]=re(" English "))]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[h(e(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Ft,{id:"full-screen"}),h(Bt,{id:"header-notice"}),h(R,{trigger:"click"},{dropdown:x(()=>[h(se,{onClick:e(L)},{default:x(()=>[h(W,{icon:e(Nt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureAccountSettings")),1)]),_:1},8,["onClick"]),h(ie,{class:"logout"},{default:x(()=>[h(se,{onClick:e(d)},{default:x(()=>[h(W,{icon:e(Wt),style:{margin:"5px"}},null,8,["icon"]),re(" "+q(e(p)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",rs,[v("img",{src:e(y),style:ae(e(_))},null,12,is),e(m)?(f(),C("p",cs,q(e(m)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:e(p)("buttons.pureOpenSystemSet"),onClick:$[1]||($[1]=(...ne)=>e(a)&&e(a)(...ne))},[h(W,{icon:e(mt)},null,8,["icon"])],8,us)])])),[[G,e(Ce)().wholeMenus.length===0]])}}}),hs=ue(ds,[["__scopeId","data-v-3bf860c7"]]),fs={key:0},ps=ee({__name:"index",setup(u){const{t:l}=Ze(),i=Z(),{isDark:p}=cn(),{layout:s}=Kn(),t=rn(),n=Pt(),{$storage:r}=it(),o=Lt({sidebar:z(()=>Pe().sidebar),device:z(()=>Pe().device),fixedHeader:z(()=>n.fixedHeader),classes:z(()=>({hideSidebar:!o.sidebar.opened,openSidebar:o.sidebar.opened,withoutAnimation:o.sidebar.withoutAnimation,mobile:o.device==="mobile"})),hideTabs:z(()=>r==null?void 0:r.configure.hideTabs)});function d(y){var g,_,L,b,V,O;window.document.body.setAttribute("layout",y),r.layout={layout:`${y}`,theme:(g=r.layout)==null?void 0:g.theme,darkMode:(_=r.layout)==null?void 0:_.darkMode,sidebarStatus:(L=r.layout)==null?void 0:L.sidebarStatus,epThemeColor:(b=r.layout)==null?void 0:b.epThemeColor,themeColor:(V=r.layout)==null?void 0:V.themeColor,overallStyle:(O=r.layout)==null?void 0:O.overallStyle}}function a(y,g){Pe().toggleDevice(y),Pe().toggleSideBar(g,"resize")}let c=!0;pt(i,y=>{if(t)return;const g=y[0],[{inlineSize:_,blockSize:L}]=g.borderBoxSize;Pe().setViewportSize({width:_,height:L}),_<=760?d("vertical"):d(Pe().layout),_>0&&_<=760?(a("mobile",!1),c=!0):_>760&&_<=990?c&&(a("desktop",!1),c=!1):_>990&&!o.sidebar.isClickCollapse?(a("desktop",!0),c=!0):(a("desktop",!1),c=!1)}),qe(()=>{t&&a("mobile",!1)}),un(()=>{var y;Dt().dataThemeChange((y=r.layout)==null?void 0:y.overallStyle)});const m=ee({name:"LayHeader",render(){return rt("div",{class:{"fixed-header":o.fixedHeader},style:[o.hideTabs&&s.value.includes("horizontal")?p.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!n.hiddenSideBar&&(s.value.includes("vertical")||s.value.includes("mix"))?rt(oa):null,!n.hiddenSideBar&&s.value.includes("horizontal")?rt(hs):null,rt(No)]})}});return(y,g)=>{const _=S("el-backtop"),L=S("el-scrollbar");return f(),C("div",{ref_key:"appWrapperRef",ref:i,class:J(["app-wrapper",o.classes])},[le(v("div",{class:"app-mask",onClick:g[0]||(g[0]=b=>e(Pe)().toggleSideBar())},null,512),[[_e,o.device==="mobile"&&o.sidebar.opened&&e(s).includes("vertical")]]),le(h(ts,null,null,512),[[_e,!e(n).hiddenSideBar&&(e(s).includes("vertical")||e(s).includes("mix"))]]),v("div",{class:J(["main-container",e(n).hiddenSideBar?"main-hidden":""])},[o.fixedHeader?(f(),C("div",fs,[h(e(m)),h(nn,{"fixed-header":o.fixedHeader},null,8,["fixed-header"])])):(f(),E(L,{key:1},{default:x(()=>[h(_,{title:e(l)("buttons.pureBackTop"),target:".main-container .el-scrollbar__wrap"},{default:x(()=>[h(e(dn))]),_:1},8,["title"]),h(e(m)),h(nn,{"fixed-header":o.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),h(za)],2)}}}),Os=ue(ps,[["__scopeId","data-v-6b7a8a68"]]);export{Os as default};