(function(k){var l=new function(){this.MainNavigationButton=function(){this.Create=function(c,e,b){var a;a=""+('<div id="'+c+'_MainButton" class ="MainNavigationTile">')+('   <div id="'+c+'_body_MainButton" class="MainNavigationTile_Body_Unselected">');a+='       <img alt="" src="'+b+'" align="right"></img>';a+='       <div id="'+c+'_text_MainButton" class= "MainNavigationTile_BodyText">'+e+"</div>";a+="   </div>";return a+="</div>"}};this.SubNavigationButton=function(){this.Create=function(c,e,b){var a;
a=""+('<div id="'+c+'_SubButton" class ="SubNavigationTile">')+('    <div id="'+c+'_body_SubButton" class="SubNavigationTile_Body_Unselected">');a+='       <div id="'+c+'_icon_SubButton" class="SubNavigationTile_Icon" style="background-image:url('+b+')"></div>';a+='       <div id="'+c+'_text_SubButton" class="SubNavigationTile_BodyText">'+e+"</div>";a+="    </div>";return a+="</div>"}};this.Bargraph=function(){var c=function(b,a,c){b=Math.floor(a/b*c);0==b&&0<a&&(b=1);return b};this.CreateDefaultBar=
function(b,a,e,h,d){var f;f='<div id="" class="BargraphTinyDefault_Body">    <div id="" class="BargraphTinyDefault_ImageContainer">';f+='       <div id="" class="BargraphTinyDefault_Body_Image" style="background-image:url('+b+')"></div>';f+='       <div id="" class="BargraphTinyDefault_Body_Title">'+a+"</div>";f+="    </div>";f+='    <div id="" class="BargraphTinyDefault_Body_Progress_Container">';f+='        <div id="" class="BargraphTinyDefault_Body_Bar_Container">';b=c(h,d,10);for(a=0;10>a;a++)f+=
'       <div id="" class="BargraphTinyDefault_Body_Bar_Item" ',a<b&&(f+='style="background-color:Lime"'),f+="></div>";f+="        </div>";f+="    </div>";f+='    <div id="" class="BargraphTinyDefault_Body_Value_Container">';f=4<d.length?f+('        <div id="" class="BargraphTinyDefault_Body_Value_Small">'+d.toString()+e+"</div>"):f+('        <div id="" class="BargraphTinyDefault_Body_Value">'+d.toString()+e+"</div>");f+='        <div id="" class="BargraphTinyDefault_Body_Max">Max: '+h.toString()+
e+"</div>";f+="    </div>";return f+="</div>"};this.CreateMemoryBar=function(b,a,g,h){var d;d='<div id="" class="BargraphTinyDefault_Body">    <div id="" class="BargraphTinyDefault_ImageContainer">';d+='       <div id="" class="BargraphTinyDefault_Body_Image" style="background-image:url('+b+')"></div>';d+='       <div id="" class="BargraphTinyDefault_Body_Title">'+a+"</div>";d+="    </div>";d+='    <div id="" class="BargraphTinyDefault_Body_Progress_Container">';d+='        <div id="" class="BargraphTinyDefault_Body_Bar_Container">';
b=c(g,h,10);for(a=0;10>a;a++)d+='       <div id="" class="BargraphTinyDefault_Body_Bar_Item" ',a<b&&(d+='style="background-color:Lime"'),d+="></div>";d+="        </div>";d+="    </div>";d+='    <div id="" class="BargraphTinyDefault_Body_Value_Container">';d+='        <div id="" class="BargraphTinyDefault_Body_Value">'+e(h,1)+"</div>";d+='        <div id="" class="BargraphTinyDefault_Body_Max">Max: '+e(g,1)+"</div>";d+="    </div>";return d+="</div>"};var e=function(b,a){var c="B KB MB GB TB PB EB ZB YB".split(" "),
e=0,d=0,f="";0<b&&(e=Math.floor(Math.log(b)/Math.log(1024)),d=(b/Math.pow(1024,e)).toFixed(a));f="";e=0+e;0<=e&&e<c.length&&(f=c[e]);return d+f}};this.Button=function(){this.Create=function(c,e){return""+('<button id="'+c+'">'+e+"</button>")}};this.SmallButton=function(){this.Create=function(c,e,b){var a="",g="res/modules/action/";switch(e){case "save":g+="Save.png";a="Save";break;case "delete":g+="Delete.png";a="Discard Changes";break;case "configure":g+="Configure.png";a="Configure";break;case "refresh":g+=
"Refresh.png";a="Refresh";break;case "power":g+="Power.png";a="On/Off";break;default:a=g=""}void 0!=b&&(a=b);return'<img id="'+c+'" src="'+g+'" title="'+a+'" style="margin:0px 0px 0px 10px"></img>'}};this.Combobox=function(){this.Create=function(c,e,b){var a="155px";void 0!=b&&(a=b);c='<select id="'+c+'" style="width:'+a+'"/>';for(b=0;b<e.length;b++)c+='<option value="'+b+'">'+e[b]+"</option>";return c+"</select>"};this.CreateMap=function(c,e,b,a){var g="155px";void 0!=a&&(g=a);c='<select id="'+c+
'" style="width:'+g+'"/>';for(a=0;a<e.length;a++)c+='<option value="'+b[a]+'">'+e[a]+"</option>";return c+"</select>"}};this.Textbox=function(){this.Create=function(c,e){var b="150px";void 0!=e&&(b=e);return""+('<input type="text" id="'+c+'" style="width:'+b+'"/>')}};this.SMBFolder=function(){this.Create=function(c,e,b,a){a="<div>"+('  <img src="'+a+'"/>');a+='  <a id="'+c+'"href="'+b+'">'+e+"</a>";return a+="</div>"}};this.Radiobutton=function(){this.Create=function(c,e,b,a){void 0==a&&(a=!1);return'<input type="radio" id="'+
c+"_"+b+'" name="'+c+'" value="'+e+'"'+(a?' checked="checked" ':"")+">"+b+"</input>"}};this.Checkbox=function(){this.Create=function(c,e,b,a){void 0==a&&(a=!1);return'<input type="checkbox" id="'+c+'" value="'+e+'"'+(a?' checked="checked" ':"")+">"+b+"</input>"}}};k.ControlLib=l})(window);
