File: /var/www/html/public/static/js/index-19fd0f09.js
import{bl as un,v as Me,F as dn,L as Xe,bg as Ue,bc as Qe,bW as fn,bX as nt,bY as De,s as gt,bm as pn,bZ as yt,b_ as jt,bh as hn,b$ as Ge,c0 as mn}from"./message-2472a54a.js";import{b as He}from"./index-9676aad5.js";import{d as _n}from"./admin-line-820c5ef1.js";import{d as vn}from"./git-branch-line-94a7fefb.js";import{e as Pe}from"./mitt-7f99bbc0.js";import{u as Le,a as bt,d as et,g as Nt,b as gn,t as yn,c as Re,e as bn,f as wn,h as kn}from"./dark-4a159493.js";import{i as Bt,c as xn,n as Cn,t as wt,e as In,f as Sn,g as $n,j as zn,k as Tn,l as Mn,m as ge,o as Ut,p as be,q as kt,v as ot,w as Te,$ as ve,x as pt,y as Ln,r as Wt,z as On,A as En}from"./index-479458b8.js";import{b as Ae}from"./index-b7f916e1.js";import{getRoleWeb as Vn,getManagerClinicsListWeb as An,setDefaultClinicsWeb as Pn}from"./po-bf9ba69d.js";import{u as st,d as xt}from"./vue-router-a383d220.js";import{u as Hn}from"./vue-i18n.runtime.esm-bundler-6949bcab.js";import{u as Dn}from"./epTheme-277a4581.js";import{u as Fe}from"./hooks-925dc7bd.js";import{w as Oe,r as P,e as u,f as T,g,d as le,c as G,F as me,I as ye,j as ae,u as o,l as A,q as qe,x as Y,y as d,Q as k,v as se,s as Rn,G as We,m as y,i as Ct,t as J,o as Je,_ as lt,p as _e,Z as ze,n as ue,A as Ke,L as Fn,a_ as It,P as Ze,aI as Mt,h as qn,b5 as Gt,b4 as Qt,J as jn}from"./runtime-core.esm-bundler-6128546f.js";import{_ as pe}from"./_plugin-vue_export-helper-c27b6911.js";import{d as Kt}from"./search-cc37b371.js";import{a as Nn}from"./avatarn-8bf3edc0.js";import{c as Bn}from"./_commonjsHelpers-87174ba5.js";import"./preload-helper-78dc9057.js";import"./utils-2ab4f76a.js";function Ne(t){var e;const n=Sn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const rt=Bt?window:void 0,Un=Bt?window.document:void 0;function Be(...t){let e,n,a,i;if(xn(t[0])||Array.isArray(t[0])?([n,a,i]=t,e=rt):[e,n,a,i]=t,!e)return Cn;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const s=[],r=()=>{s.forEach(m=>m()),s.length=0},f=(m,_,c)=>(m.addEventListener(_,c,i),()=>m.removeEventListener(_,c,i)),h=Oe(()=>Ne(e),m=>{r(),m&&s.push(...n.flatMap(_=>a.map(c=>f(m,_,c))))},{immediate:!0,flush:"post"}),v=()=>{h(),r()};return wt(v),v}function Wn(t,e,n={}){const{window:a=rt,ignore:i,capture:s=!0,detectIframe:r=!1}=n;if(!a)return;let f=!0,h;const v=b=>{a.clearTimeout(h);const $=Ne(t);if(!(!$||$===b.target||b.composedPath().includes($))){if(!f){f=!0;return}e(b)}},m=b=>i&&i.some($=>{const L=Ne($);return L&&(b.target===L||b.composedPath().includes(L))}),_=[Be(a,"click",v,{passive:!0,capture:s}),Be(a,"pointerdown",b=>{const $=Ne(t);$&&(f=!b.composedPath().includes($)&&!m(b))},{passive:!0}),Be(a,"pointerup",b=>{if(b.button===0){const $=b.composedPath();b.composedPath=()=>$,h=a.setTimeout(()=>v(b),50)}},{passive:!0}),r&&Be(a,"blur",b=>{var $;const L=Ne(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 Gn=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:s="keydown",passive:r=!1}=a,f=Gn(e);return Be(i,s,v=>{f(v)&&n(v)},r)}function Jt(t,e=!1){const n=P(),a=()=>n.value=Boolean(t());return a(),$n(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 Lt=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,Jn=(t,e)=>{var n={};for(var a in t)Qn.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&Lt)for(var a of Lt(t))e.indexOf(a)<0&&Kn.call(t,a)&&(n[a]=t[a]);return n};function Xn(t,e,n={}){const a=n,{window:i=rt}=a,s=Jn(a,["window"]);let r;const f=Jt(()=>i&&"ResizeObserver"in i),h=()=>{r&&(r.disconnect(),r=void 0)},v=Oe(()=>Ne(t),_=>{h(),f.value&&i&&_&&(r=new ResizeObserver(e),r.observe(_,s))},{immediate:!0,flush:"post"}),m=()=>{h(),v()};return wt(m),{isSupported:f,stop:m}}const Ot=[["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 Zn(t,e={}){const{document:n=Un,autoExit:a=!1}=e,i=t||(n==null?void 0:n.querySelector("html")),s=P(!1);let r=Ot[0];const f=Jt(()=>{if(n){for(const L of Ot)if(L[1]in n)return r=L,!0}else return!1;return!1}),[h,v,m,,_]=r;async function c(){f.value&&(n!=null&&n[m]&&await n[v](),s.value=!1)}async function b(){if(!f.value)return;await c();const L=Ne(i);L&&(await L[h](),s.value=!0)}async function $(){s.value?await c():await b()}return n&&Be(n,_,()=>{s.value=!!(n!=null&&n[m])},!1),a&&wt(c),{isSupported:f,isFullscreen:s,enter:b,exit:c,toggle:$}}var Et;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Et||(Et={}));var Yn=Object.defineProperty,Vt=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,At=(t,e,n)=>e in t?Yn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,no=(t,e)=>{for(var n in e||(e={}))eo.call(e,n)&&At(t,n,e[n]);if(Vt)for(var n of Vt(e))to.call(e,n)&&At(t,n,e[n]);return t};const oo={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]};no({linear:In},oo);const ao={width:1024,height:1024,body:'<path fill="currentColor" d="M512 128L128 447.936V896h255.936V640H640v256h255.936V447.936z"/>'},so={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"/>'},lo={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"/>'},ro={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"/>'},io={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"/>'},co={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",ao);He("informationLine",so);He("lollipop",lo);He("tools",ro);He("api_outlined",io);He("flUser",_n);He("role",co);He("setting",it);He("dept",vn);const uo=zn({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 St(){return uo(Tn)}const fo="/public/static/png/logout_icon-0b5ade2e.png",po={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},ho=g("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),mo=[ho];function _o(t,e){return u(),T("svg",po,mo)}const Xt={render:_o},vo={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"/>'},go={class:"result"},yo=["onMouseenter"],bo={class:"result-item-title"},wo=le({__name:"SearchResult",props:{value:null,options:null},emits:["update:value","enter"],setup(t,{emit:e}){const n=t,{t:a}=Hn(),i=G(()=>h=>({background:(h==null?void 0:h.path)===s.value?Dn().epThemeColor:"",color:h.path===s.value?"#fff":"",fontSize:h.path===s.value?"16px":"14px"})),s=G({get(){return n.value},set(h){e("update:value",h)}});async function r(h){s.value=h.path}function f(){e("enter")}return(h,v)=>(u(),T("div",go,[(u(!0),T(me,null,ye(t.options,m=>{var _,c,b;return u(),T("div",{key:m.path,class:"result-item dark:bg-[#1d1d1d]",style:ae(o(i)(m)),onClick:f,onMouseenter:$=>r(m)},[(u(),A(qe(o(Fe)((c=(_=m.meta)==null?void 0:_.icon)!=null?c:o(vo))))),g("span",bo,Y(o(a)((b=m.meta)==null?void 0:b.title)),1),d(o(Xt))],44,yo)}),128))]))}});const ko=pe(wo,[["__scopeId","data-v-e217e6a5"]]),xo={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"/>'},Co={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"/>'},Io={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},So=g("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),$o=[So];function zo(t,e){return u(),T("svg",Io,$o)}const To={render:zo},Mo={class:"search-footer text-[#333] dark:text-white"},Lo={class:"search-footer-item"},Oo={class:"search-footer-item"},Eo={class:"search-footer-item"},Vo=le({__name:"SearchFooter",setup(t){return(e,n)=>{const a=k("IconifyIconOffline");return u(),T("div",Mo,[g("span",Lo,[d(o(Xt),{class:"icon"}),se(" 确认 ")]),g("span",Oo,[d(a,{icon:o(xo),class:"icon"},null,8,["icon"]),d(a,{icon:o(Co),class:"icon"},null,8,["icon"]),se(" 切换 ")]),g("span",Eo,[d(o(To),{class:"icon"}),se(" 关闭 ")])])}}});const Ao=pe(Vo,[["__scopeId","data-v-7bb0b4c8"]]),Po={class:"el-input__icon"},Ho={class:"search-result-container"},Do=le({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const n=t,{device:a}=Le(),i=st(),s=P(""),r=P(""),f=P(null),h=Rn([]),v=Ut(b,300),m=G(()=>Mn(un(ge().wholeMenus))),_=G({get(){return n.value},set(F){e("update:value",F)}});Oe(_,async F=>{var x;F&&(await We(),(x=f.value)==null||x.focus())});function c(F){const x=[];function M(z){z.forEach(q=>{x.push(q),q.children&&M(q.children)})}return M(F),x}function b(){var x;const F=c(m.value);h.value=F.filter(M=>{var z;return s.value&&be((z=M.meta)==null?void 0:z.title).toLocaleLowerCase().includes(s.value.toLocaleLowerCase().trim())}),((x=h.value)==null?void 0:x.length)>0?r.value=h.value[0].path:r.value=""}function $(){_.value=!1,setTimeout(()=>{h.value=[],s.value=""},200)}function L(){const{length:F}=h.value;if(F===0)return;const x=h.value.findIndex(M=>M.path===r.value);x===0?r.value=h.value[F-1].path:r.value=h.value[x-1].path}function E(){const{length:F}=h.value;if(F===0)return;const x=h.value.findIndex(M=>M.path===r.value);x+1===F?r.value=h.value[0].path:r.value=h.value[x+1].path}function N(){const{length:F}=h.value;F===0||r.value===""||(i.push(r.value),$())}return ht("Enter",N),ht("ArrowUp",L),ht("ArrowDown",E),(F,x)=>{const M=k("IconifyIconOffline"),z=k("el-input"),q=k("el-empty"),X=k("el-dialog");return u(),A(X,{top:"5vh",width:o(a)==="mobile"?"80vw":"50vw",modelValue:o(_),"onUpdate:modelValue":x[2]||(x[2]=Q=>Ct(_)?_.value=Q:null),"before-close":$},{footer:y(()=>[d(Ao)]),default:y(()=>[d(z,{ref_key:"inputRef",ref:f,modelValue:s.value,"onUpdate:modelValue":x[0]||(x[0]=Q=>s.value=Q),clearable:"",placeholder:"请输入关键词搜索",onInput:o(v)},{prefix:y(()=>[g("span",Po,[d(M,{icon:o(Kt)},null,8,["icon"])])]),_:1},8,["modelValue","onInput"]),g("div",Ho,[o(h).length===0?(u(),A(q,{key:0,description:"暂无搜索结果"})):(u(),A(ko,{key:1,value:r.value,"onUpdate:value":x[1]||(x[1]=Q=>r.value=Q),options:o(h),onClick:N},null,8,["value","options"]))])]),_:1},8,["width","modelValue"])}}});const Ro=pe(Do,[["__scopeId","data-v-6b7d67f4"]]);function Fo(t=!1){const e=P(t);function n(r){e.value=r}function a(){n(!0)}function i(){n(!1)}function s(){n(!e.value)}return{bool:e,setBool:n,setTrue:a,setFalse:i,toggle:s}}const Zt=le({__name:"index",setup(t){const{bool:e,toggle:n}=Fo();function a(){n()}return(i,s)=>{const r=k("IconifyIconOffline");return u(),T(me,null,[g("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[d(r,{icon:o(Kt)},null,8,["icon"])]),d(o(Ro),{value:o(e),"onUpdate:value":s[0]||(s[0]=f=>Ct(e)?e.value=f:null)},null,8,["value"])],64)}}}),Pt=[{key:"1",name:"通知",list:[]},{key:"2",name:"消息",list:[]},{key:"3",name:"代办",list:[]}],qo={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},jo={class:"notice-container-text"},No={class:"notice-text-title text-[#000000d9] dark:text-white"},Bo={class:"notice-text-datetime text-[#00000073] dark:text-white"},Uo=le({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=P(null),a=P(!1),i=P(null),s=P(!1),{tooltipEffect:r}=Le();function f(){We(()=>{var v,m;((v=n.value)==null?void 0:v.scrollWidth)>((m=n.value)==null?void 0:m.clientWidth)?a.value=!0:a.value=!1})}function h(v,m){const _=document.createElement("span");_.innerText=m,_.className="getDescriptionWidth",document.querySelector("body").appendChild(_);const c=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=v.target.offsetWidth;c>2*b?s.value=!0:s.value=!1}return(v,m)=>{var $,L;const _=k("el-avatar"),c=k("el-tooltip"),b=k("el-tag");return u(),T("div",qo,[e.noticeItem.avatar?(u(),A(_,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):J("",!0),g("div",jo,[g("div",No,[d(c,{"popper-class":"notice-title-popper",effect:o(r),disabled:!a.value,content:e.noticeItem.title,placement:"top-start"},{default:y(()=>[g("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:f},Y(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content"]),($=e.noticeItem)!=null&&$.extra?(u(),A(b,{key:0,type:(L=e.noticeItem)==null?void 0:L.status,size:"small",class:"notice-title-extra"},{default:y(()=>{var E;return[se(Y((E=e.noticeItem)==null?void 0:E.extra),1)]}),_:1},8,["type"])):J("",!0)]),d(c,{"popper-class":"notice-title-popper",effect:o(r),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:y(()=>[g("div",{ref_key:"descriptionRef",ref:i,class:"notice-text-description",onMouseover:m[0]||(m[0]=E=>h(E,e.noticeItem.description))},Y(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),g("div",Bo,Y(e.noticeItem.datetime),1)])])}}});const Wo=pe(Uo,[["__scopeId","data-v-d7ad69f1"]]),Go={key:0},Qo=le({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const i=k("el-empty");return e.list.length?(u(),T("div",Go,[(u(!0),T(me,null,ye(e.list,(s,r)=>(u(),A(Wo,{noticeItem:s,key:r},null,8,["noticeItem"]))),128))])):(u(),A(i,{key:1,description:"暂无数据"}))}}}),Ko={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"/>'},Jo={class:"dropdown-badge navbar-bg-hover select-none"},Xo={class:"header-notice-icon"},Zo={class:"noticeList-container"},Yo=le({__name:"index",setup(t){const e=P(0),n=P(Pt),a=P(Pt[0].key);return n.value.map(i=>e.value+=i.list.length),(i,s)=>{const r=k("IconifyIconOffline"),f=k("el-badge"),h=k("el-scrollbar"),v=k("el-tab-pane"),m=k("el-tabs"),_=k("el-dropdown-menu"),c=k("el-dropdown");return u(),A(c,{trigger:"click",placement:"bottom-end"},{dropdown:y(()=>[d(_,null,{default:y(()=>[d(m,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=b=>a.value=b),class:"dropdown-tabs"},{default:y(()=>[(u(!0),T(me,null,ye(n.value,b=>(u(),A(v,{key:b.key,label:`${b.name}(${b.list.length})`,name:`${b.key}`},{default:y(()=>[d(h,{"max-height":"330px"},{default:y(()=>[g("div",Zo,[d(Qo,{list:b.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:y(()=>[g("span",Jo,[d(f,{value:e.value,max:99},{default:y(()=>[g("span",Xo,[d(r,{icon:o(Ko)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const Yt=pe(Yo,[["__scopeId","data-v-5c37c90c"]]),ea={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=ea,ta={key:0,class:"horizontal-header"},na={class:"select-none"},oa={class:"horizontal-header-right"},aa={class:"check-zh"},sa={class:"check-en"},la={class:"el-dropdown-link navbar-bg-hover select-none"},ra={key:0,class:"dark:text-white"},ia=["title"],ca=le({__name:"mixNav",setup(t){const e=P(),n=P(null),{t:a,route:i,locale:s,translationCh:r,translationEn:f}=bt(e),{device:h,routers:v,logout:m,onPanel:_,menuSelect:c,resolvePath:b,username:$,avatarsStyle:L,getDropdownItemStyle:E,getDropdownItemClass:N}=Le();function F(x){var q,X;const M=ge().wholeMenus,z=kt(x,M)[0];n.value=(X=(q=ot(z,M))==null?void 0:q.children[0])==null?void 0:X.path}return Je(()=>{F(i.path)}),We(()=>{var x;(x=e.value)==null||x.handleResize()}),Oe(()=>[i.path,ge().wholeMenus],()=>{F(i.path)}),(x,M)=>{const z=k("FontIcon"),q=k("el-menu-item"),X=k("el-menu"),Q=k("IconifyIconOffline"),ce=k("el-dropdown-item"),w=k("el-dropdown-menu"),te=k("el-dropdown"),ne=lt("loading");return o(h)!=="mobile"?_e((u(),T("div",ta,[d(X,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":n.value,onSelect:M[0]||(M[0]=j=>o(c)(j,o(v)))},{default:y(()=>[(u(!0),T(me,null,ye(o(ge)().wholeMenus,j=>(u(),A(q,{key:j.path,index:o(b)(j)||j.redirect},{title:y(()=>[ze(j.meta.icon)?(u(),T("div",{key:0,class:ue(["sub-menu-icon",j.meta.icon])},[(u(),A(qe(o(Fe)(j.meta&&ze(j.meta.icon)))))],2)):J("",!0),g("span",na,Y(o(be)(j.meta.title)),1),j.meta.extraIcon?(u(),A(z,{key:1,width:"30px",height:"30px",style:{position:"absolute",right:"10px"},icon:j.meta.extraIcon.name,svg:!!j.meta.extraIcon.svg},null,8,["icon","svg"])):J("",!0)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),g("div",oa,[d(Zt),d(Yt,{id:"header-notice"}),d(te,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[d(w,{class:"translation"},{default:y(()=>[d(ce,{style:ae(o(E)(o(s),"zh")),class:ue(["dark:!text-white",o(N)(o(s),"zh")]),onClick:o(r)},{default:y(()=>[_e(g("span",aa,[d(Q,{icon:o(et)},null,8,["icon"])],512),[[Me,o(s)==="zh"]]),se(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(ce,{style:ae(o(E)(o(s),"en")),class:ue(["dark:!text-white",o(N)(o(s),"en")]),onClick:o(f)},{default:y(()=>[_e(g("span",sa,[d(Q,{icon:o(et)},null,8,["icon"])],512),[[Me,o(s)==="en"]]),se(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[d(o(Nt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(te,{trigger:"click"},{dropdown:y(()=>[d(w,{class:"logout"},{default:y(()=>[d(ce,{onClick:o(m)},{default:y(()=>[d(Q,{icon:o(ct),style:{margin:"5px"}},null,8,["icon"]),se(" "+Y(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[g("span",la,[g("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ae(o(L))},null,4),o($)?(u(),T("p",ra,Y(o($)),1)):J("",!0)])]),_:1}),g("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.hssystemSet"),onClick:M[1]||(M[1]=(...j)=>o(_)&&o(_)(...j))},[d(Q,{icon:o(it)},null,8,["icon"])],8,ia)])])),[[ne,o(ge)().wholeMenus.length===0]]):J("",!0)}}});const ua=pe(ca,[["__scopeId","data-v-321f4ccb"]]),da=["onClick"],fa=le({__name:"breadCrumb",setup(t){const e=xt(),n=P([]),a=st(),i=a.options.routes,s=Te().multiTags,r=v=>{const m=v&&v.name;return m?m.trim().toLocaleLowerCase()==="Welcome".toLocaleLowerCase():!1},f=()=>{let v;Object.keys(e.query).length>0?s.forEach(c=>{Ue(e.query,c==null?void 0:c.query)&&(v=ze(c))}):Object.keys(e.params).length>0?s.forEach(c=>{Ue(e.params,c==null?void 0:c.params)&&(v=ze(c))}):v=ot(a.currentRoute.value.path,s);const m=kt(a.currentRoute.value.path,i);let _=[];m.forEach(c=>{c!=="/"&&_.push(ot(c,i))}),(v==null?void 0:v.path)!=="/welcome"&&_.push(v),r(_[0])||(_=[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome"}}].concat(_)),_.forEach((c,b)=>{v!=null&&v.query||v!=null&&v.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)},h=v=>{const{redirect:m,path:_}=v;m?a.push(m):a.push(_)};return Je(()=>{f()}),Oe(()=>e.path,()=>{f()}),(v,m)=>{const _=k("el-breadcrumb-item"),c=k("el-breadcrumb");return u(),A(c,{class:"!leading-[50px] select-none",separator:"/"},{default:y(()=>[d(dn,{name:"breadcrumb"},{default:y(()=>[(u(!0),T(me,null,ye(n.value,b=>(u(),A(_,{class:"!inline !items-stretch",key:b.path},{default:y(()=>[g("a",{onClick:Xe($=>h(b),["prevent"])},Y(o(be)(b.meta.title)),9,da)]),_:2},1024))),128))]),_:1})]),_:1})}}}),pa={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"/>'},en=pa,ha={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"/>'},ma=["title"],_a=le({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=()=>{e("toggleClick")};return(i,s)=>{const r=k("IconifyIconOffline");return u(),T("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:a},[d(r,{icon:n.isActive?o(en):o(ha),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,ma)}}}),va={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},ga={key:3,class:"vertical-header-right"},ya={key:1,class:"identity"},ba={key:2,class:"identity"},wa={key:3,class:"identity"},ka={class:"el-dropdown-link navbar-bg-hover select-none"},xa={key:0,style:{margin:"0 15px 0 0"},class:"dark:text-white"},Ca=["title"],Ia=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=P(""),a=P(""),i=P([]),s=Ke({}),r=Ke({}),f=Ke({}),{layout:h,device:v,logout:m,onPanel:_,pureApp:c,username:b,avatarsStyle:$,toggleSideBar:L,getDropdownItemStyle:E,getDropdownItemClass:N}=Le();async function F(){const{data:w}=await Vn(Object.assign(s,{}));w.code==1&&(n.value=w.data.role,localStorage.setItem("type",w.data.role),x())}async function x(){const{data:w}=await An(Object.assign(r,{cliniic_name:"",pageSize:1e3,page:1,is_active:"Y",current_jindu:"",current_weidu:""}));i.value=w.data,a.value=w.select_clinic_id,n.value==2?localStorage.setItem("clinicIdOverall",a.value):localStorage.setItem("clinicIdOverall","")}async function M(){await Pn(Object.assign(f,{clinic_id:a.value})),localStorage.setItem("clinicIdOverall",a.value),window.location.reload()}function z(){M()}Je(()=>{e=="yuyue"&&F()});const{t:q,locale:X,translationCh:Q,translationEn:ce}=bt();return(w,te)=>{const ne=k("el-option"),j=k("el-select"),ke=k("IconifyIconOffline"),Se=k("el-dropdown-item"),$e=k("el-dropdown-menu"),l=k("el-dropdown");return u(),T("div",va,[o(v)==="mobile"?(u(),A(_a,{key:0,class:"hamburger-container","is-active":o(c).sidebar.opened,onToggleClick:o(L)},null,8,["is-active","onToggleClick"])):J("",!0),o(h)!=="mix"&&o(v)!=="mobile"?(u(),A(fa,{key:1,class:"breadcrumb-container"})):J("",!0),o(h)==="mix"?(u(),A(ua,{key:2})):J("",!0),o(h)==="vertical"?(u(),T("div",ga,[n.value==2?(u(),A(j,{key:0,style:{width:"220px",margin:"0 20px 0 0"},modelValue:a.value,"onUpdate:modelValue":te[0]||(te[0]=p=>a.value=p),"allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:z},{default:y(()=>[(u(!0),T(me,null,ye(i.value,p=>(u(),A(ne,{key:p.id,label:p.text,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):J("",!0),n.value==1?(u(),T("div",ya,"Therapist")):J("",!0),n.value==2?(u(),T("div",ba,"Clinic")):J("",!0),n.value==0?(u(),T("div",wa,"Client")):J("",!0),d(l,{trigger:"click"},{dropdown:y(()=>[d($e,{class:"logout"},{default:y(()=>[d(Se,{onClick:o(m)},{default:y(()=>[d(ke,{icon:o(ct),style:{margin:"5px"}},null,8,["icon"]),se(" "+Y(o(q)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[g("span",ka,[o(b)?(u(),T("p",xa,Y(o(b)),1)):J("",!0),g("img",{style:ae([{width:"18px",height:"18px"},o($)]),src:fo},null,4)])]),_:1}),g("span",{class:"set-icon navbar-bg-hover",title:o(q)("buttons.hssystemSet"),onClick:te[1]||(te[1]=(...p)=>o(_)&&o(_)(...p))},[d(ke,{icon:o(it)},null,8,["icon"])],8,Ca)])):J("",!0)])}}});const Sa=pe(Ia,[["__scopeId","data-v-19908086"]]),at={width:24,height:24,body:'<path fill="currentColor" d="M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z"/>'},$a={width:24,height:24,body:'<path fill="currentColor" d="M5 11h14v2H5z"/>'},za={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"/>'},Ta={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"/>'},Ma={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"/>'},La={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"/>'},Oa={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"/>'},tn=Oa;function Ea(){var Q,ce;const t=xt(),e=st(),n=Fn(),a=St(),i=P(0),s=P(0),r=P(0),f=P(!1),h=P(-1),v=P({}),m=P(((Q=Qe().getItem("responsive-configure"))==null?void 0:Q.showModel)||"smart"),_=(ce=P(Qe().getItem("responsive-configure").hideTabs))!=null?ce:P("false"),c=G(()=>Te().multiTags),b=Ke([{icon:La,text:ve("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:tn,text:ve("buttons.hscloseCurrentTab"),divided:!1,disabled:!(c.value.length>1),show:!0},{icon:Ma,text:ve("buttons.hscloseLeftTabs"),divided:!0,disabled:!(c.value.length>1),show:!0},{icon:Ta,text:ve("buttons.hscloseRightTabs"),divided:!1,disabled:!(c.value.length>1),show:!0},{icon:za,text:ve("buttons.hscloseOtherTabs"),divided:!0,disabled:!(c.value.length>2),show:!0},{icon:$a,text:ve("buttons.hscloseAllTabs"),divided:!1,disabled:!(c.value.length>1),show:!0},{icon:at,text:ve("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:at,text:ve("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function $(w,te,ne){var j,ke;return fn((j=t==null?void 0:t.meta)==null?void 0:j.showLink)&&((ke=t==null?void 0:t.meta)==null?void 0:ke.showLink)===!1?Object.keys(t.query).length>0?Ue(t.query,w.query)?te:ne:Ue(t.params,w.params)?te:ne:t.path===w.path?te:ne}const L=G(()=>(w,te)=>{if(te!==0)return $(w,!0,!1)}),E=G(()=>w=>$(w,"is-active","")),N=G(()=>w=>$(w,"schedule-active","")),F=G(()=>({transform:`translateX(${r.value}px)`})),x=G(()=>({left:s.value+"px",top:i.value+"px"})),M=()=>{f.value=!1};function z(w){if(w&&(h.value=w),o(m)==="smart"){if(nt(n.refs["schedule"+w][0],"schedule-active"))return;De(!0,"schedule-in",n.refs["schedule"+w][0]),De(!1,"schedule-out",n.refs["schedule"+w][0])}else{if(nt(n.refs["dynamic"+w][0],"card-active"))return;De(!0,"card-in",n.refs["dynamic"+w][0]),De(!1,"card-out",n.refs["dynamic"+w][0])}}function q(w){if(h.value=-1,o(m)==="smart"){if(nt(n.refs["schedule"+w][0],"schedule-active"))return;De(!1,"schedule-in",n.refs["schedule"+w][0]),De(!0,"schedule-out",n.refs["schedule"+w][0])}else{if(nt(n.refs["dynamic"+w][0],"card-active"))return;De(!1,"card-in",n.refs["dynamic"+w][0]),De(!0,"card-out",n.refs["dynamic"+w][0])}}function X(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Je(()=>{if(!m.value){const w=Qe().getItem("responsive-configure");w.showModel="card",Qe().setItem("responsive-configure",w)}}),Oe(()=>f.value,()=>{Be(document,"click",M)}),{route:t,router:e,visible:f,showTags:_,instance:n,multiTags:c,showModel:m,tagsViews:b,buttonTop:i,buttonLeft:s,translateX:r,pureSetting:a,activeIndex:h,getTabStyle:F,iconIsActive:L,linkIsActive:E,currentSelect:v,scheduleIsActive:N,getContextMenuStyle:x,$t:ve,closeMenu:M,onMounted:Je,onMouseenter:z,onMouseleave:q,transformI18n:be,onContentFullScreen:X}}const Ht={width:24,height:24,body:'<path fill="currentColor" d="M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z"/>'},Va={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"/>'},Aa={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"/>'},Pa={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"/>'},Ha={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"/>'},Da={class:"arrow-left"},Ra=["onContextmenu","onMouseenter","onMouseleave","onClick"],Fa=["onClick"],qa={class:"arrow-right"},ja=["onClick"],Na={class:"arrow-down"},Ba=le({__name:"index",setup(t){const{route:e,router:n,visible:a,showTags:i,instance:s,multiTags:r,tagsViews:f,buttonTop:h,buttonLeft:v,showModel:m,translateX:_,pureSetting:c,activeIndex:b,getTabStyle:$,iconIsActive:L,linkIsActive:E,currentSelect:N,scheduleIsActive:F,getContextMenuStyle:x,closeMenu:M,onMounted:z,onMouseenter:q,onMouseleave:X,transformI18n:Q,onContentFullScreen:ce}=Ea(),w=P(),te=P(),ne=P(),j=P(!1),{isFullscreen:ke,toggle:Se}=Zn(),$e=()=>{const S=r.value.findIndex(V=>V.query?Ue(e.query,V.query):V.params?Ue(e.params,V.params):V.path===e.path);l(S)},l=S=>{var W,re;if(!s.refs["dynamic"+S])return;const R=s.refs["dynamic"+S][0],K=R==null?void 0:R.offsetLeft,fe=R==null?void 0:R.offsetWidth,Z=ne.value?(W=ne.value)==null?void 0:W.offsetWidth:0,B=w.value?(re=w.value)==null?void 0:re.offsetWidth:0;Z<=B?j.value=!0:j.value=!1,B<Z||K===0?_.value=0:K<-_.value?_.value=-K+10:K>-_.value&&K+fe<-_.value+Z?_.value=Math.min(0,Z-fe-K-10):_.value=-(K-(Z-10-fe))},p=S=>{var K;const V=ne.value?(K=ne.value)==null?void 0:K.offsetWidth:0,R=w.value?w.value.offsetWidth:0;S>0?_.value=Math.min(0,_.value+S):V<R?_.value>=-(R-V)&&(_.value=Math.max(_.value+S,V-R)):_.value=0};function I(S,V){const R=r.value.some(fe=>fe.path===S);function K(fe,Z,B){R||fe.forEach(W=>{const re=B+W.path;W.path===Z||re===Z?Te().handleTags("push",{path:Z,parentPath:`/${B.split("/")[1]}`,meta:W.meta,name:W.name}):W.children&&W.children.length>0&&K(W.children,Z,B)})}K(n.options.routes,S,V)}function C(){const{fullPath:S,query:V}=o(e);n.replace({path:"/redirect"+S,query:V})}function O(S,V,R){var W,re,Ve,Tt;let K=[];const fe=r.value.findIndex(Ce=>{if(Ce.query){if(Ce.path===S.path)return Ce.query===S.query}else if(Ce.params){if(Ce.path===S.path)return Ce.params===S.params}else return Ce.path===S.path}),Z=(Ce,rn,cn)=>{cn?Te().handleTags("equal",[Wt[0],S]):K=Te().handleTags("splice","",{startIndex:Ce,length:rn})};R==="other"?Z(1,1,!0):R==="left"?Z(1,fe-1):R==="right"?Z(fe+1,r.value.length):Z(fe,1);const B=Te().handleTags("slice");if(V===e.path){if(R?pt(K):Ln(e.matched,"delete"),R==="left")return;(W=B[0])!=null&&W.query?n.push({name:B[0].name,query:B[0].query}):(re=B[0])!=null&&re.params?n.push({name:B[0].name,params:B[0].params}):n.push({path:B[0].path})}else{if(R?pt(K):pt([S]),!r.value.length||r.value.some(Ce=>Ce.path===e.path))return;(Ve=B[0])!=null&&Ve.query?n.push({name:B[0].name,query:B[0].query}):(Tt=B[0])!=null&&Tt.params?n.push({name:B[0].name,params:B[0].params}):n.push({path:B[0].path})}}function D(S,V){O(S,S.path,V)}function H(S,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},S){case 0:C();break;case 1:D(K);break;case 2:D(K,"left");break;case 3:D(K,"right");break;case 4:D(K,"other");break;case 5:Te().handleTags("splice","",{startIndex:1,length:r.value.length}),n.push("/welcome");break;case 6:Se(),setTimeout(()=>{ke.value?(f[6].icon=Ht,f[6].text=ve("buttons.hswholeExitFullScreen")):(f[6].icon=at,f[6].text=ve("buttons.hswholeFullScreen"))},100);break;case 7:ce(),setTimeout(()=>{c.hiddenSideBar?(f[7].icon=Ht,f[7].text=ve("buttons.hscontentExitFullScreen")):(f[7].icon=at,f[7].text=ve("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Ee(e.fullPath,e.query)})}function U(S){const{key:V,item:R}=S;H(V,R)}function oe(S,V){H(S,V,N.value)}function he(S){Array.of(1,2,3,4,5).forEach(V=>{f[V].show=S})}function xe(S){Array.of(1,2,3,4,5).forEach(V=>{f[V].disabled=S})}function Ee(S,V={},R=!1){const K=r.value,fe=r.value.length;let Z=-1;pn(V)?Z=K.findIndex(B=>B.path===S):Z=K.findIndex(B=>Ue(B.query,V)),he(!0),R&&(f[0].show=!0),Z===1&&fe!==2?(f[2].show=!1,Array.of(1,3,4,5).forEach(B=>{f[B].disabled=!1}),f[2].disabled=!0):Z===1&&fe===2?(xe(!1),Array.of(2,3,4).forEach(B=>{f[B].show=!1,f[B].disabled=!0})):fe-1===Z&&Z!==0?(f[3].show=!1,Array.of(1,2,4,5).forEach(B=>{f[B].disabled=!1}),f[3].disabled=!0):xe(Z===0||S==="/redirect/welcome")}function je(S,V){M(),S.path==="/welcome"?(he(!1),f[0].show=!0):e.path!==S.path&&e.name!==S.name?(f[0].show=!1,Ee(S.path,S.query)):r.value.length===2&&e.path!==S.path?(he(!0),f[4].show=!1):e.path===S.path&&Ee(S.path,S.query,!0),N.value=S;const R=105,K=o(te).getBoundingClientRect().left,Z=o(te).offsetWidth-R,B=V.clientX-K+5;B>Z?v.value=Z:v.value=B,St().hiddenSideBar?h.value=V.clientY:h.value=V.clientY-40,We(()=>{a.value=!0})}function ee(S){const{name:V,path:R}=S;V?S.query?n.push({name:V,query:S.query}):S.params?n.push({name:V,params:S.params}):n.push({name:V}):n.push({path:R})}return It(()=>{s&&(Ee(e.fullPath),Pe.on("tagViewsChange",S=>{o(i)!==S&&(i.value=S)}),Pe.on("tagViewsShowModel",S=>{m.value=S}),Pe.on("changLayoutRoute",({indexPath:S,parentPath:V})=>{I(S,V),setTimeout(()=>{Ee(S)})}))}),Oe([e],()=>{b.value=-1,$e()}),z(()=>{Xn(ne,Ut(()=>{$e()},200))}),(S,V)=>{const R=k("IconifyIconOffline"),K=k("router-link"),fe=k("el-dropdown-item"),Z=k("el-dropdown-menu"),B=k("el-dropdown");return o(i)?J("",!0):(u(),T("div",{key:0,ref_key:"containerDom",ref:te,class:"tags-view"},[_e(g("span",Da,[d(R,{icon:o(Pa),onClick:V[0]||(V[0]=W=>p(200))},null,8,["icon"])],512),[[Me,j.value]]),g("div",{ref_key:"scrollbarDom",ref:ne,class:"scroll-container"},[g("div",{class:"tab select-none",ref_key:"tabDom",ref:w,style:ae(o($))},[(u(!0),T(me,null,ye(o(r),(W,re)=>(u(),T("div",{ref_for:!0,ref:"dynamic"+re,key:re,class:ue(["scroll-item is-closable",o(E)(W),S.$route.path===W.path&&o(m)==="card"?"card-active":""]),onContextmenu:Xe(Ve=>je(W,Ve),["prevent"]),onMouseenter:Xe(Ve=>o(q)(re),["prevent"]),onMouseleave:Xe(Ve=>o(X)(re),["prevent"]),onClick:Ve=>ee(W)},[d(K,{to:W.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:y(()=>[se(Y(o(Q)(W.meta.title)),1)]),_:2},1032,["to"]),o(L)(W,re)||re===o(b)&&re!==0?(u(),T("span",{key:0,class:"el-icon-close",onClick:Xe(Ve=>D(W),["stop"])},[d(R,{icon:o(Ha)},null,8,["icon"])],8,Fa)):J("",!0),o(m)!=="card"?(u(),T("div",{key:1,ref_for:!0,ref:"schedule"+re,class:ue([o(F)(W)])},null,2)):J("",!0)],42,Ra))),128))],4)],512),_e(g("span",qa,[d(R,{icon:o(Aa),onClick:V[1]||(V[1]=W=>p(-200))},null,8,["icon"])],512),[[Me,j.value]]),d(gt,{name:"el-zoom-in-top"},{default:y(()=>[_e((u(),T("ul",{key:Math.random(),style:ae(o(x)),class:"contextmenu"},[(u(!0),T(me,null,ye(o(f).slice(0,6),(W,re)=>(u(),T("div",{key:re,style:{display:"flex","align-items":"center"}},[W.show?(u(),T("li",{key:0,onClick:Ve=>oe(re,W)},[d(R,{icon:W.icon},null,8,["icon"]),se(" "+Y(o(Q)(W.text)),1)],8,ja)):J("",!0)]))),128))],4)),[[Me,o(a)]])]),_:1}),d(B,{trigger:"click",placement:"bottom-end",onCommand:U},{dropdown:y(()=>[d(Z,null,{default:y(()=>[(u(!0),T(me,null,ye(o(f),(W,re)=>(u(),A(fe,{key:re,command:{key:re,item:W},divided:W.divided,disabled:W.disabled},{default:y(()=>[d(R,{icon:W.icon},null,8,["icon"]),se(" "+Y(o(Q)(W.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:y(()=>[g("span",Na,[d(R,{icon:o(Va),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const Ua=pe(Ba,[["__scopeId","data-v-c6e4d007"]]),Wa={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Ga=g("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Qa=g("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),Ka=[Ga,Qa];function Ja(t,e){return u(),T("svg",Wa,Ka)}const nn={render:Ja},Xa={key:1},Za=le({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=yt(),i=G(()=>a==null?void 0:a.KeepAlive),s=G(()=>m=>m.meta.transition),r=G(()=>n==null?void 0:n.configure.hideTabs),f=G(()=>(n==null?void 0:n.layout.layout)==="vertical"),h=G(()=>[r.value&&f?"padding-top: 48px;":"",!r.value&&f?"padding-top: 85px;":"",r.value&&!f.value?"padding-top: 48px":"",!r.value&&!f.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),v=le({render(){return Ze(gt,{name:s.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":s.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:s.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:s.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(m,_)=>{const c=k("el-backtop"),b=k("el-scrollbar"),$=k("router-view");return u(),T("section",{class:ue([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ae(o(h))},[d($,null,{default:y(({Component:L,route:E})=>[e.fixedHeader?(u(),A(b,{key:0},{default:y(()=>[d(c,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:y(()=>[d(o(nn))]),_:1}),d(o(v),{route:E},{default:y(()=>[o(i)?(u(),A(Mt,{key:0,include:o(ge)().cachePageList},[(u(),A(qe(L),{key:E.fullPath,class:"main-content"}))],1032,["include"])):(u(),A(qe(L),{key:E.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(u(),T("div",Xa,[d(o(v),{route:E},{default:y(()=>[o(i)?(u(),A(Mt,{key:0,include:o(ge)().cachePageList},[(u(),A(qe(L),{key:E.fullPath,class:"main-content"}))],1032,["include"])):(u(),A(qe(L),{key:E.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Dt=pe(Za,[["__scopeId","data-v-cc448ddc"]]),$t=t=>(Gt("data-v-3b623f3d"),t=t(),Qt(),t),Ya=$t(()=>g("div",{class:"right-panel-background"},null,-1)),es={class:"right-panel-items"},ts={class:"project-configuration"},ns=$t(()=>g("h4",{class:"dark:text-white"},"项目配置",-1)),os=$t(()=>g("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),as=le({__name:"index",setup(t){const e=P(null),n=P(!1),a=G(()=>["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 Wn(e,i=>{i.clientX>e.value.offsetLeft||(n.value=!1)}),Pe.on("openPanel",()=>{n.value=!0}),(i,s)=>{const r=k("IconifyIconOffline");return u(),T("div",{class:ue([{show:n.value},"right-panel-container"])},[Ya,g("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[g("div",es,[g("div",ts,[ns,g("span",{title:"关闭配置",class:ue(o(a))},[d(r,{class:"dark:text-white",width:"20px",height:"20px",icon:o(tn),onClick:s[0]||(s[0]=f=>n.value=!n.value)},null,8,["icon"])],2)]),os,qn(i.$slots,"default",{},void 0,!0)])],512)],2)}}});const ss=pe(as,[["__scopeId","data-v-3b623f3d"]]),we=t=>(Gt("data-v-d9621bf5"),t=t(),Qt(),t),ls={class:"pure-theme"},rs=we(()=>g("div",null,null,-1)),is=we(()=>g("div",null,null,-1)),cs=[rs,is],us=we(()=>g("div",null,null,-1)),ds=we(()=>g("div",null,null,-1)),fs=[us,ds],ps=we(()=>g("div",null,null,-1)),hs=we(()=>g("div",null,null,-1)),ms=[ps,hs],_s={class:"theme-color"},vs=["onClick"],gs={class:"setting"},ys=we(()=>g("span",{class:"dark:text-white"},"灰色模式",-1)),bs=we(()=>g("span",{class:"dark:text-white"},"色弱模式",-1)),ws=we(()=>g("span",{class:"dark:text-white"},"隐藏标签页",-1)),ks=we(()=>g("span",{class:"dark:text-white"},"侧边栏Logo",-1)),xs=we(()=>g("span",{class:"dark:text-white"},"标签页持久化",-1)),Cs=we(()=>g("span",{class:"dark:text-white"},"标签风格",-1)),Is=le({__name:"index",setup(t){var $e,l,p,I;const e=st(),{isDark:n}=jt(),{device:a,tooltipEffect:i}=Le(),{$storage:s}=yt(),r=P(),f=P(),h=P(),{dataTheme:v,layoutTheme:m,themeColors:_,dataThemeChange:c,setEpThemeColor:b,setLayoutThemeColor:$}=gn();if(o(m)){const C=o(m).layout,O=o(m).theme;yn({scopeName:`layout-theme-${O}`}),Se(C)}const L=P((l=($e=s.configure)==null?void 0:$e.showModel)!=null?l:"smart"),E=P((I=(p=s.configure)==null?void 0:p.showLogo)!=null?I:!0),N=Ke({greyVal:s.configure.grey,weakVal:s.configure.weak,tabsVal:s.configure.hideTabs,showLogo:s.configure.showLogo,showModel:s.configure.showModel,multiTagsCache:s.configure.multiTagsCache}),F=G(()=>C=>({background:C})),x=G(()=>C=>!(C==="light"&&n.value));function M(C,O){const D=s.configure;D[C]=O,s.configure=D}function z(C,O,D){const H=D||document.body;let{className:U}=H;U=U.replace(O,"").trim(),H.className=C?`${U} ${O} `:U}const q=C=>{z(N.greyVal,"html-grey",document.querySelector("html")),M("grey",C)},X=C=>{z(N.weakVal,"html-weakness",document.querySelector("html")),M("weak",C)},Q=()=>{const C=N.tabsVal;M("hideTabs",C),Pe.emit("tagViewsChange",C)},ce=()=>{const C=N.multiTagsCache;M("multiTagsCache",C),Te().multiTagsCacheChange(C)};function w(){On(),Qe().clear(),hn().clear();const{Grey:C,Weak:O,MultiTagsCache:D,EpThemeColor:H,Layout:U}=Ae();Re().setLayout(U),b(H),Te().multiTagsCacheChange(D),z(C,"html-grey",document.querySelector("html")),z(O,"html-weakness",document.querySelector("html")),e.push("/login"),Te().handleTags("equal",[...Wt]),En()}function te(C){M("showModel",C),Pe.emit("tagViewsShowModel",C)}function ne(){o(E)?M("showLogo",!0):M("showLogo",!1),Pe.emit("logoChange",o(E))}function j(C){C.forEach(O=>{z(!1,"is-select",o(O))})}const ke=G(()=>C=>C===m.value.theme&&m.value.theme!=="light"?"#fff":C===m.value.theme&&m.value.theme==="light"?"#1d2b45":"transparent");function Se(C){var O,D,H;m.value.layout=C,window.document.body.setAttribute("layout",C),s.layout={layout:C,theme:m.value.theme,darkMode:(O=s.layout)==null?void 0:O.darkMode,sidebarStatus:(D=s.layout)==null?void 0:D.sidebarStatus,epThemeColor:(H=s.layout)==null?void 0:H.epThemeColor},Re().setLayout(C)}return Oe(s,({layout:C})=>{switch(C.layout){case"vertical":z(!0,"is-select",o(f)),Ge(j([h]),50),Ge(j([r]),50);break;case"horizontal":z(!0,"is-select",o(h)),Ge(j([f]),50),Ge(j([r]),50);break;case"mix":z(!0,"is-select",o(r)),Ge(j([f]),50),Ge(j([h]),50);break}}),It(()=>{c(),We(()=>{var C,O;N.greyVal&&((C=document.querySelector("html"))==null||C.setAttribute("class","html-grey")),N.weakVal&&((O=document.querySelector("html"))==null||O.setAttribute("class","html-weakness")),N.tabsVal&&Q()})}),(C,O)=>{const D=k("el-divider"),H=k("el-switch"),U=k("el-tooltip"),oe=k("IconifyIconOffline"),he=k("el-icon"),xe=k("el-radio"),Ee=k("el-radio-group"),je=k("el-button");return u(),A(ss,null,{default:y(()=>[d(D,null,{default:y(()=>[se("主题")]),_:1}),d(H,{modelValue:o(v),"onUpdate:modelValue":O[0]||(O[0]=ee=>Ct(v)?v.value=ee:null),"inline-prompt":"",class:"pure-datatheme","active-icon":o(bn),"inactive-icon":o(wn),onChange:o(c)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),d(D,null,{default:y(()=>[se("导航栏模式")]),_:1}),g("ul",ls,[d(U,{effect:o(i),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:y(()=>[g("li",{class:ue(o(m).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:f,onClick:O[1]||(O[1]=ee=>Se("vertical"))},cs,2)]),_:1},8,["effect"]),o(a)!=="mobile"?(u(),A(U,{key:0,effect:o(i),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:y(()=>[g("li",{class:ue(o(m).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:h,onClick:O[2]||(O[2]=ee=>Se("horizontal"))},fs,2)]),_:1},8,["effect"])):J("",!0),o(a)!=="mobile"?(u(),A(U,{key:1,effect:o(i),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:y(()=>[g("li",{class:ue(o(m).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:r,onClick:O[3]||(O[3]=ee=>Se("mix"))},ms,2)]),_:1},8,["effect"])):J("",!0)]),d(D,null,{default:y(()=>[se("主题色")]),_:1}),g("ul",_s,[(u(!0),T(me,null,ye(o(_),(ee,S)=>_e((u(),T("li",{key:S,style:ae(o(F)(ee.color)),onClick:V=>o($)(ee.themeColor)},[d(he,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:o(ke)(ee.themeColor)},{default:y(()=>[d(oe,{icon:o(et)},null,8,["icon"])]),_:2},1032,["color"])],12,vs)),[[Me,o(x)(ee.themeColor)]])),128))]),d(D,null,{default:y(()=>[se("界面显示")]),_:1}),g("ul",gs,[g("li",null,[ys,d(H,{modelValue:N.greyVal,"onUpdate:modelValue":O[4]||(O[4]=ee=>N.greyVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:q},null,8,["modelValue"])]),g("li",null,[bs,d(H,{modelValue:N.weakVal,"onUpdate:modelValue":O[5]||(O[5]=ee=>N.weakVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:X},null,8,["modelValue"])]),g("li",null,[ws,d(H,{modelValue:N.tabsVal,"onUpdate:modelValue":O[6]||(O[6]=ee=>N.tabsVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:Q},null,8,["modelValue"])]),g("li",null,[ks,d(H,{modelValue:E.value,"onUpdate:modelValue":O[7]||(O[7]=ee=>E.value=ee),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:ne},null,8,["modelValue"])]),g("li",null,[xs,d(H,{modelValue:N.multiTagsCache,"onUpdate:modelValue":O[8]||(O[8]=ee=>N.multiTagsCache=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:ce},null,8,["modelValue"])]),g("li",null,[Cs,d(Ee,{modelValue:L.value,"onUpdate:modelValue":O[9]||(O[9]=ee=>L.value=ee),size:"small",onChange:te},{default:y(()=>[d(xe,{label:"card"},{default:y(()=>[se("卡片")]),_:1}),d(xe,{label:"smart"},{default:y(()=>[se("灵动")]),_:1})]),_:1},8,["modelValue"])])]),d(D),d(je,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:w},{default:y(()=>[d(oe,{icon:o(ct),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),se(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const Ss=pe(Is,[["__scopeId","data-v-d9621bf5"]]),Rt={avatarm:Nn},$s=["src"],zs={class:"sidebar-title"},Ts=["src"],Ms={class:"sidebar-title"},Ls=le({__name:"logo",props:{collapse:Boolean},setup(t){var s,r,f,h;const e=t,{title:n}=Le(),a=P(!1),i=P("");return((s=Ae())==null?void 0:s.Logo_Type)=="img"&&((r=Ae())!=null&&r.Logo_Img)&&Rt[(f=Ae())==null?void 0:f.Logo_Img]&&(a.value=!0,i.value=Rt[(h=Ae())==null?void 0:h.Logo_Img]),(v,m)=>{const _=k("FontIcon"),c=k("router-link");return u(),T("div",{class:ue(["sidebar-logo-container",{collapses:e.collapse}])},[d(gt,{name:"sidebarLogoFade"},{default:y(()=>[e.collapse?(u(),A(c,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:"/"},{default:y(()=>[a.value?(u(),T("img",{key:0,src:i.value,class:"!w-[35px] !h-[35px]"},null,8,$s)):(u(),A(_,{key:1,icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}})),g("span",zs,Y(o(n)),1)]),_:1},8,["title"])):(u(),A(c,{key:"expand",title:o(n),class:"sidebar-logo-link",to:"/"},{default:y(()=>[a.value?(u(),T("img",{key:0,src:i.value,class:"!w-[35px] !h-[35px]"},null,8,Ts)):(u(),A(_,{key:1,icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}})),g("span",Ms,Y(o(n)),1)]),_:1},8,["title"]))]),_:1})],2)}}});const Os=pe(Ls,[["__scopeId","data-v-ca67d6d1"]]);var tt={},Ft={get exports(){return tt},set exports(t){tt=t}},on={},Es=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},vt={},qt={get exports(){return vt},set exports(t){vt=t}};typeof Object.create=="function"?qt.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:qt.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(l){if(!x(l)){for(var p=[],I=0;I<arguments.length;I++)p.push(i(arguments[I]));return p.join(" ")}for(var I=1,C=arguments,O=C.length,D=String(l).replace(e,function(U){if(U==="%%")return"%";if(I>=O)return U;switch(U){case"%s":return String(C[I++]);case"%d":return Number(C[I++]);case"%j":try{return JSON.stringify(C[I++])}catch(oe){return"[Circular]"}default:return U}}),H=C[I];I<O;H=C[++I])E(H)||!X(H)?D+=" "+H:D+=" "+i(H);return D},t.deprecate=function(l,p){if(z(Bn.process))return function(){return t.deprecate(l,p).apply(this,arguments)};if(process.noDeprecation===!0)return l;var I=!1;function C(){if(!I){if(process.throwDeprecation)throw new Error(p);process.traceDeprecation?console.trace(p):console.error(p),I=!0}return l.apply(this,arguments)}return C};var n={},a;t.debuglog=function(l){if(z(a)&&(a={}.NODE_DEBUG||""),l=l.toUpperCase(),!n[l])if(new RegExp("\\b"+l+"\\b","i").test(a)){var p=process.pid;n[l]=function(){var I=t.format.apply(t,arguments);console.error("%s %d: %s",l,p,I)}}else n[l]=function(){};return n[l]};function i(l,p){var I={seen:[],stylize:r};return arguments.length>=3&&(I.depth=arguments[2]),arguments.length>=4&&(I.colors=arguments[3]),L(p)?I.showHidden=p:p&&t._extend(I,p),z(I.showHidden)&&(I.showHidden=!1),z(I.depth)&&(I.depth=2),z(I.colors)&&(I.colors=!1),z(I.customInspect)&&(I.customInspect=!0),I.colors&&(I.stylize=s),h(I,l,I.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 s(l,p){var I=i.styles[p];return I?"\x1B["+i.colors[I][0]+"m"+l+"\x1B["+i.colors[I][1]+"m":l}function r(l,p){return l}function f(l){var p={};return l.forEach(function(I,C){p[I]=!0}),p}function h(l,p,I){if(l.customInspect&&p&&w(p.inspect)&&p.inspect!==t.inspect&&!(p.constructor&&p.constructor.prototype===p)){var C=p.inspect(I,l);return x(C)||(C=h(l,C,I)),C}var O=v(l,p);if(O)return O;var D=Object.keys(p),H=f(D);if(l.showHidden&&(D=Object.getOwnPropertyNames(p)),ce(p)&&(D.indexOf("message")>=0||D.indexOf("description")>=0))return m(p);if(D.length===0){if(w(p)){var U=p.name?": "+p.name:"";return l.stylize("[Function"+U+"]","special")}if(q(p))return l.stylize(RegExp.prototype.toString.call(p),"regexp");if(Q(p))return l.stylize(Date.prototype.toString.call(p),"date");if(ce(p))return m(p)}var oe="",he=!1,xe=["{","}"];if($(p)&&(he=!0,xe=["[","]"]),w(p)){var Ee=p.name?": "+p.name:"";oe=" [Function"+Ee+"]"}if(q(p)&&(oe=" "+RegExp.prototype.toString.call(p)),Q(p)&&(oe=" "+Date.prototype.toUTCString.call(p)),ce(p)&&(oe=" "+m(p)),D.length===0&&(!he||p.length==0))return xe[0]+oe+xe[1];if(I<0)return q(p)?l.stylize(RegExp.prototype.toString.call(p),"regexp"):l.stylize("[Object]","special");l.seen.push(p);var je;return he?je=_(l,p,I,H,D):je=D.map(function(ee){return c(l,p,I,H,ee,he)}),l.seen.pop(),b(je,oe,xe)}function v(l,p){if(z(p))return l.stylize("undefined","undefined");if(x(p)){var I="'"+JSON.stringify(p).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(I,"string")}if(F(p))return l.stylize(""+p,"number");if(L(p))return l.stylize(""+p,"boolean");if(E(p))return l.stylize("null","null")}function m(l){return"["+Error.prototype.toString.call(l)+"]"}function _(l,p,I,C,O){for(var D=[],H=0,U=p.length;H<U;++H)$e(p,String(H))?D.push(c(l,p,I,C,String(H),!0)):D.push("");return O.forEach(function(oe){oe.match(/^\d+$/)||D.push(c(l,p,I,C,oe,!0))}),D}function c(l,p,I,C,O,D){var H,U,oe;if(oe=Object.getOwnPropertyDescriptor(p,O)||{value:p[O]},oe.get?oe.set?U=l.stylize("[Getter/Setter]","special"):U=l.stylize("[Getter]","special"):oe.set&&(U=l.stylize("[Setter]","special")),$e(C,O)||(H="["+O+"]"),U||(l.seen.indexOf(oe.value)<0?(E(I)?U=h(l,oe.value,null):U=h(l,oe.value,I-1),U.indexOf(`
`)>-1&&(D?U=U.split(`
`).map(function(he){return"  "+he}).join(`
`).substr(2):U=`
`+U.split(`
`).map(function(he){return"   "+he}).join(`
`))):U=l.stylize("[Circular]","special")),z(H)){if(D&&O.match(/^\d+$/))return U;H=JSON.stringify(""+O),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.substr(1,H.length-2),H=l.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=l.stylize(H,"string"))}return H+": "+U}function b(l,p,I){var C=l.reduce(function(O,D){return D.indexOf(`
`)>=0,O+D.replace(/\u001b\[\d\d?m/g,"").length+1},0);return C>60?I[0]+(p===""?"":p+`
 `)+" "+l.join(`,
  `)+" "+I[1]:I[0]+p+" "+l.join(", ")+" "+I[1]}function $(l){return Array.isArray(l)}t.isArray=$;function L(l){return typeof l=="boolean"}t.isBoolean=L;function E(l){return l===null}t.isNull=E;function N(l){return l==null}t.isNullOrUndefined=N;function F(l){return typeof l=="number"}t.isNumber=F;function x(l){return typeof l=="string"}t.isString=x;function M(l){return typeof l=="symbol"}t.isSymbol=M;function z(l){return l===void 0}t.isUndefined=z;function q(l){return X(l)&&ne(l)==="[object RegExp]"}t.isRegExp=q;function X(l){return typeof l=="object"&&l!==null}t.isObject=X;function Q(l){return X(l)&&ne(l)==="[object Date]"}t.isDate=Q;function ce(l){return X(l)&&(ne(l)==="[object Error]"||l instanceof Error)}t.isError=ce;function w(l){return typeof l=="function"}t.isFunction=w;function te(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l>"u"}t.isPrimitive=te,t.isBuffer=Es;function ne(l){return Object.prototype.toString.call(l)}function j(l){return l<10?"0"+l.toString(10):l.toString(10)}var ke=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Se(){var l=new Date,p=[j(l.getHours()),j(l.getMinutes()),j(l.getSeconds())].join(":");return[l.getDate(),ke[l.getMonth()],p].join(" ")}t.log=function(){console.log("%s - %s",Se(),t.format.apply(t,arguments))},t.inherits=vt,t._extend=function(l,p){if(!p||!X(p))return l;for(var I=Object.keys(p),C=I.length;C--;)l[I[C]]=p[I[C]];return l};function $e(l,p){return Object.prototype.hasOwnProperty.call(l,p)}})(on);var Vs=process.platform==="win32",Ie=on;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 Ye(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 an=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,As=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ie={};function dt(t){var e=an.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",i=As.exec(a),s=i[1],r=i[2],f=i[3];return[n,s,r,f]}function zt(t){var e=an.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function sn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ie.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(),Ie.isString(i)){if(!i)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=zt(i),r=s.device,f=s.isUnc,h=s.isAbsolute,v=s.tail;if(!(r&&t&&r.toLowerCase()!==t.toLowerCase())&&(t||(t=r),n||(e=v+"\\"+e,n=h),t&&n))break}return f&&(t=sn(t)),e=ut(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};ie.normalize=function(t){var e=zt(t),n=e.device,a=e.isUnc,i=e.isAbsolute,s=e.tail,r=/[\\\/]$/.test(s);return s=ut(s.split(/[\\\/]+/),!i).join("\\"),!s&&!i&&(s="."),s&&r&&(s+="\\"),a&&(n=sn(n)),n+(i?"\\":"")+s};ie.isAbsolute=function(t){return zt(t).isAbsolute};ie.join=function(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(!Ie.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,}/,"\\")),ie.normalize(a)};ie.relative=function(t,e){t=ie.resolve(t),e=ie.resolve(e);for(var n=t.toLowerCase(),a=e.toLowerCase(),i=Ye(e.split("\\")),s=Ye(n.split("\\")),r=Ye(a.split("\\")),f=Math.min(s.length,r.length),h=f,v=0;v<f;v++)if(s[v]!==r[v]){h=v;break}if(h==0)return e;for(var m=[],v=h;v<s.length;v++)m.push("..");return m=m.concat(i.slice(h)),m.join("\\")};ie._makeLong=function(t){if(!Ie.isString(t))return t;if(!t)return"";var e=ie.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};ie.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)};ie.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};ie.extname=function(t){return dt(t)[3]};ie.format=function(t){if(!Ie.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ie.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]===ie.sep?n+a:n+ie.sep+a:a};ie.parse=function(t){if(!Ie.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)}};ie.sep="\\";ie.delimiter=";";var Ps=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,de={};function ft(t){return Ps.exec(t).slice(1)}de.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Ie.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||"."};de.normalize=function(t){var e=de.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=ut(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};de.isAbsolute=function(t){return t.charAt(0)==="/"};de.join=function(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];if(!Ie.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(t?t+="/"+n:t+=n)}return de.normalize(t)};de.relative=function(t,e){t=de.resolve(t).substr(1),e=de.resolve(e).substr(1);for(var n=Ye(t.split("/")),a=Ye(e.split("/")),i=Math.min(n.length,a.length),s=i,r=0;r<i;r++)if(n[r]!==a[r]){s=r;break}for(var f=[],r=s;r<n.length;r++)f.push("..");return f=f.concat(a.slice(s)),f.join("/")};de._makeLong=function(t){return t};de.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)};de.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};de.extname=function(t){return ft(t)[3]};de.format=function(t){if(!Ie.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ie.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir?t.dir+de.sep:"",a=t.base||"";return n+a};de.parse=function(t){if(!Ie.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)}};de.sep="/";de.delimiter=":";Vs?Ft.exports=ie:Ft.exports=de;tt.posix=de;tt.win32=ie;const Hs={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"/>'},Ds={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"/>'},Rs={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"/>'},Fs={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"/>'},qs={key:0,class:"sub-menu-icon"},js={key:0},Ns={key:0,class:"sub-menu-icon"},Bs={key:1},ln=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}=Le(),s=G(()=>a.value?{position:"static"}:{position:"absolute",right:"10px"}),r=G(()=>({display:"flex",alignItems:"center"})),f=G(()=>({width:a.value?"100%":"",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),h=G(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),v=G(()=>({width:a.value?"":"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"})),m=G(()=>({overflow:"hidden",textOverflow:"ellipsis"})),_=G(()=>{var x;return(x=Ae())!=null&&x.MenuArrowIconNoTransition?{"expand-close-icon":Fe(Ds),"expand-open-icon":Fe(Hs),"collapse-close-icon":Fe(Fs),"collapse-open-icon":Fe(Rs)}:""}),c=P(null),b=new WeakMap,$=P(null);function L(x){b.get(x)||We(()=>{var M,z;((M=$.value)==null?void 0:M.scrollWidth)>((z=$.value)==null?void 0:z.clientWidth)?Object.assign(x,{showTooltip:!0}):Object.assign(x,{showTooltip:!1}),b.set(x,!0)})}function E(x=[],M){var q,X;const z=x.filter(Q=>(c.value=Q,!0));return(X=(q=z[0])==null?void 0:q.meta)!=null&&X.showParent?!1:z.length===1?!0:z.length===0?(c.value={...M,path:"",noShowingChildren:!0},!0):!1}function N(x,M){if(M&&M.query&&M.query.length>0){x+="?";for(let z in M.query){let q=M.query[z];x+=q.key+"="+q.value,z!=M.query.length-1&&(x+="&")}}return x}function F(x){const M=/^http(s?):\/\//;let z="",q=ze(e.item);return M.test(x)||M.test(e.basePath)?z=x||e.basePath:z=tt.posix.resolve(e.basePath,x),z=N(z,q),z}return(x,M)=>{const z=k("el-tooltip"),q=k("FontIcon"),X=k("el-menu-item"),Q=k("sidebar-item",!0),ce=k("el-sub-menu");return E(e.item.children,e.item)&&(!c.value.children||c.value.noShowingChildren)?(u(),A(X,{key:0,index:F(c.value.path),class:ue({"submenu-title-noDropdown":!t.isNest}),style:ae(o(r))},{title:y(()=>[g("div",{style:ae(o(f))},[o(n)==="horizontal"?(u(),T("span",js,Y(o(be)(c.value.meta.title)),1)):(u(),A(z,{key:1,placement:"top",effect:o(i),offset:-10,disabled:!c.value.showTooltip},{content:y(()=>[se(Y(o(be)(c.value.meta.title)),1)]),default:y(()=>[g("span",{ref_key:"menuTextRef",ref:$,style:ae(o(h)),onMouseover:M[0]||(M[0]=w=>L(c.value))},Y(o(be)(c.value.meta.title)),37)]),_:1},8,["effect","disabled"])),c.value.meta.extraIcon?(u(),A(q,{key:2,width:"30px",height:"30px",style:ae(o(s)),icon:c.value.meta.extraIcon.name,svg:!!c.value.meta.extraIcon.svg},null,8,["style","icon","svg"])):J("",!0)],4)]),default:y(()=>{var w,te,ne,j;return[ze(e.item.meta.icon)?(u(),T("div",qs,[(u(),A(qe(o(Fe)(ze(c.value.meta.icon)||e.item.meta&&ze(e.item.meta.icon)))))])):J("",!0),o(a)&&o(n)==="vertical"&&((te=(w=e.item)==null?void 0:w.pathList)==null?void 0:te.length)===1?(u(),T("div",{key:1,style:ae(o(f))},[g("span",{style:ae(o(h))},Y(o(be)(c.value.meta.title)),5)],4)):J("",!0),o(a)&&o(n)==="mix"&&((j=(ne=e.item)==null?void 0:ne.pathList)==null?void 0:j.length)===2?(u(),T("div",{key:2,style:ae(o(f))},[g("span",{style:ae(o(h))},Y(o(be)(c.value.meta.title)),5)],4)):J("",!0)]}),_:1},8,["index","class","style"])):(u(),A(ce,jn({key:1,ref:"subMenu"},o(_),{index:F(e.item.path)}),{title:y(()=>[ze(e.item.meta.icon)?(u(),T("div",Ns,[(u(),A(qe(o(Fe)(e.item.meta&&ze(e.item.meta.icon)))))])):J("",!0),o(n)==="horizontal"?(u(),T("span",Bs,Y(o(be)(e.item.meta.title)),1)):(u(),A(z,{key:2,placement:"top",effect:o(i),offset:-10,disabled:!e.item.showTooltip},{content:y(()=>[se(Y(o(be)(e.item.meta.title)),1)]),default:y(()=>[g("div",{ref_key:"menuTextRef",ref:$,style:ae(o(v)),onMouseover:M[1]||(M[1]=w=>L(e.item))},[g("span",{style:ae(o(m))},Y(o(be)(e.item.meta.title)),5)],36)]),_:1},8,["effect","disabled"])),e.item.meta.extraIcon?(u(),A(q,{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"])):J("",!0)]),default:y(()=>[(u(!0),T(me,null,ye(e.item.children,w=>(u(),A(Q,{key:w.path,"is-nest":!0,item:w,"base-path":F(w.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Us={class:"container"},Ws=le({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=P(!1),{tooltipEffect:i}=Le(),s=G(()=>["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(f,h)=>{const v=k("IconifyIconOffline"),m=k("el-tooltip");return u(),T("div",Us,[d(m,{placement:"right",visible:a.value,effect:o(i),content:n.isActive?"点击折叠":"点击展开"},{default:y(()=>[d(v,{icon:o(en),class:ue(o(s)),style:ae({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:r,onMouseenter:h[0]||(h[0]=_=>a.value=!0),onMouseleave:h[1]||(h[1]=_=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Gs=pe(Ws,[["__scopeId","data-v-c67b01cb"]]),Qs=le({__name:"vertical",setup(t){var c,b;const e=xt(),n=P((b=(c=Qe().getItem("responsive-configure"))==null?void 0:c.showLogo)!=null?b:!0),{routers:a,device:i,pureApp:s,isCollapse:r,menuSelect:f,toggleSideBar:h}=Le(),v=P([]),m=G(()=>s.layout==="mix"&&i.value!=="mobile"?v.value:ge().wholeMenus);function _($){const L=kt($,ge().wholeMenus),E=ot(L[0]||$,ge().wholeMenus);E!=null&&E.children&&(v.value=E==null?void 0:E.children)}return _(e.path),It(()=>{Pe.on("logoChange",$=>{n.value=$})}),Oe(()=>[e.path,ge().wholeMenus],()=>{_(e.path),f(e.path,a)}),($,L)=>{const E=k("el-menu"),N=k("el-scrollbar"),F=lt("loading");return _e((u(),T("div",{class:ue(["sidebar-container",n.value?"has-logo":""])},[n.value?(u(),A(Os,{key:0,collapse:o(r)},null,8,["collapse"])):J("",!0),d(N,{"wrap-class":"scrollbar-wrapper",class:ue([o(i)==="mobile"?"mobile":"pc"])},{default:y(()=>[d(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]=x=>o(f)(x,o(a)))},{default:y(()=>[(u(!0),T(me,null,ye(o(m),x=>(u(),A(ln,{key:x.path,item:x,"base-path":x.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),o(i)!=="mobile"?(u(),A(Gs,{key:1,"is-active":o(s).sidebar.opened,onToggleClick:o(h)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[F,o(m).length===0]])}}});const Ks=pe(Qs,[["__scopeId","data-v-962df41c"]]),Js={class:"horizontal-header"},Xs={class:"horizontal-header-right"},Zs={class:"check-zh"},Ys={class:"check-en"},el={class:"el-dropdown-link navbar-bg-hover"},tl={key:0,class:"dark:text-white"},nl=["title"],ol=le({__name:"horizontal",setup(t){const e=P(),{t:n,route:a,locale:i,translationCh:s,translationEn:r}=bt(e),{title:f,routers:h,logout:v,backHome:m,onPanel:_,menuSelect:c,username:b,avatarsStyle:$,getDropdownItemStyle:L,getDropdownItemClass:E}=Le();return We(()=>{var N;(N=e.value)==null||N.handleResize()}),Oe(()=>a.path,()=>{c(a.path,h)}),(N,F)=>{const x=k("FontIcon"),M=k("el-menu"),z=k("IconifyIconOffline"),q=k("el-dropdown-item"),X=k("el-dropdown-menu"),Q=k("el-dropdown"),ce=lt("loading");return _e((u(),T("div",Js,[g("div",{class:"horizontal-header-left",onClick:F[0]||(F[0]=(...w)=>o(m)&&o(m)(...w))},[d(x,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),g("h4",null,Y(o(f)),1)]),d(M,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o(a).path,onSelect:F[1]||(F[1]=w=>o(c)(w,o(h)))},{default:y(()=>[(u(!0),T(me,null,ye(o(ge)().wholeMenus,w=>(u(),A(ln,{key:w.path,item:w,"base-path":w.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),g("div",Xs,[d(Zt),d(Yt,{id:"header-notice"}),d(Q,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[d(X,{class:"translation"},{default:y(()=>[d(q,{style:ae(o(L)(o(i),"zh")),class:ue(["dark:!text-white",o(E)(o(i),"zh")]),onClick:o(s)},{default:y(()=>[_e(g("span",Zs,[d(z,{icon:o(et)},null,8,["icon"])],512),[[Me,o(i)==="zh"]]),se(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(q,{style:ae(o(L)(o(i),"en")),class:ue(["dark:!text-white",o(E)(o(i),"en")]),onClick:o(r)},{default:y(()=>[_e(g("span",Ys,[d(z,{icon:o(et)},null,8,["icon"])],512),[[Me,o(i)==="en"]]),se(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[d(o(Nt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(Q,{trigger:"click"},{dropdown:y(()=>[d(X,{class:"logout"},{default:y(()=>[d(q,{onClick:o(v)},{default:y(()=>[d(z,{icon:o(ct),style:{margin:"5px"}},null,8,["icon"]),se(" "+Y(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[g("span",el,[g("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ae(o($))},null,4),o(b)?(u(),T("p",tl,Y(o(b)),1)):J("",!0)])]),_:1}),g("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:F[2]||(F[2]=(...w)=>o(_)&&o(_)(...w))},[d(z,{icon:o(it)},null,8,["icon"])],8,nl)])])),[[ce,o(ge)().wholeMenus.length===0]])}}});const al=pe(ol,[["__scopeId","data-v-14923da0"]]),sl={key:0},ll=le({__name:"index",setup(t){const{isDark:e}=jt(),{layout:n}=kn(),a=mn(),i=St(),{$storage:s}=yt(),r=Ke({sidebar:G(()=>Re().sidebar),device:G(()=>Re().device),fixedHeader:G(()=>i.fixedHeader),classes:G(()=>({hideSidebar:!r.sidebar.opened,openSidebar:r.sidebar.opened,withoutAnimation:r.sidebar.withoutAnimation,mobile:r.device==="mobile"})),hideTabs:G(()=>s==null?void 0:s.configure.hideTabs)});function f(_){var c,b,$,L;window.document.body.setAttribute("layout",_),s.layout={layout:`${_}`,theme:(c=s.layout)==null?void 0:c.theme,darkMode:(b=s.layout)==null?void 0:b.darkMode,sidebarStatus:($=s.layout)==null?void 0:$.sidebarStatus,epThemeColor:(L=s.layout)==null?void 0:L.epThemeColor}}function h(_,c){Re().toggleDevice(_),Re().toggleSideBar(c,"resize")}let v=!0;Pe.on("resize",({detail:_})=>{if(a)return;const{width:c}=_;c<=760?f("vertical"):f(Re().layout),c>0&&c<=760?(h("mobile",!1),v=!0):c>760&&c<=990?v&&(h("desktop",!1),v=!1):c>990&&(r.sidebar.isClickCollapse||(h("desktop",!0),v=!0))}),Je(()=>{a&&h("mobile",!1)});const m=le({render(){return Ze("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"))?Ze(Sa):null,!i.hiddenSideBar&&n.value.includes("horizontal")?Ze(al):null,Ze(Ua)]})}});return(_,c)=>{const b=k("el-backtop"),$=k("el-scrollbar"),L=lt("resize");return _e((u(),T("div",{class:ue(["app-wrapper",r.classes])},[_e(g("div",{class:"app-mask",onClick:c[0]||(c[0]=E=>o(Re)().toggleSideBar())},null,512),[[Me,r.device==="mobile"&&r.sidebar.opened&&o(n).includes("vertical")]]),_e(d(Ks,null,null,512),[[Me,!o(i).hiddenSideBar&&(o(n).includes("vertical")||o(n).includes("mix"))]]),g("div",{class:ue(["main-container",o(i).hiddenSideBar?"main-hidden":""])},[r.fixedHeader?(u(),T("div",sl,[d(o(m)),d(Dt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])])):(u(),A($,{key:1},{default:y(()=>[d(b,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:y(()=>[d(o(nn))]),_:1}),d(o(m)),d(Dt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),d(Ss)],2)),[[L]])}}});const $l=pe(ll,[["__scopeId","data-v-c12afbe9"]]);export{$l as default};