import{ga as i,h as m,la as o,ya as s}from"./chunk-I3FGJX2C.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-72VW6HLU.js.map
