import{b as m}from"./chunk-XHRSSCXW.js";import{b as r}from"./chunk-5VDVFGVW.js";import{ka as a}from"./chunk-J476KISY.js";function h(t,c,e){let o="";if(e){let s=new Date;s.setTime(s.getTime()+e*24*60*60*1e3),o="; expires="+s.toUTCString()}document.cookie=t+"="+(c||"")+o+"; path=/"}var u=(()=>{class t{get themeId(){return this._themeId}constructor(){this._localStorageThemeKey="theme",this._themeId=null}init(){let e=localStorage.getItem(this._localStorageThemeKey);r.isSet(e)&&this.selectTheme(e)}selectTheme(e){if(this._themeId===e)return;let o=m.fromId("paw-theme"),s="assets/theme-"+e+".css";o.attr("href",s);let i=new m(null,document.body);r.isSet(this.themeId)?i.removeClass(`theme-${this.themeId}`):i.removeClass("theme-trademark"),i.addClass(`theme-${e}`),this._themeId=e,h("theme",e,1),localStorage.setItem(this._localStorageThemeKey,e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{h as a,u as b};
