import{b as y}from"./index-M_JNBppB.js";/* empty css                  *//* empty css                        *//* empty css                  *//* empty css                     *//* empty css                         */import"./el-tooltip-l0sNRNKZ.js";import{K as k,L as T,M as E,x as v,N as M,O as b}from"./element-3_pOinej.js";import{v as B,y as p,F as e,D as d,O as s,u as l,B as C,M as D,a7 as L,z as c,L as N}from"./vue-BJk78QHK.js";const K="/assets/logo-text-ZSU9XZgb.png",R=B({__name:"index",setup(V){const{themeList:_,activeThemeName:u,setTheme:h}=y();function f({clientX:o,clientY:n},r){const m=Math.hypot(Math.max(o,window.innerWidth-o),Math.max(n,window.innerHeight-n)),t=document.documentElement.style;t.setProperty("--v3-theme-x",`${o}px`),t.setProperty("--v3-theme-y",`${n}px`),t.setProperty("--v3-theme-r",`${m}px`);const a=()=>{h(r)};document.startViewTransition?document.startViewTransition(a):a()}return(o,n)=>{const r=T,m=v,t=b,a=M,w=k;return c(),p(w,{trigger:"click"},{dropdown:e(()=>[s(a,null,{default:e(()=>[(c(!0),C(D,null,L(l(_),(i,x)=>(c(),p(t,{key:x,disabled:l(u)===i.name,onClick:g=>f(g,i.name)},{default:e(()=>[d("span",null,N(i.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[d("div",null,[s(m,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[s(r,{size:20},{default:e(()=>[s(l(E))]),_:1})]),_:1})])]),_:1})}}});export{R as _,K as l};
