import{r as t,h as o,H as i}from"./p-9f21f85f.js";import{d as r}from"./p-156fcba4.js";import{l as s}from"./p-fc0dbea3.js";import{i as a}from"./p-a1d8623c.js";import{w as p}from"./p-4e31daae.js";import"./p-6e24c7a4.js";import"./p-03b520ca.js";import"./p-e78d5616.js";import"./p-3968aca6.js";import"./p-105f7627.js";import"./p-d343a062.js";import"./p-84876749.js";import"./p-814af281.js";function n(t,r){return o(i,null,o("mentornity-console-app-context-injector",{theme:t},o("dvn-theme-provider",{colorBackground:!0,fitHeight:!0,theme:t},o("dvn-global-table",null),o("dvn-global-grid",null),o("dvn-global-text",null),o("notifier-wrapper",null,r))))}const e=class{constructor(o){t(this,o),this.theme=s,this.navigate=t=>{this.path=t.path,history.pushState({},"",this.path)}}onThemeChange(t){this.theme="dvn-dark"===t.detail?r:s}componentWillLoad(){"dark"===p((t=>this.theme="dark"===t?r:s))&&(this.theme=r),this.path=location.pathname}render(){return a()?n(this.theme,o("dvn-app",{navigate:this.navigate,path:this.path})):n(this.theme,o("dvn-app-anonymous",{navigate:this.navigate,path:this.path}))}};export{e as mentornity_console_app_root}