var _extends=Object.assign||function(a){for(var b,c=1;c{let b=this.resolved[a];return{ctor:b.ctor,id:b.id,inputs:b.inputs,outputs:b.outputs,key:b.key}})}}class ServiceUI extends React.Component{constructor(a){super(a),this.state={vision:!1,activeMod:localStorage.getItem('ServiceDisplay')||-1//this.t = setInterval(() => this.forceUpdate(), 1000); }}toggle(){this.setState({vision:!this.state.vision})}go(a){localStorage.setItem('ServiceDisplay',a),this.setState({activeMod:a})}render(){let a=Object.keys(this.props.modules).map(a=>React.createElement(this.props.modules[a].constructor,this.props.modules[a].props)),b=Object.keys(this.props.modules).map(a=>(''+this.props.modules[a].getId()).toUpperCase()||this.props.modules[a].constructor.name),c=b.indexOf(this.state.activeMod),d=[React.createElement('div',{className:'ServiceBar',key:'SB'+Math.random()},React.createElement(Tabs,{onChange:(b,a)=>{this.go(a.target.innerText)}},React.createElement(Tab,{active:'X'===this.state.activeMod,title:'X'}),b.map((a,b)=>React.createElement(Tab,{key:b,title:a,active:this.state.activeMod===a}))))];return-1