import{d as p,a8 as h,r as f,o as g,g as I,a as o,I as _,n as b,ac as k,cF as w,H as T}from"./index-BP6bNRoi.js";import{u as t}from"./useIcon-DZqEaX5R.js";const a="var(--el-color-black)",V=T(p({name:"ThemeSwitch",__name:"ThemeSwitch",setup(j){const{getPrefixCls:i}=k(),r=i("theme-switch"),l=t({icon:"emojione-monotone:sun",color:"#fde047"}),m=t({icon:"emojione-monotone:crescent-moon",color:"#fde047"}),c=h(),e=f(c.getIsDark),d=n=>{c.setIsDark(n)};return(n,s)=>{const u=w;return g(),I(u,{modelValue:o(e),"onUpdate:modelValue":s[0]||(s[0]=v=>_(e)?e.value=v:null),"active-color":a,"active-icon":o(l),"border-color":a,class:b(o(r)),"inactive-color":a,"inactive-icon":o(m),"inline-prompt":"",onChange:d},null,8,["modelValue","active-icon","class","inactive-icon"])}}}),[["__scopeId","data-v-3b3542c2"]]);export{V as T};
|