Ext.define("ComponentMeasureTabSet.view.CtxLogon",{extend:"Ext.panel.Panel",alias:"widget.ctxlogon",tabToolBar:null,url:null,items:[],id:"innerDiagram",requires:["ComponentMeasureTabSet.view.CitrixLogon","ComponentMeasureTabSet.view.CitrixLogonFilters"],data:null,ctime:null,ttime:null,timeData:null,layout:{type:"vbox",align:"stretch"},createTabUI:function(l,f,g){var k=this;
k.removeAll();this.data=l;if(!Ext.isEmpty(f)&&f!=0){this.timeData=f;}var n=false;try{if(!Ext.isEmpty(this.data.isSSTest)&&this.data.isSSTest){n=true;}}catch(h){}try{var d="";hidepdf=false;try{d=l.ctxDataArr[0].user;}catch(h){d="";}if(!Ext.isEmpty(k.mask)){k.mask.hide();}this.tabToolBar={xtype:"toolbar",id:"tabToolBar",height:26,items:[{xtype:"button",action:"savedonutpdf",margin:"0 5 0 0",padding:0,id:"savedonutpdfId",iconCls:"iconPdf",style:{background:"none",border:"0px"},hidden:(isIEck||n),listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:saveLbl});
}}},{xtype:"tbseparator",id:"tbseparatorId",hidden:(isIEck||n),},{xtype:"image",cls:"iconSettings",width:25,margin:"0 0 0 5",style:{"cursor":"pointer"},tooltip:"Settings",listeners:{render:function(e){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"Settings"});
e.getEl().on("click",function(){this.fireEvent("click",e);},e);},click:function(){citrixLogonFilter("click",Ext.getCmp("innerDiagram").data,Ext.getCmp("innerDiagram").timeData);}}},{xtype:"tbseparator",hidden:true,},{xtype:"image",cls:"iconDDLogonDetails",id:"DDLogonId",hidden:true,style:{"cursor":"pointer"},tooltip:"logon details",listeners:{render:function(e){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:"logon details"});
e.getEl().on("click",function(){this.fireEvent("click",e);},e);},click:function(){LogonDetailsPopUp("/final/monitor/endUserLogonDetails.jsp?access=allusers&userType=XenApp7&fromMenu=true&comptype=none&compName=none&info=*"+encodeURIComponent(d)+"&msmt_host=none&tab=layerModel&testNameForLogon=CtxXcXDUserTest&fromPage=CtxLogon","Real User Logon Details");
}}}]};var i=this.data.ctxDataArr[0];if(n){var q=i.ss;if(q!=null&&!Ext.isEmpty(q)&&q.endsWith(".jpg")){q=q.substring(0,q.indexOf(".jpg"));}managerId="";if(q.indexOf("|">0)){managerId=q.substring(0,q.indexOf("|"));q=q.substring(q.indexOf("|")+1);}var j=this.data.successScreenshot;if(q!=null&&!Ext.isEmpty(q)&&q!="-"){var o=i.host;
var c=i.time;var m="Failure Screenshot for "+o+" at "+c;if((j!=null&&!Ext.isEmpty(j)&&j=="true")||(requestParams.isForSuccessScreenshot!=null&&!Ext.isEmpty(requestParams.isForSuccessScreenshot)&&requestParams.isForSuccessScreenshot=="true")){m="Success Screenshot for "+o+" at "+c;}k.add({xtype:"container",layout:"fit",height:Ext.getBody().getHeight(),items:[{xtype:"panel",cls:"outerpanel",layout:"fit",title:'<div style="text-align:center;width:100%;margin-top:10px;">'+m+"</div>",items:[{xtype:"component",autoEl:{tag:"iframe",frameborder:false,width:"100%",height:"90%",src:"/final/monitor/screenshotDisplay.jsp?managerId="+managerId+"&imageID="+encodeURI(q)+".jpg"}}]}]});
}else{this.add([{xtype:"container",html:'<table align="center" style="margin:22% auto 0 auto;height:100%"><tr><td style="text-align:center"><img src="/final/images/spacer.gif" class="iconInformation"/></br>No Screenshot found!</td></tr></table>'}]);}}else{this.add([{xtype:"citrixlogon",jsonData:i,autoScroll:false,scroll:false,layout:{type:"vbox",align:"stretch"},style:{"border":"0px solid green"},}]);
}}catch(b){var a=false;var o="";try{if(!Ext.isEmpty(l.isSSTest)&&(l.isSSTest==true||l.isSSTest=="true")){a=true;}o=l.host;}catch(h){a=false;}if(!Ext.isEmpty(k.mask)){k.mask.hide();}if(a){k.add({xtype:"panel",flex:1,cls:"outerpanel",title:'<div style="text-align:center;width:100%;margin-top:10px;">Failure Screenshot for '+o+"</div>",html:'<table align="center" style="height:100%"><tr><td style="text-align:center"><img src="/final/images/spacer.gif" class="iconInformation"/></br>No failures now!</td></tr></table>'});
}else{this.add([{xtype:"container",html:'<table align="center" style="margin:22% auto 0 auto;height:100%"><tr><td style="text-align:center"><img src="/final/images/spacer.gif" class="iconInformation"/></br>No Data Available now!</td></tr></table>'}]);hidepdf=true;try{Ext.getCmp("savedonutpdfId").hide();
Ext.getCmp("tbseparatorId").hide();}catch(h){}}}},createNoAccessTabUI:function(b){var a=this;a.removeAll();this.tabToolBar={xtype:"toolbar",id:"tabToolBar",items:[]};if(!Ext.isEmpty(a.mask)){a.mask.hide();}errorPanel=this.createAccessErrorPanel(b);this.add([errorPanel]);}});function citrixLogonFilter(b,e,g){try{var d=Ext.Element.getViewportWidth();
if(!Ext.isEmpty(container)){container.destroy();}var c="742px";if(isUserHaveDirector){c="773px";}else{c="768px";}var f=Ext.create("ComponentMeasureTabSet.view.CitrixLogonFilters");f.selTime=Ext.getCmp("innerDiagram").ctime;var h=f.createFilters(e,g);f.add(h);f.doLayout();f.show();container=Ext.widget("floatingContainer",{padding:5,floating:true,frame:true,width:801,hidden:true,floatable:true,id:"ctx_configMod",cls:"configMode_popup",items:[{xtype:"container",cls:"sessionSimulationTooltipArrow",style:{"top":"-13px","left":c}},{xtype:"container",html:'<div style="float:left;margin:0px 0px 0px 4px;color: #f7f7f7;" class="settingsfont"><b>SETTINGS</b></div><div style="text-align:right;float:right;"><div class="iconClose3"></div></div>',style:{"top":"0px","margin":"2px"}},f]});
Ext.create("Ext.fx.Anim",{target:container,duration:500,from:{left:d-515,top:-500},to:{top:50,left:d-515}});if(b=="click"){container.showAt(d-515,5000);}else{container.destroy();}Ext.select(".iconClose3").on("click",function(){Ext.create("Ext.fx.Anim",{target:container,duration:500,from:{left:d-515,top:50},to:{top:-500,left:d-515},callback:function(){container.destroy();
}});},this);}catch(a){console.log("ee=-=-=->",a);}}