import{r as t,h as o,H as i}from"./p-a0569a5f.js";import{d as r}from"./p-5435f26b.js";import{l as a}from"./p-fc0dbea3.js";import{i as e}from"./p-4ebc5d09.js";import"./p-6e24c7a4.js";import"./p-31309282.js";import"./p-e476a838.js";import"./p-944da115.js";import"./p-eebad85b.js";import"./p-d343a062.js";import"./p-1bea6126.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))))}let p=class{constructor(o){t(this,o),this.navigate=t=>{this.path=t.path,history.pushState({},"",this.path)}}onThemeChange(t){this.theme="dvn-dark"===t.detail?r:a}componentWillLoad(){const t=(new Date).getHours();this.theme=6>t||t>18?r:a,this.path=location.pathname}render(){return e()?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{p as mentornity_console_app_root}