import{c as i}from"./site-config.CgQ_bxrG.js";import{a as l}from"./index.3whys8t3.js";const a="christmas-enabled",n="christmas-ornament-hidden",e=l(!0),o=l(!1);function m(){if(typeof window>"u")return;if(!i.enabled){e.set(!1),o.set(!0),s(!1);return}const t=localStorage.getItem(a);e.set(t!=="false");const r=localStorage.getItem(n);o.set(r==="true"),s(e.get())}function s(t){typeof document>"u"||document.documentElement.classList.toggle("christmas",t)}function d(){const t=!e.get();e.set(t),typeof localStorage<"u"&&localStorage.setItem(a,String(t)),s(t)}function u(){e.set(!0),o.set(!1),typeof localStorage<"u"&&(localStorage.setItem(a,"true"),localStorage.setItem(n,"false")),s(!0)}function g(){e.set(!1),typeof localStorage<"u"&&localStorage.setItem(a,"false"),s(!1)}function S(){e.set(!1),o.set(!0),typeof localStorage<"u"&&(localStorage.setItem(a,"false"),localStorage.setItem(n,"true")),s(!1)}export{g as a,e as c,S as d,u as e,m as i,o,d as t};
