var InputEditor=api.InputEditor=api.extendReactClass('MixinInput',{render:function(){return React.createElement('div',{key:this.props.id||api.Text.toId(),className:'form-group '+(this.props.control['class']||this.props.control.className||'')},React.createElement('label',{className:this.props.control.labelClass||''},this.label,this.tooltip),React.createElement('textarea',{ref:'field',name:this.props.setting,value:this.state.value,onChange:this.change,className:'hidden'}),React.createElement('div',{className:this.props.control['class']||this.props.control.className||''},React.createElement('button',{type:'button',onClick:this.popupForm,className:'btn btn-default btn-block'},api.Text.parse('JSN_EXTFW_SET_HTML_CONTENT'))));},popupForm:function(){var href=api.urls.ajaxBase+'&context=editor&format=html',modal=api.Modal.get({id:'html_content_modal',type:'iframe',title:'JSN_EXTFW_SET_HTML_CONTENT',width:'90%',height:'90%',content:{src:href,height:'100%',width:'100%'},buttons:[{text:'ok',onClick:function(modal,event){var modal=event.target.parentNode;while(modal&&!modal.classList.contains('modal-content')&&modal.nodeName!='BODY'){modal=modal.parentNode;}var iframeWindow=modal.querySelector('iframe').contentWindow,content=iframeWindow.document.getElementById('editor').value;if(iframeWindow.tinyMCE!==undefined){content=iframeWindow.tinyMCE.activeEditor.getContent();}else if(iframeWindow.CodeMirror!==undefined){content=iframeWindow.Joomla.editors.instances['editor'].getValue();}this.setState({value:content});this.change(this.props.setting,content);api.Modal.hide();}.bind(this),className:'btn btn-primary'},{text:'cancel',onClick:api.Modal.hide,className:'btn btn-default'}]}),setContent=function(){if(modal.refs.iframe){if(modal.refs.iframe.contentWindow){if(modal.refs.iframe.contentWindow.JsnExtFwEditorSetContent){return modal.refs.iframe.contentWindow.JsnExtFwEditorSetContent(this.state.value);}}}setTimeout(setContent,100);}.bind(this);setContent();}});