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