//>>built
require({cache:{"url:dojox/form/resources/FileInputAuto.html":'\x3cdiv class\x3d"dijitFileInput"\x3e\n\t\x3cinput id\x3d"${id}" name\x3d"${name}" class\x3d"dijitFileInputReal" type\x3d"file" dojoAttachPoint\x3d"fileInput" /\x3e\n\t\x3cdiv class\x3d"dijitFakeInput" dojoAttachPoint\x3d"fakeNodeHolder"\x3e\n\t\t\x3cinput class\x3d"dijitFileInputVisible" type\x3d"text" dojoAttachPoint\x3d"focusNode, inputNode" /\x3e\n\t\t\x3cdiv class\x3d"dijitInline dijitFileInputText" dojoAttachPoint\x3d"titleNode"\x3e${label}\x3c/div\x3e\n\t\t\x3cdiv class\x3d"dijitInline dijitFileInputButton" dojoAttachPoint\x3d"cancelNode" dojoAttachEvent\x3d"onclick:reset"\x3e${cancelText}\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitProgressOverlay" dojoAttachPoint\x3d"overlay"\x3e\x26nbsp;\x3c/div\x3e\n\x3c/div\x3e\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(f,g,h,k,b,c,d,l,m){d=f("dojox.form.FileInputAuto",l,{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);this._sent||(this._blurTimer=setTimeout(g.hitch(this,"_sendFile"),this.blurDelay))},setMessage:function(a){this.overlay.removeChild(this.overlay.firstChild);this.overlay.appendChild(document.createTextNode(a))},_sendFile:function(a){this._sent||this._sending||
!this.fileInput.value||(this._sending=!0,b.set(this.fakeNodeHolder,"display","none"),b.set(this.overlay,{opacity:0,display:"block"}),this.setMessage(this.uploadMessage),h.fadeIn({node:this.overlay,duration:this.duration}).play(),9>c("ie")||c("ie")&&c("quirks")?(a=document.createElement('\x3cform enctype\x3d"multipart/form-data" method\x3d"post"\x3e'),a.encoding="multipart/form-data"):(a=document.createElement("form"),a.setAttribute("enctype","multipart/form-data"),a.setAttribute("method","post")),
a.appendChild(this.fileInput),k.body().appendChild(a),m.send({url:this.url,form:a,handleAs:"json",handle:g.hitch(this,"_handleSend"),content:this.onBeforeSend()}))},_handleSend:function(a,e){this.overlay.removeChild(this.overlay.firstChild);this._sent=!0;this._sending=!1;b.set(this.overlay,{opacity:0,border:"none",background:"none"});this.overlay.style.backgroundImage="none";this.fileInput.style.display="none";this.fakeNodeHolder.style.display="none";h.fadeIn({node:this.overlay,duration:this.duration}).play(250);
this.disconnect(this._blurListener);this.disconnect(this._focusListener);k.body().removeChild(e.args.form);this.fileInput=null;this.onComplete(a,e,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(a,e,n){}});f("dojox.form.FileInputBlind",d,{startup:function(){this.inherited(arguments);this._off=b.get(this.inputNode,"width");this.inputNode.style.display="none";this._fixPosition()},_fixPosition:function(){c("ie")?b.set(this.fileInput,"width","1px"):b.set(this.fileInput,"left","-"+this._off+"px")},reset:function(a){this.inherited(arguments);this._fixPosition()}});return d});