import{b as u,c as r,d as e}from"./index-ba596ae9.js";import{y as i,B as l,Z as c,F as g}from"./vue-a39e6937.js";const f=u({onChanged(t){const s=e();o(t),s.setLayout("isDark",t),s.onSetLayoutColor()}}),D=r(f);function d(t){const s=e(),a=i(s.layout.isDark);l(()=>{a.value!==t&&o(t)}),c(()=>{o(a.value)}),g(()=>s.layout.isDark,n=>{a.value=n,a.value!==t&&o(t)})}function o(t){const s=document.getElementsByTagName("html")[0];t?s.setAttribute("class","dark"):s.setAttribute("class","")}export{D as a,d as t};