var gridsterWidth=Ext.getBody().getViewSize().width;Ext.define("endUserDashboardDetails.view.Gridster",{extend:"Ext.Component",id:"gridsterLayout",outerheight:null,suspendLayout:true,alias:"widget.gridster",settingWidth:gridsterWidth,autogrow_cols:true,deafault_widget_base_dimensions:[130,130],default_margins:[3,3],createGridsterTags:function(){var b=window,h=document,f=h.documentElement,c=h.getElementsByTagName("body")[0],a=b.innerWidth||f.clientWidth||c.clientWidth,j=b.innerHeight||f.clientHeight||c.clientHeight;
html='<div class="gridster" style="border:0px solid green;padding-left:0px !important"><ul class="gridsterul" style="width:100% !important;border:0px solid orange;margin:0px !important">'+"</ul></div>";return html;},loadDefault:function(){var Q=true;var q=$(".gridster > ul.gridsterul");var S=q.gridster({widget_selector:".gridster > ul.gridsterul > li",widget_margins:this.default_margins,widget_base_dimensions:this.widget_base_dimensions,autogenerate_stylesheet:true,avoid_overlapped_widgets:true,serialize_params:function(ab,k){return{size_x:k.size_x,size_y:k.size_y,col:k.col,row:k.row,id:ab[0].id,widthVal:ab.width(),heightVal:ab.height()};
},draggable:{handle:".resizeHandle",start:function(ab,k,ac){},drag:function(ab,k,ac){},stop:function(af,ae,ag){var ab=this.serialize();var k=0;var ad="";for(var af=0;af<ab.length;af++){var ac=ab[af];k++;if(ac!=null&&ac!=undefined){ad=ad+ac.id+","+ac.col+","+ac.row+","+ac.size_x+","+ac.size_y+"~@~";}}if(ad!=null&&ad!=undefined&&ad!=""){u.saveAllPanelPositions(ad);
}}},resize:{enabled:Q,start:function(ab,k,ac){},resize:function(ag,ae,ah){var ac=this.serialize();var ad=$("#userdesktopdata-body").outerHeight(true);var af=$("#userdesktopdata-body").height();$("iframe").css("pointer-events","none");var ab;var k=new Array();$(".gridster > ul.gridsterul > li[data-row]").val(function(){ab=[$(this).attr("data-row")];
k.push(ab);});$(".gridster > ul.gridsterul > li:last-child[data-row]").val(function(){k.sort(function(al,ak){return al-ak;});var ai=k[k.length-1];var aj=[$(this).attr("data-row")];if(ai==Number(aj)){if(ae.pointer.top>ad-10){$(".gridster").after('<div class="getScrollDiv" style="height:2px";position:relative;background:#000000;display:block;"></div>');
$("#userdesktopdata-body").scrollTo(ae.position.top,ae.position.left);}}});},stop:function(aq,ai,ah){var af=this.serialize();var al=0;var aj="";for(var aq=0;aq<af.length;aq++){var ad=af[aq];al++;if(ad!=null&&ad!=undefined){aj=aj+ad.id+","+ad.col+","+ad.row+","+ad.size_x+","+ad.size_y+"~@~";}}if(aj!=null&&aj!=undefined&&aj!=""){u.saveAllPanelPositions(aj);
}$(".getScrollDiv").remove();$("iframe").css("pointer-events","auto");for(var an=0;an<af.length;an++){if(!Ext.isEmpty(ah)){var am=ah.width();var k=ah.height();if(ah[an]!=null&&ah[an]!=undefined&&ah[an].getAttribute("id")!=null&&ah[an].getAttribute("id")!=undefined){var ab=Ext.getCmp(ah[an].getAttribute("id"));
if(ab!=null&&ab!=undefined){ab.suspendLayouts();ab.setSize(am,k);var ak=Ext.getCmp(ah[an].getAttribute("id")+"_GroupMetrics");var ap=Ext.getCmp(ah[an].getAttribute("id")+"_ddGrid");var ag=Ext.getCmp(ah[an].getAttribute("id")+"_LogonExperienceGrid");var ar=Ext.getCmp(ah[an].getAttribute("id")+"_SessionDetailsGrid");
var ac=Ext.getCmp(ah[an].getAttribute("id")+"_UserAlertsGrid");var ae=Ext.getCmp(ah[an].getAttribute("id")+"_BackendApplicationStatusGrid");if(!Ext.isEmpty(ak)){ak.setWidth(am-12);ak.setHeight(k-55);}if(!Ext.isEmpty(ap)){ap.setWidth(am-12);ap.setHeight(k-55);}if(!Ext.isEmpty(ag)){ag.setHeight(k-30);ag.setWidth(am);
}if(!Ext.isEmpty(ar)){ar.setHeight(k-30);}if(!Ext.isEmpty(ac)){ac.setHeight(k-30);}if(!Ext.isEmpty(ae)){ae.setHeight(k-30);}if(ab.chartObj!=null&&ab.chartObj!=undefined){var ao=ab.chartObj.highchart.chart;if(ao.container){ao.width=am;ao.height=k;}ao.width=am-20;if(ao.type=="bar"||ao.type=="pie"){ao.height=k-50;
}else{ao.height=k-125;}ab.chartObj.drawChart();}ab.resumeLayouts(true);}}}}$("li.gw_s").unbind();this.outerheight=$("userdesktopdata-body").outerHeight(true);}},}).data("gridster");var aa=this.deafault_widget_base_dimensions[0];var v=this.deafault_widget_base_dimensions[1];this.maxCols=(x-50)/aa;if(isNaN(this.maxCols)){this.maxCols=parseInt(panelsPerRow);
}this.maxCols=Math.ceil(this.maxCols,0);var u=this;var R=Gridster.sort_by_row_and_col_asc(panelPosOrderArray);var U=new Ext.LoadMask(Ext.getCmp("gridsterpanel"),{margin:"180 0 0 0",msg:"Widgets Loading..."});var b=Ext.ComponentQuery.query("#appPerformance");var D='<div data-qtip="Click to view<br/>Application Perfomance<br/> Statistics"  class="iconApplication handSymbol" style="display: inline-table;cursor: pointer;" onClick=javascript:showApplications()><span style="margin-left:20px;">APPLICATIONS</span></div>';
if((R!=null&&R!=undefined&&R.length>0||outerPanelPosOrderArray!=null&&outerPanelPosOrderArray!=undefined&&outerPanelPosOrderArray.length>0)){if(!Ext.isEmpty(grppanelData)){b[0].show();}else{D="APPLICATIONS";b[0].hide();}if(R!=null&&R!=undefined&&R.length>0){for(var V=0;V<R.length;V++){var o=R[V];var z=o["col"];
var O=o["row"];var L=o["size_x"];var K=o["size_y"];var H=panelPositionsMapping.obj[z+","+O+":"+L+","+K];var r=H[0].PanelId;var Z=r+"_container";var P=H[0].Metrics;var s=H[0].PanelName;var B=H[0].Props;var C=H[0].ToolIcon;var E=H[0].ToolIconText;var m=H[0].ToolIconId;if(C==null||C==undefined||C=="undefined"){C="iconClose3";
E="Remove Panel";m="closeWinId";}var c=false;var F=false;var W=false;var t=false;if(P.indexOf("Area_Metrics")>-1||P.indexOf("Line_Metrics")>-1||P.indexOf("Bar_Metrics")>-1||P.indexOf("Pie_Metrics")>-1){c=true;if(P.indexOf("Bar_Metrics")>-1){F=true;}else{if(P.indexOf("Pie_Metrics")>-1){W=true;}}}else{if(P.indexOf("DDGrid_Metrics")>-1||P.indexOf("DDCountGrid_Metrics")>-1){t=true;
}}var h="/final/servlet/com.eg.EgMonitorResultDispatcher";var M=true;var J=false;var a=true;if(hideConfigFlag||isModifyEnable||isOnlyVMAssigned){Q=false;M=false;a=false;J=true;}if(J){Ext.getCmp("AddPanelbtn").hide();Ext.getCmp("ShowHideBtn").hide();}var l=false;if(t){l=true;}if(!Ext.isEmpty(h)){if(z>this.maxCols){z=this.maxCols;
}if(L>this.maxCols){L=this.maxCols;}if((z+L)>this.maxCols){z=(this.maxCols-L);}var X="";if(s=="SessionInfo"||s=="Group_Metrics"||s=="SessionDuration"){}else{if(s=="LoginInfo"){}else{X="";}}S.add_widget.apply(S,['<li tabindex="-1" class="'+X+' gs_w" id="'+r+'"/>',L,K,z,O]);panelMetrics_EN=filterEncode(P);
Ext.Ajax.request({url:h,scope:this,timeout:1280000,params:parameters+"&panelId="+r+"&panelMetrics="+encodeURIComponent(panelMetrics_EN)+"&resultpage=globalsearch&isEndUserDashboard=true",panelId:r,containerId:Z,panelMetrics:P,isGraph:c,isBarGraph:F,isPieGraph:W,panelProps:B,panelToolIcon:C,panelToolIconText:E,panelToolIconId:m,panelIndex:V,panelSettingIconHide:l,success:function(aC){Ext.destroy(U);
if(aC.status==200&&!Ext.isEmpty(aC.responseText)){var bC=aC.request.options.panelId;var aU=aC.request.options.panelMetrics;var bg=aC.request.options.panelProps.split(",");var ay=aC.request.options.url;var bz=aC.request.options.params;var aX=aC.request.options.containerId;var a2=aC.request.options.panelToolIcon;
var aR=aC.request.options.panelToolIconText;var af=aC.request.options.panelToolIconId;var bw=aC.request.options.panelIndex;var bA=aC.request.options.panelSettingIconHide;var bn=parseInt(bg[0]);var ao=parseInt(bg[1]);var bE=parseInt(bg[2]);var bD=parseInt(bg[3]);var aF=false;if(af!=null&&af=="hideWinId"){aF=true;
}var be=Ext.widget("panel",{id:aC.request.options.panelId,url:ay,params:bz,title:at,cls:"fluidPanel fluidPanelBody",renderTo:bC,metrics:aU,height:"100%",defaults:{flex:1},frame:false,border:true,style:{"border":"0px solid #020202;"},padding:0,bodyPadding:0,containerId:aX,graphId:"graph_"+aX,isGraph:aC.request.options.isGraph,isBarGraph:aC.request.options.isBarGraph,isPieGraph:aC.request.options.isPieGraph,chartObj:null,barChartHeight:null,pieChartHeight:null,tools:[{xtype:"button",itemId:"settingId_"+aX,winid:aC.request.options.panelId,iconCls:"iconConfig",tooltip:"Edit Panel",style:{"background":"none","border":"none"},hidden:(J||bA),listeners:{"click":function(bN){var bM=Ext.getCmp(this.winid);
var bP=screen.width/2-200;var bO=screen.height/2-300;var bQ="";isNewpanel="false";if(aU.indexOf("~")>=0){bQ=aU.substring(0,aU.indexOf("~"));}Ext.getCmp("configMod").showAt(bP,bO);Ext.getCmp("optionsCombo").setValue("modify");u.loadConfigurationItems_Modify(Ext.getCmp("optionsCombo"),at,bM.id,bQ);}}},{xtype:"button",itemId:af,winid:aC.request.options.panelId,iconCls:a2,tooltip:aR,style:{"background":"none","border":"none"},hidden:(J||aF),handler:function(){isNewpanel="false";
if(!Ext.isEmpty(this.itemId)&&this.itemId=="closeWinId"){var bM=Ext.getCmp(this.winid);var bN="close";if(!Ext.isEmpty(bM)){Ext.MessageBox.confirm("Delete","Window and its configuration will be deleted permanently. Are you sure ?",function(bO){if(bO==="yes"){u.removeWindowDetails(bM,bN);bM.destroy();}});
return false;}}else{if(!Ext.isEmpty(this.itemId)&&this.itemId=="hideWinId"){var bM=Ext.getCmp(this.winid);var bN="hide";if(!Ext.isEmpty(bM)){Ext.MessageBox.confirm("Hide","Are you sure to hide ?",function(bO){if(bO==="yes"){u.removeWindowDetails(bM,bN);bM.destroy();}});return false;}}}}}],items:[{xtype:"container",style:{"height":"100%","border":"0px solid red"},baseStyle:{"background":"transparent !important","opacity":".5 !important"},bodyPadding:"10 0 0 20",padding:0,defaults:{flex:1},autoScroll:false,scroll:false,id:aX,}],listeners:{"beforeclose":function(bM){Ext.MessageBox.confirm("Delete","Window and its configuration will be deleted permanently. Are you sure ?",function(bO){if(bO==="yes"){var bN="close";
u.removeWindowDetails(bM,bN);bM.destroy();}});return false;Ext.getDoc().on("mousedown",this.handleDocMouseDown,this);},el:{mouseover:function(bP,bN,bM,bO){be.addCls("uxBorder");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");}},"afterrender":function(bM){setInterval(function(){refreshPanelContent(bM);
},refreshFrequency);if(a){}}}});Ext.get("userdesktopdata-body").setStyle("overflow-y","auto !important");var bB=Ext.decode(aC.responseText);var av=bB["RESULT"];var at=av["TITLE"];var bG=false;if(!Ext.isEmpty(av["SWAPED"])&&av["SWAPED"]=="true"){bG=true;}var bj=be.id;if(Ext.isEmpty(at)&&!Ext.isEmpty(av["JSON_DATA"])&&!Ext.isEmpty(av["JSON_DATA"]["TITLE"])){at=av["JSON_DATA"]["TITLE"];
}if(aC.responseText.indexOf(".png")>=0){be.setTitle('<span class="resizeHandle">'+at+"</span>");be.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}else{var aY=false;if(!Ext.isEmpty(av)&&av.hasOwnProperty("JSON_DATA")&&av["JSON_DATA"]!="NO_DATA"){if(av["JSON_DATA"].hasOwnProperty("Login_Info")){if(av["JSON_DATA"].Login_Info!="NO_DATA"&&av["JSON_DATA"].Login_Info!="RECONNECT_DATA"){aY=true;}}else{aY=true;}}if(aY){if(!Ext.isEmpty(at)){be.setTitle('<span class="resizeHandle">'+at+"</span>");
}if(Ext.isEmpty(av["PANEL_TYPE"])){if(aU.indexOf("UserDonutLoginInfo")>-1){var aV=av["JSON_DATA"]["Login_Chart_Data"];var bF=av["JSON_DATA"]["Login_Chart_Middle"];var bf=av["JSON_DATA"]["Login_Info"];var a1=av["JSON_DATA"]["Login_Details_Icon"];if(aV!=null&&aV!=undefined){aV["customMsg"]="yes";aV["formatTip"]="yes";
aV["rumPie"]="yes";aV["dataLabels"]=false;aV["showMonitorHomeBottomPanel"]=false;aV["logonDonut"]=true;aV["useHtml"]=true;aV["title"]=bF;aV["tooltipFontSize"]=10;}else{be.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:3% 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}var aI='<div style="float:left">LOGON TIME BREAKDOWN</div>';if(!Ext.isEmpty(a1)&&a1!=undefined&&a1!=null&&a1=="true"){aI='<div style="float:left">LOGON TIME BREAKDOWN</div><div class="iconLogonDetails mouse" onclick="logon()" data-qtip="Logon Details" data-qclass="yellowTip" style="float: right;margin-left:5px"></div>';
}var aB=Ext.create("Ext.form.Panel",{layout:"fit",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bC+"_UserDonutLoginInfo",flex:0.5,listeners:{el:{mouseover:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");
}}},items:[{xtype:"fieldset",collapsible:false,layout:"fit",height:182,title:aI,html:bf,listeners:{"render":function(bN){var bM={};var bO=$(".gridster ul").gridster().data("gridster");bM=jQuery.extend(true,{},createPie("UserDonutLoginInfo_container",180,180),bM);bM.setData(aV,"","","donut");bM.drawChart();
}}}]});if(aU.indexOf("UserDonutLoginInfo")>-1){var ag=Ext.getCmp("logonInfoPanel");ag.add(aB);}else{var aT=Ext.getCmp("overviewCol");aT.add(aB);}var bI=be.getDockedItems();bI[0].setVisible(false);}else{if(aU.indexOf("LoginDetails")>-1){var ab=av["JSON_DATA"];ab=ab.replace(/\bul\b/g,"div");ab=ab.replace(/\bli\b/g,"div");
be.getComponent(0).update(ab);be.setAutoScroll(true);}else{if(aU.indexOf("Group_Metrics")>-1){var aB=Ext.create("Ext.form.Panel",{height:228,layout:"fit",cls:"uxFieldsetNew uxBorderNone",id:bC+"_GroupMetrics",defaults:{flex:0.2,},style:{"border":"0px solid green"},margin:"0 0 0 0",listeners:{el:{mouseover:function(bP,bN,bM,bO){be.removeCls("uxBorder");
be.addCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");}}},items:[{xtype:"fieldset",width:"100%",height:"100%",collapsible:false,title:'<span class="resizeHandle">'+at+"</span>",html:av["JSON_DATA"],}],listeners:{resize:function(){var bN=Ext.getCmp(bC+"_GroupMetrics");
var bO=$("#"+be.id).height();var bM=$("#"+be.id).width();bN.setHeight(bO-15);bN.setWidth(bM-20);},render:function(){var bM=Ext.getCmp(bC+"_GroupMetrics");}}});var ad=Ext.create("Ext.form.Panel",{height:be.getHeight()-25,autoScroll:true,cls:"uxDataPanelInner uxBorderNone",id:bC+"_GroupMetrics",flex:0.2,border:false,margin:"0 0 0 0",listeners:{el:{mouseover:function(bP,bN,bM,bO){ad.removeCls("uxBorder");
ad.addCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){ad.removeCls("uxBorder");ad.addCls("uxBorderNone");}}},html:av["JSON_DATA"],});if(at=="Session - Profile Details"||(at.indexOf("Profile Details")>-1)){var aA=1000;setTimeout(function(){var bM=Ext.getCmp("overviewCol");bM.add([aB]);},aA);var bI=be.getDockedItems();
bI[0].setVisible(false);}else{be.getComponent(0).add(ad);if(bG){var bI=be.getDockedItems();bI[0].items.items[1].setVisible(false);}}}else{if(aU.indexOf("SessionInfo")>-1){var aB=Ext.create("Ext.form.Panel",{layout:"fit",id:bC+"_SessionInfo",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bC+"_SessionInfo",flex:0.2,listeners:{el:{mouseover:function(bP,bN,bM,bO){be.removeCls("uxBorder");
be.addCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");}}},items:[{xtype:"fieldset",collapsible:false,defaults:{anchor:"100%"},layout:"fit",title:'<span class="resizeHandle">'+at+"</span>",html:av["JSON_DATA"],}]});var aT=Ext.getCmp("overviewCol");
aT.add([aB]);var bI=be.getDockedItems();bI[0].setVisible(false);}else{if(aU.indexOf("LoginInfo")>-1){var a1=av["JSON_DATA"]["Login_Details_Icon"];var aI='<div style="float:left;margin-left:22px" class="resizeHandle">'+at+"</div>";if(!Ext.isEmpty(a1)&&a1!=undefined&&a1!=null&&a1=="true"){aI='<div style="float:left;margin-left:22px" class="resizeHandle">'+at+'</div><div class="iconLogonDetails mouse" onclick="logon()" data-qtip="Logon Details" data-qclass="yellowTip"></div>';
}var aB=Ext.create("Ext.form.Panel",{layout:"fit",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bC+"_LoginInfo",flex:0.5,listeners:{el:{mouseover:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");
}}},items:[{xtype:"fieldset",collapsible:false,layout:"fit",title:aI,html:av["JSON_DATA"]["Login_Info"],listeners:{"render":function(bM){var bN=$(".gridster ul").gridster().data("gridster");}}}]});if(aU.indexOf("LoginInfo")>-1){var ag=Ext.getCmp("logonInfoPanel");ag.add(aB);}else{var aT=Ext.getCmp("overviewCol");
aT.add([aB]);}var bI=be.getDockedItems();bI[0].setVisible(false);}else{if(aU.indexOf("SessionDuration")>-1){var ap='<table style="width:100%"><tbody><tr><td style="text-align:center" colspan="2"><table align="center"><tr><td><img align="center" src="/final/images/spacer.gif" class="iconLoginTime"  style="cursor:pointer;" data-qtip="Date" data-qclass="yellowTip"></td><td style="padding-left:5px">06/20/2016 15:49:19</td></tr></table></td></tr><tr><td style="text-align:center;padding-top:20px"><svg width="110" height="110" viewbox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="transparent"/><circle cx="50" cy="50" r="40" fill="transparent" stroke-width="3" stroke="#6ab5c1"/><circle cx="50" cy="50" r="30" fill="transparent" stroke-width="11" stroke="#6ab5c1" stroke-dasharray="195.2" stroke-dashoffset="50.3"/><text x="30" y="60" fill="#6ab5c1" font-size="16">2832</text></svg></td><td><table><tr><td>Active:</td><td class="boldText" style="padding-left:5px;">26</td></tr><tr><td style="text-align:right">Idle:</td><td class="boldText" style="padding-left:5px;">2797</tr></table></td></tr></tbody></table>';
var aB=Ext.create("Ext.form.Panel",{layout:"fit",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bC+"_SessionDuration",flex:0.5,listeners:{el:{mouseover:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");
}}},items:[{xtype:"fieldset",collapsible:false,layout:"fit",title:'<span class="resizeHandle">'+at+"</span>",html:av["JSON_DATA"],}]});var aT=Ext.getCmp("overviewCol");aT.add(aB);var bI=be.getDockedItems();bI[0].setVisible(false);be.setHeight(Ext.getCmp(bC+"_SessionDuration").getHeight());}else{if(aU.indexOf("LogonExperience")>-1&&av["JSON_DATA"]!="NO_DATA"){be.setTitle("<table class='resizeHandle header' style='margin-top:3px' width='100%' border='0'><tr><td align='left' width='100%'><span class='resizeHandle'>"+at+"</span></td><td align='right' style='padding-right:5px'>Last "+av["TIME_LINE"]+" Sessions</td></tr></table>");
var a8=av["JSON_DATA"];var br=Ext.create("Ext.data.Store",{autoLoad:true,fields:a8["Fields"],data:a8["Data"]});var az=be.getHeight()-30;var au=be.getWidth();var a8=Ext.create("Ext.grid.Panel",{id:bC+"_LogonExperienceGrid",cls:"uxgridSkin",autoScroll:true,scroll:true,height:230,defaults:{flex:1},layout:"fit",frame:false,padding:0,forceFit:true,store:br,margin:"25 5 5 5",collapsible:false,multiSelect:true,stripeRows:false,columns:{items:a8["Columns"]},listeners:{resize:function(){var bM=Ext.getCmp(bC+"_LogonExperienceGrid");
var bO=$("#"+be.id).height();var bN=$("#"+be.id).width();bM.setHeight(bO-55);bM.setWidth(bN-15);},render:function(){}}});be.getComponent(0).add(a8);be.getComponent(0).setAutoScroll(false);}else{if(aU.indexOf("SessionDetails")>-1&&av["JSON_DATA"]!="NO_DATA"){be.setTitle("<table class='resizeHandle header' style='margin-top:2px' id='sessionDetailsTitle' width='100%' border='0'><tr><td align='left' width='100%'><span class='resizeHandle'>"+at+"</span></td><td align='right' style='padding-right:5px'>"+av["TIME_LINE"]+"</td></tr></table>");
var br=Ext.create("Ext.data.Store",{autoLoad:true,fields:["server","lastAccessedTime","graphLinks"],data:av["JSON_DATA"]});var a8=Ext.create("Ext.grid.Panel",{id:bC+"_SessionDetailsGrid",cls:"uxgridSkin",autoScroll:true,scroll:true,frame:false,padding:0,height:230,defaults:{flex:0.15,},layout:"fit",store:br,margin:"25 5 5 5",stateful:true,collapsible:false,multiSelect:true,stripeRows:true,columns:{defaults:{sortable:false,draggable:true,hideable:false,},items:[{text:"Server",dataIndex:"server",flex:2.1,style:{"border-left":"0px"},},{text:"Last Accessed Time",dataIndex:"lastAccessedTime",width:150},{dataIndex:"graphLinks",xtype:"actioncolumn",width:60,renderer:function(bM){return"<div >"+bM+"</div>";
}}]},listeners:{resize:function(){var bM=Ext.getCmp(bC+"_SessionDetailsGrid");var bO=$("#"+be.id).height();var bN=$("#"+be.id).width();bM.setHeight(bO-55);bM.setWidth(bN-10);},render:function(){var bM=Ext.getCmp(bC+"_SessionDetailsGrid");}}});be.getComponent(0).add(a8);}else{if(aU.indexOf("User_Alerts")>-1&&av["JSON_DATA"]!="NO_DATA"){be.setTitle("<table class='resizeHandle header' style='margin-top:2px' id='userAlertsTitle' width='100%' border='0'><tr><td align='left' width='100%'><span class='resizeHandle'>"+at+"</span></td><td align='right' style='font-size:10px!important;'>Recent "+av["TIME_LINE"]+"&nbsp;</td></tr></table>");
var a8=av["JSON_DATA"];var br=Ext.create("Ext.data.Store",{fields:["STATE","COMPONENT","DESCRIPTION","START_TIME","DURATION"],data:av["JSON_DATA"]});var a8=Ext.create("Ext.grid.Panel",{id:bC+"_UserAlertsGrid",cls:"uxgridSkin",autoScroll:true,scroll:true,height:245,defaults:{flex:1},layout:"fit",frame:false,padding:0,store:br,margin:"25 5 5 5",stateful:true,collapsible:false,multiSelect:true,stripeRows:false,columns:{defaults:{sortable:false,draggable:true,hideable:false,style:{"border-bottom":"0px !important"}},items:[{dataIndex:"STATE",width:30,renderer:function(bN){var bM="<div style='margin-right:6px;margin-top:1px' class='state_"+bN+"'></div>";
return bM;}},{text:"Description",dataIndex:"DESCRIPTION",flex:1.5,sortable:true,renderer:function(bR,bN,bM,bT,bQ,bO,bS){if(!Ext.isEmpty(bM)&&bM.hasOwnProperty("raw")&&bM.raw.hasOwnProperty("LINK")&&!Ext.isEmpty(bM.raw.LINK)){if(isOnlyVMAssigned&&userType=="VDI"){bN.style="cursor:default";var bP="javascript:void(0);";
bR='<a href="'+bP+'" style="cursor:default;">'+bR+"</a>";}else{bN.style="cursor:pointer";var bP="/final/monitor/EgSiteInfraView.jsp?qctr=2&fromalarm=&prevPage=MainDashBoard"+bM.raw.LINK;bR='<a href="'+bP+'">'+bR+"</a>";}}return bR;}},{text:"StartTime",dataIndex:"START_TIME",width:140,sortable:true,renderer:function(bR,bN,bM,bT,bQ,bO,bS){if(!Ext.isEmpty(bM)&&bM.hasOwnProperty("raw")&&bM.raw.hasOwnProperty("LINK")&&!Ext.isEmpty(bM.raw.LINK)){if(isOnlyVMAssigned&&userType=="VDI"){bN.style="cursor:default";
var bP="javascript:void(0);";bR='<a href="'+bP+'" style="cursor:default;">'+bR+"</a>";}else{bN.style="cursor:pointer";var bP="/final/monitor/EgSiteInfraView.jsp?qctr=2&fromalarm=&prevPage=MainDashBoard"+bM.raw.LINK;bR='<a href="'+bP+'">'+bR+"</a>";}}return bR;}},{text:"Duration",dataIndex:"DURATION",width:70,sortable:true,renderer:function(bR,bN,bM,bT,bQ,bO,bS){if(!Ext.isEmpty(bM)&&bM.hasOwnProperty("raw")&&bM.raw.hasOwnProperty("LINK")&&!Ext.isEmpty(bM.raw.LINK)){if(isOnlyVMAssigned&&userType=="VDI"){bN.style="cursor:default";
var bP="javascript:void(0);";bR='<a href="'+bP+'" style="cursor:default;">'+bR+"</a>";}else{bN.style="cursor:pointer";var bP="/final/monitor/EgSiteInfraView.jsp?qctr=2&fromalarm=&prevPage=MainDashBoard"+bM.raw.LINK;bR='<a href="'+bP+'">'+bR+"</a>";}}return bR;}},{dataIndex:"LINKS",xtype:"actioncolumn",flex:0.3,hidden:(isOnlyVMAssigned&&userType=="VDI"),items:[{icon:"",tooltip:"Graph",getClass:function(bO,bN,bM){var bP=bM.raw.LINKS.graph;
if(Ext.isEmpty(bP)||bP==null||bP=="-"){return"iconSpacer mouseOverRemove";}else{return"iconLineChart actionIcon";}},handler:function(bR,bQ,bS,bT,bP,bO,bU){var bN=bO.raw.LINKS.graph;var bM=bO.raw.LINKS.dd;this.fireEvent("itemClick",loadPopup(bN));},},{icon:"",tooltip:"DD",getClass:function(bO,bN,bM){var bP=bM.raw.LINKS.dd;
if(Ext.isEmpty(bP)||bP==null||bP=="-"){return"iconSpacer actionIcon mouseOverRemove";}else{return"iconDiagnosis actionIcon";}},handler:function(bN,bT,bO,bP,bQ,bM,bS){var bR=bM.raw.LINKS.dd;this.fireEvent("itemClick",loadPopup(bR));},}]}]},listeners:{resize:function(){var bM=Ext.getCmp(bC+"_UserAlertsGrid");
var bO=$("#"+be.id).height();var bN=$("#"+be.id).width();bM.setHeight(bO-55);bM.setWidth(bN-15);},render:function(){var bM=Ext.getCmp(bC+"_UserAlertsGrid");},}});be.getComponent(0).add(a8);}else{if(aU.indexOf("BackendApplicationStatus")>-1&&av["JSON_DATA"]!="NO_DATA"){var a8=av["JSON_DATA"];var br=Ext.create("Ext.data.Store",{autoLoad:true,fields:a8["Fields"],data:a8["Data"]});
var a8=Ext.create("Ext.grid.Panel",{id:bC+"_BackendApplicationStatusGrid",cls:"uxgridSkin",autoScroll:true,frame:false,padding:0,height:230,width:"100%",defaults:{flex:1},layout:"fit",store:br,margin:"25 5 5 5",stateful:true,collapsible:false,multiSelect:true,stripeRows:false,columns:{defaults:{flex:3},items:a8["Columns"]},listeners:{resize:function(){var bM=Ext.getCmp(bC+"_BackendApplicationStatusGrid");
var bO=$("#"+be.id).height();var bN=$("#"+be.id).width();bM.setHeight(bO-55);bM.setWidth(bN-15);},render:function(){var bM=Ext.getCmp(bC+"_BackendApplicationStatusGrid");}}});be.getComponent(0).add(a8);}}}}}}}}}}}else{if(!Ext.isEmpty(av["PANEL_TYPE"])&&av["PANEL_TYPE"]=="Grid"){if(av["JSON_DATA"]!="NO_DATA"){var bp=av["JSON_DATA"];
var a8=Ext.create("Ext.grid.Panel",{id:bC+"_ddGrid",cls:"uxgridSkin",alias:"widget.DataGrid",border:true,title:"",url:"",panelRefFreq:"",height:215,defaults:{},layout:"fit",frame:false,autoScroll:true,scroll:true,margin:"25 5 5 5",floatable:false,stateful:true,collapsible:false,multiSelect:true,stripeRows:false,store:null,columns:{defaults:{flex:3},items:[]},jsonGridData:bp,listeners:{resize:function(){var bM=Ext.getCmp(bC+"_ddGrid");
var bN=$("#"+be.id).height();bM.setHeight(bN-50);},afterrender:function(bW){var bP=bW.jsonGridData;if(!Ext.isEmpty(bP)&&!Ext.isEmpty(bP.columns)){var bM=new Array();var bR=new Array();var bV=0;for(var bQ=0;bQ<bP.columns.length;bQ++){if(!isNaN(parseInt(bP.columns[bQ].columnWidth))){bV+=parseInt(bP.columns[bQ].columnWidth);
}}for(var bQ=0;bQ<bP.columns.length;bQ++){var bN=bP.columns[bQ];var bO=new Object();bO.text=bN.text;bO.menuDisabled=true;bO.dataIndex=bN.dataIndex;if(!Ext.isEmpty(bN.columnWidth)){if(bN.columnWidth.search("%")!=-1){bO.width=bN.columnWidth;}else{var bT=(parseInt(bN.columnWidth)/bV)*100;bO.width=bT+"%";
}}else{if(bN.dataIndex=="value-1"){bO.width=47;bO.text="";bO.menuDisabled=true;bO.sortable=false;}else{if(bN.dataIndex=="value0"){bO.width=80;}else{if(bN.flex!=null&&bN.flex!=undefined&&bN.flex!=""){bO.flex=bN.flex;}else{if(bN.width!=null&&bN.width!=undefined&&bN.width!=""){bO.width=bN.width;}else{bO.flex=1;
}}}}}bO.renderer=function(b2,bY,bX,b3,bZ){var b0=bP.columns[bZ].dataIndex;var b1="";if(!Ext.isEmpty(bX.get(b0+"_progress"))){b1+='<table cellspacing="0" cellpadding="0" border="0" style="table-layout:auto;">'+"<tr>"+"<td>"+'<table width="80" cellpadding="0" cellspacing="0" border="0"  height="6" class="prog_border" style="width:90% !important">'+"<tr>"+'<td align="left" width="100%" height="6px" class="prog_border" >'+'<table width="'+bX.get(b0+"_progress")+'%" height="6" cellpadding="0" cellspacing="0" border="0">'+"<tr>"+'<td class="progress_GOOD" width="90% !important"></td>'+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</td>"+'<td align="left" style="padding-left:1px;width:42px !important" data-qtip="'+bX.get(b0)+'" data-qclass="yellowTip">'+bX.get(b0)+"</td>"+"</tr>"+"</table>";
}else{if(!Ext.isEmpty(bX.get(b0))&&Ext.isEmpty(bX.get(b0+"_url"))&&Ext.isEmpty(bX.get(b0+"_progress"))){b1+='<span data-qclass="yellowTip" data-qtip="'+bX.get(b0)+'">'+bX.get(b0)+"</span>";}}return b1;};var bU=bP.fields[bQ];bR.push(bU);bR.push(bN.dataIndex+"_progress");bM.push(bO);}var bS=Ext.create("Ext.data.Store",{fields:bR,autoDestroy:true,proxy:{type:"memory",reader:{type:"json",root:"items"}},data:bP.data});
bW.reconfigure(bS,bM);}}}});var bI=be.getDockedItems();var a0=bI[0].items.items;be.getComponent(0).add(a8);}else{be.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}}else{if(!Ext.isEmpty(av["PANEL_TYPE"])&&av["PANEL_TYPE"]=="Topology"){if(av["JSON_DATA"]!="NO_DATA"){var aQ=av["JSON_DATA"];var ai=aQ.TopologyFlowArray;var ac=aQ.TopologyFlowDirectArray;var am=ai[4].CompAppArray;var ae=ai[4].CompAllAppobj.topoCompAllAppVal;var aW=ai[4].CompTypeandCompName;var bh=ai[4].sInfo;
if(bh!=null&&bh!=""&&bh.indexOf("\\")>-1){bh=bh.replace("\\","\\\\");}var bK="";var bi="";var by="";var k="";var aS="";var a3="";var aO="";var bL="";var bk="";var bv="";var aM="";var a4="";var aj="";var bu="";var aL="";var aE="";var aD="";var bt="";var aK="";var aZ="";var ah="";var bH="";var bs="";var aP="";
var aN="";var ax="";var aw="";var bd="";var bo="";var aJ="";var bb="";var bm="";var aH="";var bx="";if(isHistory!=""&&isHistory=="true"){bx="<span>";}else{bx='<span class="uxStateGood">';}if(ai[0]!=null){bK=ai[0]["UserName"];bi=ai[0]["UserState"];by=ai[0]["UserLoginStatus"];if(by!=""&&by=="Yes"){k="iconLoginTime";
}else{k="iconLoginTimeDisable";}aS=ai[0]["UserIcon"];if(bi!=null&&bi!=undefined){if(isHistory!=""&&isHistory=="true"){a3="";}else{a3='<div style="margin-left:40px;margin-top:30px" class="stateEffect_'+bi+'"></div>';}}}if(ai[1]!=null){aO=ai[1]["CompName"];bL=ai[1]["CompState"];bk=ai[1]["CompNameLink"];
if(bL==null||bL==undefined){bL="";}if(bL!=null&&bL!=undefined){if(isHistory!=""&&isHistory=="true"){bv="";}else{bv='<div style="margin-left:40px;margin-top:30px" class="stateEffect_'+bL+'"></div>';}}if(bk==null||bk==undefined){bk="javascript:void(0);";}}if(ai[2]!=null){aM=ai[2]["CompName"];aP=ai[2]["CompTopValue"];
a4=ai[2]["CompNameLink"];ax=ai[2]["CompBottomText"];aj=ai[2]["CompState"];if(aj==null||aj==undefined){aj="";}if(aj!=null&&aj!=undefined){if(isHistory!=""&&isHistory=="true"){bu="";}else{bu='<div style="margin-left:40px;margin-top:30px" class="stateEffect_'+aj+'"></div>';}}if(ax==null||ax==undefined){ax="";
}if(a4==null||a4==undefined){a4="javascript:void(0);";}}if(ai[3]!=null){aL=ai[3]["CompName"];aN=ai[3]["CompTopValue"];aD=ai[3]["CompNameLink"];aw=ai[3]["CompBottomText"];aE=ai[3]["CompState"];if(aE==null||aE==undefined){aE="";}if(aE!=null&&aE!=undefined){if(isHistory!=""&&isHistory=="true"){bt="";}else{bt='<div style="margin-left:40px;margin-top:30px" class="stateEffect_'+aE+'"></div>';
}}if(aw==null||aw==undefined){aw="";}if(aD==null||aD==undefined){aD="javascript:void(0);";}}if(ai[4]!=null){aK=ai[4]["CompName"];aZ=ai[4]["CompState"];ah=ai[4]["CompNameLink"];bH=ai[4]["InsideviewURL"];if(aZ==null||aZ==undefined){aZ="";}if(aZ!=null&&aZ!=undefined){if(isHistory!=""&&isHistory=="true"){bs="";
}else{bs='<div style="margin-left:40px;margin-top:30px" class="stateEffect_'+aZ+'"></div>';}}if(ah==null||ah==undefined){ah="javascript:void(0);";}if(bH==null||bH==undefined){bH="javascript:void(0);";}}if(ac[0]!=null){bd=ac[0]["MeasureDisplayName"];bo=ac[0]["MeasureValue"];aJ=ac[0]["MeasureState"];}if(ac[1]!=null){bb=ac[1]["MeasureDisplayName"];
bm=ac[1]["MeasureValue"];aH=ac[1]["MeasureState"];}var bc=am[0];var ba=am[1];var a9=am[2];var a7=am[3];var a6=am[4];var bJ="";if(isHistory!=""&&isHistory=="true"){bJ='<table style="margin-left:-11%;width:100%;text-align:center"><tr><td><hr class="headerLine" style="float:right"></td><td class="headerBox" style="width:155px">'+at+'<img src="/final/images/clear.png"/ data-qtip="Current Alarms" data-qclass="yellowTip"  style="margin-top:-2px;float: right;" class="iconFlashAlarm handSymbol" onclick="javascript:parent.openAlarmPopupWindowUED(\''+aW+"','"+bh+'\');"></td><td><hr class="headerLine" style="float:left"></td></tr></table>';
}else{bJ='<table style="margin-left:-11%;width:100%;text-align:center"><tr><td><hr class="headerLine" style="float:right"></td><td class="headerBox" style="width:155px">'+at+'<img src="/final/images/clear.png"/ data-qtip="Current Alarms" data-qclass="yellowTip"  style="margin-top:-2px;float: right;" class="iconFlashAlarm handSymbol" onclick="javascript:parent.openAlarmPopupWindowUED(\''+aW+"','"+bh+'\');"></td><td><hr class="headerLine" style="float:left"></td></tr></table>';
}var aq="";var an="";if(isHistory!=""&&isHistory=="true"){aq='<span class="font_bold10">';an='<span class="font_bold10">';}else{aq='<span class="uxState'+aJ+' font_bold10">';an='<span class="uxState'+aH+' font_bold10">';}var a5=Ext.create("Ext.container.Container",{id:bC+"_Topology",style:{"padding":"0 3% 0 7%","border":"0px solid red"},margin:"15 0 0 0",listeners:{el:{mouseover:function(bP,bN,bM,bO){be.removeCls("uxBorder");
be.addCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");}}},items:[{xtype:"panel",style:{"left":"-100px"},html:bJ},{xtype:"panel",layout:"column",column:11,padding:"15 10 0 10",items:[{xtype:"container",width:70,height:100,border:true,items:[{xtype:"container",height:20,width:100,border:false,html:'<div style="float:left" data-qtip='+bK+' data-qclass="yellowTip">'+bK+'&nbsp;<div style="float:right;margin-top:-2px" class="'+k+'" border="0"></div></div>'},{xtype:"container",cls:aS,margin:"0 0 0 10",html:stateIcon,}],},{columnWidth:0.17,xtype:"container",layout:"fit",cls:"uxArrow",height:100,},{width:65,xtype:"container",cls:"iconCircleBg",items:[{xtype:"container",cls:"iconNetscaler",html:stateIcon1,},{xtype:"label",cls:"uxLabel",margin:"10 0 0 0",padding:"6 0 0 0",style:{"line-height":"35px"},html:'<div style="float:left" data-qtip='+aO+' data-qclass="yellowTip"><a href='+bk+">"+Ext.String.ellipsis(aO,20)+"</a></div>"}]},{columnWidth:0.17,xtype:"container",height:100,layout:"fit",cls:"uxArrow",},{xtype:"container",width:65,items:[{xtype:"container",cls:"iconStoreFront",html:stateIcon2},{xtype:"container",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="float:left" data-qtip='+aM+' data-qclass="yellowTip"><a href='+a4+">"+Ext.String.ellipsis(aM,20)+"</a></div>"}]},{columnWidth:0.17,xtype:"container",items:[{xtype:"label",cls:"uxLabel",style:{"position":"relative","top":"23px","padding":"0 0 0 40%"},text:aP,},{xtype:"container",html:'<div class="uxArrow" style="margin-top:19px !important"></div>',},{xtype:"label",cls:"uxArrowLabel",style:{"position":"relative","top":"-13px","padding":"0 0 0 44%"},text:ax}]},{xtype:"container",width:65,items:[{xtype:"container",cls:"iconBroker",html:stateIcon3},{xtype:"label",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px","white-space":"nowrap"},html:'<div style="float:left" data-qtip='+aL+' data-qclass="yellowTip"><a href='+aD+">"+Ext.String.ellipsis(aL,20)+"</a></div>"}]},{columnWidth:0.16,xtype:"container",height:100,items:[{xtype:"label",cls:"uxLabel",style:{"position":"relative","top":"23px","padding":"0 0 0 40%"},text:aN,},{xtype:"container",html:'<div class="uxArrow" style="margin-top:19px !important"></div>',},{xtype:"label",cls:"uxArrowLabel",style:{"position":"relative","top":"-13px","padding":"0 0 0 42%"},text:aw}]},{xtype:"container",width:65,items:[{xtype:"container",cls:"iconXenapp",html:stateIcon4},{xtype:"label",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="float:left" data-qtip='+aK+' data-qclass="yellowTip"><a href='+ah+">"+Ext.String.ellipsis(aK,20)+"</a></div>"}]},{columnWidth:0.13,xtype:"panel",height:100,layout:"fit",cls:"uxArrowEnd",},{columnWidth:0.1,xtype:"container",items:[{xtype:"panel",width:146,cls:"uxDataPanel",id:"appList",height:195,margin:"0 0 0 0",bodyPadding:"0 0 10 0",title:D,floatable:false,floating:false,draggable:false,style:{"z-index":"1000"},items:[]}]}]},{xtype:"container",padding:"0 0 40 0",height:"52%",layout:{type:"table",tableAttrs:{style:{width:"100%",tableLayout:"fixed",height:"100%",borderCollapse:"separate",borderSpacing:"9px 0px"}},tdAttrs:{style:{verticalAlign:"bottom"}},columns:4},margin:"-85 0 0 30",style:{"overflow":"hidden !important","border":"0px solid orange"},items:[{xtype:"container",width:"100%",height:"100%",cls:"uxLeftCurve",style:{"width":"100%","margin-bottom":"25px"},},{xtype:"container",cls:"topoPipe",height:"100%",width:322,style:{"margin-left":"-40px","width":"60% !important"},html:'<div style="height:85px !important" class="uxTopoPipeLabel">'+bd+"&nbsp;"+aq+""+bo+'</span></div></br><div class="uxTopoPipeLabel1">'+bb+"&nbsp;"+an+""+bm+"</span></div>"},{xtype:"container",width:"100%",height:"100%",cls:"uxRightCurve",style:{"width":"100%","margin-bottom":"25px","margin-left":"-15px"},},{xtype:"container",width:"15%",}]}]});
var ar=Ext.getCmp("appList");be.getComponent(0).add(a5);var al=Ext.getCmp("overviewData");var bI=al.getDockedItems();bI[0].setVisible(false);b[0].hide();al.add(a5);if(!Ext.isEmpty(am)){for(var bq=0;bq<am.length;bq++){if(!Ext.isEmpty(am[bq])){ar.add({xtype:"container",defaults:{bodyStyle:"padding:5px 2px 4px 5px"},layout:{type:"table",columns:2,tableAttrs:{style:{}}},items:[{xtype:"button",cls:"iconApps",style:{"border":"none"},margin:"0 0 0 2",cellCls:"uxTableRow1"},{xtype:"container",html:'<div style="float:left;border:0px solid red;" data-qtip='+am[bq]+' data-qclass="yellowTip">'+Ext.String.ellipsis(am[bq],24)+"</div>",cellCls:"uxTableRow"}]});
}}if(!Ext.isEmpty(ae)){for(var bl=0;bl<ae.length;bl++){if(!Ext.isEmpty(ae[bl])){if(bl==5){ar.add({xtype:"container",html:'<div class="moreDots handSymbol" data-qtip="Applications" data-qclass="yellowTip" onClick="javascript:appPopup(\''+ae+"',event);\">...</div>"});}}}}}}}else{if(Ext.isEmpty(av["CHART_TYPE"])){if(av["JSON_DATA"]["IMAGE_URL"]!="-"){u.updateChartData(av["JSON_DATA"]["IMAGE_URL"],be.getComponent(0),be);
}else{be.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");}}else{if(av["JSON_DATA"]["XML_DATA"]!="-"){if(av["CHART_TYPE"]=="PIE"){u.updatePieChartData(av["JSON_DATA"],be.getComponent(0),be);
}else{u.updateBarChartData(av["JSON_DATA"]["XML_DATA"],be.getComponent(0),be);}}else{be.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}}}}}}else{var aG=Ext.create("Ext.form.Panel",{height:228,layout:"fit",cls:"uxFieldsetNew",flex:1,margin:"0 0 0 0",listeners:{el:{mouseover:function(bP,bN,bM,bO){be.addCls("uxBorder");be.removeCls("uxBorderNone");},mouseout:function(bP,bN,bM,bO){be.removeCls("uxBorder");be.addCls("uxBorderNone");}}},items:[{xtype:"panel",id:"errFieldset",defaults:{anchor:"100%"},layout:"anchor",collapsible:false,title:"",html:'<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:0 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"!</div></td></tr></table>"}]});
if(aU.indexOf("UserDonutLoginInfo")>-1){var aT=Ext.getCmp("overviewCol");aT.add(aG);Ext.getCmp("errFieldset").setTitle('<span class="resizeHandle">LOGON TIME BREAKDOWN</span>');var bI=be.getDockedItems();bI[0].setVisible(false);}else{if(aU.indexOf("LoginInfo")>-1){var aT=Ext.getCmp("overviewCol");aT.add(aG);
be.getComponent(0).add(aG);Ext.getCmp("errFieldset").setTitle('<span class="resizeHandle">'+at+"</span>");var bI=be.getDockedItems();bI[0].setVisible(false);}else{if(aU.indexOf("Group_Metrics")>-1){be.getComponent(0).add(aG);Ext.getCmp("errFieldset").setTitle('<span class="resizeHandle">'+at+"</span>");
var bI=be.getDockedItems();bI[0].setVisible(false);}else{if(aU.indexOf("SessionInfo")>-1){be.getComponent(0).add(aG);Ext.getCmp("errFieldset").setTitle('<span class="resizeHandle">'+at+"</span>");var bI=be.getDockedItems();bI[0].setVisible(false);}else{if(aU.indexOf("SessionDuration")>-1){be.getComponent(0).add(aG);
Ext.getCmp("errFieldset").setTitle('<span class="resizeHandle">'+at+"</span>");var bI=be.getDockedItems();bI[0].setVisible(false);}else{be.setTitle("<span class='resizeHandle'>"+at+"</span>");if(aU.indexOf("User_Alerts")>-1){be.getComponent(0).update('<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconNoalarms" style="margin:0px auto"></div><div style="text-align:center">No Alarms found! </div></div></div>');
}else{be.getComponent(0).update('<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+noMeasure+"! </div></div></div>");}}}}}}}}if(V!=R.length-1){}if(parseInt(bw)==parseInt(R.length-1)&&isNewpanel=="true"){var ak=q.get(0).style.height;
Ext.getCmp("userdesktopdata").body.scroll("b",parseInt(ak),true);}}}});}}}if(outerPanelPosOrderArray!=null&&outerPanelPosOrderArray!=undefined&&outerPanelPosOrderArray.length>0){if(!Ext.isEmpty(Ext.getCmp("overviewPanelBg"))){Ext.getCmp("overviewPanelBg").show();}else{if(!Ext.isEmpty(Ext.getCmp("overviewPanelBgBig"))){Ext.getCmp("overviewPanelBgBig").show();
}else{if(!Ext.isEmpty(Ext.getCmp("overviewSmallPanelBg"))){Ext.getCmp("overviewSmallPanelBg").show();}}}for(var V=outerPanelPosOrderArray.length-1;V>=0;V--){var o=outerPanelPosOrderArray[V];var z=o["col"];var O=o["row"];var L=o["size_x"];var K=o["size_y"];var H=panelPositionsMapping.obj[z+","+O+":"+L+","+K];
var r=H[0].PanelId;var Z=r+"_container";var P=H[0].Metrics;var s=H[0].PanelName;var B=H[0].Props;var C=H[0].ToolIcon;var E=H[0].ToolIconText;var m=H[0].ToolIconId;if(C==null||C==undefined||C=="undefined"){C="iconClose3";E="Remove Panel";m="closeWinId";}var c=false;var F=false;var W=false;var t=false;
if(P.indexOf("Area_Metrics")>-1||P.indexOf("Line_Metrics")>-1||P.indexOf("Bar_Metrics")>-1||P.indexOf("Pie_Metrics")>-1){c=true;if(P.indexOf("Bar_Metrics")>-1){F=true;}else{if(P.indexOf("Pie_Metrics")>-1){W=true;}}}else{if(P.indexOf("DDGrid_Metrics")>-1||P.indexOf("DDCountGrid_Metrics")>-1){t=true;}}var h="/final/servlet/com.eg.EgMonitorResultDispatcher";
var M=true;var J=false;var a=true;if(hideConfigFlag||isModifyEnable){Q=false;M=false;a=false;J=true;}if(J){Ext.getCmp("AddPanelbtn").hide();Ext.getCmp("ShowHideBtn").hide();}var l=false;if(t){l=true;}if(!Ext.isEmpty(h)){U.show();U.alignTo(Ext.getCmp("gridsterpanel").el,"c-c");if(z>this.maxCols){z=this.maxCols;
}if(L>this.maxCols){L=this.maxCols;}if((z+L)>this.maxCols){z=(this.maxCols-L);}var X="";if(s=="SessionTopology"||s=="SessionInfo"||s=="Group_Metrics"||s=="SessionDuration"){}else{if(s=="LoginInfo"){}else{X="";}}var n=new Ext.widget("panel",{id:r,url:h,params:parameters+"&panelId="+r+"&panelMetrics="+P+"&resultpage=globalsearch&isEndUserDashboard=true",cls:"fluidPanel fluidPanelBody",metrics:P,height:"100%",layout:{type:"vbox",align:"stretch"},defaults:{flex:1},frame:false,border:true,style:{"border":"1px solid blue;"},padding:0,bodyPadding:0,containerId:Z,graphId:"graph_"+Z,isGraph:c,isBarGraph:F,isPieGraph:W,chartObj:null,barChartHeight:null,pieChartHeight:null,tools:[{xtype:"button",itemId:"settingId_"+Z,winid:r,iconCls:"iconConfig",tooltip:"Edit Panel",style:{"background":"none","border":"none"},hidden:(J||l),listeners:{click:function(){var k=Ext.getCmp(this.winid);
var ab="";isNewpanel="false";if(P.indexOf("~")>=0){ab=P.substring(0,P.indexOf("~"));}Ext.get("configMod").setWidth(538);Ext.get("configMod").select(".configMode_popupArrow").hide();Ext.get("configMod").center();Ext.getCmp("optionsCombo").setValue("modify");u.loadConfigurationItems_Modify(Ext.getCmp("optionsCombo"),title,k.id,ab);
}}},{xtype:"button",itemId:m,winid:r,iconCls:C,tooltip:E,style:{"background":"none","border":"none"},hidden:J,handler:function(){isNewpanel="false";if(!Ext.isEmpty(this.itemId)&&this.itemId=="closeWinId"){var k=Ext.getCmp(this.winid);var ab="close";if(!Ext.isEmpty(k)){Ext.MessageBox.confirm("Delete","Window and its configuration will be deleted permanently. Are you sure ?",function(ac){if(ac==="yes"){u.removeWindowDetails(k,ab);
k.destroy();}});return false;}}else{if(!Ext.isEmpty(this.itemId)&&this.itemId=="hideWinId"){var k=Ext.getCmp(this.winid);var ab="hide";if(!Ext.isEmpty(k)){Ext.MessageBox.confirm("Hide","Are you sure to hide ?",function(ac){if(ac==="yes"){u.removeWindowDetails(k,ab);k.destroy();}});return false;}}}}}],items:[{xtype:"container",style:{"height":"100%","border":"0px solid red"},baseStyle:{"background":"transparent !important","opacity":".5 !important"},bodyPadding:"10 0 0 20",padding:0,defaults:{flex:1},autoScroll:false,scroll:false,id:Z,}],listeners:{"beforeclose":function(k){Ext.MessageBox.confirm("Delete","Window and its configuration will be deleted permanently. Are you sure ?",function(ac){if(ac==="yes"){var ab="close";
u.removeWindowDetails(k,ab);k.destroy();}});return false;Ext.getDoc().on("mousedown",this.handleDocMouseDown,this);},el:{mouseover:function(ad,ab,k,ac){n.addCls("uxBorder");},mouseout:function(ad,ab,k,ac){n.removeCls("uxBorder");}},"afterrender":function(k){setInterval(function(){refreshPanelContent(k);
},refreshFrequency);if(a){}}}});panelMetrics_EN=filterEncode(P);Ext.Ajax.request({url:h,async:true,scope:this,timeout:1280000,params:parameters+"&panelId="+r+"&panelMetrics="+encodeURIComponent(panelMetrics_EN)+"&resultpage=globalsearch&isEndUserDashboard=true",panelId:r,containerId:Z,panelMetrics:P,isGraph:c,isBarGraph:F,isPieGraph:W,panelProps:B,panelToolIcon:C,panelToolIconText:E,panelToolIconId:m,panelIndex:V,panelSettingIconHide:l,success:function(aK){U.hide();
Ext.destroy(U);if(aK.status==200&&!Ext.isEmpty(aK.responseText)){var bV=aK.request.options.panelId;var a2=aK.request.options.panelMetrics;var bu=aK.request.options.panelProps.split(",");var aF=aK.request.options.url;var bQ=aK.request.options.params;var a5=aK.request.options.containerId;var bc=aK.request.options.panelToolIcon;
var aZ=aK.request.options.panelToolIconText;var aj=aK.request.options.panelToolIconId;var bN=aK.request.options.panelIndex;var bR=aK.request.options.panelSettingIconHide;var bD=parseInt(bu[0]);var au=parseInt(bu[1]);var bX=parseInt(bu[2]);var bW=parseInt(bu[3]);var bS=Ext.decode(aK.responseText);var aC=bS["RESULT"];
var ay=aC["TITLE"];var by=n.id;if(Ext.isEmpty(ay)&&!Ext.isEmpty(aC["JSON_DATA"])&&!Ext.isEmpty(aC["JSON_DATA"]["TITLE"])){ay=aC["JSON_DATA"]["TITLE"];}if(aK.responseText.indexOf(".png")>=0){n.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}else{var a9=false;if(!Ext.isEmpty(aC)&&aC.hasOwnProperty("JSON_DATA")&&aC["JSON_DATA"]!="NO_DATA"){if(aC["JSON_DATA"].hasOwnProperty("Login_Info")){if(aC["JSON_DATA"].Login_Info!="NO_DATA"&&aC["JSON_DATA"].Login_Info!="RECONNECT_DATA"){a9=true;}}else{a9=true;}}if(a9){if(!Ext.isEmpty(ay)){n.setTitle("<span>"+ay+"</span>");
}if(Ext.isEmpty(aC["PANEL_TYPE"])){if(a2.indexOf("UserDonutLoginInfo")>-1){var a3=aC["JSON_DATA"]["Login_Chart_Data"];var b0=aC["JSON_DATA"]["Login_Chart_Middle"];var bs=aC["JSON_DATA"]["Login_Info"];if(a3!=null&&a3!=undefined){a3["customMsg"]="yes";a3["formatTip"]="yes";a3["rumPie"]="yes";a3["dataLabels"]=false;
a3["showMonitorHomeBottomPanel"]=false;a3["logonDonut"]=true;a3["useHtml"]=true;a3["title"]=b0;a3["tooltipFontSize"]=10;}else{n.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:3% 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}var bb=aC["JSON_DATA"]["Login_Details_Icon"];var aP='<div style="float:left">LOGON TIME BREAKDOWN</div>';if(!Ext.isEmpty(bb)&&bb!=undefined&&bb!=null&&bb=="true"){aP='<div style="float:left">LOGON TIME BREAKDOWN</div><div class="iconLogonDetails mouse" onclick="logon()" data-qtip="Logon Details" data-qclass="yellowTip" style="float: right;margin-left:5px"></div>';
}var aJ=Ext.create("Ext.form.Panel",{layout:"fit",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bV+"_UserDonutLoginInfo",flex:0.5,listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");
}}},items:[{xtype:"fieldset",collapsible:false,layout:"fit",title:aP,html:bs,listeners:{"render":function(cc){var cb={};var cd=$(".gridster ul").gridster().data("gridster");cb=jQuery.extend(true,{},createPie("UserDonutLoginInfo_container",180,180),cb);cb.setData(a3,"","","donut");cb.drawChart();}}}]});
if(a2.indexOf("UserDonutLoginInfo")>-1){var ak=Ext.getCmp("logonInfoPanel");ak.add(aJ);}else{var a1=Ext.getCmp("overviewCol");a1.add(aJ);}var b7=n.getDockedItems();b7[0].setVisible(false);}else{if(a2.indexOf("LoginDetails")>-1){var ae=aC["JSON_DATA"];ae=ae.replace(/\bul\b/g,"div");ae=ae.replace(/\bli\b/g,"div");
n.getComponent(0).update(ae);n.setAutoScroll(true);}else{if(a2.indexOf("Group_Metrics")>-1){var aJ=Ext.create("Ext.form.Panel",{height:228,layout:"fit",cls:"uxFieldsetNew uxBorderNone",id:bV+"_GroupMetrics",defaults:{flex:0.2,},style:{"border":"0px solid green"},margin:"0 0 0 0",listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");
n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");}}},items:[{xtype:"fieldset",width:"100%",height:"100%",collapsible:false,title:"<span>"+ay+"</span>",html:aC["JSON_DATA"],}],listeners:{resize:function(){var cc=Ext.getCmp(bV+"_GroupMetrics");var cd=$("#"+n.id).height();
var cb=$("#"+n.id).width();cc.setHeight(cd-15);cc.setWidth(cb-20);},render:function(){var cb=Ext.getCmp(bV+"_GroupMetrics");}}});var ah=Ext.create("Ext.form.Panel",{height:208,layout:"fit",cls:"uxDataPanelInner uxBorderNone",id:bV+"_GroupMetrics",flex:0.2,border:false,margin:"0 0 0 0",listeners:{el:{mouseover:function(ce,cc,cb,cd){ah.removeCls("uxBorder");
ah.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){ah.removeCls("uxBorder");ah.addCls("uxBorderNone");}}},items:[{xtype:"panel",defaults:{anchor:"100%"},layout:"anchor",html:aC["JSON_DATA"],}]});if(ay=="Session - Profile Details"||(ay.indexOf("Profile Details")>-1)){var aH=1000;setTimeout(function(){var cb=Ext.getCmp("profileDetails");
cb.add(aJ);Ext.get(bV+"_GroupMetrics").removeCls("uxFieldsetNew");Ext.get(bV+"_GroupMetrics").addCls("uxFieldsetNewRemoveBorder");},aH);var b7=n.getDockedItems();b7[0].setVisible(false);}else{var a1=Ext.getCmp("overviewCol");a1.add(aJ);}}else{if(a2.indexOf("SessionInfo")>-1){var av='<table style="width:100%" cellspacing="0" cellpadding="0" border="0" class="uxTableCell" ><tbody><tr><td ><img align="center" src="/final/images/spacer.gif" class="iconIp" style="cursor:pointer;" data-qtip="Client Details" data-qclass="yellowTip"></td><td style="width:100%">192.168.8.194</td></tr><tr><td ><img align="center" src="/final/images/spacer.gif" class="iconBox" style="cursor:pointer;" data-qtip="Client Details" data-qclass="yellowTip"></td><td>14.3.100.10/windows</td></tr><tr><td ><img align="center" src="/final/images/spacer.gif" class="iconLocation" style="cursor:pointer;" data-qtip="Component" data-qclass="yellowTip"></td><td>xa79:1494</td></tr><tr><td><img align="center" src="/final/images/spacer.gif" class="iconServer" style="cursor:pointer;" data-qtip="Component" data-qclass="yellowTip"></td><td>xenapp-sg</td></tr><tr><td ><img align="center" src="/final/images/spacer.gif" class="iconUsers"  style="cursor:pointer;" data-qtip="Component" data-qclass="yellowTip"></td><td>Xenapp Singapore</td></tr><tr><td ><img align="center" src="/final/images/spacer.gif" class="iconFramehawk"  style="cursor:pointer;" data-qtip="Component" data-qclass="yellowTip"></td><td>Framehawk</td></tr></tbody></table>';
var aJ=Ext.create("Ext.form.Panel",{layout:"fit",id:bV+"_SessionInfo",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bV+"_SessionInfo",flex:0.2,listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");
n.addCls("uxBorderNone");}}},items:[{xtype:"fieldset",collapsible:false,defaults:{anchor:"100%"},layout:"fit",title:"<span >"+ay+"</span>",html:"<div style='height:85%;overflow-y:auto;overflow-x:hidden'>"+aC["JSON_DATA"]+"</div>",}]});if(a2.indexOf("SessionInfo")>-1){var ak=Ext.getCmp("sessionDetailsPanel");
ak.add(aJ);}else{var a1=Ext.getCmp("overviewCol");a1.add(aJ);}var b7=n.getDockedItems();b7[0].setVisible(false);}else{if(a2.indexOf("LoginInfo")>-1){var bb=aC["JSON_DATA"]["Login_Details_Icon"];var aP='<div style="display:inline" >'+ay+"</div>";if(!Ext.isEmpty(bb)&&bb!=undefined&&bb!=null&&bb=="true"){aP='<div class="iconLogonDetails mouse" style="float:right;margin-left:5px" onclick="logon()" data-qtip="Logon Details" data-qclass="yellowTip"></div><div style="display:inline" >'+ay+"</div>";
}var aJ=Ext.create("Ext.form.Panel",{layout:"fit",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bV+"_LoginInfo",flex:0.5,listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");
}}},items:[{xtype:"fieldset",collapsible:false,layout:"fit",title:aP,html:aC["JSON_DATA"]["Login_Info"],listeners:{"render":function(cb){var cc=$(".gridster ul").gridster().data("gridster");}}}]});if(a2.indexOf("LoginInfo")>-1){var ak=Ext.getCmp("logonInfoPanel");ak.add(aJ);}else{var a1=Ext.getCmp("overviewCol");
a1.add(aJ);}var b7=n.getDockedItems();b7[0].setVisible(false);}else{if(a2.indexOf("SessionDuration")>-1){var av='<table style="width:100%"><tbody><tr><td style="text-align:center" colspan="2"><table align="center"><tr><td><img align="center" src="/final/images/spacer.gif" class="iconLoginTime"  style="cursor:pointer;" data-qtip="Date" data-qclass="yellowTip"></td><td style="padding-left:5px">06/20/2016 15:49:19</td></tr></table></td></tr><tr><td style="text-align:center;padding-top:20px"><svg width="110" height="110" viewbox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="transparent"/><circle cx="50" cy="50" r="40" fill="transparent" stroke-width="3" stroke="#6ab5c1"/><circle cx="50" cy="50" r="30" fill="transparent" stroke-width="11" stroke="#6ab5c1" stroke-dasharray="195.2" stroke-dashoffset="50.3"/><text x="30" y="60" fill="#6ab5c1" font-size="16">2832</text></svg></td><td><table><tr><td>Active:</td><td class="boldText" style="padding-left:5px;">26</td></tr><tr><td style="text-align:right">Idle:</td><td class="boldText" style="padding-left:5px;">2797</tr></table></td></tr></tbody></table>';
var aB=aC.donutJson;var a6='<div style="width:100%;height:100%;display:flex;flex-direction:column" ><div style ="margin:10px auto 8px auto"><img align="center" src="/final/images/spacer.gif" class="'+aB.icon_str+'"  style="cursor:pointer;" data-qtip="'+aB.icon_tip+'" data-qclass="yellowTip"><span  style="padding-left:5px">'+aB.date+'</span></div><div style="margin:auto auto auto"><table style="" height="100%" ><tr><td align="right" width="55%" ><div id="donuts_id" style="margin-top:-125px;height:100px"></div></td>';
a6+='<td align="left" style="padding-left:5px"><table style="margin-top:-52px" align="center" cellpadding="0" cellspacing="0" border="0"><tbody>';if(aB.DataSet[0].data.length>0){for(var aR=0;aR<aB.DataSet[0].data.length;aR++){if(aB.DataSet[0].data[aR].yDetails!=undefined&&aB.DataSet[0].data[aR].yDetails!=null&&aB.DataSet[0].data[aR].yDetails!=""&&aB.DataSet[0].data[aR].yDetails!="-5"){a6+='<tr><td ><div style="border-radius:50%;background-color:'+aB.DataSet[0].data[aR].color+';height:6px;width:6px;">&nbsp;</div></td><td style="padding:5px 0px 5px 5px;float:left;min-width:120px" class="newFont_normal11_Legend" data-qtip="'+aB.DataSet[0].data[aR].yDetails+'" data-qclass="yellowTip">'+aB.DataSet[0].data[aR].name+" :&nbsp;"+aB.DataSet[0].data[aR].ydisp+"</td></tr>";
}else{if(aB.DataSet[0].data[aR].ydisp!=undefined&&aB.DataSet[0].data[aR].ydisp!=null&&aB.DataSet[0].data[aR].ydisp!=""&&aB.DataSet[0].data[aR].ydisp!="-5"){a6+='<tr><td ><div style="border-radius:50%;background-color:'+aB.DataSet[0].data[aR].color+';height:6px;width:6px;">&nbsp;</div></td><td style="padding:5px 0px 5px 5px;float:left;min-width:120px" class="newFont_normal11_Legend">'+aB.DataSet[0].data[aR].name+" :&nbsp;"+aB.DataSet[0].data[aR].ydisp+"</td></tr>";
}else{a6+='<tr><td ><div style="border-radius:50%;background-color:'+aB.DataSet[0].data[aR].color+';height:6px;width:6px;">&nbsp;</div></td><td style="padding:5px 0px 5px 5px;float:left;min-width:120px" class="newFont_normal11_Legend">'+aB.DataSet[0].data[aR].name+" :&nbsp;0</td></tr>";}}}a6+="</tbody></table></td></tr></table></div></div>";
}var aJ=Ext.create("Ext.form.Panel",{layout:"fit",height:228,margin:"0 10 0 0",cls:"uxFieldsetNew",id:bV+"_SessionDuration",flex:0.2,listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");
}}},items:[{xtype:"fieldset",collapsible:false,layout:"fit",title:"<span>"+ay+"</span>",html:a6,}]});if(a2.indexOf("SessionDuration")>-1){var ak=Ext.getCmp("sessionDurationPanel");ak.add(aJ);}else{var a1=Ext.getCmp("overviewCol");a1.add(aJ);}var b7=n.getDockedItems();b7[0].setVisible(false);n.setHeight(Ext.getCmp(bV+"_SessionDuration").getHeight());
try{aB.chartHeight=150;aB.chartWidth=90;aB["outersize"]="200%";aB["innersize"]="88%";aB["useHtml"]=true;if(aB.totalDetails!=undefined&&aB.totalDetails!=null&&aB.totalDetails!=""&&aB.totalDetails!="-5"){aB["title"]='<table style="margin-top:-5px;width:100%"><tr><td style="text-align:center" class="donutValue f18-normal" data-qtip="'+aB.totalDetails+'" data-qclass="yellowTip" >'+aB.total+'</td></tr><tr><td class="donutUnitValue f10-normal" style="padding-top:1px;text-align:center" data-qtip="'+aB.totalDetails+'" data-qclass="yellowTip">'+aB.totalunit+"</td></tr></table>";
}else{if(aB.total!=undefined&&aB.total!=null&&aB.total!=""&&aB.total!="-5"){aB["title"]='<table style="margin-top:-5px;width:100%"><tr><td style="text-align:center" class="donutValue" >'+aB.total+'</td></tr><tr><td class="donutUnitValue f10-normal" style="padding-top:1px;text-align:center">'+aB.totalunit+"</td></tr></table>";
}else{aB["title"]='<table style="margin-top:-5px;width:100%"><tr><td style="text-align:center" class="donutValue" >0</td></tr><tr><td class="donutUnitValue font_normal10" style="padding-top:1px;text-align:center">'+aB.totalunit+"</td></tr></table>";}}var bL={};bL=jQuery.extend(true,{},getDonutChartsInstanceforUED("donuts_id",180,93),bL);
bL.setData(aB,"","","donut");bL.drawChart();}catch(a8){console.log(a8);}}else{if(a2.indexOf("LogonExperience")>-1&&aC["JSON_DATA"]!="NO_DATA"){n.setTitle("<table class='resizeHandle header' style='margin-top:3px' width='100%' border='0'><tr><td align='left' width='100%'><span class='resizeHandle'>"+ay+"</span></td><td align='right' style='padding-right:5px'>Last "+aC["TIME_LINE"]+" Sessions</td></tr></table>");
var bk=aC["JSON_DATA"];var bH=Ext.create("Ext.data.Store",{autoLoad:true,fields:bk["Fields"],data:bk["Data"]});var aG=n.getHeight()-30;var aA=n.getWidth();var bk=Ext.create("Ext.grid.Panel",{id:bV+"_LogonExperienceGrid",cls:"uxgridSkin",autoScroll:true,scroll:true,height:230,defaults:{flex:1},layout:"fit",frame:false,padding:0,forceFit:true,store:bH,margin:"25 5 5 5",collapsible:false,multiSelect:true,stripeRows:false,columns:{items:bk["Columns"]},listeners:{resize:function(){var cb=Ext.getCmp(bV+"_LogonExperienceGrid");
var cd=$("#"+n.id).height();var cc=$("#"+n.id).width();cb.setHeight(cd-55);cb.setWidth(cc-10);},render:function(){}}});n.getComponent(0).add(bk);n.getComponent(0).setAutoScroll(true);}else{if(a2.indexOf("SessionDetails")>-1&&aC["JSON_DATA"]!="NO_DATA"){n.setTitle("<table class='resizeHandle header' style='margin-top:2px' id='sessionDetailsTitle' width='100%' border='0'><tr><td align='left' width='100%'><span class='resizeHandle'>"+ay+"</span></td><td align='right' style='padding-right:5px'>"+aC["TIME_LINE"]+"</td></tr></table>");
var bH=Ext.create("Ext.data.Store",{autoLoad:true,fields:["server","lastAccessedTime","graphLinks"],data:aC["JSON_DATA"]});var bk=Ext.create("Ext.grid.Panel",{id:bV+"_SessionDetailsGrid",cls:"uxgridSkin",autoScroll:true,scroll:true,frame:false,padding:0,height:230,defaults:{flex:0.15,},layout:"fit",store:bH,margin:"25 5 5 5",stateful:true,collapsible:false,multiSelect:true,stripeRows:true,columns:{defaults:{sortable:false,draggable:true,hideable:false,},items:[{text:"Server",dataIndex:"server",flex:2.1,style:{"border-left":"0px"},},{text:"Last Accessed Time",dataIndex:"lastAccessedTime",width:150},{dataIndex:"graphLinks",xtype:"actioncolumn",width:60,renderer:function(cb){return"<div >"+cb+"</div>";
}}]},listeners:{resize:function(){var cb=Ext.getCmp(bV+"_SessionDetailsGrid");var cd=$("#"+n.id).height();var cc=$("#"+n.id).width();cb.setHeight(cd-55);cb.setWidth(cc-10);},render:function(){var cb=Ext.getCmp(bV+"_SessionDetailsGrid");}}});n.getComponent(0).add(bk);}else{if(a2.indexOf("User_Alerts")>-1&&aC["JSON_DATA"]!="NO_DATA"){n.setTitle("<table class='resizeHandle header' style='margin-top:2px' id='userAlertsTitle' width='100%' border='0'><tr><td align='left' width='100%'><span class='resizeHandle'>"+ay+"</span></td><td align='right' style='font-size:10px!important;'>Recent "+aC["TIME_LINE"]+"&nbsp;</td></tr></table>");
var bk=aC["JSON_DATA"];var bH=Ext.create("Ext.data.Store",{fields:["STATE","COMPONENT","DESCRIPTION","START_TIME","DURATION"],sorters:[{property:"DURATION",direction:"DESC"}],data:aC["JSON_DATA"]});var bk=Ext.create("Ext.grid.Panel",{id:bV+"_UserAlertsGrid",cls:"uxgridSkin",autoScroll:true,scroll:true,height:245,defaults:{flex:1},layout:"fit",frame:false,padding:0,store:bH,margin:"25 5 5 5",stateful:true,collapsible:false,multiSelect:true,stripeRows:false,columns:{defaults:{sortable:false,draggable:true,hideable:false,style:{"border-bottom":"0px !important"}},items:[{dataIndex:"STATE",width:30,renderer:function(cc){var cb="<div style='margin-right:6px;margin-top:1px' class='state_"+cc+"'></div>";
return cb;}},{text:"Component",dataIndex:"COMPONENT",flex:1.5,sortable:true,},{text:"Description",dataIndex:"DESCRIPTION",flex:1.5,sortable:true,},{text:"StartTime",dataIndex:"START_TIME",width:140,sortable:true,},{text:"Duration",dataIndex:"DURATION",width:70,sortable:true,},{dataIndex:"LINKS",xtype:"actioncolumn",flex:0.2,hidden:(isOnlyVMAssigned&&userType=="VDI"),items:[{icon:"",tooltip:"Graph",getClass:function(cd,cc,cb){var ce=cb.raw.LINK.graph;
if(Ext.isEmpty(ce)||ce==null||ce=="-"){return"iconSpacer mouseOverRemove";}else{return"iconLineChart actionIcon";}},handler:function(cg,cf,ch,ci,ce,cd,cj){var cc=cd.raw.LINK.graph;var cb=cd.raw.LINK.dd;this.fireEvent("itemClick",loadPopup(cc));},},{icon:"",tooltip:"DD",getClass:function(cd,cc,cb){var ce=cb.raw.LINK.dd;
if(Ext.isEmpty(ce)||ce==null||ce=="-"){return"iconSpacer actionIcon mouseOverRemove";}else{return"iconDiagnosis actionIcon";}},handler:function(cc,ci,cd,ce,cf,cb,ch){var cg=cb.raw.LINK.dd;if(!Ext.isEmpty(cg)&&cg!=null&&cg!="-"){cg=decodeURIComponent(cg);}this.fireEvent("itemClick",loadPopup(cg));},}]}]},listeners:{resize:function(){var cb=Ext.getCmp(bV+"_UserAlertsGrid");
var cd=$("#"+n.id).height();var cc=$("#"+n.id).width();cb.setHeight(cd-55);cb.setWidth(cc-10);},render:function(){var cb=Ext.getCmp(bV+"_UserAlertsGrid");}}});n.getComponent(0).add(bk);}else{if(a2.indexOf("BackendApplicationStatus")>-1&&aC["JSON_DATA"]!="NO_DATA"){var bk=aC["JSON_DATA"];var bH=Ext.create("Ext.data.Store",{autoLoad:true,fields:bk["Fields"],data:bk["Data"]});
var bk=Ext.create("Ext.grid.Panel",{id:bV+"_BackendApplicationStatusGrid",cls:"uxgridSkin",autoScroll:true,frame:false,padding:0,height:230,defaults:{},layout:"fit",store:bH,margin:"25 5 5 5",stateful:true,collapsible:false,multiSelect:true,stripeRows:false,columns:{defaults:{flex:3},items:bk["Columns"]},listeners:{resize:function(){var cb=Ext.getCmp(bV+"_BackendApplicationStatusGrid");
var cd=$("#"+n.id).height();var cc=$("#"+n.id).width();cb.setHeight(cd-55);cb.setWidth(cc-10);},render:function(){var cb=Ext.getCmp(bV+"_BackendApplicationStatusGrid");}}});n.getComponent(0).add(bk);}}}}}}}}}}}else{if(!Ext.isEmpty(aC["PANEL_TYPE"])&&aC["PANEL_TYPE"]=="Grid"){if(aC["JSON_DATA"]!="NO_DATA"){var bF=aC["JSON_DATA"];
var bk=Ext.create("Ext.grid.Panel",{id:bV+"_ddGrid",cls:"uxgridSkin",alias:"widget.DataGrid",border:true,title:"",url:"",panelRefFreq:"",height:230,defaults:{flex:1},monitorResize:true,layout:"fit",frame:false,autoScroll:true,scroll:true,margin:"25 5 5 5",floatable:false,stateful:true,collapsible:false,multiSelect:true,stripeRows:false,store:null,columns:{defaults:{flex:3},items:[]},jsonGridData:bF,listeners:{afterrender:function(cl){var ce=cl.jsonGridData;
if(!Ext.isEmpty(ce)&&!Ext.isEmpty(ce.columns)){var cb=new Array();var cg=new Array();var ck=0;for(var cf=0;cf<ce.columns.length;cf++){if(!isNaN(parseInt(ce.columns[cf].columnWidth))){ck+=parseInt(ce.columns[cf].columnWidth);}}for(var cf=0;cf<ce.columns.length;cf++){var cc=ce.columns[cf];var cd=new Object();
cd.text=cc.text;cd.menuDisabled=true;cd.dataIndex=cc.dataIndex;if(!Ext.isEmpty(cc.columnWidth)){if(cc.columnWidth.search("%")!=-1){cd.width=cc.columnWidth;}else{var ci=(parseInt(cc.columnWidth)/ck)*100;cd.width=ci+"%";}}else{if(cc.dataIndex=="value-1"){cd.width=47;cd.text="";cd.menuDisabled=true;cd.sortable=false;
}else{if(cc.dataIndex=="value0"){cd.width=80;}else{if(cc.flex!=null&&cc.flex!=undefined&&cc.flex!=""){cd.flex=cc.flex;}else{if(cc.width!=null&&cc.width!=undefined&&cc.width!=""){cd.width=cc.width;}else{cd.flex=1;}}}}}cd.renderer=function(cr,cn,cm,cs,co){var cp=ce.columns[co].dataIndex;var cq="";if(!Ext.isEmpty(cm.get(cp+"_progress"))){cq+='<table cellspacing="0" cellpadding="0" border="0" style="table-layout:auto;">'+"<tr>"+"<td>"+'<table width="80" cellpadding="0" cellspacing="0" border="0"  height="6" class="prog_border" style="width:100px !important">'+"<tr>"+'<td align="left" width="100%" height="6px" class="prog_border" >'+'<table width="'+cm.get(cp+"_progress")+'%" height="6" cellpadding="0" cellspacing="0" border="0">'+"<tr>"+'<td class="progress_GOOD" width="100%"></td>'+"</tr>"+"</table>"+"</td>"+"</tr>"+"</table>"+"</td>"+'<td align="left" style="padding-left:5px;width:40px" data-qtip="'+cm.get(cp)+'" data-qclass="yellowTip">'+cm.get(cp)+"</td>"+"</tr>"+"</table>";
}else{if(!Ext.isEmpty(cm.get(cp))&&Ext.isEmpty(cm.get(cp+"_url"))&&Ext.isEmpty(cm.get(cp+"_progress"))){cq+='<span data-qclass="yellowTip" data-qtip="'+cm.get(cp)+'">'+cm.get(cp)+"</span>";}}return cq;};var cj=ce.fields[cf];cg.push(cj);cg.push(cc.dataIndex+"_progress");cb.push(cd);}var ch=Ext.create("Ext.data.Store",{fields:cg,autoDestroy:true,proxy:{type:"memory",reader:{type:"json",root:"items"}},data:ce.data});
cl.reconfigure(ch,cb);}},resize:{fn:function(cd){var cb=Ext.getCmp(bV+"_ddGrid");setTimeout(cd,1000);var ce=$("#"+n.id).height();var cc=$("#"+n.id).width();cb.setHeight(ce-55);}}}});var b7=n.getDockedItems();var ba=b7[0].items.items;n.getComponent(0).add(bk);}else{n.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}}else{if(!Ext.isEmpty(aC["PANEL_TYPE"])&&aC["PANEL_TYPE"]=="Topology"){$("#header-body").scroll(function(){if(Ext.getCmp("appMoreTooltip")){Ext.getCmp("appMoreTooltip").destroy();}});var bJ=(strSkin=="Dark")?"#2e2e2e":"#ffffff";var bM=(strSkin=="Dark")?"#515151":"#cacaca";if(aC["JSON_DATA"]!="NO_DATA"){var aY=aC["JSON_DATA"];
var am=aY.TopologyFlowArray;var af=aY.TopologyFlowDirectArray;var aq=am[4].CompAppArray;var ai=am[4].CompAllAppobj.topoCompAllAppVal;var a4=am[4].CompTypeandCompName;var bv=am[4].sInfo;if(bv!=null&&bv!=""&&bv.indexOf("\\")>-1){bv=bv.replace("\\","\\\\");}var b9="";var bx="";var ac="";var bI="";var bP="";
var a0="";var aI="";var aW="";var ca="";var bz="";var b5="";var aU="";var bd="";var bf="";var ao="";var be="";var b4="";var aT="";var aM="";var aL="";var b3="";var aS="";var a7="";var al="";var b1="";var b2="";var aX="";var aV="";var aE="";var aD="";var br="";var bE="";var bp="";var bC="";var bm="";var bB="";
var bO="";if(isHistory!=""&&isHistory=="true"){bO='<span class="font_bold10">';}else{bO='<span class="uxStateGood font_bold10">';}if(am[0]!=null){b9=am[0]["UserName"];bx=am[0]["UserState"];bP=am[0]["UserLoginStatus"];if(bP!=""&&bP=="Yes"){ac="iconLoginTime";bI="top:3px";}else{ac="iconLoginTimeDisable";
bI="top:5px";}if(bx!=null&&bx!=undefined){if(isHistory!=""&&isHistory=="true"){aI="";}else{aI='<div style="position:relative;left:39px;top:-4px" class="stateEffect_'+bx+'"></div>';}}a0=am[0]["UserIcon"];}var bU;var b6;var bo="";var bY="";var bZ="";var ad="";var ab;var aN;var bK;if(am[1]!=null){topoCompType1=am[1]["CompType"];
topoCompIcon1=am[1]["CompIcon"];aW=am[1]["CompName"];topoCompTopValue2=am[2]["CompTopValue"];topoCompBottomText2=am[2]["CompBottomText"];ca=am[1]["CompState"];bz=am[1]["CompNameLink"];if(bz==null||bz==undefined){bz="javascript:void(0);";}if(ca!=null&&ca!=undefined){if(isHistory!=""&&isHistory=="true"){b5="";
}else{b5='<div style="position:absolute;margin-top:11px;margin-left:52px;" class="stateEffect_'+ca+'" ></div>';}}if(aW!=""&&aW!="-"){bo="100%";bY="";bZ="-29px";}else{bo="80%";bY="86%";bZ="28px";}var bt="uxRightCurve";if(topoCompType1=="CloudSite"){bt="uxRightCurveV1";if(ca!="undefined"){bU={width:73,xtype:"container",cls:"iconCircleBg",items:[{xtype:"container",html:"<a href="+bz+'><div class="'+topoCompIcon1+'" style="margin-top:0px;margin-left:4px">'+b5+"</div></a>",},{xtype:"container",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="text-align:center;border:0px solid orange;margin:10 20% 0 -20%;" data-qtip="'+aW+'" data-qclass="yellowTip"><a href='+bz+">"+Ext.String.ellipsis(aW,20)+"</a></div>"}]};
}else{bU={width:73,xtype:"container",cls:"iconCircleBg",items:[{xtype:"container",html:b5},{xtype:"container",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="text-align:center;border:0px solid orange;margin:10 20% 0 -20%;" data-qtip="'+aW+'" data-qclass="yellowTip">'+Ext.String.ellipsis(aW,20)+"</div>"}]};
}b6={columnWidth:0.17,xtype:"container",items:[{xtype:"label",cls:"uxLabel",style:{"position":"relative","top":"23px","padding":"0 0 0 40%"},text:topoCompTopValue2,},{xtype:"container",html:'<div class="uxArrow" style="margin-top:19px !important"></div>',},{xtype:"label",cls:"uxArrowLabel",style:{"position":"relative","top":"-14px","padding":"0 0 0 44%"},text:topoCompBottomText2}]};
}else{bt="uxRightCurveV1";if(ca!=undefined){bU={width:73,xtype:"container",cls:"iconCircleBg",items:[{xtype:"container",html:"<a href="+bz+'><div class="iconNetscaler" style="border:0spx solid red;margin-top:0px;margin-left:2px">'+b5+"</div></a>",},{xtype:"container",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="text-align:center;border:0px solid orange;margin:10 20% 0 -20%;" data-qtip="'+aW+'" data-qclass="yellowTip"><a href='+bz+">"+Ext.String.ellipsis(aW,20)+"</a></div>"}]};
}else{bU={width:73,xtype:"container",cls:"iconCircleBg",items:[{xtype:"container",html:'<div class="iconNetscaler" style="border:0px solid red;margin-top:0px;margin-left:2px">'+b5+"</div>",},{xtype:"container",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="text-align:center;border:0px solid orange;margin:10 20% 0 -20%;" data-qtip="'+aW+'" data-qclass="yellowTip">'+Ext.String.ellipsis(aW,20)+"</div>"}]};
}b6={columnWidth:0.17,xtype:"container",height:100,layout:"fit",cls:"uxArrow",};}ca=am[1]["CompState"];bz=am[1]["CompNameLink"];if(ca==null||ca==undefined){ca="";}if(bz==null||bz==undefined){bz="javascript:void(0);";}}if(am[2]!=null){topoCompType2=am[2]["CompType"];topoCompIcon2=am[2]["CompIcon"];aU=am[2]["CompName"];
aX=am[2]["CompTopValue"];bd=am[2]["CompNameLink"];aE=am[2]["CompBottomText"];ao=am[2]["CompState"];if(ao==null||ao==undefined){ao="";}if(ao!=null&&ao!=undefined){if(isHistory!=""&&isHistory=="true"){b4="";}else{b4='<div style="margin-left:52px;position:absolute;margin-top:12px;" class="stateEffect_'+ao+'"></div>';
}}if(aE==null||aE==undefined){aE="";}if(be==null||be==undefined){if(bd==null||bd==undefined){be=Ext.String.ellipsis(aU,20);}else{be="<a href="+bd+">"+Ext.String.ellipsis(aU,20)+"</a>";}}else{be=Ext.String.ellipsis(aU,20);}if(topoCompType2=="CloudConnector"){if(bf==null||bf==undefined){bf='<div class="'+topoCompIcon2+'" style="margin-top:0px;margin-left:3px;border:0px solid green">'+b4+"</div></a>";
}else{if(bd==null||bd==undefined){bf='<div class="'+topoCompIcon2+'" style="margin-top:0px;margin-left:3px;border:0px solid red">'+b4+"</div>";}else{bf="<a href="+bd+'><div class="'+topoCompIcon2+'" style="margin-top:0px;margin-left:3px;border:0px solid red">'+b4+"</div>";}}}else{if(bf==null||bf==undefined){bf='<div class="iconStoreFront" style="margin-top:0px;margin-left:4px;border:0px solid green">'+b4+"</div></a>";
}else{if(bd==null||bd==undefined){bf='<div class="iconStoreFront" style="margin-top:0px;margin-left:4px;border:0px solid red">'+b4+"</div>";}else{bf="<a href="+bd+'><div class="iconStoreFront" style="margin-top:0px;margin-left:4px;border:0px solid red">'+b4+"</div>";}}}}if(am[3]!=null){aT=am[3]["CompName"];
topoCompType3=am[3]["CompType"];aV=am[3]["CompTopValue"];aL=am[3]["CompNameLink"];aD=am[3]["CompBottomText"];aM=am[3]["CompState"];if(aM!=null&&aM!=undefined){if(isHistory!=""&&isHistory=="true"){b3="";}else{b3='<div style="margin-left:52px;position:absolute;margin-top:12px;" class="stateEffect_'+aM+'"></div>';
}}if(topoCompType3=="Broker Type"&&aT!=""){bo="100%";bK={columnWidth:0.17,xtype:"container",items:[{xtype:"label",cls:"uxLabel",style:{"position":"relative","top":"23px","padding":"0 0 0 40%"},text:aX,},{xtype:"container",html:'<div class="uxArrow" style="margin-top:19px !important"></div>',},{xtype:"label",cls:"uxArrowLabel",style:{"position":"relative","top":"-13px","padding":"0 0 0 44%"},text:aE}]};
if(aL!=undefined){aN={xtype:"container",width:73,cls:"iconCircleBg",items:[{xtype:"container",html:"<a href="+aL+'><div class="iconBroker" style="margin-top:0px;margin-left:4px" >'+b3+"</div></a>"},{xtype:"label",cls:"uxLabel",style:{"line-height":"35px","white-space":"nowrap"},html:'<div style="width:150px;left:-35px;overflow:hidden;text-overflow:ellipsis;position:relative;text-align:center;border:0px solid green;margin:auto;top:10px;margin-right: 5px;" data-qtip='+aT+' data-qclass="yellowTip"><a href='+aL+">"+Ext.String.ellipsis(aT,20)+"</a></div>"}]};
}else{aN={xtype:"container",width:73,cls:"iconCircleBg",items:[{xtype:"container",html:'<div class="iconBroker" style="margin-top:0px;margin-left:4px" >'+b3+"</div>"},{xtype:"label",cls:"uxLabel",style:{"line-height":"35px","white-space":"nowrap"},html:'<div style="width:150px;left:-35px;overflow:hidden;text-overflow:ellipsis;position:relative;text-align:center;border:0px solid green;margin:auto;top:10px;margin-right: 5px;" data-qtip='+aT+' data-qclass="yellowTip">'+Ext.String.ellipsis(aT,20)+"</div>"}]};
}}else{bo="79%";bY="85% !important";ad="30px !important";bK={};aN={};}if(aL==null||aL==undefined){aL="javascript:void(0);";}if(aM==null||aM==undefined){aM="";}if(aM!=null&&aM!=undefined){if(isHistory!=""&&isHistory=="true"){b3='<div style="margin-left:55px;position:absolute;margin-top:13px;" class="stateEffect_'+aM+'"></div>';
}else{b3='<div style="margin-left:55px;position:absolute;margin-top:13px;" class="stateEffect_'+aM+'"></div>';}}if(aD==null||aD==undefined){aD="";}if(aL==null||aL==undefined){aL="javascript:void(0);";}}if(am[4]!=null&&am[4]["CompName"]!=null&&am[4]["CompName"]!=""){aS=am[4]["CompName"];a7=am[4]["CompState"];
al=am[4]["CompNameLink"];b1=am[4]["InsideviewURL"];if(al==null||al==undefined){al="javascript:void(0);";}if(b1==null||b1==undefined){b1="javascript:void(0);";}if(am[4]["CompType"]!="VDI Type"&&aS!=""&&aS!=undefined){ab={xtype:"container",width:69,cls:"iconCircleBg",items:[{xtype:"container",html:"<a href="+al+'><div class="'+am[4]["CompIcon"]+'" style="margin-top:0px;margin-left:4px"><div style="position:relative;left:51px;top:11px" class="stateEffect_'+a7+'"></div></div></a>'},{xtype:"label",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="width:150px;left:-35px;overflow:hidden;text-overflow:ellipsis;text-align:center;margin:0 10% 0 -10%;float:left;top:10px;position:relative;border:0px solid red" data-qtip='+aS+' data-qclass="yellowTip"><a href='+al+">"+Ext.String.ellipsis(aS,20)+"</a></div>"}]};
}else{if(aS!=undefined&&aS!=""){ab={xtype:"container",width:77,height:60,padding:10,items:[{xtype:"label",cls:"f9-bold",style:{"position":"absolute","margin-left":"-65px","margin-top":"-11px"},text:am[4]["DesktopName"]},{xtype:"container",height:65,html:"<a href="+b1+'><div class="'+am[4]["CompIcon"]+'" style="margin-top:8px;margin-left:8px"><div style="position:relative;left:27px;top:-2px" class="stateEffect_'+bx+'"></div></div><div style="position: relative;top:-50px;left: -12px;border-bottom:1px solid '+bM+';width:87px;height:40px"></div></a>'},{xtype:"container",width:88,height:77,style:{"z-index:":"5","background":bJ},html:"<a href="+al+'><div style="margin-top:2px;margin-left:-15px" width="88" height="77" class="'+am[4]["HypervisorIcon"]+'"><div style="z-index:2;position:relative;left:82px;top:56px" class="stateEffect_'+a7+'"></div></div></a>'},{xtype:"label",cls:"uxLabel",margin:"0 0 0 0",style:{"line-height":"15px"},html:'<div style="background:'+bJ+';width:150px;height:22px;left:-43px;padding-top: 5px;overflow:hidden;text-overflow:ellipsis;text-align:center;margin:auto;float:left;top:-1px;position:relative;border:0px solid red" data-qtip='+aS+' data-qclass="yellowTip"><a href='+al+">"+Ext.String.ellipsis(aS,20)+"</a></div>"}]};
}}}var aQ="";var ag="";var k="";var bT="";if(af[0]!=""&&af[0]!="-"&&af[0]!="undefined"){topoMeasureDispaName0=af[0]["MeasureDisplayName"];topoMeasureVal0=af[0]["MeasureValue"];topoMeasureState0=af[0]["MeasureState"];var at="";if(isHistory!=""&&isHistory=="true"){at='<span class="font_bold10">';}else{at='<span class="uxState'+topoMeasureState0+' font_bold10">';
}if(topoMeasureVal0!="None"&&topoMeasureVal0!="none"&&topoMeasureVal0!=""&&topoMeasureVal0!="-"){aQ='<div class="uxTopoPipeLabel3" style="border:0px solid orange">'+topoMeasureDispaName0+" - "+at+""+topoMeasureVal0+"</span></div>";}else{aQ="";}}if(af[1]!=""&&af[1]!="-"&&af[1]!="undefined"){br=af[1]["MeasureDisplayName"];
bE=af[1]["MeasureValue"];topoMeasureState1=af[1]["MeasureState"];bp=af[2]["MeasureDisplayName"];bC=af[2]["MeasureValue"];topoMeasureState2=af[2]["MeasureState"];var aw="";var ar="";if(isHistory!=""&&isHistory=="true"){aw='<span class="font_bold10">';ar='<span class="font_bold10">';}else{aw='<span class="uxState'+topoMeasureState1+' font_bold10">';
ar='<span class="uxState'+topoMeasureState2+' font_bold10">';}if(bE!="-"&&bE!=null&&bE!="undefined"&&bC!="-"&&bC!=null&&bC!="undefined"){ag='<div class="uxTopoPipeLabel" style="border:0px solid blue;">'+bp+" - "+ar+""+bC+"</span></div>";k=[{xtype:"container",cls:"topoPipe_Rtt",style:{"border":"0px solid yellow"},html:'<div class="uxTopoPipeLabel2">'+br+" - "+aw+""+bE+"</div>",},{xtype:"container",margin:"-70 0 0 0",style:{"border":"0px solid blue"},cls:"topoPipe_Hdx",html:ag,}];
}else{if(bC!="-"&&bC!=null&&bC!="undefined"){if(ar!="-"&&ar!=null&&ar!="undefined"){ag='<div class="uxTopoPipeLabel" style="margin-top:6px;border:0px solid blue">'+bp+" - "+ar+""+bC+"</span></div>";}else{ag='<div class="uxTopoPipeLabel" style="margin-top:6px;border:0px solid blue">'+bp+" - "+bO+""+bC+"</span></div>";
}}else{ag='<div class="uxTopoPipeLabel" style="margin-top:6px;border:0px solid blue">'+bp+"  "+bO+""+bC+"</span></div>";}k=[{xtype:"container",margin:"0 0 0 0",cls:"topoPipe_Rtt",html:ag,},{xtype:"container",margin:"-70 0 0 0",style:{"border":"0px solid blue"},cls:"topoPipe_Hdx",}];}}if(af[3]!=null&&af[3]!="-"&&af[3]!="undefined"){bm=af[3]["MeasureDisplayName"];
bB=af[3]["MeasureValue"];topoMeasureState3=af[3]["MeasureState"];var aw="";if(isHistory!=""&&isHistory=="true"){aw='<span class="font_bold10">';}else{aw='<span class="uxState'+topoMeasureState3+' font_bold10">';}if(bB!="-"&&bB!=null&&bB!="undefined"){bT='<div class="uxTopoPipeLabel1">'+bm+" - "+aw+""+bB+"</div>";
}else{bT="";}}var bq=aq[0];var bn=aq[1];var bl=aq[2];var bj=aq[3];var bi=aq[4];var b8="";if(isHistory!=""&&isHistory=="true"){var bh=isHistory+"EG"+loginTime+"~EG~"+logoutTime;b8='<table width="100%"><tr><td style="padding-left:10px"><div style="border:0px solid blue;position:relative;left:25px;text-align:center;font-size:11px;" class="uxLabel" data-qtip='+b9+' data-qclass="yellowTip">'+b9+'&nbsp;<img src="/final/images/clear.png" class="'+ac+'" style="position:relative;'+bI+'" border="0"/></div></td><td><table style="margin-left:-11%;width:100%;text-align:center;position:relative"><tr><td><hr class="headerLine" style="float:right"></td><td class="headerBox" style="width:155px">'+ay+'<img src="/final/images/clear.png"/ data-qtip="Current Alarms" data-qclass="yellowTip"  style="margin-top:-2px;float: right;" class="iconFlashAlarm handSymbol" onclick="javascript:parent.openAlarmPopupWindowUED(\''+a4+"','"+bv+"','"+bh+'\');"></td><td><hr class="headerLine" style="float:left"></td></tr></table></td></table>';
}else{var bh="trueEGnull";b8='<table width="100%"><tr><td style="padding-left:10px"><div style="border:0px solid blue;position:relative;left:25px;text-align:center;font-size:11px;" class="uxLabel" data-qtip='+b9+' data-qclass="yellowTip">'+b9+'&nbsp;<img src="/final/images/clear.png" class="iconLoginTime" style="position:relative;top:3px" border="0"/></div></td><td><table style="margin-left:-11%;width:100%;text-align:center;position:relative"><tr><td><hr class="headerLine" style="float:right"></td><td class="headerBox" style="width:155px">'+ay+'<img src="/final/images/clear.png"/ data-qtip="Current Alarms" data-qclass="yellowTip"  style="margin-top:-2px;float: right;" class="iconFlashAlarm handSymbol" onclick="javascript:parent.openAlarmPopupWindowUED(\''+a4+"','"+bv+"','"+bh+'\');"></td><td><hr class="headerLine" style="float:left"></td></tr></table></td></table>';
}var bg=Ext.create("Ext.container.Container",{id:bV+"_Topology",height:"100%",style:{"padding":"0 3% 0 7%","border":"0px solid red"},margin:"15 0 0 0",listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");
n.addCls("uxBorderNone");}}},items:[{xtype:"panel",style:{"left":"-100px"},html:b8,},{xtype:"panel",layout:"column",column:11,style:{"border":"0px solid green"},padding:"15 10 0 10",items:[{xtype:"container",width:70,cls:"iconCircleBg",border:true,items:[{xtype:"container",height:20,width:100,border:false,},{xtype:"container",cls:a0,margin:"-5 0 0 15",html:aI,}],},{columnWidth:0.17,xtype:"container",layout:"fit",cls:"uxArrow",height:100,},bU,b6,{xtype:"container",width:69,cls:"iconCircleBg",items:[{xtype:"container",html:bf},{xtype:"container",cls:"uxLabel",margin:"10 0 0 0",style:{"line-height":"35px"},html:'<div style="width:150px;left:-35px;overflow:hidden;text-overflow:ellipsis;position:relative;text-align:center;margin:auto;border:0px solid blue;" data-qtip="'+aU+'" data-qclass="yellowTip">'+be+"</div>"}]},bK,aN,{columnWidth:0.16,xtype:"container",height:100,items:[{xtype:"label",cls:"uxLabel",style:{"position":"relative","top":"23px","padding":"0 40% 0 40%"},text:aV,},{xtype:"container",html:'<div class="uxArrow" style="margin-top:19px !important"></div>',},{xtype:"label",cls:"uxArrowLabel",style:{"position":"relative","top":"-13px","padding":"0 0 0 20%"},text:aD}]},ab,{columnWidth:0.13,xtype:"panel",height:100,layout:"fit",cls:"uxArrowEnd",},{columnWidth:0.17,xtype:"container",items:[{xtype:"panel",width:146,cls:"uxDataPanel",id:"appList",height:185,margin:"0 0 0 0",bodyPadding:"0 0 10 0",title:D,floatable:false,floating:false,draggable:false,style:{"z-index":"1000"},items:[]}]}]},{xtype:"container",padding:"0 0 40 0",id:"topoPipeTable",height:"52%",layout:{type:"table",tableAttrs:{style:{width:bo,tableLayout:"fixed",height:"100%",marginTop:"10px",borderCollapse:"separate",borderSpacing:"9px 0px"}},tdAttrs:{style:{verticalAlign:"bottom"}},columns:4},margin:"-114 0 0 30",style:{"overflow":"hidden !important","border":"0px solid orange"},items:[{xtype:"container",width:"100%",cls:"uxLeftCurve",style:{"width":"100%","margin-bottom":"33px"},},{xtype:"container",cls:"topoPipe_Net",height:70,width:300,style:{"border":"0px solid red","margin-left":"-25px","width":"60% !important"},html:aQ+bT,items:k},{xtype:"container",width:bY,cls:bt,style:{"margin-bottom":"33px","margin-left":ad},},{xtype:"container",width:"100%"}]}]});
var ax=Ext.getCmp("appList");b[0].hide();if(ay=="Session Topology"){var aH=1000;setTimeout(function(){var cb=Ext.getCmp("overviewData");if(Ext.getCmp("dummyTopolgy")){Ext.getCmp("dummyTopolgy").hide();cb.add(bg);}},aH);var b7=n.getDockedItems();b7[0].setVisible(false);}else{n.getComponent(0).add(bg);
}if(!Ext.isEmpty(aq)){var az="";var bw="";var bA=true;for(var bG=0;bG<aq.length;bG++){if(!bA){az="uxTableRowNext1";bw="uxTableRowNext";bA=true;}else{az="uxTableRow1";bw="uxTableRow";bA=false;}if(!Ext.isEmpty(aq[bG])){ax.add({xtype:"container",defaults:{bodyStyle:"padding:5px 2px 4px 5px"},layout:{type:"table",columns:2,tableAttrs:{style:{}}},items:[{xtype:"button",cls:"iconApps",style:{"border":"none"},margin:"0 0 0 2",cellCls:az},{xtype:"container",html:'<div style="float:left;border:0px solid red;" data-qtip="'+aq[bG]+'" data-qclass="yellowTip">'+Ext.String.ellipsis(aq[bG],24)+"</div>",cellCls:bw}]});
}}if(!Ext.isEmpty(ai)){for(var bA=0;bA<ai.length;bA++){if(!Ext.isEmpty(ai[bA])){if(bA==4){ax.add({xtype:"container",height:20,cellCls:"uxTableRowMoredots",html:'<div class="moreDots handSymbol" data-qtip="Applications" data-qclass="yellowTip" onClick="javascript:appPopup(\''+ai+"',event);\">...</div>"});
}}}}}else{ax.add({xtype:"container",style:{"text-align":"center","margin-top":"30%"},html:'<img src="/final/images/clear.png" class="iconInformation"/></br><span style="font-size:12px">No applications available.</span>'});}}}else{if(Ext.isEmpty(aC["CHART_TYPE"])){if(aC["JSON_DATA"]["IMAGE_URL"]!="-"){u.updateChartData(aC["JSON_DATA"]["IMAGE_URL"],n.getComponent(0),n);
}else{n.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");}}else{if(aC["JSON_DATA"]["XML_DATA"]!="-"){if(aC["CHART_TYPE"]=="PIE"){u.updatePieChartData(aC["JSON_DATA"],n.getComponent(0),n);
}else{u.updateBarChartData(aC["JSON_DATA"]["XML_DATA"],n.getComponent(0),n);}}else{n.getComponent(0).update('<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}}}}}}else{if(!Ext.isEmpty(aC)&&aC["JSON_DATA"]["Login_Info"]=="RECONNECT_DATA"){var aP='<div style="float:left">LOGON TIME BREAKDOWN</div><div class="iconLogonDetails mouse" onclick="logon()" data-qtip="Logon Details" data-qclass="yellowTip" style="float: right;margin-left:5px"></div>';var aO=Ext.create("Ext.form.Panel",{height:228,layout:"fit",cls:"uxFieldsetNew",flex:0.5,margin:"0 10 0 0",listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");
n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");}}},items:[{xtype:"fieldset",id:"errFieldset",defaults:{anchor:"100%"},layout:"anchor",collapsible:false,title:aP,html:'<table width="309" height="86" style="margin: 4% auto;"><tr><td valign="middle" align="center" class="reconnectErrorMessage"><span><div class="reconnectErrorIcon"></div></span>No data is available for this session </br>from the Delivery Controller. </br></br>This may happen if the user has </br>reconnected to an existing session.</td></tr></table>'}]});
var a1=Ext.getCmp("logonInfoPanel");a1.add(aO);var b7=n.getDockedItems();if(!Ext.isEmpty(b7)&&b7!=null&&b7!=undefined){b7[0].setVisible(false);}}else{var an=Ext.create("Ext.form.Panel",{height:228,layout:"fit",cls:"uxFieldsetNew",flex:0.5,margin:"0 10 0 0",listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");
n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");}}},items:[{xtype:"fieldset",id:"errFieldset1",defaults:{anchor:"100%"},layout:"anchor",collapsible:false,title:"",html:'<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:0 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"!</div></td></tr></table>"}]});
var aO=Ext.create("Ext.form.Panel",{height:228,layout:"fit",cls:"uxFieldsetNew",flex:0.5,margin:"0 10 0 0",listeners:{el:{mouseover:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");},mouseout:function(ce,cc,cb,cd){n.removeCls("uxBorder");n.addCls("uxBorderNone");}}},items:[{xtype:"fieldset",id:"errFieldset",defaults:{anchor:"100%"},layout:"anchor",collapsible:false,title:"",html:'<table width="100%" height="100%" ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:0 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"!</div></td></tr></table>"}]});
if(a2.indexOf("UserDonutLoginInfo")>-1){var a1=Ext.getCmp("logonInfoPanel");a1.add(an);Ext.getCmp("errFieldset1").setTitle("<span>LOGON TIME BREAKDOWN</span>");var b7=n.getDockedItems();if(!Ext.isEmpty(b7)&&b7!=null&&b7!=undefined){b7[0].setVisible(false);}}else{if(a2.indexOf("LoginInfo")>-1){var a1=Ext.getCmp("logonInfoPanel");
a1.add(aO);Ext.getCmp("errFieldset").setTitle("<span>"+ay+"</span>");var b7=n.getDockedItems();if(!Ext.isEmpty(b7)&&b7!=null&&b7!=undefined){b7[0].setVisible(false);}}else{if(a2.indexOf("Group_Metrics")>-1){var a1=Ext.getCmp("profileDetails");a1.add(aO);Ext.getCmp("errFieldset").setTitle("<span >"+ay+"</span>");
var b7=n.getDockedItems();if(!Ext.isEmpty(b7)&&b7!=null&&b7!=undefined){b7[0].setVisible(false);}}else{if(a2.indexOf("SessionInfo")>-1){var a1=Ext.getCmp("sessionDetailsPanel");a1.add(aO);Ext.getCmp("errFieldset").setTitle("<span>"+ay+"</span>");var b7=n.getDockedItems();if(!Ext.isEmpty(b7)&&b7!=null&&b7!=undefined){b7[0].setVisible(false);
}}else{if(a2.indexOf("SessionDuration")>-1){var a1=Ext.getCmp("sessionDurationPanel");a1.add(aO);Ext.getCmp("errFieldset").setTitle("<span>"+ay+"</span>");var b7=n.getDockedItems();if(!Ext.isEmpty(b7)&&b7!=null&&b7!=undefined){b7[0].setVisible(false);}}else{n.setTitle("<span class='resizeHandle'>"+ay+"</span>");
if(a2.indexOf("User_Alerts")>-1){n.getComponent(0).update('<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconNoalarms" style="margin:0px auto"></div><div style="text-align:center">No Alarms found! </div></div></div>');
}else{n.getComponent(0).update('<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+noMeasure+"! </div></div></div>");}}}}}}}}}if(V!=R.length-1){}if(parseInt(bN)==parseInt(R.length-1)&&isNewpanel=="true"){var ap=q.get(0).style.height;
Ext.getCmp("userdesktopdata").body.scroll("b",parseInt(ap),true);}}}});}}}}else{b[0].hide();var N=Ext.getCmp("userdesktopdata");var j=N.getWidth()-20;var T=Ext.getBody().getHeight()-100;var I=(strSkin=="Dark")?"#ffffff":"#000000";var A="";var p=searchMess;var G=hidePMess;if(isSearchUser=="true"||isSearchUser==true){A=p;
}else{A=G;}S.add_widget.apply(S,['<li tabindex="-1" class="gridsterErr" id="ErrorPanel_1"/>',20,7,5,10]);var f=Ext.create("Ext.panel.Panel",{id:"UEDhideMes",renderTo:"ErrorPanel_1",width:j,height:T,flex:1,frame:false,autoScroll:false,scroll:false,html:'<table width="100%" height="100%"><tr><td valign="middle" align="center"><div class="iconInformation"></div><div style="font-family:LucidaGrandeBold;color:'+I+';font-size:12px;">'+A+"</div></td></tr></table>"});
}var Y=this;if(J){S.disable();$(".gridster").addClass("published");}else{$(".gridster").removeClass("published");$(".gridster").addClass("nonpublish");}},savePanelPositions:function(c){var b=c.id+","+c.col+","+c.row+","+c.size_x+","+c.size_y;var a="/final/monitor/endUserDashboardDetailsConfigJson.jsp?isUpdatePanelProps=true";
Ext.Ajax.request({url:a,params:{userType:userType,winId:c.id,winX:c.col,winY:c.row,winWidth:c.size_x,winHeight:c.size_y,isVDISessionTopologyEnabled:isVDISessionTopologyEnabled},timeout:280000,method:"POST",success:function(f){if(f.status==200&&!Ext.isEmpty(f.responseText)){var j=f.responseText;var h=Ext.decode(j);
}}});},saveAllPanelPositions:function(b){var a="/final/monitor/endUserDashboardDetailsConfigJson.jsp?isUpdatePanelProps=true&saveAllPos=true"+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;Ext.Ajax.request({url:a,timeout:280000,params:{userType:userType,allPosVal:b},method:"POST",success:function(c){if(c.status==200&&!Ext.isEmpty(c.responseText)){var h=c.responseText;
var f=Ext.decode(h);}}});},updateChartData:function(a,c,b){if(!Ext.isEmpty(a)){c.setLoading();Ext.Ajax.request({url:a+"&anonymousUser=true&dashboardUserId="+userName,scope:this,timeout:1280000,method:"POST",success:function(j){if(j.status==200&&!Ext.isEmpty(j.responseText)){c.setLoading(false);if((j.responseText.indexOf(".png")>=0||j.responseText.indexOf(".gif")>=0)){c.update('<table width="100%" height="100%"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}else{var l=Ext.decode(j.responseText);var f="yes";var F="yes";if(!Ext.isEmpty(l)&&l!=""&&l.hasOwnProperty("DataSet")){try{var u="graph_"+c.id;if(b.chartObj!=null){jQuery("#"+u).highcharts().destroy();b.chartObj=null;}var D=l.isMeasureText;var o=l.DataSet;var m=c.getHeight();var A=c.getWidth();var h=b.getHeight();
var q=b.getWidth();if((o!=null&&!Ext.isEmpty(o))){var r='<div class="chartCount" style="border:0px solid red;height:90px;width:100%;overflow:auto !important"><div style="display:table;margin: 0 auto;width:auto"><ul style="border:0px solid green;display:table;align:center;margin-top:27px;height:auto;width:auto !important">';
for(var B in o){var s=o[B];if(s!=null&&s.hasOwnProperty("dispLegend")){var v=s["dispLegend"];var k=s["measVal"];var n=s["measState"];var t=s["layerModelUrl"];var p=s["color"];var z=s["unit"];r+='<li class="uxGraphValue_box">';r+='<div style="margin-top:0;padding-right:10px;margin-left:5px;border:0px solid violet;"><table style="margin:auto;"><tr><td valign="top"><span class="chartLegend" style="color:'+p+';margin-top:-5px !important;">.</span></td><td>';
r+='<span class="uxGraphLabel">'+v+"</span>";r+="</td></tr></table>";r+='<div style="border:0px solid red"><div>';if((f.toLowerCase()!="no"&&F.toLowerCase()=="no")){r+='<div><span class="chartLegend" style="color:'+p+'">.</span>';}if(isHistory!=""&&isHistory=="true"){if(k=="NA"||k=="-"){r+='<div style="margin-top:0px" class="uxGraphValue_WHITE"> - </div>';
}else{if(!Ext.isEmpty(D)&&(D==true||D=="true")){r+='<div style="margin-top:0px;font-weight:bold !important;font-size:12px !important" class="uxGraphLabel">'+k+"</div>";}else{r+='<div style="margin-top:0px" class="uxGraphValue_WHITE">'+k+"</div>";}}}else{if(k=="NA"||k=="-"){r+='<div style="margin-top:0px" class="uxGraphValue_WHITE"> - </div>';
}else{if(!Ext.isEmpty(D)&&(D==true||D=="true")){r+='<div style="margin-top:0px;font-weight:bold !important;font-size:12px !important" class="uxGraphLabel">'+k+"</div>";}else{r+='<div style="margin-top:0px" class="uxGraphValue_WHITE"><img  class="stateSymbol_'+n+'" src="/final/images/clear.png" border="0" />'+k+"</div>";
}}}r+="</div></div>";r+="</li>";}}r+="</ul></div>";if(r!=null&&r!=""){r="<div>"+r+'</div></div> <div id="'+u+'" class="timelineDiv" style="border:0px solid blue;height:auto;margin:auto"></div></div>';c.update(r);var E={};E=jQuery.extend(true,{},getHighStockAreaChartForUserExperienceDashboard(u,(h-71),(A+10),""),E);
E.setData(l,mgrDateFormatTemp,"",true,"right");b.chartObj=E;E.drawChart();}}else{c.update('<table width="100%" height="100%"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");}}catch(C){console.log("----exception in highchart method------",C);
c.update('<table width="100%" height="100%"  ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");}}else{c.update('<table width="100%" height="100%"  ><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}}}}});}},loadPanelsCombo_Modify:function(f,a,j,h){var c="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var b=c+"&userType="+userType+"&loadPanels=true"+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;Ext.Ajax.request({url:b,method:"POST",timeout:280000,scope:this,success:function(k,n){var o=k.responseText;
var m=Ext.decode(o);if(!Ext.isEmpty(m["PANELS"])){var l=f.up().down("combo[id=panelNo]");l.getStore().loadRawData(m["PANELS"]);if(a!=null&&a!=undefined&&!Ext.isEmpty(a)){l.setValue(j);this.showModifyOptions_Modify(f.up().down("combo[id=panelNo]"),j,a,h);}else{l.setValue("-1");}Ext.getCmp("showHidePanelNew").hide();
l.show();}},failure:function(){}});},loadConfigurationItems_Modify:function(o,j,t,r){metricsData="";removeMetricsData="";var u=o.up().down("radiogroup[id=metrics]");var h=o.up().down("textfield[id=panelTitle]");var k=o.up().down("combo[id=chartTimeline]");var v=o.up().down("combo[id=test]");var z=o.up().down("combo[id=measure]");
var c=o.up().down("textfield[id=displayName]");var b=o.up().down("textfield[id=processName]");var q=o.up().down("textfield[id=process]");var s=o.up().up().down("button[id=add]");var m=o.up().down("combo[id=panelNo]");var l=o.up().down("itemselector[id=showHidePanels]");var B=o.up().down("multiselect[id=deleteCustomPanels]");
var A=o.up().down("radiogroup[id=modifyOptions]");var f=o.up().down("combo[id=sessionDetailsTimeline]");var p=o.up().down("combo[id=sessionDetailsTopN]");var n=o.up().down("combo[id=userAlertsNop]");var a=o.up().down("container[id=paletteContainer]");if(o.getValue()=="add"){u.show();m.hide();A.hide();
v.hide();z.hide();c.hide();s.hide();h.setValue("");h.hide();l.hide();B.hide();f.hide();p.hide();n.hide();a.hide();if(!Ext.isEmpty(u.getValue().metricsRadio)){this.loadMetricsItems(u);}}else{if(o.getValue()=="modify"){u.hide();h.hide();k.hide();v.hide();z.hide();c.hide();b.hide();q.hide();s.hide();l.hide();
B.hide();f.hide();p.hide();n.hide();a.hide();this.loadPanelsCombo_Modify(o,j,t,r);}else{if(o.getValue()=="delete"){u.hide();h.hide();k.hide();v.hide();z.hide();c.hide();b.hide();q.hide();s.hide();m.hide();A.hide();f.hide();p.hide();n.hide();a.hide();l.hide();B.show();}else{if(o.getValue()=="showHide"){u.hide();
h.hide();k.hide();v.hide();z.hide();c.hide();b.hide();q.hide();s.hide();m.hide();A.hide();f.hide();p.hide();n.hide();a.hide();B.hide();l.show();}else{u.hide();h.hide();k.hide();v.hide();z.hide();c.hide();b.hide();q.hide();s.hide();m.hide();A.hide();l.hide();B.hide();f.hide();p.hide();n.hide();a.hide();
}}}}},removeWindowDetails:function(c,b){var a="/final/monitor/endUserDashboardDetailsConfigJson.jsp?isRemovePanel=true"+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;if(!Ext.isEmpty(b)&&b!=undefined){a=a+"&winAct="+b;}Ext.Ajax.request({url:a,timeout:280000,params:{userType:userType,winId:c.id},method:"POST",success:function(f){if(f.status==200&&!Ext.isEmpty(f.responseText)){var j=f.responseText;
var h=Ext.decode(j);refreshAfterUpdate();}}});},updateBarChartData:function(a,f,k){var c=a.chartHeight;var l=k.getHeight();var m=k.getWidth();var b="graph_"+f.id;if(k.chartObj!=null){jQuery("#"+b).highcharts().destroy();k.chartObj=null;}var j=l;if(parseInt(l)<parseInt(c)){j=c;f.setAutoScroll(true);}else{f.setAutoScroll(false);
}f.update('<center><div style="margin-top:0px;margin-left:0px"><div id="'+b+'" style="width:100%;height:auto;border:0px solid blue;"></div></div></center>');var h={};h=jQuery.extend(true,{},getHighChartsBarInstanceForEndUserDashboard(b,(j),m-60),h);h.setData(a,"","","bar");k.chartObj=h;k.barChartHeight=c;
h.drawChart();},updatePieChartData:function(b,k,m){var h=140;var a=(strSkin=="Dark")?"#9b9fa1":"#333333";if(b.pieChartData.title=="Total memory (MB),Free memory (MB)"){var j='<div style="text-align:center;"><div data-qtip="'+b.pieChartData.title+'" style="font-family:LucidaGrandeBold;color:'+a+';font-size:12px;">Memory (MB)</div></div>';
}else{var j='<div style="text-align:center;"><div data-qtip="'+b.pieChartData.title+'" style="font-family:LucidaGrandeBold;color:'+a+';font-size:12px;">Disk Space (GB)</div></div>';}b["useHtml"]=true;var n=m.getHeight();var o=m.getWidth();var c="pie_"+k.id;if(m.chartObj!=null){jQuery("#"+c).highcharts().destroy();
m.chartObj=null;}var l=n-10;if(parseInt(n)<parseInt(h)){l=h-10;k.setAutoScroll(true);}else{k.setAutoScroll(false);}k.update('<center><div style="margin-top:-10px;margin-left:5px"><div id="'+c+'" style="width:100%;height:'+(l)+'px;border:0px solid red;"></div></div></center>');var f={};f=jQuery.extend(true,{},createBar(c,l,o-40),f);
f.setData(b,"","","pie");f.drawChart();m.chartObj=f;m.pieChartHeight=h;},showModifyOptions:function(c){metricsData="";removeMetricsData="";var l=c.up().down("radiogroup[id=modifyOptions]");var m=c.up().down("combo[id=test]");var b=c.up().down("combo[id=measure]");var q=c.up().down("textfield[id=displayName]");
var p=c.up().down("button[id=add]");var h=c.up().down("button[id=remove]");var o=c.up().down("textfield[id=panelTitle]");var a=c.up().down("combo[id=chartTimeline]");var k=c.up().down("combo[id=sessionDetailsTimeline]");var t=c.up().down("combo[id=sessionDetailsTopN]");var s=c.up().down("combo[id=userAlertsNop]");
var u=c.up().down("container[id=paletteContainer]");var r=c.getValue();var f=c.findRecord(c.valueField||c.displayField,r);var j=c.store.indexOf(f);var n=c.getStore().getAt(j).get("metricsField");if(c.getValue()=="-1"){o.setValue("");o.hide();}if(c.getValue()!="-1"&&(n=="Group_Metrics"||n=="Area_Metrics"||n=="Line_Metrics")){l.show();
if(l.getValue().modifyRadio=="add"){this.loadTestsForModify(c,n,"add");u.hide();a.hide();p.show();h.hide();o.hide();}else{if(l.getValue().modifyRadio=="update"){h.hide();p.hide();o.setValue(c.getRawValue());o.show();if(n!="Group_Metrics"){a.show();u.show();}else{a.hide();u.hide();}this.loadTestsForModify(c,n,"update");
}else{u.hide();h.show();p.hide();o.setValue("");o.hide();a.hide();this.loadTestsForModify(c,n,"delete");}}k.hide();t.hide();s.hide();}else{if(c.getValue()!="-1"){l.hide();m.hide();b.hide();q.hide();p.hide();a.hide();h.hide();o.setValue(c.getRawValue());o.show();if(n=="Bar_Metrics"){u.show();this.loadTestsForModify(c,n,"update");
}else{u.hide();}if(n=="SessionDetails"){k.show();t.show();s.hide();}else{if(n=="User_Alerts"){s.show();k.hide();t.hide();}else{k.hide();t.hide();s.hide();}}}else{l.hide();m.hide();b.hide();q.hide();p.hide();a.hide();h.hide();k.hide();t.hide();s.hide();u.hide();}}},showModifyOptions_Modify:function(t,q,n,B){metricsData="";
removeMetricsData="";var l=t.up().down("radiogroup[id=modifyOptions]");var E=t.up().down("combo[id=test]");var f=t.up().down("combo[id=measure]");var h=t.up().down("textfield[id=displayName]");var C=t.up().down("button[id=add]");var F=t.up().down("button[id=remove]");var o=t.up().down("textfield[id=panelTitle]");
var p=t.up().down("combo[id=chartTimeline]");var k=t.up().down("combo[id=sessionDetailsTimeline]");var z=t.up().down("combo[id=sessionDetailsTopN]");var s=t.up().down("combo[id=userAlertsNop]");var b=t.up().down("container[id=paletteContainer]");var m=t.up().down("combo[id=optionsCombo]");m.hide();var A=t.up().down("combo[id=panelNo]");
A.setDisabled(true);if(q!=null&&q!=undefined&&!Ext.isEmpty(q)){var r=q;}else{var r=t.getValue();}t.displayField=r;var c=t.findRecord(t.valueField||t.displayField,r);var j=t.store.indexOf(c);var D=t.getStore().getAt(j).get("metricsField");if(t.getValue()=="-1"){o.setValue("");o.hide();}if(t.getValue()!="-1"&&(D=="Group_Metrics"||D=="Area_Metrics"||D=="Line_Metrics")){l.show();
if(l.getValue().modifyRadio=="add"){this.loadTestsForModify(t,D,"add");b.hide();p.hide();C.show();F.hide();o.hide();}else{if(l.getValue().modifyRadio=="update"){F.hide();C.hide();o.setValue(t.getRawValue());o.show();if(D!="Group_Metrics"){p.show();b.show();}else{p.hide();b.hide();}this.loadTestsForModify(t,D,"update");
}else{b.hide();F.show();C.hide();o.setValue("");o.hide();p.hide();this.loadTestsForModify(t,D,"delete");}}k.hide();z.hide();s.hide();}else{if(t.getValue()!="-1"){l.hide();E.hide();f.hide();h.hide();C.hide();p.hide();F.hide();o.setValue(t.getRawValue());o.show();if(D=="Bar_Metrics"){b.show();this.loadTestsForModify(t,D,"update");
}else{b.hide();}if(D=="SessionDetails"){k.show();z.show();s.hide();}else{if(D=="User_Alerts"){s.show();k.hide();z.hide();}else{if(B=="BackendApplicationStatus"){k.hide();z.hide();s.hide();var u=Ext.getCmp("modifyOptions");u.show();var a=Ext.getCmp("suppotedCmpType");a.show();backEndMetricVal=B;if(l.getValue().modifyRadio=="update"){if(!Ext.isEmpty(a)&&a!=null&&a!=undefined){a.hide();
}}}else{k.hide();z.hide();s.hide();}}}}else{l.hide();E.hide();f.hide();h.hide();C.hide();p.hide();F.hide();k.hide();z.hide();s.hide();b.hide();}}},loadModifyOptions:function(h){var s=h.up().down("button[id=add]");var k=h.up().down("button[id=remove]");var c=h.up().down("combo[id=panelNo]");var a=h.up().down("combo[id=chartTimeline]");
var p=h.up().down("textfield[id=panelTitle]");var n=h.up().down("combo[id=test]");var b=h.up().down("combo[id=measure]");var r=h.up().down("textfield[id=displayName]");var m=h.up().down("radiogroup[id=modifyOptions]").getValue().modifyRadio;var t=c.getValue();var j=c.findRecord(c.valueField||c.displayField,t);
var l=c.store.indexOf(j);var o=c.getStore().getAt(l).get("metricsField");var u=h.up().down("container[id=paletteContainer]");var f=h.up().down("radiogroup[id=modifyOptions]");if(h.getValue().modifyRadio=="add"){p.hide();s.show();k.hide();a.hide();u.hide();}else{if(h.getValue().modifyRadio=="update"){s.hide();
k.hide();p.setValue(c.getRawValue());p.show();if(o=="Area_Metrics"||o=="Line_Metrics"){a.show();}else{a.hide();}if(o=="Area_Metrics"||o=="Line_Metrics"||o=="Bar_Metrics"){u.show();}else{u.hide();}}else{if(h.getValue().modifyRadio=="delete"){p.hide();a.hide();s.hide();k.show();u.hide();}else{p.hide();
a.hide();s.hide();k.hide();u.hide();}}}n.hide();b.hide();r.hide();if(o=="Group_Metrics"||(o=="Area_Metrics"||o=="Line_Metrics"||o=="Bar_Metrics")){this.loadTestsForModify(h,o,m);}if(o=="BackendApplicationStatus"){if(h.getValue().modifyRadio!="update"){this.loadSuppotedCmpTypes(h,f);}else{if(h.getValue().modifyRadio=="update"){var q=Ext.getCmp("suppotedCmpType");
if(!Ext.isEmpty(q)&&q!=null&&q!=undefined){q.hide();}}}}},changeGroupCombo:function(){var a=Ext.getCmp("group");var c=Ext.getCmp("ExistingNew");var f=Ext.getCmp("AddDelete")!=null?Ext.getCmp("AddDelete").getValue().Config:"add";if(!Ext.isEmpty(a)){var h=a.getValue();if(f=="add"){this.loadTestsForGroup();
Ext.getCmp("displayName").setValue("");var b=Ext.getCmp("panelTitle");b.setValue(a.getRawValue());}else{this.loadTestsForGroup();Ext.getCmp("displayName").setValue("");var b=Ext.getCmp("panelTitle");b.setValue(a.getRawValue());if(f!="delete"){b.show();}}}},changeGroupCombo:function(){var a=Ext.getCmp("group");
var c=Ext.getCmp("ExistingNew");var f=Ext.getCmp("AddDelete")!=null?Ext.getCmp("AddDelete").getValue().Config:"add";if(!Ext.isEmpty(a)){var h=a.getValue();if(f=="add"){this.loadTestsForGroup();Ext.getCmp("displayName").setValue("");var b=Ext.getCmp("panelTitle");b.setValue(a.getRawValue());}else{this.loadTestsForGroup();
Ext.getCmp("displayName").setValue("");var b=Ext.getCmp("panelTitle");b.setValue(a.getRawValue());if(f!="delete"){b.show();}}}},loadTestsForGroup:function(){var f="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var k=Ext.getCmp("AddDelete")!=null?Ext.getCmp("AddDelete").getValue().Config:"add";
var c=f+"loadTest=true&addOrDelete="+k;var h=Ext.getCmp("metrics").getValue().metricsRadio;c=c+"&metrics="+h;c=c+"&userType="+userType+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;var j=false;if(k=="add"||k=="modify"||k=="delete"){var a=Ext.getCmp("group");if(!Ext.isEmpty(a)){var l=a.getValue();
c=c+"&group="+l;j=true;if(k=="modify"){var b=Ext.getCmp("panelTitle");if(!Ext.isEmpty(b)&&b.isVisible()){b.setValue(a.getRawValue());}}}}Ext.Ajax.request({url:c,method:"POST",timeout:280000,scope:this,success:function(n,p){var q=n.responseText;var o=Ext.decode(q);var r=Ext.getCmp("test");if(!Ext.isEmpty(r)&&!Ext.isEmpty(o["TEST"])){r.getStore().loadRawData(o["TEST"]);
r.setValue("-1");}if(!Ext.isEmpty(h)&&h=="Group_Metrics"){if(k=="add"){}else{var m=Ext.getCmp("groupname");m.hide();}}},failure:function(){}});if(k=="add"||k=="modify"){Ext.getCmp("displayName").show();}else{Ext.getCmp("displayName").hide();}},hideProcessCombos:function(){var a=Ext.getCmp("processName");
var b=Ext.getCmp("process");if(!Ext.isEmpty(a)){a.hide();a.setValue("-1");}if(!Ext.isEmpty(b)){b.hide();b.setValue("-1");}},hideModifyingComponents:function(){var b=Ext.getCmp("modifyTestMeasure");var c=Ext.getCmp("modifyTestCombo");var f=Ext.getCmp("modifyMeasureCombo");if(!Ext.isEmpty(b)&&b.isVisible()){b.hide();
}if(!Ext.isEmpty(c)&&c.isVisible()){c.hide();c.setValue("-1");}if(!Ext.isEmpty(f)&&f.isVisible()){f.hide();f.setValue("-1");}var a=Ext.getCmp("add");if(!Ext.isEmpty(a)&&a.isVisible()){a.hide();}},showOnlyItemSelector:function(){Ext.getCmp("metrics").hide();Ext.getCmp("test").hide();Ext.getCmp("measure").hide();
Ext.getCmp("displayName").hide();Ext.getCmp("group").hide();Ext.getCmp("groupname").hide();Ext.getCmp("panelNo").hide();Ext.getCmp("panelTitle").hide();Ext.getCmp("chartTimeline").hide();Ext.getCmp("sessionDetailsTimeline").hide();Ext.getCmp("sessionDetailsTopN").hide();Ext.getCmp("userAlertsNop").hide();
Ext.getCmp("ExistingNew").hide();Ext.getCmp("ShowHidePanels").show();},loadTestsForPanel:function(){var k="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var c=Ext.getCmp("AddDelete")!=null?Ext.getCmp("AddDelete").getValue().Config:"add";var b=k+"loadTest=true&addOrDelete="+c;var n=Ext.getCmp("metrics").getValue().metricsRadio;
b=b+"&metrics="+n;b=b+"&userType="+userType+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;var j=Ext.getCmp("panelNo");var f=Ext.getCmp("panelTitle");var a=Ext.getCmp("chartTimeline");var p=Ext.getCmp("ExistingNew");if(!Ext.isEmpty(j)&&j.isVisible()){b=b+"&panelNo="+j.getValue();if(c=="modify"||(c=="add"&&p.getValue()=="-1")){if(p.isVisible()&&p.getValue()=="-1"){f.setValue("");
}else{f.setValue(j.getRawValue());}f.show();if(c=="add"&&p.getValue()=="-1"&&(n=="Area_Metrics"||n=="Line_Metrics")){a.show();a.setValue("1 hour");}else{if(c=="modify"&&j.getValue()!="-1"&&(n=="Area_Metrics"||n=="Line_Metrics")){a.show();}else{a.hide();}}if(c=="modify"){if(!Ext.isEmpty(j)&&!Ext.isEmpty(j.getValue())&&j.getValue()!=""){var o=j.getValue();
var h=j.findRecord(j.valueField||j.displayField,o);var l=j.store.indexOf(h);var m=j.getStore().getAt(l).get("metricsField");if(!Ext.isEmpty(m)&&m!=""){if(m=="User_Alerts"){Ext.getCmp("userAlertsNop").show();Ext.getCmp("sessionDetailsTimeline").hide();Ext.getCmp("sessionDetailsTopN").hide();}else{if(m=="SessionDetails"){Ext.getCmp("sessionDetailsTimeline").show();
Ext.getCmp("sessionDetailsTopN").show();Ext.getCmp("userAlertsNop").hide();}else{Ext.getCmp("userAlertsNop").hide();Ext.getCmp("sessionDetailsTimeline").hide();Ext.getCmp("sessionDetailsTopN").hide();}}}else{Ext.getCmp("userAlertsNop").hide();Ext.getCmp("sessionDetailsTimeline").hide();Ext.getCmp("sessionDetailsTopN").hide();
}}}}else{f.hide();a.hide();}}var c=Ext.getCmp("AddDelete");if(!Ext.isEmpty(c)&&c.getValue().Config!="add"){Ext.Ajax.request({url:b,method:"POST",timeout:280000,scope:this,success:function(q,s){var t=q.responseText;var r=Ext.decode(t);var u=Ext.getCmp("test");if(!Ext.isEmpty(u)&&!Ext.isEmpty(r["TEST"])){u.getStore().loadRawData(r["TEST"]);
u.setValue("-1");}else{u.getStore().loadRawData("");}if(!Ext.isEmpty(r["TIMELINE"])){a.setValue(r["TIMELINE"]);}},failure:function(){}});}},loadMetrics:function(){var a=Ext.getCmp("metrics");a.add({boxLabel:"Data",checked:true,name:"metricsRadio",id:"metricsRadio_Group_Metrics",inputValue:"Group_Metrics",width:65},{boxLabel:"Area",name:"metricsRadio",id:"metricsRadio_Area_Metrics",inputValue:"Area_Metrics",width:70},{boxLabel:"Line",name:"metricsRadio",id:"metricsRadio_Line_Metrics",inputValue:"Line_Metrics",width:60},{boxLabel:"Bar",name:"metricsRadio",id:"metricsRadio_Bar_Metrics",inputValue:"Bar_Metrics",width:60},{boxLabel:"Others",name:"metricsRadio",id:"metricsRadio_Other_Metrics",inputValue:"Other_Metrics",width:60,hidden:true});
a.show();this.loadTests();},loadMeasureForTest:function(k){var f=k.up().down("combo[id=optionsCombo]").getValue();var p=k.up().down("radiogroup[id=metrics]").getValue().metricsRadio;if(Ext.isEmpty(p)||p==null||p==undefined){if(!Ext.isEmpty(chartTypeStore)&&chartTypeStore!=null&&chartTypeStore!=undefined){p=chartTypeStore;
}}var o=k.up().down("combo[id=test]").getValue();var j=k.up().down("combo[id=processName]");var c=k.up().down("combo[id=process]");var b=k.up().down("combo[id=panelNo]");j.hide();c.hide();if(f!="add"){var q=b.getValue();var l=b.findRecord(b.valueField||b.displayField,q);var n=b.store.indexOf(l);p=b.getStore().getAt(n).get("metricsField");
}var m="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var a=m+"addOrDelete="+f;a=a+"&metrics="+p;a=a+"&userType="+userType;a+="&loadMeasure=true&test="+o+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;if(f!="add"){var r=k.up().down("radiogroup[id=modifyOptions]").getValue().modifyRadio;
a+="&action="+r;}if(f!="add"){a=a+"&panelNo="+b.getValue();}if(p=="BackendApplicationStatus"){var h=Ext.getCmp("suppotedCmpType");a=a+"&enduserBackendPanel=BackendAppStatus&loadData=loadMeasureTrue&suppotedCmpType="+h.getValue();}Ext.Ajax.request({url:a,method:"POST",timeout:280000,scope:this,success:function(s,u){var v=s.responseText;
var t=Ext.decode(v);var z=k.up().down("combo[id=measure]");z.getStore().loadRawData(t["MEASURE"]);z.setValue(t["MEASURE"][0]["valueField"]);z.show();},failure:function(){}});},loadTestsForModify:function(k,h,j){var c=k.up().down("combo[id=panelNo]");var a=k.up().down("combo[id=optionsCombo]").getValue();
var f="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var b=f+"loadTest=true&addOrDelete="+a;b=b+"&metrics="+h;b=b+"&userType="+userType;b=b+"&panelNo="+c.getValue();b=b+"&action="+j+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;if(h=="Bar_Metrics"&&j=="update"){b=b+"&getSelectedvalues=true";
}Ext.Ajax.request({url:b,timeout:280000,method:"POST",scope:this,success:function(r,n){var q=r.responseText;var s=Ext.decode(q);var m=k.up().down("combo[id=test]");var t=k.up().down("combo[id=measure]");var p=k.up().down("combo[id=processName]");var o=k.up().down("combo[id=process]");var l=k.up().down("combo[id=chartTimeline]");
if(!Ext.isEmpty(m)&&!Ext.isEmpty(s["TEST"])){m.getStore().loadRawData(s["TEST"]);if(!Ext.isEmpty(s["selectedTest"])){m.setValue(s["selectedTest"]);}else{m.setValue("-1");}m.show();}if(!Ext.isEmpty(m)&&!Ext.isEmpty(s["selectedMeasure"])&&h=="Bar_Metrics"&&j=="update"){t.getStore().loadRawData(s["allMeasures"]);
if(!Ext.isEmpty(s["selectedMeasure"])){t.setValue(s["selectedMeasure"]);}else{t.setValue("-1");}t.show();}if(!Ext.isEmpty(m)&&!Ext.isEmpty(t)&&!Ext.isEmpty(s["allProcess"])&&h=="Bar_Metrics"&&j=="update"){p.getStore().loadRawData(s["allProcess"]);if(!Ext.isEmpty(s["ProcessName"])){p.setValue(s["ProcessName"]);
}else{p.setValue("-1");}p.show();}if(!Ext.isEmpty(m)&&!Ext.isEmpty(t)&&!Ext.isEmpty(s["allProcess"])&&h=="Bar_Metrics"&&j=="update"){if(!Ext.isEmpty(p)){o.getStore().loadRawData(s["allProcessNames"]);if(!Ext.isEmpty(s["Process"])){o.setValue(s["Process"]);}else{o.setValue("-1");}o.show();}}if(j=="update"&&(h=="Area_Metrics"||h=="Line_Metrics")&&!Ext.isEmpty(s["TIMELINE"])){l.setValue(s["TIMELINE"]);
l.show();}if(!Ext.isEmpty(s["PALETTE"])&&!Ext.isEmpty(s["PALETTE_COLORS"])&&j=="update"&&(h=="Area_Metrics"||h=="Line_Metrics")){var u=Ext.getCmp("colorPalette");u.setValue(s["PALETTE"]);u.update(s["PALETTE_COLORS"]);}else{if(!Ext.isEmpty(s["PALETTE"])&&!Ext.isEmpty(s["PALETTE_COLORS"])&&h=="Bar_Metrics"){var u=Ext.getCmp("colorPalette");
u.setValue(s["PALETTE"]);u.update(s["PALETTE_COLORS"]);}}},failure:function(){}});},loadTestsForModifying:function(){var f=Ext.getCmp("AddDelete").getValue().Config;var h=Ext.getCmp("test").getValue();var b="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var a=b+"modifyTest=true&addOrDelete="+f+"&test="+h;
var c=Ext.getCmp("metrics").getValue().metricsRadio;a=a+"&metrics="+c;a=a+"&userType="+userType+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;Ext.Ajax.request({url:a,method:"POST",timeout:280000,scope:this,success:function(j,m){var n=j.responseText;var l=Ext.decode(n);var k=Ext.getCmp("modifyTestCombo");
k.getStore().loadRawData(l["MODIFIED_TEST"]);k.setValue("-1");k.show();},failure:function(){}});},loadMeasureDisplay:function(j){var h=j.up().down("combo[id=optionsCombo]").getValue();var o=j.up().down("radiogroup[id=metrics]").getValue().metricsRadio;if(Ext.isEmpty(o)||o==null||o==undefined){o=chartTypeStore;
}if(Ext.isEmpty(o)){o=backEndMetricVal;}var p=j.up().down("textfield[id=displayName]");var r=j.up().down("radiogroup[id=modifyOptions]").getValue().modifyRadio;var f=j.up().down("combo[id=panelNo]");if(h!="add"){var q=f.getValue();var k=f.findRecord(f.valueField||f.displayField,q);var m=f.store.indexOf(k);
o=f.getStore().getAt(m).get("metricsField");}if(h=="add"&&o=="Bar_Metrics"){var n=j.up().down("combo[id=test]").getValue();var c=j.up().down("combo[id=measure]").getValue();var l="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var b=l+"loadBarDDColumns=true&test="+n+"&measure="+c+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;
Ext.Ajax.request({url:b,method:"POST",timeout:280000,scope:this,success:function(t,z){var A=t.responseText;var u=Ext.decode(A);var v=j.up().down("combo[id=processName]");v.getStore().loadRawData(u["DD_COLUMNS"]);v.setValue("-1");v.show();},failure:function(){}});}if(h=="modify"&&r=="update"&&o=="BackendApplicationStatus"){var n=j.up().down("combo[id=test]").getValue();
var c=j.up().down("combo[id=measure]").getValue();var a=Ext.getCmp("suppotedCmpType").getValue();var s="/final/monitor/endUserDashboardDetailsConfigJson.jsp?loadData=loadmeasureDispName&enduserBackendPanel=BackendAppStatus&test="+n+"&measure="+c+"&userType="+userType+"&suppotedCmpType="+a+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;
Ext.Ajax.request({url:s,method:"POST",timeout:280000,scope:this,success:function(t,v){var z=t.responseText;var u=Ext.decode(z);p.setValue(u["usrTypeMeasureDisp"]);p.show();},failure:function(){}});}if(h=="add"&&o!="Bar_Metrics"){p.setValue(j.getRawValue());p.show();}else{if(h=="modify"&&(r=="add"||r=="update")&&(o=="Group_Metrics"||o=="Area_Metrics"||o=="Line_Metrics")){p.setValue(j.getRawValue());
p.show();}else{if(o=="BackendApplicationStatus"&&r=="add"){p.setValue(j.getRawValue());p.show();}else{p.setValue("");p.hide();}}}},loadMeasureDisplay_AddPanel:function(h,n){var f=h.up().down("combo[id=optionsCombo]").getValue();var o=n;var p=h.up().down("textfield[id=displayName]");var r=h.up().down("radiogroup[id=modifyOptions]").getValue().modifyRadio;
var c=h.up().down("combo[id=panelNo]");if(f!="add"){var q=c.getValue();var j=c.findRecord(c.valueField||c.displayField,q);var l=c.store.indexOf(j);o=c.getStore().getAt(l).get("metricsField");}if(f=="add"&&o=="Bar_Metrics"){var m=h.up().down("combo[id=test]").getValue();var b=h.up().down("combo[id=measure]").getValue();
var k="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var a=k+"loadBarDDColumns=true&test="+m+"&measure="+b+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;Ext.Ajax.request({url:a,method:"POST",timeout:280000,scope:this,success:function(s,v){var z=s.responseText;var t=Ext.decode(z);
var u=h.up().down("combo[id=processName]");u.getStore().loadRawData(t["DD_COLUMNS"]);u.setValue("-1");u.show();},failure:function(){}});}if(f=="add"&&o!="Bar_Metrics"){p.setValue(h.getRawValue());p.show();}else{if(f=="modify"&&(r=="add"||r=="update")&&(o=="Group_Metrics"||o=="Area_Metrics"||o=="Line_Metrics")){p.setValue(h.getRawValue());
p.show();}else{p.setValue("");p.hide();}}},resetTestMeasure:function(c){var b=[{displayField:"Please choose a test",valueField:"-1"}];var f=c.up().down("combo[id=test]");f.getStore().loadRawData(b);f.setValue("-1");var j=[{displayField:"Please choose a measure",valueField:"-1"}];var h=c.up().down("combo[id=measure]");
h.getStore().loadRawData(j);h.setValue("-1");var a=c.up().down("textfield[id=displayName]").setValue("");},loadProcessComboData:function(j){var k=j.up().down("combo[id=test]").getValue();var c=j.up().down("combo[id=measure]").getValue();var f=j.up().down("combo[id=processName]");var h=j.up().down("combo[id=process]");
h.hide();var b="/final/monitor/endUserDashboardDetailsConfigJson.jsp?";var a=b+"loadBarDDColumns=true&test="+k+"&measure="+c+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;a+="&processName="+f.getValue();Ext.Ajax.request({url:a,method:"POST",timeout:280000,scope:this,success:function(l,n){var o=l.responseText;
var m=Ext.decode(o);h.getStore().loadRawData(m["DD_COLUMNS"]);h.setValue("-1");h.show();},failure:function(){}});},checkSpecialCharacter:function(a){var c='~`!@^&*;<>.?|#&+:,$="';for(var b=0;b<a.length;b++){check_char=c.indexOf(a.charAt(b));if(check_char>=0){return true;}}return false;},updateConfiguration:function(z){var D=z.up().up();
var B=D.down("combo[id=optionsCombo]").getValue();var F=D.down("radiogroup[id=metrics]").getValue().metricsRadio;if(Ext.isEmpty(F)||F==null||F==undefined){if(chartTypeStore!=null&&!Ext.isEmpty(chartTypeStore)&&chartTypeStore!=undefined){F=chartTypeStore;}}var n=D.down("textfield[id=panelTitle]");var q=D.down("combo[id=chartTimeline]");
var G=D.down("combo[id=test]");var h=D.down("combo[id=measure]");var l=D.down("textfield[id=displayName]");var j=D.down("combo[id=processName]");var C=D.down("combo[id=process]");var s=D.down("combo[id=panelNo]");var K=D.down("radiogroup[id=modifyOptions]");var r=D.down("itemselector[id=showHidePanels]");
var L=D.down("multiselect[id=deleteCustomPanels]");var o=D.down("combo[id=sessionDetailsTimeline]");var A=D.down("combo[id=sessionDetailsTopN]");var u=D.down("combo[id=userAlertsNop]");var b=D.down("container[id=paletteContainer]");var E=D.down("displayfield[id=colorPalette]");var a=Ext.getCmp("suppotedCmpType");
var H=true;if(B=="-1"){Ext.Msg.alert("Error","Please choose an option");H=false;}if(B=="modify"){var t=s.getValue();var f=s.findRecord(s.valueField||s.displayField,t);var m=s.store.indexOf(f);F=s.getStore().getAt(m).get("metricsField");}if(H&&B=="add"){if(Ext.isEmpty(F)){Ext.Msg.alert("Error","Please select the Panel Type");
H=false;}else{if(n.getValue()==""){Ext.Msg.alert("Error","Please enter the Panel Title");H=false;}else{if(F!="Group_Metrics"&&E.getValue().indexOf("Please select a palette")>-1){Ext.Msg.alert("Error","Please select a Colour Palette");H=false;}else{if(metricsData.length==0&&G.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");
H=false;}else{if(metricsData.length==0&&h.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the measure");H=false;}else{if(F!="Bar_Metrics"&&metricsData.length==0&&l.getValue()=="-1"){Ext.Msg.alert("Error","Please enter the display name");H=false;}else{if(F=="Bar_Metrics"&&j.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the process name");
H=false;}else{if(F=="Bar_Metrics"&&C.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the process");H=false;}else{if(metricsData.length==0&&F=="BackendApplicationStatus"&&a.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the Component Type");H=false;}}}}}}}}}}if(H&&B=="modify"){if(s.getValue()==-1){Ext.Msg.alert("Error","Please choose the Panel");
H=false;}else{if(F!="Group_Metrics"&&F!="Area_Metrics"&&F!="Line_Metrics"&&n.getValue()==""){Ext.Msg.alert("Error","Please enter the Panel Title");H=false;}else{if(K.isVisible()){if(K.getValue().modifyRadio=="update"&&n.getValue()==""){Ext.Msg.alert("Error","Please enter the Panel Title");H=false;}else{if(metricsData.length==0&&F=="BackendApplicationStatus"&&(K.getValue().modifyRadio=="add"||K.getValue().modifyRadio=="delete")&&a.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the Component Type");
H=false;}else{if(metricsData.length==0&&F=="BackendApplicationStatus"&&(K.getValue().modifyRadio=="add"||K.getValue().modifyRadio=="delete")&&G.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");H=false;}else{if(metricsData.length==0&&F=="BackendApplicationStatus"&&(K.getValue().modifyRadio=="add"||K.getValue().modifyRadio=="delete")&&h.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the measure");
H=false;}else{if(removeMetricsData.length==0&&n.getValue()==""&&G.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");H=false;}else{if(removeMetricsData.length==0&&n.getValue()!=""&&(K.getValue().modifyRadio=="add"||K.getValue().modifyRadio=="delete")&&G.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");
H=false;}else{if(removeMetricsData.length==0&&G.getValue()!="-1"&&h.isVisible()&&h.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the measure");H=false;}else{if(K.getValue().modifyRadio=="add"&&removeMetricsData.length==0&&G.getValue()!="-1"&&h.getValue()!="-1"&&l.getValue()==""){Ext.Msg.alert("Error","Please enter the display name");
H=false;}}}}}}}}}}}}if(H&&B=="delete"){if(Ext.isEmpty(L.getValue())){Ext.Msg.alert("Error","Please select atleast one item");H=false;}}if(F=="BackendApplicationStatus"&&K.getValue().modifyRadio=="modify"&&B=="modify"){B="modify";}else{if(F=="BackendApplicationStatus"&&K.getValue().modifyRadio=="delete"&&B=="modify"){B="delete";
}else{if(F=="BackendApplicationStatus"&&K.getValue().modifyRadio=="add"&&B=="modify"){B="add";}}}if(H){var J=n.getValue();if(!Ext.isEmpty(J)&&J!=undefined&&this.checkSpecialCharacter(J)){Ext.Msg.show({title:"Alert",msg:tipSpe,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});H=false;return false;}J=l.getValue();
if(!Ext.isEmpty(J)&&J!=undefined&&this.checkSpecialCharacter(J)){Ext.Msg.show({title:"Alert",msg:tipSpe,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});H=false;return false;}if(!Ext.isEmpty(metricsData)&&metricsData.length>0){if(G.getValue()!="-1"&&h.getValue()!="-1"&&l.getValue()!=""){var I="";if(F=="Group_Metrics"){I+=",";
}else{I+="|hash|";}I+=G.getValue();I+=":";I+=h.getValue();I+=":";I+=l.getValue();metricsData+=I;}var k="/final/monitor/endUserDashboardDetailsConfigJson.jsp?isUpdate=true&&isMulti=true&metrics="+F+"&addOrDelete="+B+"&userType="+userType+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;k=k+"&wholeValue="+encodeURI(metricsData);
k+="&panelTitle="+n.getValue();if(!Ext.isEmpty(q)&&q.isVisible()){k=k+"&chartTimeline="+q.getValue();}if(!Ext.isEmpty(s)&&s.isVisible()){k=k+"&panelNo="+s.getValue();}if(!Ext.isEmpty(s)&&s.isVisible()){k=k+"&panelNo="+s.getValue();}if(!Ext.isEmpty(K)&&K.isVisible()){k=k+"&action="+K.getValue().modifyRadio;
}if(b.isVisible()){k=k+"&colorPalette="+E.getValue();}if(a.getValue()!=null&&!Ext.isEmpty(a.getValue())){k=k+"&suppotedCmpType="+a.getValue();}Ext.Ajax.request({url:k,method:"POST",timeout:280000,scope:this,success:function(v,N){var O=v.responseText;var M=Ext.decode(O);if(M["UPDATE"]=="FAILED"){Ext.Msg.alert("Error",UpdateError);
}if(M["UPDATE"]=="SUCCESS"){this.hideConfigWindow();refreshAfterUpdate();}},failure:function(){}});}else{if(!Ext.isEmpty(removeMetricsData)&&removeMetricsData.length>0){if(G.getValue()!="-1"&&h.getValue()!="-1"){var I="";if(F=="Group_Metrics"){I+=",";}else{I+="|hash|";}I+=G.getValue();I+=":";I+=h.getValue();
removeMetricsData+=I;}var k="/final/monitor/endUserDashboardDetailsConfigJson.jsp?isUpdate=true&&isMulti=true&metrics="+F+"&addOrDelete="+B+"&userType="+userType+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;k=k+"&removeWholeValue="+encodeURI(removeMetricsData);if(!Ext.isEmpty(s)&&s.isVisible()){k=k+"&panelNo="+s.getValue();
}if(a.getValue()!=null&&!Ext.isEmpty(a.getValue())){k=k+"&suppotedCmpType="+a.getValue();}k+="&test="+G.getValue();k+="&measure="+h.getValue();k+="&displayName="+l.getValue();if(!Ext.isEmpty(K)&&K.isVisible()){k=k+"&action="+K.getValue().modifyRadio;}Ext.Ajax.request({url:k,method:"POST",timeout:280000,scope:this,success:function(v,N){var O=v.responseText;
var M=Ext.decode(O);if(M["UPDATE"]=="FAILED"){Ext.Msg.alert("Error",UpdateError);}if(M["UPDATE"]=="SUCCESS"){this.hideConfigWindow();refreshAfterUpdate();}},failure:function(){}});}else{var k="/final/monitor/endUserDashboardDetailsConfigJson.jsp?isUpdate=true&addOrDelete="+B+"&userType="+userType+"&isVDISessionTopologyEnabled="+isVDISessionTopologyEnabled;
if(B=="add"){k+="&metrics="+F;if(n.isVisible()){k+="&panelTitle="+n.getValue();}k+="&test="+G.getValue();k+="&measure="+h.getValue();if(F!="Bar_Metrics"&&l.isVisible()){k+="&displayName="+l.getValue();}else{if(j.isVisible()&&C.isVisible()){k+="&processName="+j.getValue()+"&process="+C.getValue();}}if((F=="Area_Metrics"||F=="Line_Metrics")&&q.isVisible()){k+="&chartTimeline="+q.getValue();
}if((F=="Area_Metrics"||F=="Line_Metrics"||F=="Bar_Metrics")&&E.isVisible()){if(b.isVisible()){k=k+"&colorPalette="+E.getValue();}}if(a.getValue()!=null&&!Ext.isEmpty(a.getValue())){k=k+"&suppotedCmpType="+a.getValue();k=k+"&removeWholeValue="+encodeURI(removeMetricsData);}}else{if(B=="modify"){k+="&metrics="+F;
k+="&panelNo="+s.getValue();if(n.isVisible()){k+="&panelTitle="+encodeURI(n.getValue());}if(a.getValue()!=null&&!Ext.isEmpty(a.getValue())){k=k+"&suppotedCmpType="+a.getValue();}k+="&test="+G.getValue();k+="&measure="+h.getValue();k+="&displayName="+l.getValue();if(F=="Group_Metrics"||F=="Area_Metrics"||F=="Line_Metrics"||F=="Bar_Metrics"){if(F!="Bar_Metrics"&&l.isVisible()){k+="&displayName="+l.getValue();
}else{if(j.isVisible()&&C.isVisible()){k+="&processName="+j.getValue()+"&process="+C.getValue();}}if((F=="Area_Metrics"||F=="Line_Metrics")&&q.isVisible()){k+="&chartTimeline="+q.getValue();}if((F=="Area_Metrics"||F=="Line_Metrics"||F=="Bar_Metrics")&&E.isVisible()){if(b.isVisible()){k=k+"&colorPalette="+E.getValue();
}}if(!Ext.isEmpty(K)&&K.isVisible()){k=k+"&action="+K.getValue().modifyRadio;}}else{if(!Ext.isEmpty(o)&&o.isVisible()){k+="&sessionDetailsTimeline="+o.getValue();}if(!Ext.isEmpty(A)&&A.isVisible()){k+="&sessionDetailsTopN="+A.getValue();}if(!Ext.isEmpty(u)&&u.isVisible()){k+="&userAlertsNop="+u.getValue();
}}}else{if(B=="delete"){var c=L.getValue();var p="";if(!Ext.isEmpty(c)&&c.length>0){for(i=0;i<c.length;i++){if(i!=0){p+=",";}p+=c[i];}}k=k+"&deleteCustomPanels="+p;if(F=="BackendApplicationStatus"){k+="&test="+G.getValue();k+="&measure="+h.getValue();k+="&displayName="+l.getValue();k+="&metrics="+F;if(a.getValue()!=null&&!Ext.isEmpty(a.getValue())){k=k+"&suppotedCmpType="+a.getValue();
}k=k+"&removeWholeValue="+encodeURI(removeMetricsData);}}else{var c=r.getValue();var p="";if(!Ext.isEmpty(c)&&c.length>0){for(i=0;i<c.length;i++){if(i!=0){p+=",";}p+=c[i];}}k=k+"&disabledDefaultPanels="+p;}}}Ext.Ajax.request({url:k,method:"POST",timeout:280000,scope:this,success:function(v,N){var O=v.responseText;
var M=Ext.decode(O);if(M["UPDATE"]=="FAILED"){Ext.Msg.alert("Error",UpdateError);}if(M["UPDATE"]=="SUCCESS"){this.hideConfigWindow();refreshAfterUpdate();}},failure:function(){}});}}}},appendMetrics:function(l){var j=l.up().up();var k=j.down("combo[id=optionsCombo]").getValue();var p=j.down("radiogroup[id=metrics]").getValue().metricsRadio;
var q=j.down("textfield[id=panelTitle]");var b=j.down("combo[id=chartTimeline]");var o=j.down("combo[id=test]");var h=j.down("combo[id=measure]");var r=j.down("textfield[id=displayName]");var f=j.down("combo[id=panelNo]");var c=Ext.getCmp("suppotedCmpType");var u=true;if(k=="add"||k=="modify"){if(q.getValue()==""){Ext.Msg.alert("Error","Please enter the Panel Title");
u=false;}else{if(o.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");u=false;}else{if(h.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the measure");u=false;}else{if(p!="Bar_Metrics"&&r.getValue()=="-1"){Ext.Msg.alert("Error","Please enter the display name");u=false;}else{if(p=="BackendApplicationStatus"&&c.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the component type");
u=false;}else{if(p=="BackendApplicationStatus"&&o.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");u=false;}else{if(p=="BackendApplicationStatus"&&h.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the measure");u=false;}}}}}}}}if(u){if(k!="add"){var t=f.getValue();var m=f.findRecord(f.valueField||f.displayField,t);
var n=f.store.indexOf(m);p=f.getStore().getAt(n).get("metricsField");}var s=o.getValue()+":"+h.getValue()+":"+r.getValue();var a="";if(p=="Group_Metrics"){if(!Ext.isEmpty(metricsData)){if(metricsData.indexOf(o.getValue()+":"+h.getValue())>-1){a="";}else{a=","+s;}}else{a=s;}}else{if(p=="BackendApplicationStatus"){a=s;
}else{if(!Ext.isEmpty(metricsData)){if(metricsData.indexOf(o.getValue()+":"+h.getValue())>-1){a="";}else{a="|hash|"+s;}}else{a=s;}}}metricsData+=a;o.setValue("-1");h.setValue("-1");r.setValue("");}},appendRemoveMetrics:function(l){var j=l.up().up();var k=j.down("combo[id=optionsCombo]").getValue();var p=j.down("radiogroup[id=metrics]").getValue().metricsRadio;
var q=j.down("textfield[id=panelTitle]");var b=j.down("combo[id=chartTimeline]");var o=j.down("combo[id=test]");var h=j.down("combo[id=measure]");var r=j.down("textfield[id=displayName]");var f=j.down("combo[id=panelNo]");var c=Ext.getCmp("suppotedCmpType");var u=true;if(k=="modify"){if(o.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");
u=false;}else{if(h.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the measure");u=false;}else{if(p=="BackendApplicationStatus"&&c.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the component type");u=false;}else{if(p=="BackendApplicationStatus"&&o.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the test");
u=false;}else{if(p=="BackendApplicationStatus"&&h.getValue()=="-1"){Ext.Msg.alert("Error","Please choose the measure");u=false;}}}}}}if(u){var t=f.getValue();var m=f.findRecord(f.valueField||f.displayField,t);var n=f.store.indexOf(m);p=f.getStore().getAt(n).get("metricsField");var s=o.getValue()+":"+h.getValue();
var a="";if(p=="Group_Metrics"){if(!Ext.isEmpty(removeMetricsData)){if(removeMetricsData.indexOf(o.getValue()+":"+h.getValue())>-1){a="";}else{a=","+s;}}else{a=s;}}else{if(p=="BackendApplicationStatus"){a=s;}else{if(!Ext.isEmpty(removeMetricsData)){if(removeMetricsData.indexOf(o.getValue()+":"+h.getValue())>-1){a="";
}else{a="|hash|"+s;}}else{a=s;}}}removeMetricsData+=a;o.setValue("-1");h.setValue("-1");}},loadComponentInTheApp:function(){var a=Ext.getCmp("userCombo").getValue();window.location.href=encodeURI("/final/monitor/endUserDashboardDetailsData.jsp"+a);},loadUserCombo:function(){if(!showUserCombo){var a=Ext.getCmp("userCombo");
if(!Ext.isEmpty(a)&&!Ext.isEmpty(requestParams.userCombo)){a.show();a.getStore().loadRawData(requestParams.userCombo[0].value);a.setValue(requestParams.userCombo[0].selected);}else{if(!Ext.isEmpty(a)){a.hide();}}}},loadUserComponentInTheApp:function(){var a=Ext.getCmp("userCompsCombo").getValue();window.location.href=encodeURI("/final/monitor/endUserDashboardDetailsData.jsp"+a);
},loadUserCompsCombo:function(){if(showBackBtn=="false"||showBackBtn==false){Ext.getCmp("backbtn").hide();}if(isHistory!=""&&isHistory=="true"){Ext.getCmp("searchString").hide();Ext.getCmp("publishDashboard_icon").hide();Ext.getCmp("AddPanelbtn").hide();Ext.getCmp("ShowHideBtn").hide();}if(!showUserCompsCombo){var a=Ext.getCmp("userCompsCombo");
if(!Ext.isEmpty(a)&&!Ext.isEmpty(requestParams.userCompsCombo)){a.show();a.getStore().loadRawData(requestParams.userCompsCombo[0].value);a.setValue(requestParams.userCompsCombo[0].selected);}else{if(!Ext.isEmpty(a)){a.hide();}}}},hideConfigWindow:function(){Ext.get("configMod").animate({duration:500,to:{y:-400}});
},updateSessionDetails:function(b,h){var a=Ext.getCmp(h);if(!Ext.isEmpty(b)&&b["Data"]!="NO_DATA"){var c=b["Timeline"];var f=b["Data"];f='<div class="x-table" style="box-shadow: 5px 5px 5px #ccc;"><table cellspacing="0" cellpadding="0" width="auto" class="x-grid-table x-grid-table-resizer" height="auto"><thead><tr class="x-grid-row  x-grid-row-column"><td class="x-grid-cell" style="width:40%;border-top:0px !important;"><div class="x-grid-cell-inner">Server</div></td><td class="x-grid-cell" style="border-top:0px !important;"><div class="x-grid-cell-inner">Last Accessed Time</div></td><td class="x-grid-cell" style="width:70px;border-top:0px !important;border-right:0px !important;"><div class="x-grid-cell-inner">&nbsp;</div></td></tr></thead><tbody><tr class="x-grid-row"><td class="x-grid-cell"><div class="x-grid-cell-inner">07/10/2014 11:02:01</div></td><td class="x-grid-cell"><div class="x-grid-cell-inner">CITRIXXENAPP_180_SV</div></td><td class="x-grid-cell"><div class = "x-grid-cell-inner"><img src="/final/images/spacer.gif" class="iconLineChart" style="cursor:pointer" hspace="3px" onClick="javascript:loadPopup("");" data-qtip="Graph" data-qclass="yellowTip"/><img src="/final/images/spacer.gif" class="iconDiagnosis"  hspace="3px" onClick="javascript:loadPopup("");" style="cursor:pointer" data-qtip="Diagnosis" data-qclass="yellowTip"/></div></td></tr><tr class="x-grid-row"><td class="x-grid-cell"><div class="x-grid-cell-inner">07/10/2014 11:02:01</div></td><td class="x-grid-cell"><div class="x-grid-cell-inner">CITRIXXENAPP_130_SV</div></td><td class="x-grid-cell"><div class = "x-grid-cell-inner"><img src="/final/images/spacer.gif" class="iconLineChart" style="cursor:pointer" hspace="3px" onClick="javascript:loadPopup("");" data-qtip="Graph" data-qclass="yellowTip"/><img src="/final/images/spacer.gif" class="iconDiagnosis"  hspace="3px" onClick="javascript:loadPopup("");" style="cursor:pointer" data-qtip="Diagnosis" data-qclass="yellowTip"/></div></td></tr></tbody></table></div>';
a.down("displayfield[id=sessionDetailsTimeline]").setValue(c);a.update(f);}else{a.update('<table width="100%" height="100%" style="margin:20% 0 auto 0"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");
}},updateLoginDetails:function(c,h){var a=Ext.getCmp(h);if(c!="NO_DATA"){a.add({rowspan:2,margin:"0 10 0 10",html:'<div class="uxLoggedIn" style="margin-bottom:60px"></div>'});for(var b in c){var f=c[b];a.add({xtype:"displayfield",fieldBodyCls:"uxGraphLabel",margin:10,labelSeparator:"",fieldCls:"uxGraphValue_WHITE",labelAlign:"top",fieldLabel:b,value:f});
}}else{a.update('<table width="100%" height="100%"><tr><td valign="middle" align="center"><div class="iconInformation" style="margin:auto 0 auto 0"></div><div style="font-size:12px">'+noMeasure+"! </div></td></tr></table>");}},initComponent:function(){this.widget_base_dimensions=[170,170],increasebyPixel=2,w=window,d=document,e=d.documentElement,g=d.getElementsByTagName("body")[0],x=w.innerWidth||e.clientWidth||g.clientWidth,y=w.innerHeight||e.clientHeight||g.clientHeight;
var f=x*0.10485;var c=y*0.15;if(isNaN(f)){f=130;}f=Ext.util.Format.round(f,0);if(isNaN(c)){c=240;}c=Ext.util.Format.round(c,0);var b=3;if(Ext.isChrome){f=((x-12)/panelsPerRow)-10;b=4.59;}else{f=((x-20)/panelsPerRow)-10;b=4;}this.deafault_widget_base_dimensions=[f,c];this.default_margins=[b,b];this.widget_base_dimensions=[f,c];
this.settingWidth=parseInt(x-45);$("#gridsterpanel").append(this.createGridsterTags);var a=this.loadDefault();a=null;delete a;this.callParent();}});