var _extends=Object.assign||function(a){for(var b,c=1;cthis._changeID(a.target.value),defaultValue:this.__id}):React.createElement('span',{onClick:()=>{this.updateID=!0,this.forceUpdate()}},''+this.__id)}__reorder(a){this.props.System.reorder(this.getId(),a),this.props.System.__refresh()}__setAdminUIPosition(a){let b=['top-left','top-center','top-right','bottom-left','bottom','bottom-right'],c=b.indexOf(this.properties.EditPosition),d=this.properties.EditPosition;-1===c?d=b[1]:0<=c-a&&c-aReact.createElement('div',{key:this.getId()+c},this.__factoryInput(_extends({},b[a],this.props.inputs[a]))))),this.props.outputs&&(e=Object.keys(c||{}).map((a,b)=>React.createElement('div',{key:'out'+this.getId()+b},this.__factoryOutput(_extends({},c[a],this.props.outputs[a]))))),'closed'===this._mode?'':React.createElement(Card,_extends({className:`blue-grey darken-1 AdminModule semi Position-${a} ${'open'==this._mode?'top':''}`,key:'666999666999Admina'+this.getId(),onMouseEnter:()=>{this._mode='open',this.forceUpdate()},onMouseLeave:()=>{this._mode='normal',this.forceUpdate()}},this.disableEvents,{header:React.createElement('div',null,React.createElement('h6',null,React.createElement('b',null,'ID:'),this.__renderID(),React.createElement('span',null,React.createElement('i',{className:'material-icons cursor small',onClick:()=>this.__reorder(-1)},'arrow_drop_up'),React.createElement('i',{className:'material-icons cursor small',onClick:()=>this.__reorder(1)},'arrow_drop_down')),React.createElement('span',null,React.createElement('i',{className:'material-icons cursor small',onClick:()=>this.__setAdminUIPosition(-1)},'arrow_left'),React.createElement('i',{className:'material-icons cursor small',onClick:()=>this.__setAdminUIPosition(1)},'arrow_right'))))}),'open'==this._mode?React.createElement('div',null,React.createElement('div',{className:'row'},React.createElement(InputMarker,{onDrop:a=>this._addChild(a),name:'Add child',className:'col s12'})),''==d?'':React.createElement('div',{className:'bars'},d),''==e?'':React.createElement('div',{className:'bars'},e),React.createElement('div',null,React.createElement(RemoveMarker,{className:'col s12',onRemove:()=>this._removeMe()}))):'')}}export default AdminModule;