var e,a,t={3876(e,a,t){t.d(a,{IB:()=>s,N_:()=>r,vz:()=>n});var o=t(4980);class r{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(e){this.isDarkMode=!1,this.themeName="lumos",this.backgroundMode="DEFAULT",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,o.makeObservable)(this,{isDarkMode:o.observable,themeName:o.observable,backgroundMode:o.observable,isVisualRebrandEnabled:o.observable,isMomentumAvatarEnabled:o.observable,isMomentumV2Enabled:o.computed,setDarkMode:o.action,setThemeName:o.action,setBackgroundMode:o.action,setVisualRebrandEnabled:o.action,setMomentumAvatar:o.action,update:o.action}),e&&this.update(e)}update(e){void 0!==e.isDarkMode&&(this.isDarkMode=e.isDarkMode),void 0!==e.themeName&&(this.themeName=e.themeName),void 0!==e.backgroundMode&&(this.backgroundMode=e.backgroundMode),void 0!==e.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=e.isVisualRebrandEnabled),void 0!==e.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=e.isMomentumAvatarEnabled)}setDarkMode(e){this.isDarkMode=e}setThemeName(e){this.themeName=e}setBackgroundMode(e){this.backgroundMode=e}setVisualRebrandEnabled(e){this.isVisualRebrandEnabled=e}setMomentumAvatar(e){this.isMomentumAvatarEnabled=e}}const n=new r;function s(e="MomentumUIThemeManager",a=n){"undefined"!=typeof globalThis&&(globalThis[e]=a),"undefined"!=typeof window&&(window[e]=a),void 0!==t.g&&(t.g[e]=a)}}},o={};function r(e){var a=o[e];if(void 0!==a)return a.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.m=t,e=[],r.O=(a,t,o,n)=>{if(!t){var s=1/0;for(b=0;b<e.length;b++){for(var[t,o,n]=e[b],i=!0,d=0;d<t.length;d++)(!1&n||s>=n)&&Object.keys(r.O).every(e=>r.O[e](t[d]))?t.splice(d--,1):(i=!1,n<s&&(s=n));if(i){e.splice(b--,1);var m=o();void 0!==m&&(a=m)}}return a}n=n||0;for(var b=e.length;b>0&&e[b-1][2]>n;b--)e[b]=e[b-1];e[b]=[t,o,n]},r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);export{r as __webpack_require__};a={2909:0,3876:0},r.C=e=>{var t,o,{__webpack_esm_ids__:n,__webpack_esm_modules__:s,__webpack_esm_runtime__:i}=e,d=0;for(t in s)r.o(s,t)&&(r.m[t]=s[t]);for(i&&i(r);d<n.length;d++)o=n[d],r.o(a,o)&&a[o]&&a[o][0](),a[n[d]]=0;r.O()},r.O.j=e=>0===a[e];import*as n from"../2599.js";r.C(n);var s=r.O(void 0,[2599],()=>r(3876));const i=(s=r.O(s)).N_,d=s.IB,m=s.vz;export{i as ThemeManager,d as registerThemeManagerGlobally,m as themeManager};