import{r as o,h as r,H as e}from"./p-c1e62c18.js";import"./p-d66fb38c.js";import"./p-25c0eb4f.js";import"./p-6279360b.js";import"./p-a8682d9e.js";import"./p-d343a062.js";import"./p-3df73e7b.js";import{i as t}from"./p-b326828b.js";import{c as i}from"./p-072c8e48.js";import{l}from"./p-c70f9c55.js";const a={name:"dvn-dark",colorPrimary:i.green,colorPrimaryLight:i.greenLight,colorPrimaryLightest:i.greenLightest,colorSecondary:i.blue,colorSecondaryLight:i.blueLight,colorSecondaryLightest:i.blueLightest,colorDanger:i.danger,colorDangerLight:i.dangerLight,colorDangerLightest:i.dangerLightest,colorWarning:i.warning,colorWarningLight:i.warningLight,colorWarningLightest:i.warningLightest,colorNeutral:i.neutral,colorNeutralLight:i.neutralLight,colorNeutralLightest:i.neutralLightest,colorDisabled:"#5e696a",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyTitle:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilySrc:"",colorText:i.grey200,colorTextTitle:i.grey100,colorTextSecondary:i.grey500,colorBackgroundPrimary:"#34495e",colorBackgroundSecondary:"#3e4f61",colorElevatedItemBackground:"#2c3e50",colorElevatedItemShadow:"255, 255, 255",colorInputBackground:"#2e4153",colorTooltipBackground:i.grey200,colorTooltipTextColor:"#34495e",colorHighlightedCodeBackground:"#212a32",cornerRadius:"6px",colorBorder:"#3e4f61",colorBorderSecondary:"#3e4f61",spacingUnit:"4px",datePicker:{height:"124px"}};function n(o,t){return r(e,null,r("mentornity-console-app-context-injector",{theme:o},r("dvn-theme-provider",{colorBackground:!0,fitHeight:!0,theme:o},r("dvn-global-table",null),r("dvn-global-grid",null),r("dvn-global-text",null),r("notifier-wrapper",null,t))))}const c=class{constructor(r){o(this,r),this.navigate=o=>{this.path=o.path,history.pushState({},"",this.path)}}onThemeChange(o){this.theme="dvn-dark"===o.detail?a:l}componentWillLoad(){const o=(new Date).getHours();this.theme=6>o||o>18?a:l,this.path=location.pathname}render(){return t()?n(this.theme,r("dvn-app",{navigate:this.navigate,path:this.path})):n(this.theme,r("dvn-app-anonymous",{navigate:this.navigate,path:this.path}))}};export{c as mentornity_console_app_root}