import{fa as i,h as m,ka as o,xa as s}from"./chunk-4HRPSKID.js";var e=(function(t){return t.Dark="dark",t.Light="light",t})(e||{}),g=(()=>{let r=class r{get currentTheme(){return this._document.body.getAttribute("data-theme")}constructor(a){this._document=a,this.currentTheme$$=new m(e.Light)}applyCurrentTheme(){document.body.setAttribute("data-theme",localStorage.getItem("theme")??e.Light)}applyDarkTheme(){document.body.setAttribute("data-theme",e.Dark),localStorage.setItem("theme",e.Dark),this.currentTheme$$.next(e.Dark)}applyLightTheme(){document.body.setAttribute("data-theme",e.Light),localStorage.setItem("theme",e.Light),this.currentTheme$$.next(e.Light)}setThemeBasedOnSystemPreference(){let a=localStorage.getItem("theme");a?a===e.Dark?this.applyDarkTheme():this.applyLightTheme():(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-theme":"light-theme")==="dark-theme"?this.applyDarkTheme():this.applyLightTheme()}};r.\u0275fac=function(h){return new(h||r)(o(s))},r.\u0275prov=i({token:r,factory:r.\u0275fac});let t=r;return t})();export{e as a,g as b};
//# sourceMappingURL=chunk-ZLTND3QV.js.map
