import"./rolldown-runtime-BM3Ffeng.js";import{ut as e}from"./element-plus-vendor-BF9PNysW.js";import{D as t,E as n,I as r,O as i,Pt as a,et as o,ht as s,qt as c}from"./vue-vendor-DMUmTARL.js";import{br as l,vr as u,yr as d}from"./icons-vendor-Db5MGAkr.js";import{t as f}from"./useDarks-zOpm_Fmh.js";var p=[`aria-label`],m=r({__name:`DarkModeToggle`,props:{size:{default:`md`},plain:{type:Boolean,default:!1}},setup(r){let m=r,{colorMode:h,cycleColorMode:g}=f(),_=n(()=>h.value===`light`?`主题：浅色（点击切换深色）`:h.value===`dark`?`主题：深色（点击切换跟随系统）`:`主题：跟随系统（点击切换浅色）`),v=n(()=>m.size===`sm`?`h-6 w-6`:`h-5 w-5`),y=n(()=>m.plain?`flex cursor-pointer items-center justify-center bg-transparent border-0 p-0 text-secondary transition-colors hover:text-blue-500`:`flex h-9 w-9 cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent text-primary transition-colors duration-200 hover:bg-zf-hover`);return(n,r)=>{let f=u,m=d,b=l,x=e;return o(),i(x,{content:a(_),placement:`bottom`},{default:s(()=>[t(`button`,{type:`button`,class:c(a(y)),"aria-label":a(_),onClick:r[0]||=e=>a(g)(e)},[a(h)===`light`?(o(),i(f,{key:0,class:c([a(v),`text-yellow-500`])},null,8,[`class`])):a(h)===`dark`?(o(),i(m,{key:1,class:c(a(v))},null,8,[`class`])):(o(),i(b,{key:2,class:c(a(v))},null,8,[`class`]))],10,p)]),_:1},8,[`content`])}}});export{m as t};