')}]),angular.module("ngLoader",["ngLoaderTemplates"]).directive("loader",["$timeout",function(e){return{scope:{working:"=",progressPercentage:"=?",message:"=?",disableBackground:"@?"},restrict:"AE",replace:!0,templateUrl:function(e,t){if(void 0!==t.template)if(isNaN(parseInt(t.template)))console.error("Directive Error! Attribute 'template' must be a number. Found '"+t.template+"'")
7 | else{if(!(parseInt(t.template)<1||parseInt(t.template)>9))return"template/ngLoader/ngLoaderTemplate"+t.template+".html"
8 | console.error("Directive Error! Attribute 'template' must be a number between 1 and 9. Found '"+t.template+"'")}return"template/ngLoader/ngLoaderTemplate9.html"},link:function(t,a,n){function r(t){e(function(){i.style.marginTop=-(i.offsetHeight/2)+"px",i.style.marginLeft=-(i.offsetWidth/2)+"px"})}t.disableBackground=t.$eval(t.disableBackground),t.disableBackground===!0?a.css({background:"rgba(0,0,0,0.225)","z-index":"9999"}):void 0===t.disableBackground||console.error("Directive Error! Attribute 'disable-background' must be 'true' for 'false'. Found '"+t.disableBackground+"'")
9 | var i=a.find("div")[0],o=t.$watch("working",function(e,t){e===!0&&r(o)}),l=t.$watch("message",function(e,t){e!=t&&r(l)})}}}])
10 |
--------------------------------------------------------------------------------