//>>built
require({cache:{"url:dojox/form/resources/FileInputAuto.html":'<div class="dijitFileInput">\n\t<input id="${id}" name="${name}" class="dijitFileInputReal" type="file" dojoAttachPoint="fileInput" />\n\t<div class="dijitFakeInput" dojoAttachPoint="fakeNodeHolder">\n\t\t<input class="dijitFileInputVisible" type="text" dojoAttachPoint="focusNode, inputNode" />\n\t\t<div class="dijitInline dijitFileInputText" dojoAttachPoint="titleNode">${label}</div>\n\t\t<div class="dijitInline dijitFileInputButton" dojoAttachPoint="cancelNode" dojoAttachEvent="onclick:reset">${cancelText}</div>\n\t</div>\n\t<div class="dijitProgressOverlay" dojoAttachPoint="overlay">&nbsp;</div>\n</div>\n'}});
define("dojox/form/FileInputAuto","dojo/_base/declare,dojo/_base/lang,dojo/_base/fx,dojo/_base/window,dojo/dom-style,dojo/_base/sniff,dojo/text!./resources/FileInputAuto.html,dojox/form/FileInput,dojo/io/iframe".split(","),function(e,f,g,h,c,b,d,i,j){d=e("dojox.form.FileInputAuto",i,{url:"",blurDelay:2E3,duration:500,uploadMessage:"Uploading ...",triggerEvent:"onblur",_sent:!1,templateString:d,onBeforeSend:function(){return{}},startup:function(){this._blurListener=this.connect(this.fileInput,this.triggerEvent,
"_onBlur");this._focusListener=this.connect(this.fileInput,"onfocus","_onFocus");this.inherited(arguments)},_onFocus:function(){this._blurTimer&&clearTimeout(this._blurTimer)},_onBlur:function(){this._blurTimer&&clearTimeout(this._blurTimer);if(!this._sent)this._blurTimer=setTimeout(f.hitch(this,"_sendFile"),this.blurDelay)},setMessage:function(a){this.overlay.removeChild(this.overlay.firstChild);this.overlay.appendChild(document.createTextNode(a))},_sendFile:function(){if(!this._sent&&!this._sending&&
this.fileInput.value){this._sending=!0;c.set(this.fakeNodeHolder,"display","none");c.set(this.overlay,{opacity:0,display:"block"});this.setMessage(this.uploadMessage);g.fadeIn({node:this.overlay,duration:this.duration}).play();var a;9>b("ie")||b("ie")&&b("quirks")?(a=document.createElement('<form enctype="multipart/form-data" method="post">'),a.encoding="multipart/form-data"):(a=document.createElement("form"),a.setAttribute("enctype","multipart/form-data"),a.setAttribute("method","post"));a.appendChild(this.fileInput);
h.body().appendChild(a);j.send({url:this.url,form:a,handleAs:"json",handle:f.hitch(this,"_handleSend"),content:this.onBeforeSend()})}},_handleSend:function(a,b){this.overlay.removeChild(this.overlay.firstChild);this._sent=!0;this._sending=!1;c.set(this.overlay,{opacity:0,border:"none",background:"none"});this.overlay.style.backgroundImage="none";this.fileInput.style.display="none";this.fakeNodeHolder.style.display="none";g.fadeIn({node:this.overlay,duration:this.duration}).play(250);this.disconnect(this._blurListener);
this.disconnect(this._focusListener);h.body().removeChild(b.args.form);this.fileInput=null;this.onComplete(a,b,this)},reset:function(a){this._blurTimer&&clearTimeout(this._blurTimer);this.disconnect(this._blurListener);this.disconnect(this._focusListener);this.overlay.style.display="none";this.fakeNodeHolder.style.display="";this.inherited(arguments);this._sending=this._sent=!1;this._blurListener=this.connect(this.fileInput,this.triggerEvent,"_onBlur");this._focusListener=this.connect(this.fileInput,
"onfocus","_onFocus")},onComplete:function(){}});e("dojox.form.FileInputBlind",d,{startup:function(){this.inherited(arguments);this._off=c.get(this.inputNode,"width");this.inputNode.style.display="none";this._fixPosition()},_fixPosition:function(){b("ie")?c.set(this.fileInput,"width","1px"):c.set(this.fileInput,"left","-"+this._off+"px")},reset:function(a){this.inherited(arguments);this._fixPosition()}});return d});