/*!
 * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
 * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define(['jquery.sap.global'],function(q){"use strict";var F=function(){};F.render=function(r,f){var a=r;var b=sap.ui.getCore().getConfiguration().getAccessibility();a.write('<div');a.writeControlData(f);a.addClass("sapUiFup");a.writeClasses();a.write('>');a.write('<form style="display:inline-block" encType="multipart/form-data" method="post"');a.writeAttribute('id',f.getId()+'-fu_form');a.writeAttributeEscaped('action',f.getUploadUrl());a.writeAttribute('target',f.getId()+'-frame');a.write('>');a.write('<div ');if(!f.bMobileLib){a.write('class="sapUiFupInp"');}if(b){a.writeAttribute("role","textbox");a.writeAttribute("aria-readonly","true");}a.write('>');if(!f.getButtonOnly()){a.write('<div class="sapUiFupGroup" border="0" cellPadding="0" cellSpacing="0"><div><div>');}else{a.write('<div class="sapUiFupGroup" border="0" cellPadding="0" cellSpacing="0"><div><div style="display:none">');}a.renderControl(f.oFilePath);a.write('</div><div>');a.renderControl(f.oBrowse);a.write('</div></div></div>');var n=f.getName()||f.getId();a.write('<div class="sapUiFupInputMask">');a.write('<input type="hidden" name="_charset_">');a.write('<input type="hidden" id="'+f.getId()+'-fu_data"');a.writeAttributeEscaped('name',n+'-data');a.writeAttributeEscaped('value',f.getAdditionalData()||"");a.write('>');q.each(f.getParameters(),function(i,p){a.write('<input type="hidden" ');a.writeAttributeEscaped('name',p.getName()||"");a.writeAttributeEscaped('value',p.getValue()||"");a.write('>');});a.write('</div>');a.write('</div>');a.write('</form>');a.write('</div>');};return F;},true);
