var defstyle="overviewPanelBg";var isHideTopology=false;if(outerPanelPosOrderArray!=undefined&&outerPanelPosOrderArray.length==4){defstyle="overviewSmallPanelBg";isHideTopology=true;}if(isDirectEndDetails){defstyle="overviewPanelBgBig";}var viewTopoPanel=Ext.create("Ext.container.Container",{style:{"padding":"0 3% 0 7%","border":"0px solid blue","opacity":"0.5"},margin:"15 0 0 0",items:[{xtype:"panel",style:{"left":"-100px"},html:'<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">Topology</td><td><hr class="headerLine" style="float:left"></td></tr></table>'},{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,},{xtype:"container",cls:"iconDesktopUser",margin:"0 0 0 10",}],},{columnWidth:0.17,xtype:"container",layout:"fit",cls:"uxArrow",height:100,},{width:65,xtype:"container",items:[{xtype:"container",cls:"iconCircleBg",html:'<div class="iconBlank" style="margin-top:15px;margin-left:15px;height:40px;width:40px;border:0px solid red">&nbsp;</div>'},{xtype:"label",cls:"uxLabel",margin:"0 0 0 0",padding:"6 0 0 0",style:{"line-height":"35px"},}]},{columnWidth:0.17,xtype:"container",height:100,layout:"fit",cls:"uxArrow",},{xtype:"container",width:65,items:[{xtype:"container",cls:"iconCircleBg",html:'<div class="iconBlank" style="margin-top:15px;margin-left:15px;height:40px;width:40px;border:0px solid red">&nbsp;</div>'},{xtype:"container",cls:"uxLabel",margin:"0 0 0 0",style:{"line-height":"35px"},}]},{columnWidth:0.17,xtype:"container",items:[{xtype:"label",cls:"uxLabel",style:{"position":"relative","top":"23px","padding":"0 0 0 40%"},},{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%"},}]},{xtype:"container",width:65,items:[{xtype:"container",cls:"iconCircleBg",html:'<div class="iconBlank" style="margin-top:15px;margin-left:15px;height:40px;width:40px;border:0px solid red">&nbsp;</div>'},{xtype:"label",cls:"uxLabel",margin:"0 0 0 0",style:{"line-height":"35px","white-space":"nowrap"},}]},{columnWidth:0.16,xtype:"container",height:100,cls:"uxArrow",items:[{xtype:"label",cls:"uxLabel",style:{"position":"relative","top":"23px","padding":"0 0 0 40%"},},{xtype:"container",},{xtype:"label",cls:"uxArrowLabel",style:{"position":"relative","top":"-13px","padding":"0 0 0 42%"},}]},{xtype:"container",width:65,items:[{xtype:"container",cls:"iconXenapp",},{xtype:"label",cls:"uxLabel",margin:"0 0 0 0",style:{"line-height":"35px"},}]},{xtype:"container",width:65,items:[{xtype:"container",cls:"iconCircleBg",html:'<div class="iconBlank" style="margin-top:15px;margin-left:15px;height:40px;width:40px;border:0px solid red">&nbsp;</div>'},{xtype:"label",cls:"uxLabel",margin:"0 0 0 0",style:{"line-height":"35px","white-space":"nowrap"},}]},{columnWidth:0.13,xtype:"panel",height:100,layout:"fit",cls:"uxArrowEnd",},{columnWidth:0.1,xtype:"container",items:[{xtype:"panel",width:132,cls:"uxDataPanel",height:185,margin:"0 0 0 0",bodyPadding:"0 0 10 0",title:"APPLICATIONS",floatable:false,floating:false,draggable:false,style:{"z-index":"1000"},items:[]}]}]},{xtype:"container",padding:"0 0 40 0",height:210,layout:{type:"table",tableAttrs:{style:{width:"84%",tableLayout:"fixed",height:"94%",borderCollapse:"separate",borderSpacing:"0px 0px"}},tdAttrs:{style:{verticalAlign:"bottom"}},columns:4},margin:"-125 0 0 30",style:{"overflow":"hidden !important","border":"0px solid orange"},items:[{xtype:"container",flex:1,height:"100%",cls:"uxLeftCurve",style:{"width":"100%","margin-bottom":"25px"},},{xtype:"container",cls:"topoPipe_Net",height:70,width:310,html:'<div class="topoMask">Loading Topology...</div>',style:{"border":"0px solid red","margin-left":"0px","width":"50% !important"},items:[{xtype:"container",cls:"topoPipe_Rtt",},{xtype:"container",cls:"topoPipe_Hdx",}]},{xtype:"container",flex:1,height:"100%",cls:"uxRightCurve",style:{"margin-bottom":"25px","margin-left":"0px","border":"0px solid red"},},{xtype:"container",width:"10%",}]}]});
Ext.define("endUserDashboardDetails.view.Main",{extend:"Ext.panel.Panel",alias:"widget.main",requires:["endUserDashboardDetails.view.UserDesktopData","utilities.OuterPanel","utilities.CommonBackButton","utilities.CommonPanel","utilities.ScrollCombo","utilities.Print","utilities.TimeLine","utilities.Settings","endUserDashboardDetails.view.SettingsForm","endUserDashboardDetails.view.LogonDetails"],bodyPadding:"0",margin:7,cls:"balckouterpanel dashboard_title",bodyCls:"outerMainLayoutbody",baseCls:"egbaseLayout",id:"header",name:"header",border:false,frame:true,flex:1,header:{height:30,padding:"0 10 0 10",},autoScroll:true,scroll:true,title:titleSting,tools:[{xtype:"button",cls:"iconAutomaticScrollRun",id:"iconAutomaticScrollRun",margin:"0px 4px 0px 4px",ui:"action",hidden:true,border:true,style:{border:"0px"},handler:function(){scrollFlag=true;
pageScroll();Ext.getCmp("iconAutomaticScrollRun").hide();},listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,autoDestroy:true,html:"Auto Scroll"});}}},{xtype:"button",cls:"iconAutomaticScrollStop",id:"iconAutomaticScrollStop",margin:"0px 4px 0px 4px",ui:"action",hidden:true,style:{border:"0px"},handler:function(){scrollFlag=false;
stopScroll();Ext.getCmp("iconAutomaticScrollStop").hide();},listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,autoDestroy:true,html:"Pause"});}}},{xtype:"button",cls:"iconAutomaticScrollJumpToTop",id:"iconAutomaticScrollJumpToTop",margin:"0px 4px 0px 4px",ui:"action",hidden:true,style:{border:"0px"},handler:function(){scrollFlag=false;
jumpScroll();Ext.getCmp("iconAutomaticScrollStop").hide();},listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,autoDestroy:true,html:"Jump to top"});}}},{xtype:"trigger",emptyText:"Search Users",width:175,labelAlign:"right",labelWidth:40,minWidth:80,labelSeparator:"",maxWidth:240,margin:"0 5 5 0",id:"searchString",cls:"whitedropdown_search",style:{"top":"2px"},hidden:isUEDExternalAccFlg,},{xtype:"tbseparator",cls:"uxSeparator",hidden:showUserCompsCombo,},{xtype:"scrollcombo",fieldLabel:labelUserComps,cls:"dropdown",labelSeparator:"&nbsp;:",labelWidth:80,width:250,labelStyle:"white-space:nowrap;",name:"userCompsCombo",hidden:showUserCompsCombo,id:"userCompsCombo",labelAlign:"right",margin:"8 5 0 0",displayField:"name",valueField:"value",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["name","value"],})},{xtype:"tbseparator",cls:"uxSeparator",hidden:showUserCombo,},{xtype:"scrollcombo",fieldLabel:selectUserDesk,cls:"dropdown",labelSeparator:"&nbsp;:",labelWidth:120,width:350,labelStyle:"white-space:nowrap;",name:"userCombo",hidden:showUserCombo,id:"userCombo",labelAlign:"right",margin:"8 5 0 0",value:"",displayField:"name",valueField:"value",queryMode:"local",store:Ext.create("Ext.data.Store",{fields:["name","value"],})},{xtype:"tbseparator",cls:"uxSeparator",hidden:false,},{xtype:"button",margin:"0 5 0 5",style:{"background-color":"transparent !important;"},border:false,width:20,cls:"dashboard_application_button",itemId:"appPerformance",handler:function(){showApplications();
},listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,autoDestroy:true,html:"Click to view<br/>Application Performance<br/> Statistics"});}}},{xtype:"button",margin:" 5 0 5",id:"publishDashboard_icon",cls:"dashboard_PublicURL_button",hidden:hideConfigFlag,name:"publishDashboard",style:{"background-color":"transparent !important;"},border:false,width:20,listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"Publish URL"});
}}},{xtype:"button",margin:"0 5 0 5",id:"AddPanelbtn",cls:"add_Widget_button",hidden:hideConfigFlag,name:"AddPanelbtn",style:{"background-color":"transparent !important;"},border:false,width:20,listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"Add Widgets"});
}}},{xtype:"button",margin:"0 5 0 5",id:"ShowHideBtn",cls:"iconHide",hidden:hideConfigFlag,name:"ShowHideBtn",style:{"background-color":"transparent !important;"},border:false,width:20,listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"Show/Hide Panel"});
}}},{xtype:"settings",id:"configWindow",margin:"8 0 0 10",hidden:true,name:"configWindow"},{xtype:"commonbackbutton",margin:"8 0 0 20",id:"backbtn",hidden:showBackButon,name:"backbtn",hidden:isUEDExternalAccFlg,}],listeners:{"afterrender":function(){this.showConfigWindow();}},showConfigWindow:function(){var c=this;
var b=new Ext.XTemplate('<div style="float:left;margin:0px 0px 0px 4px;padding:5px" class="settingsfont ">'+defultSettings+'</div><div style="text-align:right;float:right;" ><div class="iconClose3" id="close" style="margin:5px"></div></div>');Ext.create("Ext.window.Window",{padding:0,title:defultSettings,hidden:true,resizable:false,draggable:false,closeAction:true,id:"configMod",cls:"myDashboardwindow",header:{height:32,padding:"0 10",margin:0,},items:[{xtype:"settingsForm",parent:c}],listeners:{"close":function(){var a=Ext.getCmp("paletteWindow");
a.hide();}}});},items:[{xtype:"container",layout:{type:"vbox",align:"stretch"},border:true,cls:defstyle,id:defstyle,hidden:true,margin:"10 20 0 10",padding:"0 0 0 0",listeners:{afterrender:function(b){if(isHideTopology){var a=Ext.getCmp("overviewCol").getHeight();this.setHeight(a+10);Ext.getCmp("overviewCol").addCls("fieldsetOverviewBg1");
}}},items:[{xtype:"container",style:{"border":"0px solid green"},id:"overviewData",itemid:"overviewData",items:[{xtype:"container",id:"dummyTopolgy",items:[{xtype:viewTopoPanel}]}],hidden:isHideTopology,},{xtype:"container",layout:{type:"hbox",align:"stretch",},padding:"13 20 0 20",cls:"fieldsetOverviewBg",maxHeight:250,id:"overviewCol",items:[{xtype:"container",flex:1.5,minWidth:240,id:"sessionDetailsPanel"},{xtype:"container",flex:4,id:"logonInfoPanel"},{xtype:"container",flex:1.8,id:"sessionDurationPanel"},{xtype:"container",flex:2,id:"profileDetails"}]}]},{xtype:"userdesktopdata",extend:"Ext.container.Container",height:"100%",autoScroll:false,scroll:false,}]});
var scrolldelay;function pageScroll(){var a=Ext.getCmp("userdesktopdata").body;a.scrollBy(0,288);scrolldelay=setTimeout("pageScroll()",3000);if($("#userdesktopdata-body").scrollTop()+$("#userdesktopdata-body").innerHeight()>=$("#userdesktopdata-body")[0].scrollHeight){if(window.parent.tvModePlayAction!=undefined&&window.parent.tvModePlayAction=="pause"){stopScroll();
setTimeout("startTvModePlayAction()",3000);}else{clearTimeout(scrolldelay);scrolldelay=setTimeout("beforeContinueScroll()",3000);}}}function startTvModePlayAction(){jumpScroll();window.parent.startTvModePlayAction();}function beforeContinueScroll(){var a=Ext.getCmp("userdesktopdata");if(!Ext.isEmpty(a)){$("#userdesktopdata-body").scrollTop(0);
scrolldelay=setTimeout("pageScroll()",3000);}}function stopScroll(){clearTimeout(scrolldelay);}function jumpScroll(){var a=Ext.getCmp("userdesktopdata");if(!Ext.isEmpty(a)){clearTimeout(scrolldelay);$("#userdesktopdata-body").scrollTop(0);}}scrolldelay=null;delete scrolldelay;