File: /var/www/html/public/static/js/index-d618c6a0.js
import{bl as fn,v as $e,F as pn,L as Je,bg as We,ab as hn,b7 as Ot,bc as Ke,bW as mn,bX as nt,bY as De,s as gt,bm as _n,bZ as yt,b_ as Ut,bh as vn,b$ as Qe,c0 as gn}from"./message-2472a54a.js";import{b as He}from"./index-9676aad5.js";import{d as yn}from"./admin-line-820c5ef1.js";import{d as bn}from"./git-branch-line-94a7fefb.js";import{e as Pe}from"./mitt-7f99bbc0.js";import{u as ze,a as bt,d as et,g as Wt,b as wn,t as kn,c as Re,e as xn,f as Cn,h as In}from"./dark-4b4e30af.js";import{i as Gt,c as Sn,n as $n,t as wt,e as zn,f as Tn,g as Mn,j as Ln,k as On,l as En,m as ye,o as Qt,p as we,q as kt,v as ot,w as Se,$ as ge,x as pt,y as Vn,r as Kt,z as An,A as Pn}from"./index-92e94a19.js";import{b as Ae}from"./index-b7f916e1.js";import{getRoleWeb as Hn,getManagerClinicsListWeb as Dn,getAuthUserInfo as Rn,setDefaultClinicsWeb as Fn}from"./po-64f1a67e.js";import{u as st,d as xt}from"./vue-router-a383d220.js";import{u as qn}from"./vue-i18n.runtime.esm-bundler-6949bcab.js";import{u as jn}from"./epTheme-d2f6022a.js";import{u as Fe}from"./hooks-925dc7bd.js";import{w as Te,r as D,e as d,f as T,g as v,d as le,c as Q,F as ve,I as be,j as se,u as o,l as A,q as je,x as X,y as f,Q as w,v as ee,s as Nn,G as Ge,m as y,i as Ct,t as Y,o as Ye,_ as lt,p as _e,Z as Ie,n as de,A as qe,b5 as It,b4 as St,L as Bn,a_ as $t,P as Xe,aI as Et,h as Un,J as Wn}from"./runtime-core.esm-bundler-6128546f.js";import{_ as me}from"./_plugin-vue_export-helper-c27b6911.js";import{d as Yt}from"./search-cc37b371.js";import{o as Gn}from"./index-81e4a901.js";import{a as Qn}from"./avatarn-8bf3edc0.js";import{c as Kn}from"./_commonjsHelpers-87174ba5.js";import"./preload-helper-78dc9057.js";import"./utils-2ab4f76a.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function Be(t){var e;const n=Tn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const rt=Gt?window:void 0,Yn=Gt?window.document:void 0;function Ue(...t){let e,n,a,i;if(Sn(t[0])||Array.isArray(t[0])?([n,a,i]=t,e=rt):[e,n,a,i]=t,!e)return $n;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const l=[],r=()=>{l.forEach(p=>p()),l.length=0},h=(p,_,c)=>(p.addEventListener(_,c,i),()=>p.removeEventListener(_,c,i)),m=Te(()=>Be(e),p=>{r(),p&&l.push(...n.flatMap(_=>a.map(c=>h(p,_,c))))},{immediate:!0,flush:"post"}),g=()=>{m(),r()};return wt(g),g}function Jn(t,e,n={}){const{window:a=rt,ignore:i,capture:l=!0,detectIframe:r=!1}=n;if(!a)return;let h=!0,m;const g=b=>{a.clearTimeout(m);const $=Be(t);if(!(!$||$===b.target||b.composedPath().includes($))){if(!h){h=!0;return}e(b)}},p=b=>i&&i.some($=>{const L=Be($);return L&&(b.target===L||b.composedPath().includes(L))}),_=[Ue(a,"click",g,{passive:!0,capture:l}),Ue(a,"pointerdown",b=>{const $=Be(t);$&&(h=!b.composedPath().includes($)&&!p(b))},{passive:!0}),Ue(a,"pointerup",b=>{if(b.button===0){const $=b.composedPath();b.composedPath=()=>$,m=a.setTimeout(()=>g(b),50)}},{passive:!0}),r&&Ue(a,"blur",b=>{var $;const L=Be(t);(($=a.document.activeElement)==null?void 0:$.tagName)==="IFRAME"&&!(L!=null&&L.contains(a.document.activeElement))&&e(b)})].filter(Boolean);return()=>_.forEach(b=>b())}const Xn=t=>typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0;function ht(...t){let e,n,a={};t.length===3?(e=t[0],n=t[1],a=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,n=t[0],a=t[1]):(e=t[0],n=t[1]):(e=!0,n=t[0]);const{target:i=rt,eventName:l="keydown",passive:r=!1}=a,h=Xn(e);return Ue(i,l,g=>{h(g)&&n(g)},r)}function Jt(t,e=!1){const n=D(),a=()=>n.value=Boolean(t());return a(),Mn(a,e),n}const mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_t="__vueuse_ssr_handlers__";mt[_t]=mt[_t]||{};mt[_t];var Vt=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,to=(t,e)=>{var n={};for(var a in t)Zn.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&Vt)for(var a of Vt(t))e.indexOf(a)<0&&eo.call(t,a)&&(n[a]=t[a]);return n};function no(t,e,n={}){const a=n,{window:i=rt}=a,l=to(a,["window"]);let r;const h=Jt(()=>i&&"ResizeObserver"in i),m=()=>{r&&(r.disconnect(),r=void 0)},g=Te(()=>Be(t),_=>{m(),h.value&&i&&_&&(r=new ResizeObserver(e),r.observe(_,l))},{immediate:!0,flush:"post"}),p=()=>{m(),g()};return wt(p),{isSupported:h,stop:p}}const At=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function oo(t,e={}){const{document:n=Yn,autoExit:a=!1}=e,i=t||(n==null?void 0:n.querySelector("html")),l=D(!1);let r=At[0];const h=Jt(()=>{if(n){for(const L of At)if(L[1]in n)return r=L,!0}else return!1;return!1}),[m,g,p,,_]=r;async function c(){h.value&&(n!=null&&n[p]&&await n[g](),l.value=!1)}async function b(){if(!h.value)return;await c();const L=Be(i);L&&(await L[m](),l.value=!0)}async function $(){l.value?await c():await b()}return n&&Ue(n,_,()=>{l.value=!!(n!=null&&n[p])},!1),a&&wt(c),{isSupported:h,isFullscreen:l,enter:b,exit:c,toggle:$}}var Pt;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Pt||(Pt={}));var ao=Object.defineProperty,Ht=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable,Dt=(t,e,n)=>e in t?ao(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ro=(t,e)=>{for(var n in e||(e={}))so.call(e,n)&&Dt(t,n,e[n]);if(Ht)for(var n of Ht(e))lo.call(e,n)&&Dt(t,n,e[n]);return t};const io={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ro({linear:zn},io);const co={width:1024,height:1024,body:'<path fill="currentColor" d="M512 128L128 447.936V896h255.936V640H640v256h255.936V447.936z"/>'},uo={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z"/>'},fo={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"/>'},po={width:1024,height:1024,body:'<path fill="currentColor" d="M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72l-166.272 96l-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96l54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0a192 192 0 0 0 384 0z"/>'},ho={width:1024,height:1024,body:'<path fill="currentColor" d="m917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3c2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4l-186.8-186.8l59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7c35.3 0 68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4c0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3L410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3c51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4l186.8 186.8l-59.4 59.4z"/>'},mo={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 0 1 6 0v1zm-2 0v-1a1 1 0 0 0-2 0v1h2z"/>'},it={width:24,height:24,body:'<path fill="currentColor" d="M3.34 17a10.018 10.018 0 0 1-.978-2.326a3 3 0 0 0 .002-5.347A9.99 9.99 0 0 1 4.865 4.99a3 3 0 0 0 4.631-2.674a9.99 9.99 0 0 1 5.007.002a3 3 0 0 0 4.632 2.672A9.99 9.99 0 0 1 20.66 7c.433.749.757 1.53.978 2.326a3 3 0 0 0-.002 5.347a9.99 9.99 0 0 1-2.501 4.337a3 3 0 0 0-4.631 2.674a9.99 9.99 0 0 1-5.007-.002a3 3 0 0 0-4.632-2.672A10.018 10.018 0 0 1 3.34 17zm5.66.196a4.993 4.993 0 0 1 2.25 2.77c.499.047 1 .048 1.499.001A4.993 4.993 0 0 1 15 17.197a4.993 4.993 0 0 1 3.525-.565c.29-.408.54-.843.748-1.298A4.993 4.993 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8.126 8.126 0 0 0-.75-1.298A4.993 4.993 0 0 1 15 6.804a4.993 4.993 0 0 1-2.25-2.77c-.499-.047-1-.048-1.499-.001A4.993 4.993 0 0 1 9 6.803a4.993 4.993 0 0 1-3.525.565a7.99 7.99 0 0 0-.748 1.298A4.993 4.993 0 0 1 6 12a4.99 4.99 0 0 1-1.273 3.334a8.126 8.126 0 0 0 .75 1.298A4.993 4.993 0 0 1 9 17.196zM12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2z"/>'};He("homeFilled",co);He("informationLine",uo);He("lollipop",fo);He("tools",po);He("api_outlined",ho);He("flUser",yn);He("role",mo);He("setting",it);He("dept",bn);const _o=Ln({id:"pure-setting",state:()=>({title:Ae().Title,fixedHeader:Ae().FixedHeader,hiddenSideBar:Ae().HiddenSideBar}),getters:{getTitle(){return this.title},getFixedHeader(){return this.fixedHeader},getHiddenSideBar(){return this.HiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){this.hasOwnProperty(t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function zt(){return _o(On)}const vo="/public/static/png/admin_icon-b3dfa887.png",go="/public/static/png/logout_icon-0b5ade2e.png",yo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},bo=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-8z"},null,-1),wo=[bo];function ko(t,e){return d(),T("svg",yo,wo)}const Xt={render:ko},xo={width:24,height:24,body:'<path fill="currentColor" d="M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1zm13 2H6v15.432l6-3.761l6 3.761V4zM8 9h8v2H8V9z"/>'},Co={class:"result"},Io=["onMouseenter"],So={class:"result-item-title"},$o=le({__name:"SearchResult",props:{value:null,options:null},emits:["update:value","enter"],setup(t,{emit:e}){const n=t,{t:a}=qn(),i=Q(()=>m=>({background:(m==null?void 0:m.path)===l.value?jn().epThemeColor:"",color:m.path===l.value?"#fff":"",fontSize:m.path===l.value?"16px":"14px"})),l=Q({get(){return n.value},set(m){e("update:value",m)}});async function r(m){l.value=m.path}function h(){e("enter")}return(m,g)=>(d(),T("div",Co,[(d(!0),T(ve,null,be(t.options,p=>{var _,c,b;return d(),T("div",{key:p.path,class:"result-item dark:bg-[#1d1d1d]",style:se(o(i)(p)),onClick:h,onMouseenter:$=>r(p)},[(d(),A(je(o(Fe)((c=(_=p.meta)==null?void 0:_.icon)!=null?c:o(xo))))),v("span",So,X(o(a)((b=p.meta)==null?void 0:b.title)),1),f(o(Xt))],44,Io)}),128))]))}});const zo=me($o,[["__scopeId","data-v-e217e6a5"]]),To={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"/>'},Mo={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"/>'},Lo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Oo=v("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2Z"},null,-1),Eo=[Oo];function Vo(t,e){return d(),T("svg",Lo,Eo)}const Ao={render:Vo},Po={class:"search-footer text-[#333] dark:text-white"},Ho={class:"search-footer-item"},Do={class:"search-footer-item"},Ro={class:"search-footer-item"},Fo=le({__name:"SearchFooter",setup(t){return(e,n)=>{const a=w("IconifyIconOffline");return d(),T("div",Po,[v("span",Ho,[f(o(Xt),{class:"icon"}),ee(" 确认 ")]),v("span",Do,[f(a,{icon:o(To),class:"icon"},null,8,["icon"]),f(a,{icon:o(Mo),class:"icon"},null,8,["icon"]),ee(" 切换 ")]),v("span",Ro,[f(o(Ao),{class:"icon"}),ee(" 关闭 ")])])}}});const qo=me(Fo,[["__scopeId","data-v-7bb0b4c8"]]),jo={class:"el-input__icon"},No={class:"search-result-container"},Bo=le({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const n=t,{device:a}=ze(),i=st(),l=D(""),r=D(""),h=D(null),m=Nn([]),g=Qt(b,300),p=Q(()=>En(fn(ye().wholeMenus))),_=Q({get(){return n.value},set(F){e("update:value",F)}});Te(_,async F=>{var C;F&&(await Ge(),(C=h.value)==null||C.focus())});function c(F){const C=[];function O(z){z.forEach(N=>{C.push(N),N.children&&O(N.children)})}return O(F),C}function b(){var C;const F=c(p.value);m.value=F.filter(O=>{var z;return l.value&&we((z=O.meta)==null?void 0:z.title).toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim())}),((C=m.value)==null?void 0:C.length)>0?r.value=m.value[0].path:r.value=""}function $(){_.value=!1,setTimeout(()=>{m.value=[],l.value=""},200)}function L(){const{length:F}=m.value;if(F===0)return;const C=m.value.findIndex(O=>O.path===r.value);C===0?r.value=m.value[F-1].path:r.value=m.value[C-1].path}function E(){const{length:F}=m.value;if(F===0)return;const C=m.value.findIndex(O=>O.path===r.value);C+1===F?r.value=m.value[0].path:r.value=m.value[C+1].path}function j(){const{length:F}=m.value;F===0||r.value===""||(i.push(r.value),$())}return ht("Enter",j),ht("ArrowUp",L),ht("ArrowDown",E),(F,C)=>{const O=w("IconifyIconOffline"),z=w("el-input"),N=w("el-empty"),J=w("el-dialog");return d(),A(J,{top:"5vh",width:o(a)==="mobile"?"80vw":"50vw",modelValue:o(_),"onUpdate:modelValue":C[2]||(C[2]=G=>Ct(_)?_.value=G:null),"before-close":$},{footer:y(()=>[f(qo)]),default:y(()=>[f(z,{ref_key:"inputRef",ref:h,modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=G=>l.value=G),clearable:"",placeholder:"请输入关键词搜索",onInput:o(g)},{prefix:y(()=>[v("span",jo,[f(O,{icon:o(Yt)},null,8,["icon"])])]),_:1},8,["modelValue","onInput"]),v("div",No,[o(m).length===0?(d(),A(N,{key:0,description:"暂无搜索结果"})):(d(),A(zo,{key:1,value:r.value,"onUpdate:value":C[1]||(C[1]=G=>r.value=G),options:o(m),onClick:j},null,8,["value","options"]))])]),_:1},8,["width","modelValue"])}}});const Uo=me(Bo,[["__scopeId","data-v-6b7d67f4"]]);function Wo(t=!1){const e=D(t);function n(r){e.value=r}function a(){n(!0)}function i(){n(!1)}function l(){n(!e.value)}return{bool:e,setBool:n,setTrue:a,setFalse:i,toggle:l}}const Zt=le({__name:"index",setup(t){const{bool:e,toggle:n}=Wo();function a(){n()}return(i,l)=>{const r=w("IconifyIconOffline");return d(),T(ve,null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[f(r,{icon:o(Yt)},null,8,["icon"])]),f(o(Uo),{value:o(e),"onUpdate:value":l[0]||(l[0]=h=>Ct(e)?e.value=h:null)},null,8,["value"])],64)}}}),Rt=[{key:"1",name:"通知",list:[]},{key:"2",name:"消息",list:[]},{key:"3",name:"代办",list:[]}],Go={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Qo={class:"notice-container-text"},Ko={class:"notice-text-title text-[#000000d9] dark:text-white"},Yo={class:"notice-text-datetime text-[#00000073] dark:text-white"},Jo=le({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=D(null),a=D(!1),i=D(null),l=D(!1),{tooltipEffect:r}=ze();function h(){Ge(()=>{var g,p;((g=n.value)==null?void 0:g.scrollWidth)>((p=n.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function m(g,p){const _=document.createElement("span");_.innerText=p,_.className="getDescriptionWidth",document.querySelector("body").appendChild(_);const c=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=g.target.offsetWidth;c>2*b?l.value=!0:l.value=!1}return(g,p)=>{var $,L;const _=w("el-avatar"),c=w("el-tooltip"),b=w("el-tag");return d(),T("div",Go,[e.noticeItem.avatar?(d(),A(_,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),v("div",Qo,[v("div",Ko,[f(c,{"popper-class":"notice-title-popper",effect:o(r),disabled:!a.value,content:e.noticeItem.title,placement:"top-start"},{default:y(()=>[v("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:h},X(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content"]),($=e.noticeItem)!=null&&$.extra?(d(),A(b,{key:0,type:(L=e.noticeItem)==null?void 0:L.status,size:"small",class:"notice-title-extra"},{default:y(()=>{var E;return[ee(X((E=e.noticeItem)==null?void 0:E.extra),1)]}),_:1},8,["type"])):Y("",!0)]),f(c,{"popper-class":"notice-title-popper",effect:o(r),disabled:!l.value,content:e.noticeItem.description,placement:"top-start"},{default:y(()=>[v("div",{ref_key:"descriptionRef",ref:i,class:"notice-text-description",onMouseover:p[0]||(p[0]=E=>m(E,e.noticeItem.description))},X(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",Yo,X(e.noticeItem.datetime),1)])])}}});const Xo=me(Jo,[["__scopeId","data-v-d7ad69f1"]]),Zo={key:0},ea=le({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const i=w("el-empty");return e.list.length?(d(),T("div",Zo,[(d(!0),T(ve,null,be(e.list,(l,r)=>(d(),A(Xo,{noticeItem:l,key:r},null,8,["noticeItem"]))),128))])):(d(),A(i,{key:1,description:"暂无数据"}))}}}),ta={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"/>'},na={class:"dropdown-badge navbar-bg-hover select-none"},oa={class:"header-notice-icon"},aa={class:"noticeList-container"},sa=le({__name:"index",setup(t){const e=D(0),n=D(Rt),a=D(Rt[0].key);return n.value.map(i=>e.value+=i.list.length),(i,l)=>{const r=w("IconifyIconOffline"),h=w("el-badge"),m=w("el-scrollbar"),g=w("el-tab-pane"),p=w("el-tabs"),_=w("el-dropdown-menu"),c=w("el-dropdown");return d(),A(c,{trigger:"click",placement:"bottom-end"},{dropdown:y(()=>[f(_,null,{default:y(()=>[f(p,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=b=>a.value=b),class:"dropdown-tabs"},{default:y(()=>[(d(!0),T(ve,null,be(n.value,b=>(d(),A(g,{key:b.key,label:`${b.name}(${b.list.length})`,name:`${b.key}`},{default:y(()=>[f(m,{"max-height":"330px"},{default:y(()=>[v("div",aa,[f(ea,{list:b.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:y(()=>[v("span",na,[f(h,{value:e.value,max:99},{default:y(()=>[v("span",oa,[f(r,{icon:o(ta)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const en=me(sa,[["__scopeId","data-v-5c37c90c"]]),la={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"/>'},ct=la,ra={key:0,class:"horizontal-header"},ia={class:"select-none"},ca={class:"horizontal-header-right"},ua={class:"check-zh"},da={class:"check-en"},fa={class:"el-dropdown-link navbar-bg-hover select-none"},pa={key:0,class:"dark:text-white"},ha=["title"],ma=le({__name:"mixNav",setup(t){const e=D(),n=D(null),{t:a,route:i,locale:l,translationCh:r,translationEn:h}=bt(e),{device:m,routers:g,logout:p,onPanel:_,menuSelect:c,resolvePath:b,username:$,avatarsStyle:L,getDropdownItemStyle:E,getDropdownItemClass:j}=ze();function F(C){var N,J;const O=ye().wholeMenus,z=kt(C,O)[0];n.value=(J=(N=ot(z,O))==null?void 0:N.children[0])==null?void 0:J.path}return Ye(()=>{F(i.path)}),Ge(()=>{var C;(C=e.value)==null||C.handleResize()}),Te(()=>[i.path,ye().wholeMenus],()=>{F(i.path)}),(C,O)=>{const z=w("FontIcon"),N=w("el-menu-item"),J=w("el-menu"),G=w("IconifyIconOffline"),ie=w("el-dropdown-item"),S=w("el-dropdown-menu"),ce=w("el-dropdown"),ae=lt("loading");return o(m)!=="mobile"?_e((d(),T("div",ra,[f(J,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":n.value,onSelect:O[0]||(O[0]=q=>o(c)(q,o(g)))},{default:y(()=>[(d(!0),T(ve,null,be(o(ye)().wholeMenus,q=>(d(),A(N,{key:q.path,index:o(b)(q)||q.redirect},{title:y(()=>[Ie(q.meta.icon)?(d(),T("div",{key:0,class:de(["sub-menu-icon",q.meta.icon])},[(d(),A(je(o(Fe)(q.meta&&Ie(q.meta.icon)))))],2)):Y("",!0),v("span",ia,X(o(we)(q.meta.title)),1),q.meta.extraIcon?(d(),A(z,{key:1,width:"30px",height:"30px",style:{position:"absolute",right:"10px"},icon:q.meta.extraIcon.name,svg:!!q.meta.extraIcon.svg},null,8,["icon","svg"])):Y("",!0)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",ca,[f(Zt),f(en,{id:"header-notice"}),f(ce,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[f(S,{class:"translation"},{default:y(()=>[f(ie,{style:se(o(E)(o(l),"zh")),class:de(["dark:!text-white",o(j)(o(l),"zh")]),onClick:o(r)},{default:y(()=>[_e(v("span",ua,[f(G,{icon:o(et)},null,8,["icon"])],512),[[$e,o(l)==="zh"]]),ee(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(ie,{style:se(o(E)(o(l),"en")),class:de(["dark:!text-white",o(j)(o(l),"en")]),onClick:o(h)},{default:y(()=>[_e(v("span",da,[f(G,{icon:o(et)},null,8,["icon"])],512),[[$e,o(l)==="en"]]),ee(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[f(o(Wt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),f(ce,{trigger:"click"},{dropdown:y(()=>[f(S,{class:"logout"},{default:y(()=>[f(ie,{onClick:o(p)},{default:y(()=>[f(G,{icon:o(ct),style:{margin:"5px"}},null,8,["icon"]),ee(" "+X(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[v("span",fa,[v("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:se(o(L))},null,4),o($)?(d(),T("p",pa,X(o($)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.hssystemSet"),onClick:O[1]||(O[1]=(...q)=>o(_)&&o(_)(...q))},[f(G,{icon:o(it)},null,8,["icon"])],8,ha)])])),[[ae,o(ye)().wholeMenus.length===0]]):Y("",!0)}}});const _a=me(ma,[["__scopeId","data-v-321f4ccb"]]),va=["onClick"],ga=le({__name:"breadCrumb",setup(t){const e=xt(),n=D([]),a=st(),i=a.options.routes,l=Se().multiTags,r=g=>{const p=g&&g.name;return p?p.trim().toLocaleLowerCase()==="Welcome".toLocaleLowerCase():!1},h=()=>{let g;Object.keys(e.query).length>0?l.forEach(c=>{We(e.query,c==null?void 0:c.query)&&(g=Ie(c))}):Object.keys(e.params).length>0?l.forEach(c=>{We(e.params,c==null?void 0:c.params)&&(g=Ie(c))}):g=ot(a.currentRoute.value.path,l);const p=kt(a.currentRoute.value.path,i);let _=[];p.forEach(c=>{c!=="/"&&_.push(ot(c,i))}),(g==null?void 0:g.path)!=="/welcome"&&_.push(g),r(_[0])||(_=[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome"}}].concat(_)),_.forEach((c,b)=>{g!=null&&g.query||g!=null&&g.params||c!=null&&c.children&&c.children.forEach($=>{var L,E;((L=$==null?void 0:$.meta)==null?void 0:L.title)===((E=c==null?void 0:c.meta)==null?void 0:E.title)&&_.splice(b,1)})}),n.value=_.filter(c=>(c==null?void 0:c.meta)&&(c==null?void 0:c.meta.title)!==!1)},m=g=>{const{redirect:p,path:_}=g;p?a.push(p):a.push(_)};return Ye(()=>{h()}),Te(()=>e.path,()=>{h()}),(g,p)=>{const _=w("el-breadcrumb-item"),c=w("el-breadcrumb");return d(),A(c,{class:"!leading-[50px] select-none",separator:"/"},{default:y(()=>[f(pn,{name:"breadcrumb"},{default:y(()=>[(d(!0),T(ve,null,be(n.value,b=>(d(),A(_,{class:"!inline !items-stretch",key:b.path},{default:y(()=>[v("a",{onClick:Je($=>m(b),["prevent"])},X(o(we)(b.meta.title)),9,va)]),_:2},1024))),128))]),_:1})]),_:1})}}}),ya={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18zM6.95 3.55v9.9L2 8.5l4.95-4.95zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"/>'},tn=ya,ba={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18zM17.05 3.55L22 8.5l-4.95 4.95v-9.9zM12 11v2H3v-2h9zm0-7v2H3V4h9z"/>'},wa=["title"],ka=le({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=()=>{e("toggleClick")};return(i,l)=>{const r=w("IconifyIconOffline");return d(),T("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:a},[f(r,{icon:n.isActive?o(tn):o(ba),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,wa)}}}),nn=t=>(It("data-v-508c388e"),t=t(),St(),t),xa={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},Ca={key:3,class:"vertical-header-right"},Ia={key:0,class:"Using_box"},Sa={style:{"font-size":"14px",color:"#505050",margin:"0 12px 0 0"}},$a={key:2,class:"identity"},za={key:3,class:"identity"},Ta={key:4,class:"identity"},Ma={class:"el-dropdown-link navbar-bg-hover select-none"},La={key:0,style:{margin:"0 15px 0 0"},class:"dark:text-white"},Oa=["title"],Ea=nn(()=>v("div",{style:{margin:"40px 0","font-size":"16px"}}," You will switch to logging in with user information. Please enter the invitation code : ",-1)),Va=nn(()=>v("span",{class:"red"},"*",-1)),Aa={class:"part_out_button"},Pa=le({__name:"navbar",setup(t){const{VITE_PRODUCT:e}={VITE_PORT:"8849",VITE_PUBLIC_PATH:"/public/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",VITE_API:"https://appointment.pcb456.com:8093/",VITE_PRODUCT:"yuyue",BASE_URL:"/public/",MODE:"production",DEV:!1,PROD:!0},n=D(""),a=D(""),i=D([]),l=qe({}),r=qe({}),h=qe({}),m=qe({}),g=D(!1),p=qe({code:"",is_user:1,name:"",self_id:""}),{layout:_,device:c,logout:b,onPanel:$,pureApp:L,username:E,avatarsStyle:j,toggleSideBar:F,getDropdownItemStyle:C,getDropdownItemClass:O}=ze();async function z(){const{data:s}=await Hn(Object.assign(l,{}));s.code==1&&(n.value=s.data.role,p.self_id=s.data.id,localStorage.setItem("type",s.data.role),N())}async function N(){const{data:s}=await Dn(Object.assign(r,{cliniic_name:"",pageSize:1e3,page:1,is_active:"Y",current_jindu:"",current_weidu:""}));i.value=s.data,a.value=s.select_clinic_id,n.value==2?localStorage.setItem("clinicIdOverall",a.value):localStorage.setItem("clinicIdOverall","")}async function J(){await Fn(Object.assign(h,{clinic_id:a.value})),localStorage.setItem("clinicIdOverall",a.value),window.location.reload()}function G(){J()}function ie(){g.value=!0}async function S(){p.code==""&&Ot({type:"error",message:"Please enter the invitation code"});const{data:s}=await Rn(Object.assign(m,{user_id:p.code}));s.code==0&&(localStorage.setItem("authorization-token",s.data.token),localStorage.setItem("authorization-name",s.data.name),window.location.reload())}const ce=s=>{Gn.confirm("Are you sure you want to exit?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{ae()}).catch(()=>{Ot({type:"info",message:"Canceled"})})};function ae(){localStorage.setItem("authorization-token",""),window.location.reload()}Ye(()=>{localStorage.getItem("authorization-token")&&(p.is_user=2,p.name=localStorage.getItem("authorization-name")),e=="yuyue"&&z()});const{t:q,locale:Me,translationCh:Le,translationEn:Oe}=bt();return(s,u)=>{const k=w("el-button"),x=w("el-option"),M=w("el-select"),P=w("IconifyIconOffline"),H=w("el-dropdown-item"),B=w("el-dropdown-menu"),ne=w("el-dropdown"),he=w("el-dialog");return d(),T("div",xa,[o(c)==="mobile"?(d(),A(ka,{key:0,class:"hamburger-container","is-active":o(L).sidebar.opened,onToggleClick:o(F)},null,8,["is-active","onToggleClick"])):Y("",!0),o(_)!=="mix"&&o(c)!=="mobile"?(d(),A(ga,{key:1,class:"breadcrumb-container"})):Y("",!0),o(_)==="mix"?(d(),A(_a,{key:2})):Y("",!0),o(_)==="vertical"?(d(),T("div",Ca,[p.is_user==2?(d(),T("div",Ia,[ee(" You are logging into "+X(p.name)+"'s account ",1),f(k,{style:{"margin-left":"10px"},link:"",type:"primary",onClick:u[0]||(u[0]=te=>ce())},{default:y(()=>[ee("exit")]),_:1})])):Y("",!0),n.value==2?(d(),A(M,{key:1,style:{width:"220px",margin:"0 20px 0 0"},modelValue:a.value,"onUpdate:modelValue":u[1]||(u[1]=te=>a.value=te),"allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:G},{default:y(()=>[(d(!0),T(ve,null,be(i.value,te=>(d(),A(x,{key:te.id,label:te.text,value:te.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):Y("",!0),v("div",Sa,X("auth_"+p.self_id),1),n.value==1?(d(),T("div",$a,"Therapist")):Y("",!0),n.value==2?(d(),T("div",za,"Clinic")):Y("",!0),n.value==0?(d(),T("div",Ta,"Client")):Y("",!0),v("img",{onClick:u[2]||(u[2]=te=>ie()),style:{width:"20px",height:"20px"},src:vo}),f(ne,{trigger:"click"},{dropdown:y(()=>[f(B,{class:"logout"},{default:y(()=>[f(H,{onClick:o(b)},{default:y(()=>[f(P,{icon:o(ct),style:{margin:"5px"}},null,8,["icon"]),ee(" "+X(o(q)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[v("span",Ma,[o(E)?(d(),T("p",La,X(o(E)),1)):Y("",!0),v("img",{style:se([{width:"18px",height:"18px"},o(j)]),src:go},null,4)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(q)("buttons.hssystemSet"),onClick:u[3]||(u[3]=(...te)=>o($)&&o($)(...te))},[f(P,{icon:o(it)},null,8,["icon"])],8,Oa)])):Y("",!0),f(he,{style:{width:"50%"},modelValue:g.value,"onUpdate:modelValue":u[6]||(u[6]=te=>g.value=te),title:""},{default:y(()=>[Ea,ee(" invitation code"),Va,ee(" : "),_e(v("input",{"onUpdate:modelValue":u[4]||(u[4]=te=>p.code=te),class:"input2",type:"text"},null,512),[[hn,p.code]]),v("div",Aa,[f(k,{type:"primary",onClick:u[5]||(u[5]=te=>S())},{default:y(()=>[ee("确定")]),_:1})])]),_:1},8,["modelValue"])])}}});const Ha=me(Pa,[["__scopeId","data-v-508c388e"]]),at={width:24,height:24,body:'<path fill="currentColor" d="M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z"/>'},Da={width:24,height:24,body:'<path fill="currentColor" d="M5 11h14v2H5z"/>'},Ra={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"/>'},Fa={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"/>'},qa={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"/>'},ja={width:1024,height:1024,body:'<path fill="currentColor" d="M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384a384 384 0 0 1-384-384a384 384 0 0 1 643.712-282.88z"/>'},Na={width:1024,height:1024,body:'<path fill="currentColor" d="M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"/>'},on=Na;function Ba(){var G,ie;const t=xt(),e=st(),n=Bn(),a=zt(),i=D(0),l=D(0),r=D(0),h=D(!1),m=D(-1),g=D({}),p=D(((G=Ke().getItem("responsive-configure"))==null?void 0:G.showModel)||"smart"),_=(ie=D(Ke().getItem("responsive-configure").hideTabs))!=null?ie:D("false"),c=Q(()=>Se().multiTags),b=qe([{icon:ja,text:ge("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:on,text:ge("buttons.hscloseCurrentTab"),divided:!1,disabled:!(c.value.length>1),show:!0},{icon:qa,text:ge("buttons.hscloseLeftTabs"),divided:!0,disabled:!(c.value.length>1),show:!0},{icon:Fa,text:ge("buttons.hscloseRightTabs"),divided:!1,disabled:!(c.value.length>1),show:!0},{icon:Ra,text:ge("buttons.hscloseOtherTabs"),divided:!0,disabled:!(c.value.length>2),show:!0},{icon:Da,text:ge("buttons.hscloseAllTabs"),divided:!1,disabled:!(c.value.length>1),show:!0},{icon:at,text:ge("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:at,text:ge("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function $(S,ce,ae){var q,Me;return mn((q=t==null?void 0:t.meta)==null?void 0:q.showLink)&&((Me=t==null?void 0:t.meta)==null?void 0:Me.showLink)===!1?Object.keys(t.query).length>0?We(t.query,S.query)?ce:ae:We(t.params,S.params)?ce:ae:t.path===S.path?ce:ae}const L=Q(()=>(S,ce)=>{if(ce!==0)return $(S,!0,!1)}),E=Q(()=>S=>$(S,"is-active","")),j=Q(()=>S=>$(S,"schedule-active","")),F=Q(()=>({transform:`translateX(${r.value}px)`})),C=Q(()=>({left:l.value+"px",top:i.value+"px"})),O=()=>{h.value=!1};function z(S){if(S&&(m.value=S),o(p)==="smart"){if(nt(n.refs["schedule"+S][0],"schedule-active"))return;De(!0,"schedule-in",n.refs["schedule"+S][0]),De(!1,"schedule-out",n.refs["schedule"+S][0])}else{if(nt(n.refs["dynamic"+S][0],"card-active"))return;De(!0,"card-in",n.refs["dynamic"+S][0]),De(!1,"card-out",n.refs["dynamic"+S][0])}}function N(S){if(m.value=-1,o(p)==="smart"){if(nt(n.refs["schedule"+S][0],"schedule-active"))return;De(!1,"schedule-in",n.refs["schedule"+S][0]),De(!0,"schedule-out",n.refs["schedule"+S][0])}else{if(nt(n.refs["dynamic"+S][0],"card-active"))return;De(!1,"card-in",n.refs["dynamic"+S][0]),De(!0,"card-out",n.refs["dynamic"+S][0])}}function J(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ye(()=>{if(!p.value){const S=Ke().getItem("responsive-configure");S.showModel="card",Ke().setItem("responsive-configure",S)}}),Te(()=>h.value,()=>{Ue(document,"click",O)}),{route:t,router:e,visible:h,showTags:_,instance:n,multiTags:c,showModel:p,tagsViews:b,buttonTop:i,buttonLeft:l,translateX:r,pureSetting:a,activeIndex:m,getTabStyle:F,iconIsActive:L,linkIsActive:E,currentSelect:g,scheduleIsActive:j,getContextMenuStyle:C,$t:ge,closeMenu:O,onMounted:Ye,onMouseenter:z,onMouseleave:N,transformI18n:we,onContentFullScreen:J}}const Ft={width:24,height:24,body:'<path fill="currentColor" d="M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z"/>'},Ua={width:24,height:24,body:'<path fill="currentColor" d="m12 13.172l4.95-4.95l1.414 1.414L12 16L5.636 9.636L7.05 8.222z"/>'},Wa={width:24,height:24,body:'<path fill="currentColor" d="m13.172 12l-4.95-4.95l1.414-1.414L16 12l-6.364 6.364l-1.414-1.414z"/>'},Ga={width:24,height:24,body:'<path fill="currentColor" d="m10.828 12l4.95 4.95l-1.414 1.414L8 12l6.364-6.364l1.414 1.414z"/>'},Qa={width:1024,height:1024,body:'<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'},Ka={class:"arrow-left"},Ya=["onContextmenu","onMouseenter","onMouseleave","onClick"],Ja=["onClick"],Xa={class:"arrow-right"},Za=["onClick"],es={class:"arrow-down"},ts=le({__name:"index",setup(t){const{route:e,router:n,visible:a,showTags:i,instance:l,multiTags:r,tagsViews:h,buttonTop:m,buttonLeft:g,showModel:p,translateX:_,pureSetting:c,activeIndex:b,getTabStyle:$,iconIsActive:L,linkIsActive:E,currentSelect:j,scheduleIsActive:F,getContextMenuStyle:C,closeMenu:O,onMounted:z,onMouseenter:N,onMouseleave:J,transformI18n:G,onContentFullScreen:ie}=Ba(),S=D(),ce=D(),ae=D(),q=D(!1),{isFullscreen:Me,toggle:Le}=oo(),Oe=()=>{const I=r.value.findIndex(V=>V.query?We(e.query,V.query):V.params?We(e.params,V.params):V.path===e.path);s(I)},s=I=>{var W,re;if(!l.refs["dynamic"+I])return;const R=l.refs["dynamic"+I][0],K=R==null?void 0:R.offsetLeft,pe=R==null?void 0:R.offsetWidth,Z=ae.value?(W=ae.value)==null?void 0:W.offsetWidth:0,U=S.value?(re=S.value)==null?void 0:re.offsetWidth:0;Z<=U?q.value=!0:q.value=!1,U<Z||K===0?_.value=0:K<-_.value?_.value=-K+10:K>-_.value&&K+pe<-_.value+Z?_.value=Math.min(0,Z-pe-K-10):_.value=-(K-(Z-10-pe))},u=I=>{var K;const V=ae.value?(K=ae.value)==null?void 0:K.offsetWidth:0,R=S.value?S.value.offsetWidth:0;I>0?_.value=Math.min(0,_.value+I):V<R?_.value>=-(R-V)&&(_.value=Math.max(_.value+I,V-R)):_.value=0};function k(I,V){const R=r.value.some(pe=>pe.path===I);function K(pe,Z,U){R||pe.forEach(W=>{const re=U+W.path;W.path===Z||re===Z?Se().handleTags("push",{path:Z,parentPath:`/${U.split("/")[1]}`,meta:W.meta,name:W.name}):W.children&&W.children.length>0&&K(W.children,Z,U)})}K(n.options.routes,I,V)}function x(){const{fullPath:I,query:V}=o(e);n.replace({path:"/redirect"+I,query:V})}function M(I,V,R){var W,re,Ve,Lt;let K=[];const pe=r.value.findIndex(xe=>{if(xe.query){if(xe.path===I.path)return xe.query===I.query}else if(xe.params){if(xe.path===I.path)return xe.params===I.params}else return xe.path===I.path}),Z=(xe,un,dn)=>{dn?Se().handleTags("equal",[Kt[0],I]):K=Se().handleTags("splice","",{startIndex:xe,length:un})};R==="other"?Z(1,1,!0):R==="left"?Z(1,pe-1):R==="right"?Z(pe+1,r.value.length):Z(pe,1);const U=Se().handleTags("slice");if(V===e.path){if(R?pt(K):Vn(e.matched,"delete"),R==="left")return;(W=U[0])!=null&&W.query?n.push({name:U[0].name,query:U[0].query}):(re=U[0])!=null&&re.params?n.push({name:U[0].name,params:U[0].params}):n.push({path:U[0].path})}else{if(R?pt(K):pt([I]),!r.value.length||r.value.some(xe=>xe.path===e.path))return;(Ve=U[0])!=null&&Ve.query?n.push({name:U[0].name,query:U[0].query}):(Lt=U[0])!=null&&Lt.params?n.push({name:U[0].name,params:U[0].params}):n.push({path:U[0].path})}}function P(I,V){M(I,I.path,V)}function H(I,V,R){if(V&&V.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:e.path,meta:e.meta},I){case 0:x();break;case 1:P(K);break;case 2:P(K,"left");break;case 3:P(K,"right");break;case 4:P(K,"other");break;case 5:Se().handleTags("splice","",{startIndex:1,length:r.value.length}),n.push("/welcome");break;case 6:Le(),setTimeout(()=>{Me.value?(h[6].icon=Ft,h[6].text=ge("buttons.hswholeExitFullScreen")):(h[6].icon=at,h[6].text=ge("buttons.hswholeFullScreen"))},100);break;case 7:ie(),setTimeout(()=>{c.hiddenSideBar?(h[7].icon=Ft,h[7].text=ge("buttons.hscontentExitFullScreen")):(h[7].icon=at,h[7].text=ge("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Ee(e.fullPath,e.query)})}function B(I){const{key:V,item:R}=I;H(V,R)}function ne(I,V){H(I,V,j.value)}function he(I){Array.of(1,2,3,4,5).forEach(V=>{h[V].show=I})}function te(I){Array.of(1,2,3,4,5).forEach(V=>{h[V].disabled=I})}function Ee(I,V={},R=!1){const K=r.value,pe=r.value.length;let Z=-1;_n(V)?Z=K.findIndex(U=>U.path===I):Z=K.findIndex(U=>We(U.query,V)),he(!0),R&&(h[0].show=!0),Z===1&&pe!==2?(h[2].show=!1,Array.of(1,3,4,5).forEach(U=>{h[U].disabled=!1}),h[2].disabled=!0):Z===1&&pe===2?(te(!1),Array.of(2,3,4).forEach(U=>{h[U].show=!1,h[U].disabled=!0})):pe-1===Z&&Z!==0?(h[3].show=!1,Array.of(1,2,4,5).forEach(U=>{h[U].disabled=!1}),h[3].disabled=!0):te(Z===0||I==="/redirect/welcome")}function Ne(I,V){O(),I.path==="/welcome"?(he(!1),h[0].show=!0):e.path!==I.path&&e.name!==I.name?(h[0].show=!1,Ee(I.path,I.query)):r.value.length===2&&e.path!==I.path?(he(!0),h[4].show=!1):e.path===I.path&&Ee(I.path,I.query,!0),j.value=I;const R=105,K=o(ce).getBoundingClientRect().left,Z=o(ce).offsetWidth-R,U=V.clientX-K+5;U>Z?g.value=Z:g.value=U,zt().hiddenSideBar?m.value=V.clientY:m.value=V.clientY-40,Ge(()=>{a.value=!0})}function oe(I){const{name:V,path:R}=I;V?I.query?n.push({name:V,query:I.query}):I.params?n.push({name:V,params:I.params}):n.push({name:V}):n.push({path:R})}return $t(()=>{l&&(Ee(e.fullPath),Pe.on("tagViewsChange",I=>{o(i)!==I&&(i.value=I)}),Pe.on("tagViewsShowModel",I=>{p.value=I}),Pe.on("changLayoutRoute",({indexPath:I,parentPath:V})=>{k(I,V),setTimeout(()=>{Ee(I)})}))}),Te([e],()=>{b.value=-1,Oe()}),z(()=>{no(ae,Qt(()=>{Oe()},200))}),(I,V)=>{const R=w("IconifyIconOffline"),K=w("router-link"),pe=w("el-dropdown-item"),Z=w("el-dropdown-menu"),U=w("el-dropdown");return o(i)?Y("",!0):(d(),T("div",{key:0,ref_key:"containerDom",ref:ce,class:"tags-view"},[_e(v("span",Ka,[f(R,{icon:o(Ga),onClick:V[0]||(V[0]=W=>u(200))},null,8,["icon"])],512),[[$e,q.value]]),v("div",{ref_key:"scrollbarDom",ref:ae,class:"scroll-container"},[v("div",{class:"tab select-none",ref_key:"tabDom",ref:S,style:se(o($))},[(d(!0),T(ve,null,be(o(r),(W,re)=>(d(),T("div",{ref_for:!0,ref:"dynamic"+re,key:re,class:de(["scroll-item is-closable",o(E)(W),I.$route.path===W.path&&o(p)==="card"?"card-active":""]),onContextmenu:Je(Ve=>Ne(W,Ve),["prevent"]),onMouseenter:Je(Ve=>o(N)(re),["prevent"]),onMouseleave:Je(Ve=>o(J)(re),["prevent"]),onClick:Ve=>oe(W)},[f(K,{to:W.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:y(()=>[ee(X(o(G)(W.meta.title)),1)]),_:2},1032,["to"]),o(L)(W,re)||re===o(b)&&re!==0?(d(),T("span",{key:0,class:"el-icon-close",onClick:Je(Ve=>P(W),["stop"])},[f(R,{icon:o(Qa)},null,8,["icon"])],8,Ja)):Y("",!0),o(p)!=="card"?(d(),T("div",{key:1,ref_for:!0,ref:"schedule"+re,class:de([o(F)(W)])},null,2)):Y("",!0)],42,Ya))),128))],4)],512),_e(v("span",Xa,[f(R,{icon:o(Wa),onClick:V[1]||(V[1]=W=>u(-200))},null,8,["icon"])],512),[[$e,q.value]]),f(gt,{name:"el-zoom-in-top"},{default:y(()=>[_e((d(),T("ul",{key:Math.random(),style:se(o(C)),class:"contextmenu"},[(d(!0),T(ve,null,be(o(h).slice(0,6),(W,re)=>(d(),T("div",{key:re,style:{display:"flex","align-items":"center"}},[W.show?(d(),T("li",{key:0,onClick:Ve=>ne(re,W)},[f(R,{icon:W.icon},null,8,["icon"]),ee(" "+X(o(G)(W.text)),1)],8,Za)):Y("",!0)]))),128))],4)),[[$e,o(a)]])]),_:1}),f(U,{trigger:"click",placement:"bottom-end",onCommand:B},{dropdown:y(()=>[f(Z,null,{default:y(()=>[(d(!0),T(ve,null,be(o(h),(W,re)=>(d(),A(pe,{key:re,command:{key:re,item:W},divided:W.divided,disabled:W.disabled},{default:y(()=>[f(R,{icon:W.icon},null,8,["icon"]),ee(" "+X(o(G)(W.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:y(()=>[v("span",es,[f(R,{icon:o(Ua),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const ns=me(ts,[["__scopeId","data-v-c6e4d007"]]),os={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},as=v("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),ss=v("path",{d:"M2.88 18.054a35.897 35.897 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0c.166.18.304.332.413.455a35.897 35.897 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44.019 44.019 0 0 1-6.584-.874zm6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42.137 42.137 0 0 0 4.227-.454A33.913 33.913 0 0 0 12 4.09a33.913 33.913 0 0 0-6.649 12.387c1.395.222 2.805.374 4.227.454zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"},null,-1),ls=[as,ss];function rs(t,e){return d(),T("svg",os,ls)}const an={render:rs},is={key:1},cs=le({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=yt(),i=Q(()=>a==null?void 0:a.KeepAlive),l=Q(()=>p=>p.meta.transition),r=Q(()=>n==null?void 0:n.configure.hideTabs),h=Q(()=>(n==null?void 0:n.layout.layout)==="vertical"),m=Q(()=>[r.value&&h?"padding-top: 48px;":"",!r.value&&h?"padding-top: 85px;":"",r.value&&!h.value?"padding-top: 48px":"",!r.value&&!h.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),g=le({render(){return Xe(gt,{name:l.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":l.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:l.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:l.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(p,_)=>{const c=w("el-backtop"),b=w("el-scrollbar"),$=w("router-view");return d(),T("section",{class:de([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:se(o(m))},[f($,null,{default:y(({Component:L,route:E})=>[e.fixedHeader?(d(),A(b,{key:0},{default:y(()=>[f(c,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:y(()=>[f(o(an))]),_:1}),f(o(g),{route:E},{default:y(()=>[o(i)?(d(),A(Et,{key:0,include:o(ye)().cachePageList},[(d(),A(je(L),{key:E.fullPath,class:"main-content"}))],1032,["include"])):(d(),A(je(L),{key:E.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(d(),T("div",is,[f(o(g),{route:E},{default:y(()=>[o(i)?(d(),A(Et,{key:0,include:o(ye)().cachePageList},[(d(),A(je(L),{key:E.fullPath,class:"main-content"}))],1032,["include"])):(d(),A(je(L),{key:E.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const qt=me(cs,[["__scopeId","data-v-cc448ddc"]]),Tt=t=>(It("data-v-3b623f3d"),t=t(),St(),t),us=Tt(()=>v("div",{class:"right-panel-background"},null,-1)),ds={class:"right-panel-items"},fs={class:"project-configuration"},ps=Tt(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),hs=Tt(()=>v("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),ms=le({__name:"index",setup(t){const e=D(null),n=D(!1),a=Q(()=>["mr-[20px]","outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]);return Jn(e,i=>{i.clientX>e.value.offsetLeft||(n.value=!1)}),Pe.on("openPanel",()=>{n.value=!0}),(i,l)=>{const r=w("IconifyIconOffline");return d(),T("div",{class:de([{show:n.value},"right-panel-container"])},[us,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",ds,[v("div",fs,[ps,v("span",{title:"关闭配置",class:de(o(a))},[f(r,{class:"dark:text-white",width:"20px",height:"20px",icon:o(on),onClick:l[0]||(l[0]=h=>n.value=!n.value)},null,8,["icon"])],2)]),hs,Un(i.$slots,"default",{},void 0,!0)])],512)],2)}}});const _s=me(ms,[["__scopeId","data-v-3b623f3d"]]),ke=t=>(It("data-v-d9621bf5"),t=t(),St(),t),vs={class:"pure-theme"},gs=ke(()=>v("div",null,null,-1)),ys=ke(()=>v("div",null,null,-1)),bs=[gs,ys],ws=ke(()=>v("div",null,null,-1)),ks=ke(()=>v("div",null,null,-1)),xs=[ws,ks],Cs=ke(()=>v("div",null,null,-1)),Is=ke(()=>v("div",null,null,-1)),Ss=[Cs,Is],$s={class:"theme-color"},zs=["onClick"],Ts={class:"setting"},Ms=ke(()=>v("span",{class:"dark:text-white"},"灰色模式",-1)),Ls=ke(()=>v("span",{class:"dark:text-white"},"色弱模式",-1)),Os=ke(()=>v("span",{class:"dark:text-white"},"隐藏标签页",-1)),Es=ke(()=>v("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Vs=ke(()=>v("span",{class:"dark:text-white"},"标签页持久化",-1)),As=ke(()=>v("span",{class:"dark:text-white"},"标签风格",-1)),Ps=le({__name:"index",setup(t){var Oe,s,u,k;const e=st(),{isDark:n}=Ut(),{device:a,tooltipEffect:i}=ze(),{$storage:l}=yt(),r=D(),h=D(),m=D(),{dataTheme:g,layoutTheme:p,themeColors:_,dataThemeChange:c,setEpThemeColor:b,setLayoutThemeColor:$}=wn();if(o(p)){const x=o(p).layout,M=o(p).theme;kn({scopeName:`layout-theme-${M}`}),Le(x)}const L=D((s=(Oe=l.configure)==null?void 0:Oe.showModel)!=null?s:"smart"),E=D((k=(u=l.configure)==null?void 0:u.showLogo)!=null?k:!0),j=qe({greyVal:l.configure.grey,weakVal:l.configure.weak,tabsVal:l.configure.hideTabs,showLogo:l.configure.showLogo,showModel:l.configure.showModel,multiTagsCache:l.configure.multiTagsCache}),F=Q(()=>x=>({background:x})),C=Q(()=>x=>!(x==="light"&&n.value));function O(x,M){const P=l.configure;P[x]=M,l.configure=P}function z(x,M,P){const H=P||document.body;let{className:B}=H;B=B.replace(M,"").trim(),H.className=x?`${B} ${M} `:B}const N=x=>{z(j.greyVal,"html-grey",document.querySelector("html")),O("grey",x)},J=x=>{z(j.weakVal,"html-weakness",document.querySelector("html")),O("weak",x)},G=()=>{const x=j.tabsVal;O("hideTabs",x),Pe.emit("tagViewsChange",x)},ie=()=>{const x=j.multiTagsCache;O("multiTagsCache",x),Se().multiTagsCacheChange(x)};function S(){An(),Ke().clear(),vn().clear();const{Grey:x,Weak:M,MultiTagsCache:P,EpThemeColor:H,Layout:B}=Ae();Re().setLayout(B),b(H),Se().multiTagsCacheChange(P),z(x,"html-grey",document.querySelector("html")),z(M,"html-weakness",document.querySelector("html")),e.push("/login"),Se().handleTags("equal",[...Kt]),Pn()}function ce(x){O("showModel",x),Pe.emit("tagViewsShowModel",x)}function ae(){o(E)?O("showLogo",!0):O("showLogo",!1),Pe.emit("logoChange",o(E))}function q(x){x.forEach(M=>{z(!1,"is-select",o(M))})}const Me=Q(()=>x=>x===p.value.theme&&p.value.theme!=="light"?"#fff":x===p.value.theme&&p.value.theme==="light"?"#1d2b45":"transparent");function Le(x){var M,P,H;p.value.layout=x,window.document.body.setAttribute("layout",x),l.layout={layout:x,theme:p.value.theme,darkMode:(M=l.layout)==null?void 0:M.darkMode,sidebarStatus:(P=l.layout)==null?void 0:P.sidebarStatus,epThemeColor:(H=l.layout)==null?void 0:H.epThemeColor},Re().setLayout(x)}return Te(l,({layout:x})=>{switch(x.layout){case"vertical":z(!0,"is-select",o(h)),Qe(q([m]),50),Qe(q([r]),50);break;case"horizontal":z(!0,"is-select",o(m)),Qe(q([h]),50),Qe(q([r]),50);break;case"mix":z(!0,"is-select",o(r)),Qe(q([h]),50),Qe(q([m]),50);break}}),$t(()=>{c(),Ge(()=>{var x,M;j.greyVal&&((x=document.querySelector("html"))==null||x.setAttribute("class","html-grey")),j.weakVal&&((M=document.querySelector("html"))==null||M.setAttribute("class","html-weakness")),j.tabsVal&&G()})}),(x,M)=>{const P=w("el-divider"),H=w("el-switch"),B=w("el-tooltip"),ne=w("IconifyIconOffline"),he=w("el-icon"),te=w("el-radio"),Ee=w("el-radio-group"),Ne=w("el-button");return d(),A(_s,null,{default:y(()=>[f(P,null,{default:y(()=>[ee("主题")]),_:1}),f(H,{modelValue:o(g),"onUpdate:modelValue":M[0]||(M[0]=oe=>Ct(g)?g.value=oe:null),"inline-prompt":"",class:"pure-datatheme","active-icon":o(xn),"inactive-icon":o(Cn),onChange:o(c)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),f(P,null,{default:y(()=>[ee("导航栏模式")]),_:1}),v("ul",vs,[f(B,{effect:o(i),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:y(()=>[v("li",{class:de(o(p).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:h,onClick:M[1]||(M[1]=oe=>Le("vertical"))},bs,2)]),_:1},8,["effect"]),o(a)!=="mobile"?(d(),A(B,{key:0,effect:o(i),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:y(()=>[v("li",{class:de(o(p).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:m,onClick:M[2]||(M[2]=oe=>Le("horizontal"))},xs,2)]),_:1},8,["effect"])):Y("",!0),o(a)!=="mobile"?(d(),A(B,{key:1,effect:o(i),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:y(()=>[v("li",{class:de(o(p).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:r,onClick:M[3]||(M[3]=oe=>Le("mix"))},Ss,2)]),_:1},8,["effect"])):Y("",!0)]),f(P,null,{default:y(()=>[ee("主题色")]),_:1}),v("ul",$s,[(d(!0),T(ve,null,be(o(_),(oe,I)=>_e((d(),T("li",{key:I,style:se(o(F)(oe.color)),onClick:V=>o($)(oe.themeColor)},[f(he,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:o(Me)(oe.themeColor)},{default:y(()=>[f(ne,{icon:o(et)},null,8,["icon"])]),_:2},1032,["color"])],12,zs)),[[$e,o(C)(oe.themeColor)]])),128))]),f(P,null,{default:y(()=>[ee("界面显示")]),_:1}),v("ul",Ts,[v("li",null,[Ms,f(H,{modelValue:j.greyVal,"onUpdate:modelValue":M[4]||(M[4]=oe=>j.greyVal=oe),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:N},null,8,["modelValue"])]),v("li",null,[Ls,f(H,{modelValue:j.weakVal,"onUpdate:modelValue":M[5]||(M[5]=oe=>j.weakVal=oe),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:J},null,8,["modelValue"])]),v("li",null,[Os,f(H,{modelValue:j.tabsVal,"onUpdate:modelValue":M[6]||(M[6]=oe=>j.tabsVal=oe),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:G},null,8,["modelValue"])]),v("li",null,[Es,f(H,{modelValue:E.value,"onUpdate:modelValue":M[7]||(M[7]=oe=>E.value=oe),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:ae},null,8,["modelValue"])]),v("li",null,[Vs,f(H,{modelValue:j.multiTagsCache,"onUpdate:modelValue":M[8]||(M[8]=oe=>j.multiTagsCache=oe),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:ie},null,8,["modelValue"])]),v("li",null,[As,f(Ee,{modelValue:L.value,"onUpdate:modelValue":M[9]||(M[9]=oe=>L.value=oe),size:"small",onChange:ce},{default:y(()=>[f(te,{label:"card"},{default:y(()=>[ee("卡片")]),_:1}),f(te,{label:"smart"},{default:y(()=>[ee("灵动")]),_:1})]),_:1},8,["modelValue"])])]),f(P),f(Ne,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:S},{default:y(()=>[f(ne,{icon:o(ct),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),ee(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const Hs=me(Ps,[["__scopeId","data-v-d9621bf5"]]),jt={avatarm:Qn},Ds=["src"],Rs={class:"sidebar-title"},Fs=["src"],qs={class:"sidebar-title"},js=le({__name:"logo",props:{collapse:Boolean},setup(t){var l,r,h,m;const e=t,{title:n}=ze(),a=D(!1),i=D("");return((l=Ae())==null?void 0:l.Logo_Type)=="img"&&((r=Ae())!=null&&r.Logo_Img)&&jt[(h=Ae())==null?void 0:h.Logo_Img]&&(a.value=!0,i.value=jt[(m=Ae())==null?void 0:m.Logo_Img]),(g,p)=>{const _=w("FontIcon"),c=w("router-link");return d(),T("div",{class:de(["sidebar-logo-container",{collapses:e.collapse}])},[f(gt,{name:"sidebarLogoFade"},{default:y(()=>[e.collapse?(d(),A(c,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:"/"},{default:y(()=>[a.value?(d(),T("img",{key:0,src:i.value,class:"!w-[35px] !h-[35px]"},null,8,Ds)):(d(),A(_,{key:1,icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}})),v("span",Rs,X(o(n)),1)]),_:1},8,["title"])):(d(),A(c,{key:"expand",title:o(n),class:"sidebar-logo-link",to:"/"},{default:y(()=>[a.value?(d(),T("img",{key:0,src:i.value,class:"!w-[35px] !h-[35px]"},null,8,Fs)):(d(),A(_,{key:1,icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}})),v("span",qs,X(o(n)),1)]),_:1},8,["title"]))]),_:1})],2)}}});const Ns=me(js,[["__scopeId","data-v-ca67d6d1"]]);var tt={},Nt={get exports(){return tt},set exports(t){tt=t}},sn={},Bs=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},vt={},Bt={get exports(){return vt},set exports(t){vt=t}};typeof Object.create=="function"?Bt.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Bt.exports=function(e,n){e.super_=n;var a=function(){};a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e};(function(t){var e=/%[sdj%]/g;t.format=function(s){if(!C(s)){for(var u=[],k=0;k<arguments.length;k++)u.push(i(arguments[k]));return u.join(" ")}for(var k=1,x=arguments,M=x.length,P=String(s).replace(e,function(B){if(B==="%%")return"%";if(k>=M)return B;switch(B){case"%s":return String(x[k++]);case"%d":return Number(x[k++]);case"%j":try{return JSON.stringify(x[k++])}catch(ne){return"[Circular]"}default:return B}}),H=x[k];k<M;H=x[++k])E(H)||!J(H)?P+=" "+H:P+=" "+i(H);return P},t.deprecate=function(s,u){if(z(Kn.process))return function(){return t.deprecate(s,u).apply(this,arguments)};if(process.noDeprecation===!0)return s;var k=!1;function x(){if(!k){if(process.throwDeprecation)throw new Error(u);process.traceDeprecation?console.trace(u):console.error(u),k=!0}return s.apply(this,arguments)}return x};var n={},a;t.debuglog=function(s){if(z(a)&&(a={}.NODE_DEBUG||""),s=s.toUpperCase(),!n[s])if(new RegExp("\\b"+s+"\\b","i").test(a)){var u=process.pid;n[s]=function(){var k=t.format.apply(t,arguments);console.error("%s %d: %s",s,u,k)}}else n[s]=function(){};return n[s]};function i(s,u){var k={seen:[],stylize:r};return arguments.length>=3&&(k.depth=arguments[2]),arguments.length>=4&&(k.colors=arguments[3]),L(u)?k.showHidden=u:u&&t._extend(k,u),z(k.showHidden)&&(k.showHidden=!1),z(k.depth)&&(k.depth=2),z(k.colors)&&(k.colors=!1),z(k.customInspect)&&(k.customInspect=!0),k.colors&&(k.stylize=l),m(k,s,k.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 l(s,u){var k=i.styles[u];return k?"\x1B["+i.colors[k][0]+"m"+s+"\x1B["+i.colors[k][1]+"m":s}function r(s,u){return s}function h(s){var u={};return s.forEach(function(k,x){u[k]=!0}),u}function m(s,u,k){if(s.customInspect&&u&&S(u.inspect)&&u.inspect!==t.inspect&&!(u.constructor&&u.constructor.prototype===u)){var x=u.inspect(k,s);return C(x)||(x=m(s,x,k)),x}var M=g(s,u);if(M)return M;var P=Object.keys(u),H=h(P);if(s.showHidden&&(P=Object.getOwnPropertyNames(u)),ie(u)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return p(u);if(P.length===0){if(S(u)){var B=u.name?": "+u.name:"";return s.stylize("[Function"+B+"]","special")}if(N(u))return s.stylize(RegExp.prototype.toString.call(u),"regexp");if(G(u))return s.stylize(Date.prototype.toString.call(u),"date");if(ie(u))return p(u)}var ne="",he=!1,te=["{","}"];if($(u)&&(he=!0,te=["[","]"]),S(u)){var Ee=u.name?": "+u.name:"";ne=" [Function"+Ee+"]"}if(N(u)&&(ne=" "+RegExp.prototype.toString.call(u)),G(u)&&(ne=" "+Date.prototype.toUTCString.call(u)),ie(u)&&(ne=" "+p(u)),P.length===0&&(!he||u.length==0))return te[0]+ne+te[1];if(k<0)return N(u)?s.stylize(RegExp.prototype.toString.call(u),"regexp"):s.stylize("[Object]","special");s.seen.push(u);var Ne;return he?Ne=_(s,u,k,H,P):Ne=P.map(function(oe){return c(s,u,k,H,oe,he)}),s.seen.pop(),b(Ne,ne,te)}function g(s,u){if(z(u))return s.stylize("undefined","undefined");if(C(u)){var k="'"+JSON.stringify(u).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return s.stylize(k,"string")}if(F(u))return s.stylize(""+u,"number");if(L(u))return s.stylize(""+u,"boolean");if(E(u))return s.stylize("null","null")}function p(s){return"["+Error.prototype.toString.call(s)+"]"}function _(s,u,k,x,M){for(var P=[],H=0,B=u.length;H<B;++H)Oe(u,String(H))?P.push(c(s,u,k,x,String(H),!0)):P.push("");return M.forEach(function(ne){ne.match(/^\d+$/)||P.push(c(s,u,k,x,ne,!0))}),P}function c(s,u,k,x,M,P){var H,B,ne;if(ne=Object.getOwnPropertyDescriptor(u,M)||{value:u[M]},ne.get?ne.set?B=s.stylize("[Getter/Setter]","special"):B=s.stylize("[Getter]","special"):ne.set&&(B=s.stylize("[Setter]","special")),Oe(x,M)||(H="["+M+"]"),B||(s.seen.indexOf(ne.value)<0?(E(k)?B=m(s,ne.value,null):B=m(s,ne.value,k-1),B.indexOf(`
`)>-1&&(P?B=B.split(`
`).map(function(he){return"  "+he}).join(`
`).substr(2):B=`
`+B.split(`
`).map(function(he){return"   "+he}).join(`
`))):B=s.stylize("[Circular]","special")),z(H)){if(P&&M.match(/^\d+$/))return B;H=JSON.stringify(""+M),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.substr(1,H.length-2),H=s.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=s.stylize(H,"string"))}return H+": "+B}function b(s,u,k){var x=s.reduce(function(M,P){return P.indexOf(`
`)>=0,M+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);return x>60?k[0]+(u===""?"":u+`
 `)+" "+s.join(`,
  `)+" "+k[1]:k[0]+u+" "+s.join(", ")+" "+k[1]}function $(s){return Array.isArray(s)}t.isArray=$;function L(s){return typeof s=="boolean"}t.isBoolean=L;function E(s){return s===null}t.isNull=E;function j(s){return s==null}t.isNullOrUndefined=j;function F(s){return typeof s=="number"}t.isNumber=F;function C(s){return typeof s=="string"}t.isString=C;function O(s){return typeof s=="symbol"}t.isSymbol=O;function z(s){return s===void 0}t.isUndefined=z;function N(s){return J(s)&&ae(s)==="[object RegExp]"}t.isRegExp=N;function J(s){return typeof s=="object"&&s!==null}t.isObject=J;function G(s){return J(s)&&ae(s)==="[object Date]"}t.isDate=G;function ie(s){return J(s)&&(ae(s)==="[object Error]"||s instanceof Error)}t.isError=ie;function S(s){return typeof s=="function"}t.isFunction=S;function ce(s){return s===null||typeof s=="boolean"||typeof s=="number"||typeof s=="string"||typeof s=="symbol"||typeof s>"u"}t.isPrimitive=ce,t.isBuffer=Bs;function ae(s){return Object.prototype.toString.call(s)}function q(s){return s<10?"0"+s.toString(10):s.toString(10)}var Me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Le(){var s=new Date,u=[q(s.getHours()),q(s.getMinutes()),q(s.getSeconds())].join(":");return[s.getDate(),Me[s.getMonth()],u].join(" ")}t.log=function(){console.log("%s - %s",Le(),t.format.apply(t,arguments))},t.inherits=vt,t._extend=function(s,u){if(!u||!J(u))return s;for(var k=Object.keys(u),x=k.length;x--;)s[k[x]]=u[k[x]];return s};function Oe(s,u){return Object.prototype.hasOwnProperty.call(s,u)}})(sn);var Us=process.platform==="win32",Ce=sn;function ut(t,e){for(var n=[],a=0;a<t.length;a++){var i=t[a];!i||i==="."||(i===".."?n.length&&n[n.length-1]!==".."?n.pop():e&&n.push(".."):n.push(i))}return n}function Ze(t){for(var e=t.length-1,n=0;n<=e&&!t[n];n++);for(var a=e;a>=0&&!t[a];a--);return n===0&&a===e?t:n>a?[]:t.slice(n,a+1)}var ln=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Ws=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ue={};function dt(t){var e=ln.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",i=Ws.exec(a),l=i[1],r=i[2],h=i[3];return[n,l,r,h]}function Mt(t){var e=ln.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function rn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ue.resolve=function(){for(var t="",e="",n=!1,a=arguments.length-1;a>=-1;a--){var i;if(a>=0?i=arguments[a]:t?(i=process.env["="+t],(!i||i.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(i=t+"\\")):i=process.cwd(),Ce.isString(i)){if(!i)continue}else throw new TypeError("Arguments to path.resolve must be strings");var l=Mt(i),r=l.device,h=l.isUnc,m=l.isAbsolute,g=l.tail;if(!(r&&t&&r.toLowerCase()!==t.toLowerCase())&&(t||(t=r),n||(e=g+"\\"+e,n=m),t&&n))break}return h&&(t=rn(t)),e=ut(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};ue.normalize=function(t){var e=Mt(t),n=e.device,a=e.isUnc,i=e.isAbsolute,l=e.tail,r=/[\\\/]$/.test(l);return l=ut(l.split(/[\\\/]+/),!i).join("\\"),!l&&!i&&(l="."),l&&r&&(l+="\\"),a&&(n=rn(n)),n+(i?"\\":"")+l};ue.isAbsolute=function(t){return Mt(t).isAbsolute};ue.join=function(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(!Ce.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&t.push(n)}var a=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),ue.normalize(a)};ue.relative=function(t,e){t=ue.resolve(t),e=ue.resolve(e);for(var n=t.toLowerCase(),a=e.toLowerCase(),i=Ze(e.split("\\")),l=Ze(n.split("\\")),r=Ze(a.split("\\")),h=Math.min(l.length,r.length),m=h,g=0;g<h;g++)if(l[g]!==r[g]){m=g;break}if(m==0)return e;for(var p=[],g=m;g<l.length;g++)p.push("..");return p=p.concat(i.slice(m)),p.join("\\")};ue._makeLong=function(t){if(!Ce.isString(t))return t;if(!t)return"";var e=ue.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};ue.dirname=function(t){var e=dt(t),n=e[0],a=e[1];return!n&&!a?".":(a&&(a=a.substr(0,a.length-1)),n+a)};ue.basename=function(t,e){var n=dt(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};ue.extname=function(t){return dt(t)[3]};ue.format=function(t){if(!Ce.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ce.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir,a=t.base||"";return n?n[n.length-1]===ue.sep?n+a:n+ue.sep+a:a};ue.parse=function(t){if(!Ce.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=dt(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};ue.sep="\\";ue.delimiter=";";var Gs=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,fe={};function ft(t){return Gs.exec(t).slice(1)}fe.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Ce.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=ut(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};fe.normalize=function(t){var e=fe.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=ut(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};fe.isAbsolute=function(t){return t.charAt(0)==="/"};fe.join=function(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];if(!Ce.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(t?t+="/"+n:t+=n)}return fe.normalize(t)};fe.relative=function(t,e){t=fe.resolve(t).substr(1),e=fe.resolve(e).substr(1);for(var n=Ze(t.split("/")),a=Ze(e.split("/")),i=Math.min(n.length,a.length),l=i,r=0;r<i;r++)if(n[r]!==a[r]){l=r;break}for(var h=[],r=l;r<n.length;r++)h.push("..");return h=h.concat(a.slice(l)),h.join("/")};fe._makeLong=function(t){return t};fe.dirname=function(t){var e=ft(t),n=e[0],a=e[1];return!n&&!a?".":(a&&(a=a.substr(0,a.length-1)),n+a)};fe.basename=function(t,e){var n=ft(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};fe.extname=function(t){return ft(t)[3]};fe.format=function(t){if(!Ce.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ce.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir?t.dir+fe.sep:"",a=t.base||"";return n+a};fe.parse=function(t){if(!Ce.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=ft(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};fe.sep="/";fe.delimiter=":";Us?Nt.exports=ue:Nt.exports=fe;tt.posix=fe;tt.win32=ue;const Qs={width:1024,height:1024,body:'<path fill="currentColor" d="m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"/>'},Ks={width:1024,height:1024,body:'<path fill="currentColor" d="M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"/>'},Ys={width:1024,height:1024,body:'<path fill="currentColor" d="M609.408 149.376L277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0a30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688a29.12 29.12 0 0 0-41.728 0z"/>'},Js={width:1024,height:1024,body:'<path fill="currentColor" d="M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512L340.864 831.872a30.592 30.592 0 0 0 0 42.752a29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"/>'},Xs={key:0,class:"sub-menu-icon"},Zs={key:0},el={key:0,class:"sub-menu-icon"},tl={key:1},cn=le({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=t,{layout:n,isCollapse:a,tooltipEffect:i}=ze(),l=Q(()=>a.value?{position:"static"}:{position:"absolute",right:"10px"}),r=Q(()=>({display:"flex",alignItems:"center"})),h=Q(()=>({width:a.value?"100%":"",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),m=Q(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),g=Q(()=>({width:a.value?"":"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"})),p=Q(()=>({overflow:"hidden",textOverflow:"ellipsis"})),_=Q(()=>{var C;return(C=Ae())!=null&&C.MenuArrowIconNoTransition?{"expand-close-icon":Fe(Ks),"expand-open-icon":Fe(Qs),"collapse-close-icon":Fe(Js),"collapse-open-icon":Fe(Ys)}:""}),c=D(null),b=new WeakMap,$=D(null);function L(C){b.get(C)||Ge(()=>{var O,z;((O=$.value)==null?void 0:O.scrollWidth)>((z=$.value)==null?void 0:z.clientWidth)?Object.assign(C,{showTooltip:!0}):Object.assign(C,{showTooltip:!1}),b.set(C,!0)})}function E(C=[],O){var N,J;const z=C.filter(G=>(c.value=G,!0));return(J=(N=z[0])==null?void 0:N.meta)!=null&&J.showParent?!1:z.length===1?!0:z.length===0?(c.value={...O,path:"",noShowingChildren:!0},!0):!1}function j(C,O){if(O&&O.query&&O.query.length>0){C+="?";for(let z in O.query){let N=O.query[z];C+=N.key+"="+N.value,z!=O.query.length-1&&(C+="&")}}return C}function F(C){const O=/^http(s?):\/\//;let z="",N=Ie(e.item);return O.test(C)||O.test(e.basePath)?z=C||e.basePath:z=tt.posix.resolve(e.basePath,C),z=j(z,N),z}return(C,O)=>{const z=w("el-tooltip"),N=w("FontIcon"),J=w("el-menu-item"),G=w("sidebar-item",!0),ie=w("el-sub-menu");return E(e.item.children,e.item)&&(!c.value.children||c.value.noShowingChildren)?(d(),A(J,{key:0,index:F(c.value.path),class:de({"submenu-title-noDropdown":!t.isNest}),style:se(o(r))},{title:y(()=>[v("div",{style:se(o(h))},[o(n)==="horizontal"?(d(),T("span",Zs,X(o(we)(c.value.meta.title)),1)):(d(),A(z,{key:1,placement:"top",effect:o(i),offset:-10,disabled:!c.value.showTooltip},{content:y(()=>[ee(X(o(we)(c.value.meta.title)),1)]),default:y(()=>[v("span",{ref_key:"menuTextRef",ref:$,style:se(o(m)),onMouseover:O[0]||(O[0]=S=>L(c.value))},X(o(we)(c.value.meta.title)),37)]),_:1},8,["effect","disabled"])),c.value.meta.extraIcon?(d(),A(N,{key:2,width:"30px",height:"30px",style:se(o(l)),icon:c.value.meta.extraIcon.name,svg:!!c.value.meta.extraIcon.svg},null,8,["style","icon","svg"])):Y("",!0)],4)]),default:y(()=>{var S,ce,ae,q;return[Ie(e.item.meta.icon)?(d(),T("div",Xs,[(d(),A(je(o(Fe)(Ie(c.value.meta.icon)||e.item.meta&&Ie(e.item.meta.icon)))))])):Y("",!0),o(a)&&o(n)==="vertical"&&((ce=(S=e.item)==null?void 0:S.pathList)==null?void 0:ce.length)===1?(d(),T("div",{key:1,style:se(o(h))},[v("span",{style:se(o(m))},X(o(we)(c.value.meta.title)),5)],4)):Y("",!0),o(a)&&o(n)==="mix"&&((q=(ae=e.item)==null?void 0:ae.pathList)==null?void 0:q.length)===2?(d(),T("div",{key:2,style:se(o(h))},[v("span",{style:se(o(m))},X(o(we)(c.value.meta.title)),5)],4)):Y("",!0)]}),_:1},8,["index","class","style"])):(d(),A(ie,Wn({key:1,ref:"subMenu"},o(_),{index:F(e.item.path)}),{title:y(()=>[Ie(e.item.meta.icon)?(d(),T("div",el,[(d(),A(je(o(Fe)(e.item.meta&&Ie(e.item.meta.icon)))))])):Y("",!0),o(n)==="horizontal"?(d(),T("span",tl,X(o(we)(e.item.meta.title)),1)):(d(),A(z,{key:2,placement:"top",effect:o(i),offset:-10,disabled:!e.item.showTooltip},{content:y(()=>[ee(X(o(we)(e.item.meta.title)),1)]),default:y(()=>[v("div",{ref_key:"menuTextRef",ref:$,style:se(o(g)),onMouseover:O[1]||(O[1]=S=>L(e.item))},[v("span",{style:se(o(p))},X(o(we)(e.item.meta.title)),5)],36)]),_:1},8,["effect","disabled"])),e.item.meta.extraIcon?(d(),A(N,{key:3,width:"30px",height:"30px",style:{position:"absolute",right:"10px"},icon:e.item.meta.extraIcon.name,svg:!!e.item.meta.extraIcon.svg},null,8,["icon","svg"])):Y("",!0)]),default:y(()=>[(d(!0),T(ve,null,be(e.item.children,S=>(d(),A(G,{key:S.path,"is-nest":!0,item:S,"base-path":F(S.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),nl={class:"container"},ol=le({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=D(!1),{tooltipEffect:i}=ze(),l=Q(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[360ms]","hover:text-primary","dark:hover:!text-white"]),r=()=>{e("toggleClick")};return(h,m)=>{const g=w("IconifyIconOffline"),p=w("el-tooltip");return d(),T("div",nl,[f(p,{placement:"right",visible:a.value,effect:o(i),content:n.isActive?"点击折叠":"点击展开"},{default:y(()=>[f(g,{icon:o(tn),class:de(o(l)),style:se({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:r,onMouseenter:m[0]||(m[0]=_=>a.value=!0),onMouseleave:m[1]||(m[1]=_=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const al=me(ol,[["__scopeId","data-v-c67b01cb"]]),sl=le({__name:"vertical",setup(t){var c,b;const e=xt(),n=D((b=(c=Ke().getItem("responsive-configure"))==null?void 0:c.showLogo)!=null?b:!0),{routers:a,device:i,pureApp:l,isCollapse:r,menuSelect:h,toggleSideBar:m}=ze(),g=D([]),p=Q(()=>l.layout==="mix"&&i.value!=="mobile"?g.value:ye().wholeMenus);function _($){const L=kt($,ye().wholeMenus),E=ot(L[0]||$,ye().wholeMenus);E!=null&&E.children&&(g.value=E==null?void 0:E.children)}return _(e.path),$t(()=>{Pe.on("logoChange",$=>{n.value=$})}),Te(()=>[e.path,ye().wholeMenus],()=>{_(e.path),h(e.path,a)}),($,L)=>{const E=w("el-menu"),j=w("el-scrollbar"),F=lt("loading");return _e((d(),T("div",{class:de(["sidebar-container",n.value?"has-logo":""])},[n.value?(d(),A(Ns,{key:0,collapse:o(r)},null,8,["collapse"])):Y("",!0),f(j,{"wrap-class":"scrollbar-wrapper",class:de([o(i)==="mobile"?"mobile":"pc"])},{default:y(()=>[f(E,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:o(r),"default-active":o(e).path,"collapse-transition":!1,onSelect:L[0]||(L[0]=C=>o(h)(C,o(a)))},{default:y(()=>[(d(!0),T(ve,null,be(o(p),C=>(d(),A(cn,{key:C.path,item:C,"base-path":C.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),o(i)!=="mobile"?(d(),A(al,{key:1,"is-active":o(l).sidebar.opened,onToggleClick:o(m)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[F,o(p).length===0]])}}});const ll=me(sl,[["__scopeId","data-v-962df41c"]]),rl={class:"horizontal-header"},il={class:"horizontal-header-right"},cl={class:"check-zh"},ul={class:"check-en"},dl={class:"el-dropdown-link navbar-bg-hover"},fl={key:0,class:"dark:text-white"},pl=["title"],hl=le({__name:"horizontal",setup(t){const e=D(),{t:n,route:a,locale:i,translationCh:l,translationEn:r}=bt(e),{title:h,routers:m,logout:g,backHome:p,onPanel:_,menuSelect:c,username:b,avatarsStyle:$,getDropdownItemStyle:L,getDropdownItemClass:E}=ze();return Ge(()=>{var j;(j=e.value)==null||j.handleResize()}),Te(()=>a.path,()=>{c(a.path,m)}),(j,F)=>{const C=w("FontIcon"),O=w("el-menu"),z=w("IconifyIconOffline"),N=w("el-dropdown-item"),J=w("el-dropdown-menu"),G=w("el-dropdown"),ie=lt("loading");return _e((d(),T("div",rl,[v("div",{class:"horizontal-header-left",onClick:F[0]||(F[0]=(...S)=>o(p)&&o(p)(...S))},[f(C,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),v("h4",null,X(o(h)),1)]),f(O,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o(a).path,onSelect:F[1]||(F[1]=S=>o(c)(S,o(m)))},{default:y(()=>[(d(!0),T(ve,null,be(o(ye)().wholeMenus,S=>(d(),A(cn,{key:S.path,item:S,"base-path":S.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",il,[f(Zt),f(en,{id:"header-notice"}),f(G,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[f(J,{class:"translation"},{default:y(()=>[f(N,{style:se(o(L)(o(i),"zh")),class:de(["dark:!text-white",o(E)(o(i),"zh")]),onClick:o(l)},{default:y(()=>[_e(v("span",cl,[f(z,{icon:o(et)},null,8,["icon"])],512),[[$e,o(i)==="zh"]]),ee(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(N,{style:se(o(L)(o(i),"en")),class:de(["dark:!text-white",o(E)(o(i),"en")]),onClick:o(r)},{default:y(()=>[_e(v("span",ul,[f(z,{icon:o(et)},null,8,["icon"])],512),[[$e,o(i)==="en"]]),ee(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[f(o(Wt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),f(G,{trigger:"click"},{dropdown:y(()=>[f(J,{class:"logout"},{default:y(()=>[f(N,{onClick:o(g)},{default:y(()=>[f(z,{icon:o(ct),style:{margin:"5px"}},null,8,["icon"]),ee(" "+X(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[v("span",dl,[v("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:se(o($))},null,4),o(b)?(d(),T("p",fl,X(o(b)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:F[2]||(F[2]=(...S)=>o(_)&&o(_)(...S))},[f(z,{icon:o(it)},null,8,["icon"])],8,pl)])])),[[ie,o(ye)().wholeMenus.length===0]])}}});const ml=me(hl,[["__scopeId","data-v-14923da0"]]),_l={key:0},vl=le({__name:"index",setup(t){const{isDark:e}=Ut(),{layout:n}=In(),a=gn(),i=zt(),{$storage:l}=yt(),r=qe({sidebar:Q(()=>Re().sidebar),device:Q(()=>Re().device),fixedHeader:Q(()=>i.fixedHeader),classes:Q(()=>({hideSidebar:!r.sidebar.opened,openSidebar:r.sidebar.opened,withoutAnimation:r.sidebar.withoutAnimation,mobile:r.device==="mobile"})),hideTabs:Q(()=>l==null?void 0:l.configure.hideTabs)});function h(_){var c,b,$,L;window.document.body.setAttribute("layout",_),l.layout={layout:`${_}`,theme:(c=l.layout)==null?void 0:c.theme,darkMode:(b=l.layout)==null?void 0:b.darkMode,sidebarStatus:($=l.layout)==null?void 0:$.sidebarStatus,epThemeColor:(L=l.layout)==null?void 0:L.epThemeColor}}function m(_,c){Re().toggleDevice(_),Re().toggleSideBar(c,"resize")}let g=!0;Pe.on("resize",({detail:_})=>{if(a)return;const{width:c}=_;c<=760?h("vertical"):h(Re().layout),c>0&&c<=760?(m("mobile",!1),g=!0):c>760&&c<=990?g&&(m("desktop",!1),g=!1):c>990&&(r.sidebar.isClickCollapse||(m("desktop",!0),g=!0))}),Ye(()=>{a&&m("mobile",!1)});const p=le({render(){return Xe("div",{class:{"fixed-header":r.fixedHeader},style:[r.hideTabs&&n.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!i.hiddenSideBar&&(n.value.includes("vertical")||n.value.includes("mix"))?Xe(Ha):null,!i.hiddenSideBar&&n.value.includes("horizontal")?Xe(ml):null,Xe(ns)]})}});return(_,c)=>{const b=w("el-backtop"),$=w("el-scrollbar"),L=lt("resize");return _e((d(),T("div",{class:de(["app-wrapper",r.classes])},[_e(v("div",{class:"app-mask",onClick:c[0]||(c[0]=E=>o(Re)().toggleSideBar())},null,512),[[$e,r.device==="mobile"&&r.sidebar.opened&&o(n).includes("vertical")]]),_e(f(ll,null,null,512),[[$e,!o(i).hiddenSideBar&&(o(n).includes("vertical")||o(n).includes("mix"))]]),v("div",{class:de(["main-container",o(i).hiddenSideBar?"main-hidden":""])},[r.fixedHeader?(d(),T("div",_l,[f(o(p)),f(qt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])])):(d(),A($,{key:1},{default:y(()=>[f(b,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:y(()=>[f(o(an))]),_:1}),f(o(p)),f(qt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),f(Hs)],2)),[[L]])}}});const ql=me(vl,[["__scopeId","data-v-c12afbe9"]]);export{ql as default};