import{r as t,h as o,H as n}from"./p-cb5076d4.js";import{d as i,l as s}from"./p-e16ab199.js";import{i as r}from"./p-9a45414f.js";import"./p-6e24c7a4.js";import"./p-06588791.js";import"./p-944da115.js";import"./p-eebad85b.js";import"./p-d343a062.js";import"./p-138d8bf9.js";import"./p-814af281.js";function a(t,i){return o(n,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,i))))}const e=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?i:s}componentWillLoad(){const t=(new Date).getHours();this.theme=6>t||t>18?i:s,this.path=location.pathname}render(){return r()?a(this.theme,o("dvn-app",{navigate:this.navigate,path:this.path})):a(this.theme,o("dvn-app-anonymous",{navigate:this.navigate,path:this.path}))}};export{e as mentornity_console_app_root}