//>>built
define("mill/dataBrowser/process","dojo/i18n mill/mill mill/imageList mill/icon mill/ribbon mill/dataBrowser".split(" "),function(){window.mill||(mill={});mill.dataBrowser||(mill.dataBrowser={});mill.dataBrowser.process||(mill.dataBrowser.process={});dojo.mixin(mill.dataBrowser.process,{_dialog:null,_position:null,processStart:function(l,g){this._dialog&&this._dialog.hide();this._position=0;var h;this._dialog=new dijit.Dialog({content:dojo.i18n.substitute(mill.dataBrowser.cache.processDialog,dojo.i18n.getLocalization("mill",
"resources")),title:dojo.i18n.getLocalization("mill","resources").SystemIsBusy,closable:!1,onHide:dojo.hitch(this,function(){clearInterval(h);setTimeout(dojo.hitch(this,function(){this._dialog.destroyRecursive();this._dialog=null}),1)}),onShow:dojo.hitch(this,function(){var e=dojo.query("*[widgetId]",this._dialog.containerNode);e.forEach(function(a,b){e[b]=dijit.byId(a.getAttribute("widgetId"))});var k=e[0],c=e[1];this._dialog.containerNode.style.padding="0";var d=[];d.push("\x3cdiv\x3e");d.push(dojo.i18n.getLocalization("mill",
"resources").PleaseWait);d.push("\x3c/div\x3e");d.push('\x3cdiv class\x3d"animatedMillContentProgressSubtitle"\x3e');d.push(l);d.push("\x3c/div\x3e");dojo.addClass(k.containerNode,"animatedMillContentProgress");dojo.place(d.join(""),k.containerNode,"only");c.attr("percents",0);dojo.place("\x3cdiv\x3e"+dojo.i18n.getLocalization("mill","resources").EstimatedTime+": "+dojo.i18n.getLocalization("mill","resources").LessThen10+"\x3c/div\x3e",c.containerNode,"only");0<g?(c.attr("button",!0),c.attr("label",
"0%")):c.attr("button",!1);var m=(new Date).valueOf();h=setInterval(dojo.hitch(this,function(){var a=Math.round(((new Date).valueOf()-m)/1E3),b="";b=function(f,n){for(;f.toString().length<n;)f="0"+f.toString();return f};b=10>=a?dojo.i18n.getLocalization("mill","resources").LessThen10:60>=a?a+" "+dojo.i18n.getLocalization("mill","resources").seconds+".":3600>=a?b(Math.floor(a/60),2)+":"+b(a%60,2)+".":Math.floor(a/3600)+":"+b(Math.floor(a%3600/60),2)+":"+b(a%60,2)+".";b=dojo.i18n.getLocalization("mill",
"resources").EstimatedTime+": "+b;dojo.place("\x3cdiv\x3e"+b+"\x3c/div\x3e",c.containerNode,"only");0<g&&(a=Math.round(100*this._position/g),c.attr("label",a+"%"),c.attr("percents",a))}),1E3)})});this._dialog.show()},processStep:function(){this._position++},processStop:function(){this._dialog&&this._dialog.hide()}})});