var InputArticleSelector=api.InputArticleSelector=api.extendReactClass('MixinInput',{render:function(){var button;if(this.state.value!=''){var article_id=this.state.value.split(':').pop();if(parseInt(article_id)){button=React.createElement('div',{className:this.props.control.buttonClass||'mt-3'},React.createElement('a',{href:api.urls.root+'/administrator/index.php?option=com_content&task=article.edit&id='+article_id,target:'_blank',rel:'noopener noreferrer',className:'btn btn-block btn-default'},api.Text.parse('JSN_EXTFW_EDIT_ARTICLE')));}}var value=this.state.value.split(':');value=value[0]+(value[1]?' '+'(ID:'+' '+value[1]+')':'');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('div',{className:'input-group '+(this.props.control.inputClass||'')},React.createElement('input',{value:value,disabled:'disabled',className:'form-control',placeholder:api.Text.parse('JSN_EXTFW_SELECT_ARTICLE')}),React.createElement('span',{className:'input-group-append'},React.createElement('a',{href:'javascript:void(0)',onClick:this.popupForm,className:'input-group-text'},'...')),React.createElement('span',{className:'input-group-append'},React.createElement('a',{href:'javascript:void(0)',onClick:this.resetState,className:'input-group-text'},React.createElement('i',{className:'fa fa-remove'})))),button);},popupForm:function(){var href=api.urls.ajaxBase+'&context=article-selector&format=html&callback=JsnExtFwSelectArticle';api.Modal.get({id:'choose_article_modal',type:'iframe',title:'JSN_EXTFW_SELECT_ARTICLE',width:'90%',height:'90%',content:{src:href,width:'100%',height:'100%'},buttons:[{text:'close',onClick:api.Modal.hide,className:'btn btn-default'}]});top.JsnExtFwSelectArticle=function(id,name){this.change(this.props.setting,name+':'+id);api.Modal.hide();}.bind(this);}});