
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * https://fantastic-admin.github.io
 */

import{_}from"./HDropdownMenu.vue_vue_type_script_setup_true_lang-Dgz-jknv.js";import{d as f,f as u,u as p,L as h,r as d,X as g,g as s,c as S,i as e,z as a,A as o,b as i,w as b,e as v,h as x,t as k,j as $}from"./index-nGFMSQGw.js";import{_ as y}from"./index.vue_vue_type_script_setup_true_lang-1hGRIBXM.js";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang-BWhJNsuM.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang-CXCJ8paG.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-DwWyQI_t.js";const V={class:"flex items-center"},C={class:"flex-center gap-1"},L=f({name:"Tools",__name:"rightSide",setup(D){const n=u(),t=p(),r=h(),c=d(!1);return g(()=>r.avatar,()=>{c.value&&(c.value=!1)}),(E,R)=>{const l=$,m=_;return s(),S("div",V,[e(t).settings.toolbar.navSearch?(s(),a(B,{key:0})):o("",!0),e(t).settings.toolbar.fullscreen?(s(),a(w,{key:1})):o("",!0),e(t).settings.toolbar.pageReload?(s(),a(N,{key:2})):o("",!0),e(t).settings.toolbar.colorScheme?(s(),a(y,{key:3})):o("",!0),i(m,{items:[[{label:e(t).settings.home.title,handle:()=>e(n).push({path:e(t).settings.home.fullPath}),hide:!e(t).settings.home.enable},{label:"个人设置",handle:()=>e(n).push({name:"personalSetting"})}],[{label:"退出登录",handle:()=>e(r).logout()}]],class:"flex-center cursor-pointer px-2"},{default:b(()=>[v("div",C,[x(k(e(r).username)+" ",1),i(l,{name:"i-ep:caret-bottom"})])]),_:1},8,["items"])])}}});export{L as _};
